打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Template:HomePage/styles.css

模板页面
Jhq223留言 | 贡献2025年10月14日 (二) 19:02的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
/* --- 1. 全局与布局 --- */
body.page-Main_Page, body.page-首页 {
    background-color: #eef3f7; /* 更柔和的浅色背景 */
    color: #333;
}
body.page-Main_Page #content, body.page-首页 #content {
    background: none; border: none; box-shadow: none;
}
.home-grid-container {
    max-width: 1200px; margin: 20px auto; display: grid;
    grid-template-columns: repeat(6, 1fr); gap: 15px;
    font-family: sans-serif;
}

/* --- 2. 卡片通用样式 --- */
.home-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #d8e1e8;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
}
.home-card .card-label {
    font-size: 12px; font-weight: bold; text-transform: uppercase;
    color: #5a738c; margin-bottom: 2px;
}
.home-card .card-header {
    font-size: 24px; font-weight: bold; color: #1c364e; margin: 0 0 15px 0;
}
.home-card .card-header a { color: inherit; text-decoration: none; }
.home-card .card-content { flex-grow: 1; font-size: 14px; line-height: 1.6; }

/* 网格跨度 */
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }

/* --- 3. 特定模块样式 --- */

/* 3.1 顶部搜索区域 */
.home-header {
    background-color: #1c364e; /* 深蓝色背景 */
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
}
.home-header-title { font-size: 36px; font-weight: bold; margin: 0; }
.home-header-subtitle { font-size: 16px; color: #a9c1d9; margin: 5px 0 25px 0; }
.home-search {
    display: inline-flex; align-items: center;
    background-color: #ffffff; color: #333;
    border-radius: 25px; /* 圆角 */
    padding: 8px 15px;
    width: 100%; max-width: 500px;
    border: 1px solid #d8e1e8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: text;
}
.home-search-icon { margin-right: 10px; }
.home-search-text { color: #555; }

/* 3.2 图像导航按钮 (图4效果) */
.image-button-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.image-button {
    position: relative; display: block; height: 50px;
    border-radius: 8px; overflow: hidden;
    color: white; text-decoration: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.image-button:hover .image-button-bg { transform: scale(1.05); }
.image-button-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform 0.3s ease;
    filter: brightness(0.7);
}
.image-button-text {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* 3.3 官方链接按钮 (图3效果) */
.link-button-list { display: flex; flex-direction: column; gap: 10px; }
.link-button {
    display: block; background-color: #eef3f7;
    padding: 12px 15px; border-radius: 8px;
    text-decoration: none; font-weight: 500; color: #1c364e;
    border: 1px solid #d8e1e8;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.link-button:hover { background-color: #e1eaf2; border-color: #c1d0de; }
.link-button img { vertical-align: middle; margin-left: 5px; }

/* 修复内容区域的显示问题 */
.card-content .error { display: none; } /* 隐藏模板不存在时的错误信息,更美观 */
.card-content .new { color: #cc0000; } /* 让不存在的模板链接显示为红色 */
我们为您提供服务需要使用Cookie。使用我们的服务即表示您同意我们使用Cookie。