/* ===== 基础 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
:root{
  --gold:#f5c542; --gold-d:#d4a017; --red:#c0392b; --red-d:#8e2a1e;
  --bg:#0d0f14; --card:#161922; --line:#262b38; --txt:#d7dce6; --muted:#8b93a3;
}
html{ scroll-behavior:smooth; }
body{
  font-family:"Microsoft YaHei","PingFang SC","WenQuanYi Micro Hei",sans-serif;
  background:#0a0c11; color:var(--txt); line-height:1.7; font-size:14px;
}
a{ color:inherit; text-decoration:none; transition:.2s; }
ul{ list-style:none; }
.container{ max-width:1180px; margin:0 auto; padding:0 15px; }

/* ===== 头部 ===== */
.header{
  background:linear-gradient(180deg,#1a1f2b 0%,#11141c 100%);
  border-bottom:2px solid var(--gold); position:sticky; top:0; z-index:99;
  box-shadow:0 4px 20px rgba(0,0,0,.5);
}
.header .container{ display:flex; align-items:center; justify-content:space-between; height:70px; }
.logo a{ display:flex; align-items:center; gap:8px; font-size:24px; font-weight:700; color:#fff; }
.logo-icon{ font-size:30px; }
.logo-text .hl{ color:var(--gold); }
.nav ul{ display:flex; gap:6px; }
.nav a{
  display:block; padding:8px 14px; border-radius:6px; color:#cdd5e2; font-size:15px; font-weight:600;
}
.nav a:hover,.nav .active a,.nav a:hover{ background:var(--gold); color:#1a1a1a; }

/* ===== 副横幅 ===== */
.sub-banner{
  background:
    radial-gradient(circle at 20% 30%,rgba(245,197,66,.15),transparent 40%),
    linear-gradient(135deg,#1c2233 0%,#0f1219 100%);
  border-bottom:1px solid var(--line); padding:30px 0;
}
.sub-banner-inner{ display:flex; justify-content:space-between; align-items:center; gap:30px; flex-wrap:wrap; }
.sub-text h1{ font-size:28px; color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.6); }
.sub-text p{ color:var(--gold); margin-top:8px; font-size:15px; }
.sub-form{
  background:rgba(22,25,34,.95); border:1px solid var(--line); border-radius:12px;
  padding:18px 22px; min-width:340px; box-shadow:0 8px 24px rgba(0,0,0,.4);
}
.form-title{ color:var(--gold); font-weight:700; font-size:16px; }
.form-desc{ color:var(--muted); font-size:12px; margin:4px 0 10px; }
.sub-form form{ display:flex; gap:8px; }
.sub-form input{
  flex:1; padding:9px 12px; border-radius:6px; border:1px solid var(--line);
  background:#0d0f14; color:#fff; outline:none;
}
.sub-form input:focus{ border-color:var(--gold); }
.sub-form button{
  padding:9px 18px; border:none; border-radius:6px; cursor:pointer;
  background:linear-gradient(180deg,var(--gold),var(--gold-d)); color:#1a1a1a; font-weight:700;
}
.sub-form button:hover{ filter:brightness(1.1); }

/* ===== 通用板块 ===== */
.main{ padding:25px 15px 40px; }
.section{ background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px 20px; margin-bottom:22px; }
.section-head{
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom:15px;
}
.section-head h2{ font-size:19px; color:#fff; position:relative; padding-left:12px; }
.section-head h2::before{
  content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:4px; height:18px; background:var(--gold); border-radius:2px;
}
.update-time,.tip{ color:var(--muted); font-size:13px; font-weight:400; }
.more{ color:var(--gold); font-size:13px; }
.more:hover{ text-decoration:underline; }

/* ===== 开服表 ===== */
.table-wrap{ overflow-x:auto; }
.server-table{ width:100%; border-collapse:collapse; min-width:620px; }
.server-table th{
  background:#1f2533; color:var(--gold); font-weight:600; padding:12px 10px; text-align:left; font-size:14px;
}
.server-table td{ padding:13px 10px; border-bottom:1px solid var(--line); }
.server-table tr:hover td{ background:rgba(245,197,66,.05); }
.srv-name{ color:#fff; font-weight:700; font-size:15px; }
.tag{ display:inline-block; padding:3px 10px; border-radius:4px; font-size:12px; color:#fff; }
.tag-176{ background:#2c5f8a; } .tag-30{ background:#8a5a2c; } .tag-20{ background:#5a2c8a; }
.status{ font-size:12px; font-weight:700; padding:3px 8px; border-radius:4px; }
.status.hot{ background:var(--red); color:#fff; } .status.new{ background:#27ae60; color:#fff; } .status.soon{ background:#e67e22; color:#fff; }
.btn-enter{
  display:inline-block; padding:6px 16px; border-radius:5px; font-weight:700; font-size:13px;
  background:linear-gradient(180deg,var(--gold),var(--gold-d)); color:#1a1a1a;
}
.btn-enter:hover{ filter:brightness(1.12); transform:translateY(-1px); }

/* ===== 预告列表 ===== */
.notice-list li{
  display:flex; align-items:center; padding:11px 8px; border-bottom:1px dashed var(--line); gap:12px;
}
.notice-list li:last-child{ border-bottom:none; }
.n-date{ background:#1f2533; color:var(--gold); padding:2px 8px; border-radius:4px; font-size:12px; }
.n-name{ flex:1; color:#fff; font-weight:600; }
.n-ver{ color:var(--muted); font-size:13px; }
.n-time{ color:var(--gold); font-weight:700; }

/* ===== 沙城 ===== */
.shacheng-box{ background:linear-gradient(135deg,#1a2030,#141823); border-radius:10px; padding:16px 18px; }
.shacheng-box h3{ color:var(--gold); margin-bottom:10px; }
.shacheng-box p{ margin:6px 0; }
.reward-list{ margin:8px 0 8px 18px; }
.reward-list li{ list-style:disc; margin:4px 0; }
.next-time{ margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
.next-time b{ color:var(--gold); }

/* ===== 下载 ===== */
.download-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.dl-card{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  background:#1c2233; border:1px solid var(--line); border-radius:10px; padding:18px 10px; text-align:center;
}
.dl-card:hover{ border-color:var(--gold); transform:translateY(-3px); }
.dl-icon{ font-size:34px; }
.dl-name{ font-size:13px; color:#fff; }
.dl-all{ grid-column:1 / -1; flex-direction:row; justify-content:center; }

/* ===== 双栏布局 ===== */
.layout-two{ display:flex; gap:22px; align-items:flex-start; }
.col-left{ flex:1; min-width:0; }
.col-right{ width:340px; flex-shrink:0; }

/* ===== 文章列表 ===== */
.article-list li{
  display:flex; align-items:center; gap:8px; padding:10px 4px; border-bottom:1px dashed var(--line);
}
.article-list li:last-child{ border-bottom:none; }
.article-list a{ flex:1; color:#d7dce6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.article-list a:hover{ color:var(--gold); }
.cat{
  font-size:12px; padding:2px 8px; border-radius:4px; background:var(--red); color:#fff; flex-shrink:0;
}
.cat-news{ background:#2980b9; }
.a-date{ color:var(--muted); font-size:12px; flex-shrink:0; }

/* ===== 广告图 ===== */
.ad-box{ text-align:center; }
.ad-img{
  width:100%; height:auto; max-width:766px; border-radius:10px;
  border:1px solid var(--line); display:block; margin:0 auto;
  background:linear-gradient(135deg,#1c2233,#2c3e50);
}

/* ===== 页脚 ===== */
.footer{ background:#0e1118; border-top:2px solid var(--gold); margin-top:20px; }
.footer-inner{ display:flex; gap:30px; padding:30px 15px; flex-wrap:wrap; }
.foot-col{ flex:1; min-width:200px; }
.foot-col h4{ color:var(--gold); margin-bottom:10px; font-size:16px; }
.foot-col p{ color:var(--muted); font-size:13px; }
.foot-col a{ color:#aab2c3; }
.foot-col a:hover{ color:var(--gold); }
.copyright{ border-top:1px solid var(--line); padding:18px 0; text-align:center; color:var(--muted); font-size:12px; }
.disclaimer{ margin-top:6px; max-width:800px; margin-left:auto; margin-right:auto; }

/* ===== 文章详情页 ===== */
.article-page{ max-width:820px; margin:0 auto; padding:28px 32px; }
.article-meta{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.article-title{ font-size:26px; color:#fff; line-height:1.4; margin-bottom:12px; }
.article-intro{ color:var(--gold); font-size:15px; padding:12px 16px; background:rgba(245,197,66,.08); border-left:3px solid var(--gold); border-radius:4px; margin-bottom:22px; }
.article-content h2{ font-size:19px; color:#fff; margin:24px 0 10px; padding-left:12px; position:relative; }
.article-content h2::before{ content:""; position:absolute; left:0; top:50%; transform:translateY(-50%); width:4px; height:18px; background:var(--gold); border-radius:2px; }
.article-content p{ color:#d7dce6; margin:8px 0; text-indent:2em; line-height:1.9; }
.article-actions{ margin-top:30px; text-align:center; }

/* ===== 响应式 ===== */
@media(max-width:860px){
  .layout-two{ flex-direction:column; }
  .col-right{ width:100%; }
  .nav{ display:none; }
  .sub-form{ min-width:auto; width:100%; }
  .sub-banner-inner{ flex-direction:column; align-items:stretch; }
}
@media(max-width:520px){
  .sub-text h1{ font-size:22px; }
  .server-table th,.server-table td{ padding:8px 6px; font-size:12px; }
}
