/* 传奇4私服发布网 - 独立项目 · 玛法蓝金风 · 必应分散SEO · Safari兼容 */
:root {
  --gold: #c9a227;
  --gold-light: #e8c96a;
  --red: #1b6ca8;
  --red-dark: #124a75;
  --bg: #0d0f14;
  --bg-card: #141820;
  --bg-card2: #1c2430;
  --text: #e8ecf4;
  --text-muted: #8b95a8;
  --border: #2a3548;
  --shadow: 0 8px 32px rgba(0,0,0,.55);
  --radius: 12px;
  --font-title: "STKaiti", "KaiTi", "楷体", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(27,108,168,.18) 0%, transparent 55%);
}

a { color: var(--gold-light); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

.top-bar {
  background: linear-gradient(90deg, #0f1520, #1a2840);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.top-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--gold); }

.site-header {
  background: rgba(13,15,20,.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red-dark);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.logo { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; gap: 12px; }
.logo-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  border-radius: 8px;
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  font-family: var(--font-title);
  font-size: 22px; color: #fff;
  border: 1px solid var(--gold);
}
.logo-text h1,
.logo-text .site-name { font-family: var(--font-title); font-size: 1.2rem; color: var(--gold); line-height: 1.2; display: block; }
.logo-text span:not(.site-name) { font-size: 0.72rem; color: var(--text-muted); display: block; }
.footer-keywords a { color: var(--text-muted); }
.footer-keywords a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: var(--red);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.main-nav ul { display: -webkit-flex; display: flex; list-style: none; gap: 4px; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.main-nav a:hover, .main-nav a.active {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: #fff;
}

.btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 3px 0 #0a3048;
}
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }

.hero-carousel {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}
.hero-slide {
  display: none;
  min-height: 340px;
  background: linear-gradient(135deg, #0f1828 0%, #1a2840 50%, #0d0f14 100%);
  position: relative;
}
.hero-slide.active { display: block; }
.hero-slide:nth-child(2) { background: linear-gradient(135deg, #101828, #203050, #0f1520); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #102028, #283848, #101820); }
.hero-overlay {
  position: relative; z-index: 2;
  min-height: 340px;
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  background: linear-gradient(90deg, rgba(13,15,20,.92) 0%, rgba(13,15,20,.45) 60%, transparent 100%);
}
.hero-content { max-width: var(--max); margin: 0 auto; padding: 48px 24px; width: 100%; }
.hero-content h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #fff;
  margin-bottom: 12px;
}
.hero-content h2 em { color: var(--gold); font-style: normal; }
.hero-content p { max-width: 540px; color: var(--text-muted); margin-bottom: 20px; }
.hero-actions { display: -webkit-flex; display: flex; gap: 12px; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.hero-dots {
  position: absolute; bottom: 14px; left: 50%;
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
  display: -webkit-flex; display: flex; gap: 8px; z-index: 5;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  cursor: pointer;
}
.hero-dots button.active { background: var(--red); }

.stats-bar {
  display: -webkit-flex; display: flex;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  -webkit-flex: 1 1 18%; flex: 1 1 18%;
  min-width: 100px;
  text-align: center;
  padding: 18px 10px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-family: var(--font-title); font-size: 1.5rem; color: var(--gold); }
.stat-item span { font-size: 0.8rem; color: var(--text-muted); }
@supports (display: grid) {
  .stats-bar { display: grid; grid-template-columns: repeat(5, 1fr); }
  .stat-item { -webkit-flex: none; flex: none; min-width: 0; }
}

.container { max-width: var(--max); margin: 0 auto; padding: 32px 20px; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.section-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-align-items: center; align-items: center;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
  gap: 8px;
}
.section-title .more { font-size: 0.85rem; font-weight: normal; color: var(--text-muted); }

.layout-2col {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 24px;
  -webkit-align-items: start; align-items: start;
}
@media (max-width: 900px) {
  .layout-2col { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    padding: 12px;
    border-bottom: 2px solid var(--red);
  }
  .main-nav.open { display: block; }
  .main-nav ul { -webkit-flex-direction: column; flex-direction: column; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.feature-card .icon { font-size: 2.5rem; margin-bottom: 10px; }
.feature-card h3 { color: var(--gold); font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

.filter-tabs {
  display: -webkit-flex; display: flex;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
  gap: 8px; margin-bottom: 16px;
}
.filter-tabs button {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-tabs button.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  -webkit-transition: box-shadow .2s; transition: box-shadow .2s;
}
.server-card:hover { box-shadow: 0 0 20px rgba(27,108,168,.25); }
.server-card h3 { font-size: 1.02rem; margin: 8px 0; }
.server-card h3 a { color: #fff; }
.server-card .meta { font-size: 0.78rem; color: var(--text-muted); }
.server-card .desc { font-size: 0.86rem; margin: 8px 0; color: var(--text-muted); }
.server-card .features { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.server-card .features em {
  font-style: normal;
  font-size: 0.72rem;
  padding: 3px 10px;
  background: rgba(201,162,39,.12);
  border-radius: 6px;
  color: var(--gold-light);
}
.card-footer {
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-align-items: center; align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.open-time { color: var(--gold); font-weight: 600; }

.tag { display: inline-block; font-size: 0.68rem; padding: 2px 8px; border-radius: 4px; font-weight: 700; margin-right: 4px; }
.tag-hot { background: rgba(27,108,168,.35); color: #6eb5ff; }
.tag-new { background: rgba(50,200,80,.15); color: #6f6; }
.tag-long { background: rgba(201,162,39,.2); color: var(--gold-light); }

.rank-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 0.88rem;
}
.rank-table th, .rank-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.rank-table th { background: var(--red-dark); color: #fff; }
.rank-num {
  display: -webkit-inline-flex; display: inline-flex;
  width: 26px; height: 26px;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.8rem;
  color: #0d0f14;
}
.rank-1 { background: linear-gradient(135deg, #ffd700, #ff8c00); }
.rank-2 { background: #c0c0c0; }
.rank-3 { background: #cd7f32; color: #fff; }

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.widget h3 { font-size: 0.95rem; color: var(--gold); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.widget ul { list-style: none; }
.widget li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  gap: 8px;
}
.widget li:last-child { border-bottom: none; }
.widget .date { color: var(--text-muted); font-size: 0.72rem; }

.article-block, .seo-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.article-block h2, .seo-content h2 { font-family: var(--font-title); color: var(--gold); font-size: 1.1rem; margin: 14px 0 8px; }
.article-block h2:first-child, .seo-content h2:first-child { margin-top: 0; }
.article-block p, .seo-content p { font-size: 0.94rem; color: var(--text-muted); margin-bottom: 8px; }

.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }

.page-content { padding: 28px 20px 48px; max-width: var(--max); margin: 0 auto; flex: 1; width: 100%; }
.page-title { font-family: var(--font-title); color: var(--gold); font-size: 1.6rem; margin-bottom: 10px; }
.page-intro { color: var(--text-muted); margin-bottom: 24px; }

.version-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.version-block h2 { font-family: var(--font-title); color: var(--gold); font-size: 1.15rem; margin-bottom: 10px; }
.version-block ul { margin: 10px 0 0 20px; color: var(--text-muted); font-size: 0.9rem; }

.class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.class-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.class-card h2 { color: var(--gold); margin-bottom: 6px; }
.class-card .role-tag { font-size: 0.8rem; color: var(--red); margin-bottom: 10px; }
.class-card ul { text-align: left; margin: 10px 0 0 18px; font-size: 0.88rem; color: var(--text-muted); }
.class-warrior { border-top: 3px solid #c44; }
.class-mage { border-top: 3px solid #4a7fd4; }
.class-taoist { border-top: 3px solid #3d9a5c; }

.download-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.download-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.download-card h2 { color: var(--gold); font-size: 1.1rem; margin-bottom: 10px; }
.download-card .hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.88rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font: inherit;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.publish-form { max-width: 520px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

.news-list { list-style: none; }
.news-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.news-list li:last-child { border-bottom: none; }
.news-list time { display: inline-block; min-width: 96px; color: var(--gold); font-size: 0.82rem; margin-right: 10px; }
.news-list li span { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; padding-left: 106px; }

.faq-list details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  margin-bottom: 10px;
}
.faq-list details.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: #fff;
  list-style: none;
}
.faq-list details.faq-item summary::-webkit-details-marker { display: none; }
.faq-list details.faq-item p { padding-bottom: 14px; font-size: 0.9rem; color: var(--text-muted); }

.site-footer {
  margin-top: auto;
  background: #080a10;
  border-top: 2px solid var(--red-dark);
  color: var(--text-muted);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 20px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { color: var(--gold); margin-bottom: 10px; font-size: 0.92rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 5px; }
.footer-col a { color: var(--text-muted); font-size: 0.84rem; }
.footer-keywords { max-width: var(--max); margin: 0 auto; padding: 0 20px 14px; font-size: 0.72rem; opacity: 0.65; line-height: 1.8; }
.footer-bottom { text-align: center; padding: 14px; border-top: 1px solid var(--border); font-size: 0.8rem; }
.footer-bottom a { color: var(--gold); }
