/* 重置 & 基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', '宋体', serif;
    background: #f8f6f0;
    color: #333;
    line-height: 1.6;
}

a {
    color: #2a6f8f;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 头部 */
header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2a2a2a;
    text-decoration: none;
}
.logo .subtitle {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}
.search-form input {
    border: none;
    padding: 6px 12px;
    font-size: 0.9rem;
    outline: none;
    min-width: 180px;
}
.search-form button {
    background: #2a6f8f;
    border: none;
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
}
.wiki-badge {
    background: #2a6f8f;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}
.wiki-badge:hover {
    background: #1d4f68;
    text-decoration: none;
}

/* 导航 */
.main-nav {
    background: #eae7e0;
    border-top: 1px solid #ddd;
}
.main-nav ul {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    list-style: none;
    padding: 0 20px;
}
.main-nav li {
    margin: 0;
}
.main-nav a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
    border-bottom-color: #2a6f8f;
    background: rgba(42,111,143,0.05);
    text-decoration: none;
}

/* 主容器 */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 首页 Hero */
.hero {
    background: linear-gradient(135deg, #eef3f7, #d9e3ed);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}
.hero h1 {
    font-size: 2.2rem;
    color: #1a3a4a;
}
.hero p {
    font-size: 1.1rem;
    color: #3a5a6a;
}

/* 分类板块 */
.category-section {
    margin-bottom: 40px;
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #d0c8b8;
    padding-bottom: 8px;
    margin-bottom: 20px;
}
.category-header h2 {
    font-size: 1.6rem;
    font-weight: normal;
    color: #2a2a2a;
}
.view-all {
    font-size: 0.9rem;
}

/* 网站卡片网格 */
.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.site-card {
    background: #fff;
    border: 1px solid #e0d8cc;
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.site-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.site-header h3 {
    font-size: 1.15rem;
    font-weight: normal;
}
.site-header h3 a {
    color: #1a3a4a;
}
.site-header h3 a:hover {
    text-decoration: none;
    color: #2a6f8f;
}
.score-badge {
    background: #f5e7b0;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #7a5e1a;
}
.short-desc {
    font-size: 0.95rem;
    color: #555;
    margin: 8px 0 12px;
    flex: 1;
}
.site-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.tag {
    background: #eae7e0;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #555;
}
.site-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.btn-detail, .btn-visit {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #ccc;
    background: #faf8f4;
    color: #333;
    transition: 0.2s;
}
.btn-detail:hover, .btn-visit:hover {
    background: #e0d8cc;
    text-decoration: none;
}
.btn-visit {
    background: #2a6f8f;
    border-color: #2a6f8f;
    color: #fff;
}
.btn-visit:hover {
    background: #1d4f68;
    border-color: #1d4f68;
    color: #fff;
}
.wiki-link {
    margin-top: 12px;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
    font-size: 0.85rem;
}
.wiki-link a {
    color: #2a6f8f;
}

/* 详情页 */
.breadcrumb {
    background: #eae7e0;
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.detail-container {
    display: flex;
    gap: 30px;
}
.detail-main {
    flex: 2;
}
.detail-sidebar {
    flex: 1;
}
.detail-main h1 {
    font-size: 2.2rem;
    font-weight: normal;
    margin-bottom: 10px;
}
.detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.category-tag {
    background: #d0c8b8;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.score-large {
    font-size: 1.3rem;
    font-weight: bold;
}
.detail-description, .detail-features, .detail-dimensions {
    margin-bottom: 30px;
}
.detail-description h2,
.detail-features h2,
.detail-dimensions h2,
.promo-section h3,
.related-sites h3 {
    font-size: 1.3rem;
    font-weight: normal;
    border-bottom: 2px solid #d0c8b8;
    padding-bottom: 4px;
    margin-bottom: 15px;
}
.detail-features ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.detail-features li {
    background: #eae7e0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 多维评分条 */
.dimension-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dimension-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dim-label {
    width: 100px;
    font-weight: 500;
}
.dim-bar-bg {
    flex: 1;
    height: 8px;
    background: #e0d8cc;
    border-radius: 10px;
    overflow: hidden;
}
.dim-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}
.dim-value {
    width: 40px;
    font-size: 0.85rem;
    color: #555;
}

/* 导流区域 */
.promo-section {
    background: #eef3f7;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 5px solid #2a6f8f;
    margin: 30px 0;
}
.promo-section h3 {
    border-bottom: none;
    margin-bottom: 10px;
}
.btn-wiki {
    display: inline-block;
    background: #2a6f8f;
    color: #fff;
    padding: 8px 24px;
    border-radius: 30px;
    margin-top: 10px;
    font-weight: bold;
}
.btn-wiki:hover {
    background: #1d4f68;
    text-decoration: none;
    color: #fff;
}

/* 相关推荐 */
.related-sites ul {
    list-style: square;
    padding-left: 20px;
}
.related-sites li {
    margin-bottom: 6px;
}

/* 侧边栏 */
.sidebar-card {
    background: #fff;
    border: 1px solid #e0d8cc;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}
.sidebar-card h4 {
    margin-bottom: 12px;
    font-weight: normal;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}
.btn-visit-large {
    display: block;
    background: #2a6f8f;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 30px;
    font-weight: bold;
}
.btn-visit-large:hover {
    background: #1d4f68;
    text-decoration: none;
    color: #fff;
}

/* 搜索页 */
.search-results h1 {
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 20px;
}

/* 底部 */
footer {
    background: #eae7e0;
    border-top: 1px solid #d0c8b8;
    margin-top: 40px;
    padding: 30px 20px 15px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer-col h4 {
    font-weight: normal;
    margin-bottom: 12px;
    color: #2a2a2a;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 6px;
}
.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    border-top: 1px solid #d0c8b8;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .header-right {
        flex-wrap: wrap;
    }
    .search-form input {
        min-width: 120px;
    }
    .main-nav ul {
        flex-wrap: wrap;
    }
    .detail-container {
        flex-direction: column;
    }
}