/*
Theme Name: 轻变传奇攻略站
Theme URI: 
Author: 
Description: 轻变传奇攻略主题 - 特色铭文系统、自由交易、散人天堂
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fb;
    font-family: 'Segoe UI', 'Poppins', 'Roboto', system-ui, '微软雅黑', sans-serif;
    color: #1e2a3a;
    line-height: 1.5;
}

:root {
    --primary: #2c7da0;
    --primary-dark: #1f5e7a;
    --primary-light: #e8f4f8;
    --accent: #e67e22;
    --accent-light: #fdf2e6;
    --card-white: #ffffff;
    --border-light: #e2e8f0;
    --text-dark: #1a2c3e;
    --text-muted: #5a6e7c;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 头部导航 */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo p {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    font-weight: 600;
    color: #3a5468;
    padding: 8px 0;
    transition: 0.25s;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

@media (max-width: 780px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
    }
    .nav-links {
        justify-content: center;
        gap: 1rem;
    }
    .nav-links li a {
        font-size: 0.9rem;
    }
}

/* 面包屑导航 */
.breadcrumb {
    padding: 18px 0 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    margin: 0 6px;
}

/* 页面标题区 */
.page-header {
    background: linear-gradient(135deg, #eef2f7 0%, #e0e8f0 100%);
    padding: 32px 0 40px;
    border-bottom: 1px solid var(--border-light);
}
.page-header h1 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 700px;
}

/* 两栏布局 */
.two-columns {
    display: flex;
    gap: 40px;
    margin: 40px 0 56px;
}
.main-content {
    flex: 3;
}
.sidebar {
    flex: 1;
    min-width: 260px;
}

/* 列表容器 */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    background: var(--card-white);
    border-radius: 20px;
    padding: 20px 24px;
    transition: all 0.25s ease;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.list-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.list-info {
    flex: 8;
}

.list-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.list-title a {
    text-decoration: none;
    color: var(--text-dark);
}

.list-title a:hover {
    color: var(--primary);
}

.list-summary {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.list-meta {
    display: flex;
    gap: 20px;
    font-size: 0.7rem;
    color: #8da0b0;
}

.badge-category {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-hot {
    background: #fee2e2;
    color: #c2410c;
}

.btn-read {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-read:hover {
    background: var(--primary);
    color: white;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}

.page-numbers:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 侧边栏卡片 */
.sidebar-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-bottom: 18px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 16px;
    border-bottom: 1px dashed #edf2f7;
    padding-bottom: 12px;
}

.sidebar-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-list a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-dark);
    transition: 0.2s;
    display: block;
    font-size: 0.9rem;
}

.sidebar-list a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.meta-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    gap: 12px;
}

.hot-tag {
    background: #fee2e2;
    color: #c2410c;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* 文章详情页 */
.article-card {
    background: var(--card-white);
    border-radius: 28px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.article-header {
    padding: 32px 36px 20px;
    border-bottom: 1px solid var(--border-light);
}

.article-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-bottom: 8px;
}

.article-content {
    padding: 28px 36px 36px;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 24px 0 12px;
    color: var(--primary-dark);
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}

.article-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 18px;
    color: #2d3e50;
    font-size: 1rem;
    line-height: 1.8;
}

.article-content .highlight {
    background: #fef9e3;
    padding: 16px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    margin: 24px 0;
    font-weight: 500;
}

.article-content .info-box {
    background: var(--primary-light);
    padding: 16px 20px;
    border-radius: 16px;
    margin: 20px 0;
}

.article-content ul, .article-content ol {
    margin: 16px 0 20px 28px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* 相关推荐 */
.related-section {
    background: var(--card-white);
    border-radius: 28px;
    border: 1px solid var(--border-light);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}

.related-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 14px;
}

.related-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-list li a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-dark);
    display: block;
    transition: 0.2s;
    font-size: 0.95rem;
}

.related-list li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.related-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 首页 Hero 区 */
.hero {
    background: linear-gradient(135deg, #eef2f7 0%, #e0e8f0 100%);
    padding: 56px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.hero h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 16px auto 0;
    color: var(--text-muted);
}

.hero .highlight {
    color: var(--accent);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    border-left: 5px solid var(--primary);
    padding-left: 18px;
    margin: 44px 0 28px 0;
    color: var(--text-dark);
}

/* 首页网格卡片 */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .grid-cards {
        grid-template-columns: 1fr;
    }
}

.simple-card {
    background: var(--card-white);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    transition: all 0.25s ease;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.simple-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title-icon {
    font-size: 1.3rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.badge-mini {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 30px;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* 最新开区板块 */
.server-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    margin: 40px 0 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.server-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 24px;
    gap: 15px;
}

.server-header h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.server-row {
    background: #fafcff;
    border-radius: 60px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #e9edf2;
    transition: 0.2s;
}

.server-row:hover {
    background: #f0f6fa;
    border-color: var(--primary-light);
    transform: translateX(3px);
}

.server-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.server-date {
    color: var(--primary);
    font-size: 0.85rem;
}

.tag-hot {
    background: #fee2e2;
    color: #c2410c;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.65rem;
    font-weight: 600;
}

.more-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px dashed var(--primary);
}

.more-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* 页脚 */
footer {
    background: #eef2f5;
    margin-top: 56px;
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 800px) {
    .two-columns {
        flex-direction: column;
    }
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .article-header, .article-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    .article-title {
        font-size: 1.5rem;
    }
    .container {
        padding: 0 16px;
    }
    .hero h2 {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .server-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        border-radius: 20px;
    }
}