/* ===== 经典复古网 共用样式 =====
   移动端优先，PC端自适应，兼顾SEO可读性与视觉体验 */

/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #0d0d16;
    color: #d8d2c4;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: #d4a843; text-decoration: none; transition: 0.3s; }
a:hover { color: #f5d98a; text-shadow: 0 0 10px rgba(212,168,67,0.4); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

::selection {
    background: #d4a843;
    color: #0d0d16;
}

/* ========== 顶部导航 ========== */
.top-bar {
    background: #08080f;
    border-bottom: 2px solid #d4a843;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #d4a843;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(212,168,67,0.3);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo span { color: #f5d98a; }
.logo small {
    font-size: 12px;
    font-weight: 400;
    color: #6a5a3a;
    letter-spacing: 1px;
    display: block;
    margin-top: -2px;
}

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #a89a78;
    border: 1px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}
.nav a:hover, .nav a.active {
    color: #f5d98a;
    border-color: rgba(212,168,67,0.4);
    background: rgba(212,168,67,0.08);
}
.nav a.active {
    background: rgba(212,168,67,0.15);
    border-color: #d4a843;
}

/* ========== 公告条 ========== */
.notice-bar {
    background: linear-gradient(90deg,#15101f,#1f1525);
    padding: 11px 0;
    border-bottom: 1px solid #251a30;
    font-size: 14px;
}
.notice-bar .container {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.notice-label {
    background: linear-gradient(135deg,#d4a843,#b8922f);
    color: #0d0d16;
    padding: 3px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
}
.notice-text { color: #c4bca8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice-text strong { color: #f5d98a; }

/* ========== Hero ========== */
.hero { padding: 36px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 24px; }
.hero-main {
    background: linear-gradient(155deg,#131320,#1a1530);
    border-radius: 16px;
    padding: 36px 38px;
    border: 1px solid #2a2340;
    position: relative;
    overflow: hidden;
}
.hero-main::before {
    content: '';
    position: absolute;
    top: -60%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle,rgba(212,168,67,0.08) 0%,transparent 70%);
    border-radius: 50%;
}
.hero-tag {
    display: inline-block;
    background: linear-gradient(135deg,#d4a843,#f5d98a);
    color: #0d0d16;
    padding: 3px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.hero-main h2 { font-size: 32px; color: #f5d98a; margin-bottom: 10px; line-height: 1.3; }
.hero-main .subtitle { color: #8a8270; font-size: 16px; margin-bottom: 8px; }
.hero-main p { color: #9a917e; font-size: 15px; max-width: 85%; margin-bottom: 8px; }
.hero-main .tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-main .tags span {
    background: rgba(212,168,67,0.1);
    border: 1px solid rgba(212,168,67,0.3);
    color: #d4a843;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
}
.hero-main .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 40px;
    background: linear-gradient(135deg,#d4a843,#b8922f);
    color: #0d0d16;
    font-weight: 700;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
}
.hero-main .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(212,168,67,0.35); color: #0d0d16; }

.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side .card {
    background: #121020;
    border-radius: 14px;
    padding: 22px 26px;
    border: 1px solid #2a2340;
    flex: 1;
    transition: 0.3s;
}
.hero-side .card:hover { border-color: rgba(212,168,67,0.3); }
.hero-side .card h4 { color: #d4a843; font-size: 15px; margin-bottom: 6px; }
.hero-side .card p { color: #8a7f6a; font-size: 14px; }
.hero-side .card .count { font-size: 36px; font-weight: 800; color: #f5d98a; line-height: 1.2; }
.hero-side .card .count-label { font-size: 13px; color: #6a6050; }

/* ========== 内容区块通用 ========== */
.section { padding: 28px 0 32px; }
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #f5d98a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2a2340;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title .icon { font-size: 20px; }
.section-title .more { margin-left: auto; font-size: 14px; font-weight: 400; color: #7a6f5a; }
.section-title .more:hover { color: #d4a843; }

/* ========== 开服列表 ========== */
.server-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.server-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f0f1c;
    padding: 14px 22px;
    border-radius: 10px;
    border-left: 4px solid #d4a843;
    transition: 0.3s;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid #1a1a2a;
}
.server-item:hover { background: #15152a; transform: translateX(4px); border-left-color: #f5d98a; }
.server-item .info { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.server-item .date { color: #7a7060; font-size: 13px; min-width: 70px; font-weight: 500; }
.server-item .name { font-weight: 600; color: #e8e0cc; font-size: 16px; }
.server-item .name .new-badge {
    background: linear-gradient(135deg,#d43f3f,#ff6a6a);
    color: #fff;
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: 700;
    vertical-align: middle;
    letter-spacing: 1px;
}
.server-item .version { color: #9a9080; font-size: 13px; background: #1a1a2a; padding: 2px 12px; border-radius: 12px; }
.server-item .line { color: #6a7a6a; font-size: 13px; }
.server-item .hot { color: #d4a843; font-size: 12px; font-weight: 600; }
.server-item .status { font-size: 13px; padding: 4px 14px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.status.open { background: rgba(40,120,60,0.2); color: #6ad48a; border: 1px solid rgba(40,120,60,0.3); }
.status.coming { background: rgba(120,90,20,0.2); color: #d4a843; border: 1px solid rgba(120,90,20,0.3); }
.status.hot { background: rgba(120,30,30,0.2); color: #ff8080; border: 1px solid rgba(120,30,30,0.3); }

/* ========== 推荐卡片 ========== */
.recommend-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 22px; }
.rec-card {
    background: #0f0f1c;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #2a2340;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.rec-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,#d4a843,transparent);
    opacity: 0;
    transition: 0.3s;
}
.rec-card:hover { border-color: rgba(212,168,67,0.4); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.rec-card:hover::before { opacity: 1; }
.rec-card .name { font-size: 19px; font-weight: 700; color: #f5d98a; margin-bottom: 6px; }
.rec-card .meta { color: #8a7f6a; font-size: 13px; margin: 6px 0 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.rec-card .meta span { display: inline-flex; align-items: center; gap: 3px; }
.rec-card .desc { color: #9a917e; font-size: 14px; line-height: 1.6; min-height: 44px; }
.rec-card .stars { color: #d4a843; font-size: 18px; margin-top: 10px; letter-spacing: 2px; }
.rec-card .btn-sm {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 20px;
    background: rgba(212,168,67,0.1);
    border: 1px solid rgba(212,168,67,0.3);
    color: #d4a843;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}
.rec-card .btn-sm:hover { background: rgba(212,168,67,0.2); }

/* ========== 文章卡片 ========== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 20px; }
.article-card {
    background: #0f0f1c;
    border-radius: 12px;
    padding: 22px;
    border: 1px solid #2a2340;
    transition: 0.3s;
}
.article-card:hover { border-color: rgba(212,168,67,0.3); transform: translateY(-3px); }
.article-card .cat { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 3px; font-weight: 600; margin-bottom: 8px; }
.cat-guide { background: rgba(212,168,67,0.15); color: #d4a843; }
.cat-news { background: rgba(60,120,200,0.15); color: #6ab0ff; }
.cat-version { background: rgba(120,80,200,0.15); color: #b08aff; }
.article-card h3 { font-size: 17px; color: #e8e0cc; margin-bottom: 8px; line-height: 1.4; }
.article-card h3:hover { color: #f5d98a; }
.article-card .excerpt { color: #8a8170; font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.article-card .meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #5a5040; border-top: 1px solid #1a1a2a; padding-top: 10px; }
.article-card .meta-row .author { color: #7a6f5a; }

/* ========== 版本卡片 ========== */
.version-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 16px; }
.version-card {
    background: linear-gradient(155deg,#12101f,#0f0f1c);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2a2340;
    transition: 0.3s;
    text-align: center;
}
.version-card:hover { border-color: rgba(212,168,67,0.3); transform: scale(1.02); }
.version-card .v-num { font-size: 28px; font-weight: 800; color: #d4a843; margin-bottom: 6px; }
.version-card .v-name { font-size: 15px; color: #e8e0cc; font-weight: 600; margin-bottom: 4px; }
.version-card .v-desc { font-size: 12px; color: #7a7060; line-height: 1.5; }

/* ========== 底部 ========== */
.footer { background: #050509; border-top: 2px solid #1a1a2a; padding: 40px 0 24px; margin-top: 20px; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer .info { color: #5a5040; font-size: 14px; max-width: 360px; line-height: 1.8; }
.footer .info strong { color: #8a7a5a; font-size: 16px; }
.footer .info .highlight { color: #d4a843; }
.footer .links { display: flex; flex-direction: column; gap: 8px; }
.footer .links a { color: #5a5040; font-size: 14px; }
.footer .links a:hover { color: #d4a843; }
.footer .stats { display: flex; flex-direction: column; gap: 8px; }
.footer .stats div { font-size: 13px; color: #5a5040; }
.footer .stats strong { color: #d4a843; font-size: 16px; }
.footer .copy { text-align: center; padding-top: 20px; border-top: 1px solid #111120; margin-top: 20px; font-size: 12px; color: #3a3a4a; width: 100%; line-height: 1.8; }
.footer .copy a { color: #5a5040; }
.footer .copy a:hover { color: #d4a843; }

/* ========== 页面头部（子页面通用） ========== */
.page-hero {
    background: linear-gradient(155deg,#131320,#1a1530);
    border-bottom: 1px solid #2a2340;
    padding: 40px 0;
    text-align: center;
}
.page-hero h1 { font-size: 32px; color: #f5d98a; margin-bottom: 8px; }
.page-hero p { color: #8a8270; font-size: 15px; }

/* ========== 表格样式（开服表页） ========== */
.server-table-wrap { overflow-x: auto; }
.server-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.server-table th {
    background: #151520;
    color: #d4a843;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 2px solid #2a2340;
    white-space: nowrap;
}
.server-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #1a1a2a;
    font-size: 14px;
    color: #c4bca8;
}
.server-table tr:hover td { background: #15152a; }

/* ========== 响应式 ========== */
@media (max-width:900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main h2 { font-size: 26px; }
    .hero-main p { max-width: 100%; }
}
@media (max-width:768px) {
    .top-bar .container { flex-direction: column; gap: 12px; }
    .nav { justify-content: center; }
    .nav a { font-size: 14px; padding: 6px 12px; }
    .server-item { flex-direction: column; align-items: flex-start; }
    .server-item .info { width: 100%; }
    .section-title { font-size: 19px; }
    .footer .container { flex-direction: column; }
}
@media (max-width:480px) {
    .logo { font-size: 22px; }
    .hero-main { padding: 24px 20px; }
    .hero-main h2 { font-size: 22px; }
    .rec-card, .article-card { padding: 18px; }
    .notice-text { font-size: 13px; }
    .page-hero h1 { font-size: 24px; }
}
