/* ===== 全局重置 ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:14px; }
body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background:#0a0a1a;
  color:#e0e0e0;
  line-height:1.6;
  overflow-x:hidden;
}
a { color:inherit; text-decoration:none; transition:color .2s; }
a:hover { color:#ff4757; }
ul, ol { list-style:none; }
img { max-width:100%; display:block; }
button { cursor:pointer; border:none; outline:none; }

.container {
  max-width:1200px;
  margin:0 auto;
  padding:0 15px;
}

/* ===== 顶部公告栏 ===== */
.top-bar {
  background:linear-gradient(90deg, #1a0a2e 0%, #2d1057 50%, #1a0a2e 100%);
  border-bottom:1px solid #ff4757;
  padding:6px 0;
  font-size:12px;
  color:#aaa;
}
.top-bar .container {
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.top-bar .top-notice {
  color:#ff6b81;
  font-weight:bold;
}
.top-bar .top-links a {
  color:#ccc;
  margin:0 5px;
}
.top-bar .top-links a:hover { color:#ff4757; }

/* ===== 主头部 ===== */
.main-header {
  background:linear-gradient(180deg, #111 0%, #1a1a2e 100%);
  padding:20px 0;
  border-bottom:2px solid #333;
}
.main-header .container {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:15px;
}
.logo-area { display:flex; flex-direction:column; gap:4px; }
.logo {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:28px;
  font-weight:900;
  color:#fff;
  letter-spacing:2px;
}
.logo-icon { font-size:32px; }
.logo-highlight {
  color:#ff4757;
  text-shadow:0 0 10px rgba(255,71,87,.5);
}
.logo-desc {
  font-size:12px;
  color:#888;
  letter-spacing:1px;
}

/* 导航 */
.main-nav {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}
.nav-item {
  padding:10px 20px;
  font-size:15px;
  font-weight:bold;
  color:#ccc;
  border-radius:6px;
  transition:all .3s;
  position:relative;
}
.nav-item:hover {
  color:#fff;
  background:rgba(255,71,87,.15);
}
.nav-item.active {
  color:#fff;
  background:linear-gradient(135deg, #ff4757, #ff6b81);
  box-shadow:0 4px 15px rgba(255,71,87,.4);
}

/* ===== 搜索区 ===== */
.search-section {
  background:linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  padding:25px 0;
  border-bottom:1px solid #333;
}
.search-box {
  display:flex;
  max-width:700px;
  margin:0 auto 15px;
  gap:0;
}
.search-box input {
  flex:1;
  padding:14px 20px;
  font-size:15px;
  border:2px solid #ff4757;
  border-right:none;
  border-radius:8px 0 0 8px;
  background:#0f0f23;
  color:#fff;
  outline:none;
}
.search-box input:focus { box-shadow:0 0 15px rgba(255,71,87,.3); }
.search-box button {
  padding:14px 25px;
  font-size:15px;
  font-weight:bold;
  background:linear-gradient(135deg, #ff4757, #ff6b81);
  color:#fff;
  border-radius:0 8px 8px 0;
  transition:all .3s;
}
.search-box button:hover { filter:brightness(1.1); }

.quick-tags {
  text-align:center;
  font-size:13px;
  color:#999;
}
.tag-label { color:#ff6b81; font-weight:bold; margin-right:8px; }
.quick-tags a {
  display:inline-block;
  padding:4px 12px;
  margin:3px;
  background:rgba(255,255,255,.05);
  border:1px solid #333;
  border-radius:15px;
  color:#bbb;
  font-size:12px;
  transition:all .3s;
}
.quick-tags a:hover {
  background:rgba(255,71,87,.15);
  border-color:#ff4757;
  color:#ff6b81;
}

/* ===== 主内容布局 ===== */
.main-content { padding:30px 0; }
.main-content .container {
  display:grid;
  grid-template-columns:1fr 320px;
  gap:30px;
}
@media(max-width:960px){
  .main-content .container {
    grid-template-columns:1fr;
  }
}

/* ===== 区块标题 ===== */
.section-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
  padding-bottom:10px;
  border-bottom:2px solid #ff4757;
}
.section-title {
  font-size:20px;
  font-weight:900;
  color:#fff;
  display:flex;
  align-items:center;
  gap:8px;
}
.title-icon { font-size:22px; }
.title-date {
  font-size:13px;
  color:#ff6b81;
  font-weight:normal;
  margin-left:10px;
}
.section-more {
  font-size:13px;
  color:#ff6b81;
  font-weight:bold;
}
.section-more:hover { color:#ff4757; text-decoration:underline; }

/* ===== 轮播Banner ===== */
.hero-banner {
  position:relative;
  border-radius:12px;
  overflow:hidden;
  margin-bottom:30px;
  box-shadow:0 8px 30px rgba(0,0,0,.5);
}
.banner-slides { position:relative; height:220px; }
.banner-slide {
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  padding:30px 40px;
}
.banner-slide.active { display:flex; }
.banner-content { max-width:600px; }
.banner-badge {
  display:inline-block;
  padding:4px 12px;
  background:rgba(255,71,87,.9);
  color:#fff;
  font-size:12px;
  font-weight:bold;
  border-radius:4px;
  margin-bottom:10px;
}
.banner-slide h2 {
  font-size:26px;
  color:#fff;
  margin-bottom:8px;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}
.banner-slide p {
  font-size:14px;
  color:rgba(255,255,255,.85);
  margin-bottom:12px;
}
.banner-info {
  display:flex;
  gap:15px;
  margin-bottom:15px;
  font-size:13px;
  color:rgba(255,255,255,.9);
}
.banner-btn {
  display:inline-block;
  padding:12px 30px;
  background:linear-gradient(135deg, #ff4757, #ff6b81);
  color:#fff;
  font-size:15px;
  font-weight:bold;
  border-radius:8px;
  transition:all .3s;
  box-shadow:0 4px 15px rgba(255,71,87,.4);
}
.banner-btn:hover { transform:translateY(-2px); filter:brightness(1.1); }

.banner-dots {
  position:absolute;
  bottom:15px;
  right:20px;
  display:flex;
  gap:8px;
}
.dot {
  width:10px; height:10px;
  border-radius:50%;
  background:rgba(255,255,255,.3);
  cursor:pointer;
  transition:all .3s;
}
.dot.active { background:#ff4757; transform:scale(1.2); }

/* ===== 开服表格 ===== */
.server-table-section { margin-bottom:30px; }
.table-wrapper {
  background:#111;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #333;
}
.server-table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.server-table thead {
  background:linear-gradient(135deg, #1a1a2e, #16213e);
}
.server-table th {
  padding:12px 10px;
  text-align:center;
  font-size:12px;
  color:#ff6b81;
  font-weight:bold;
  border-bottom:2px solid #ff4757;
  white-space:nowrap;
}
.server-table td {
  padding:11px 10px;
  text-align:center;
  border-bottom:1px solid #222;
  color:#ddd;
}
.server-table tbody tr:nth-child(even) { background:#16213e; }
.server-table tbody tr:nth-child(odd) { background:#1a1a2e; }
.server-table tbody tr:hover { background:rgba(255,71,87,.08); }
.server-name { font-weight:bold; color:#fff; text-align:left !important; padding-left:15px !important; }
.tag {
  display:inline-block;
  padding:2px 8px;
  border-radius:3px;
  font-size:11px;
  font-weight:bold;
}
.tag-blue { background:#2980b9; color:#fff; }
.tag-red { background:#e74c3c; color:#fff; }
.tag-green { background:#27ae60; color:#fff; }
.tag-cyan { background:#00bcd4; color:#fff; }
.tag-purple { background:#9b59b6; color:#fff; }
.tag-orange { background:#e67e22; color:#fff; }
.status {
  display:inline-block;
  padding:2px 8px;
  border-radius:3px;
  font-size:11px;
  font-weight:bold;
}
.status-hot { background:#ff4757; color:#fff; animation:pulse 2s infinite; }
.status-full { background:#e67e22; color:#fff; }
.status-wait { background:#3498db; color:#fff; }
@keyframes pulse {
  0%,100%{opacity:1;}
  50%{opacity:.7;}
}
.btn-enter {
  display:inline-block;
  padding:4px 14px;
  background:linear-gradient(135deg, #ff4757, #ff6b81);
  color:#fff;
  font-size:12px;
  font-weight:bold;
  border-radius:4px;
  transition:all .3s;
}
.btn-enter:hover { filter:brightness(1.2); transform:scale(1.05); }

/* ===== 版本分类卡片 ===== */
.version-cats { margin-bottom:30px; }
.cat-grid {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
}
@media(max-width:768px){ .cat-grid { grid-template-columns:repeat(2,1fr); } }
.cat-card {
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:20px 10px;
  background:#111;
  border:1px solid #333;
  border-radius:10px;
  transition:all .3s;
  text-align:center;
  gap:6px;
}
.cat-card:hover {
  transform:translateY(-3px);
  border-color:#ff4757;
  box-shadow:0 5px 20px rgba(255,71,87,.2);
}
.cat-icon { font-size:32px; }
.cat-name { font-size:15px; font-weight:bold; color:#fff; }
.cat-desc { font-size:11px; color:#999; }
.cat-count { font-size:11px; color:#ff6b81; font-weight:bold; }
.cat-1 { border-top:3px solid #e74c3c; }
.cat-2 { border-top:3px solid #3498db; }
.cat-3 { border-top:3px solid #2ecc71; }
.cat-4 { border-top:3px solid #00bcd4; }
.cat-5 { border-top:3px solid #9b59b6; }
.cat-6 { border-top:3px solid #e67e22; }
.cat-7 { border-top:3px solid #1abc9c; }
.cat-8 { border-top:3px solid #f39c12; }

/* ===== 推荐卡片 ===== */
.recommend-section { margin-bottom:30px; }
.rec-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:15px;
}
@media(max-width:768px){ .rec-grid { grid-template-columns:1fr; } }
.rec-card {
  position:relative;
  padding:20px;
  background:#111;
  border:1px solid #333;
  border-radius:10px;
  transition:all .3s;
}
.rec-card:hover { border-color:#ff4757; }
.rec-main { background:linear-gradient(135deg, #1a0a2e 0%, #16213e 100%); border-color:#ff4757; }
.rec-badge {
  display:inline-block;
  padding:3px 10px;
  background:#ff4757;
  color:#fff;
  font-size:11px;
  font-weight:bold;
  border-radius:3px;
  margin-bottom:10px;
}
.rec-badge-hot { background:#e74c3c; }
.rec-badge-new { background:#2ecc71; }
.rec-card h3 {
  font-size:16px;
  color:#fff;
  margin-bottom:8px;
  line-height:1.4;
}
.rec-meta {
  display:flex;
  gap:12px;
  font-size:12px;
  color:#999;
  margin-bottom:10px;
  flex-wrap:wrap;
}
.rec-desc {
  font-size:13px;
  color:#bbb;
  line-height:1.7;
  margin-bottom:12px;
}
.rec-features {
  margin-bottom:15px;
}
.rec-features li {
  font-size:12px;
  color:#2ecc71;
  padding:3px 0;
}
.rec-btn {
  display:inline-block;
  padding:8px 20px;
  background:rgba(255,71,87,.15);
  color:#ff6b81;
  font-size:13px;
  font-weight:bold;
  border:1px solid #ff4757;
  border-radius:6px;
  transition:all .3s;
}
.rec-btn:hover { background:#ff4757; color:#fff; }

/* ===== 资讯文章 ===== */
.news-section { margin-bottom:30px; }
.news-grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:15px;
}
@media(max-width:768px){ .news-grid { grid-template-columns:1fr; } }
.news-item {
  position:relative;
  padding:18px;
  background:#111;
  border:1px solid #333;
  border-radius:10px;
  transition:all .3s;
}
.news-item:hover { border-color:#ff4757; transform:translateY(-2px); }
.news-cat {
  display:inline-block;
  padding:2px 8px;
  background:rgba(255,71,87,.15);
  color:#ff6b81;
  font-size:11px;
  font-weight:bold;
  border-radius:3px;
  margin-bottom:8px;
}
.news-item h3 {
  font-size:14px;
  margin-bottom:8px;
  line-height:1.5;
}
.news-item h3 a { color:#ddd; }
.news-item h3 a:hover { color:#ff6b81; }
.news-item p {
  font-size:12px;
  color:#888;
  line-height:1.6;
  margin-bottom:8px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.news-date {
  font-size:11px;
  color:#666;
}

/* ===== 深度文章 ===== */
.deep-content { margin-bottom:30px; }
.deep-articles { display:flex; flex-direction:column; gap:20px; }
.deep-article {
  padding:25px;
  background:#111;
  border:1px solid #333;
  border-radius:12px;
  border-left:4px solid #ff4757;
}
.deep-article h3 {
  font-size:18px;
  color:#fff;
  margin-bottom:12px;
  line-height:1.5;
}
.deep-meta {
  display:flex;
  gap:20px;
  font-size:12px;
  color:#888;
  margin-bottom:15px;
  padding-bottom:10px;
  border-bottom:1px solid #222;
}
.deep-article p {
  font-size:14px;
  color:#bbb;
  line-height:1.8;
  margin-bottom:12px;
  text-indent:2em;
}
.deep-article strong { color:#ff6b81; }
.deep-more {
  display:inline-block;
  padding:8px 20px;
  background:linear-gradient(135deg, #ff4757, #ff6b81);
  color:#fff;
  font-size:13px;
  font-weight:bold;
  border-radius:6px;
  transition:all .3s;
}
.deep-more:hover { filter:brightness(1.1); transform:translateX(3px); }

/* ===== 右侧边栏 ===== */
.content-right { display:flex; flex-direction:column; gap:20px; }
.sidebar-widget {
  padding:20px;
  background:#111;
  border:1px solid #333;
  border-radius:10px;
}
.widget-title {
  font-size:16px;
  font-weight:bold;
  color:#fff;
  margin-bottom:15px;
  padding-bottom:10px;
  border-bottom:2px solid #ff4757;
  display:flex;
  align-items:center;
  gap:6px;
}

/* 下载区 */
.widget-download {
  background:linear-gradient(135deg, #1a0a2e 0%, #16213e 100%);
  border-color:#ff4757;
}
.download-area { display:flex; flex-direction:column; gap:10px; }
.download-btn {
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:15px;
  background:rgba(255,71,87,.1);
  border:1px solid #ff4757;
  border-radius:8px;
  transition:all .3s;
  gap:4px;
}
.download-btn:hover { background:rgba(255,71,87,.25); }
.dl-icon { font-size:28px; }
.dl-text { font-size:14px; font-weight:bold; color:#fff; }
.dl-size { font-size:11px; color:#999; }
.download-btn.mobile { border-color:#3498db; background:rgba(52,152,219,.1); }
.download-btn.mobile:hover { background:rgba(52,152,219,.25); }
.download-tip { font-size:11px; color:#2ecc71; text-align:center; margin-top:5px; }

/* TOP排行 */
.top-list { display:flex; flex-direction:column; gap:8px; }
.top-list li {
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid #222;
}
.top-rank {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px; height:24px;
  border-radius:50%;
  font-size:12px;
  font-weight:bold;
  color:#fff;
  flex-shrink:0;
}
.rank-1 { background:linear-gradient(135deg, #f39c12, #f1c40f); }
.rank-2 { background:linear-gradient(135deg, #95a5a6, #bdc3c7); }
.rank-3 { background:linear-gradient(135deg, #e67e22, #d35400); }
.rank-4, .rank-5, .rank-6, .rank-7, .rank-8 { background:#555; }
.top-info { display:flex; flex-direction:column; gap:2px; }
.top-name { font-size:13px; color:#ddd; font-weight:bold; }
.top-name:hover { color:#ff6b81; }
.top-stat { font-size:11px; color:#888; }
.widget-more {
  display:block;
  text-align:center;
  margin-top:12px;
  padding:8px;
  background:rgba(255,71,87,.1);
  color:#ff6b81;
  font-size:13px;
  font-weight:bold;
  border-radius:6px;
  transition:all .3s;
}
.widget-more:hover { background:rgba(255,71,87,.25); }

/* 最新开服 */
.latest-list { display:flex; flex-direction:column; gap:0; }
.latest-list li {
  padding:9px 0;
  border-bottom:1px solid #222;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
}
.latest-list li:last-child { border-bottom:none; }
.latest-time {
  flex-shrink:0;
  padding:2px 6px;
  background:#222;
  color:#888;
  border-radius:3px;
  font-size:11px;
}
.latest-list a {
  color:#ccc;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  flex:1;
}
.latest-list a:hover { color:#ff6b81; }

/* 标签云 */
.tag-cloud {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.cloud-tag {
  padding:4px 10px;
  background:rgba(255,255,255,.03);
  border:1px solid #333;
  border-radius:4px;
  transition:all .3s;
}
.cloud-tag:hover {
  background:rgba(255,71,87,.15);
  border-color:#ff4757;
  transform:scale(1.05);
}

/* FAQ */
.faq-list { display:flex; flex-direction:column; gap:8px; }
.faq-item {
  border:1px solid #333;
  border-radius:6px;
  overflow:hidden;
}
.faq-item summary {
  padding:10px 14px;
  font-size:13px;
  font-weight:bold;
  color:#ddd;
  cursor:pointer;
  background:#1a1a2e;
  transition:all .3s;
  list-style:none;
  position:relative;
}
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after {
  content:'+';
  position:absolute;
  right:14px;
  font-size:16px;
  color:#ff6b81;
}
.faq-item[open] summary::after { content:'-'; }
.faq-item summary:hover { background:#16213e; color:#fff; }
.faq-item p {
  padding:12px 14px;
  font-size:12px;
  color:#aaa;
  line-height:1.7;
  background:#111;
}

/* ===== 底部 ===== */
.main-footer {
  background:#080812;
  padding:40px 0 20px;
  border-top:3px solid #ff4757;
  margin-top:40px;
}
.footer-top {
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1.5fr;
  gap:30px;
  margin-bottom:25px;
}
@media(max-width:768px){ .footer-top { grid-template-columns:1fr 1fr; } }
.footer-col h4 {
  font-size:15px;
  color:#fff;
  margin-bottom:12px;
  padding-bottom:8px;
  border-bottom:1px solid #333;
}
.footer-col p {
  font-size:12px;
  color:#888;
  line-height:1.7;
}
.footer-col ul { display:flex; flex-direction:column; gap:6px; }
.footer-col ul a {
  font-size:13px;
  color:#aaa;
}
.footer-col ul a:hover { color:#ff6b81; padding-left:5px; }
.footer-bottom {
  text-align:center;
  padding-top:20px;
  border-top:1px solid #222;
  font-size:12px;
  color:#666;
  line-height:1.8;
}

/* ===== 回到顶部 ===== */
.back-to-top {
  display:none;
  position:fixed;
  bottom:30px;
  right:30px;
  width:45px; height:45px;
  background:linear-gradient(135deg, #ff4757, #ff6b81);
  color:#fff;
  font-size:20px;
  font-weight:bold;
  border-radius:50%;
  box-shadow:0 4px 15px rgba(255,71,87,.4);
  z-index:999;
  transition:all .3s;
}
.back-to-top:hover { transform:scale(1.1); }

/* ===== 响应式 ===== */
@media(max-width:768px){
  .main-header .container { flex-direction:column; }
  .nav-item { padding:8px 14px; font-size:13px; }
  .banner-slide { padding:20px; }
  .banner-slide h2 { font-size:18px; }
  .server-table { font-size:11px; }
  .server-table th, .server-table td { padding:8px 5px; }
  .footer-top { grid-template-columns:1fr; }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}
.rec-card, .news-item, .deep-article, .cat-card {
  animation:fadeInUp .5s ease-out;
}

/* 滚动条美化 */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background:#0a0a1a; }
::-webkit-scrollbar-thumb { background:#333; border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:#ff4757; }