/* 传奇私服发布网 SEO版 */
:root {
  --bg-dark: #0a0806;
  --bg-card: #16120e;
  --bg-card2: #1f1812;
  --gold: #d4a84b;
  --gold-light: #f5d78a;
  --red: #9b1c1c;
  --red-bright: #e03030;
  --text: #ece4d6;
  --text-muted: #9a8f7e;
  --border: #3d3228;
  --shadow: 0 8px 32px rgba(0,0,0,.5);
  --font-title: "STKaiti", "KaiTi", "楷体", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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, #1a0f0a, #2a1810);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 200;
  position: relative;
}
.top-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-header {
  background: rgba(10,8,6,.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
  position: relative;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--red-bright), var(--gold));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-size: 24px; color: #fff;
  border: 1px solid var(--gold);
}
.logo-text h1 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--gold-light);
  font-weight: normal;
  line-height: 1.2;
}
.logo-text span { font-size: 0.72rem; color: var(--text-muted); }

.main-nav ul { display: flex; list-style: none; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  padding: 9px 14px;
  color: var(--text);
  border-radius: 4px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(212,168,75,.1);
  border-color: var(--border);
  color: var(--gold-light);
}
.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}

main { flex: 1; width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 28px 20px 48px; }

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: clamp(320px, 50vw, 520px);
  overflow: hidden;
  background: #1a1208;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,8,6,.92) 0%, rgba(10,8,6,.5) 45%, rgba(10,8,6,.25) 100%);
  display: flex;
  align-items: center;
}
.hero-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-content h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--gold-light);
  margin-bottom: 12px;
  font-weight: normal;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.hero-content p {
  font-size: 1.05rem;
  color: #ddd;
  max-width: 560px;
  margin-bottom: 22px;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active { background: var(--gold); }

/* Fallback when no image */
.hero-slide.no-img {
  background: linear-gradient(135deg, #2a1810, #1a0f08);
}
.hero-slide.no-img .hero-overlay { background: linear-gradient(90deg, rgba(10,8,6,.7), transparent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff;
  border: 1px solid #e85555;
  box-shadow: 0 4px 16px rgba(224,48,48,.4);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-secondary {
  background: rgba(0,0,0,.4);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.btn-secondary:hover { background: rgba(212,168,75,.15); color: var(--gold-light); }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: -40px auto 32px;
  max-width: var(--max);
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
.stat-item {
  text-align: center;
  padding: 18px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.stat-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--gold-light);
  font-family: var(--font-title);
}
.stat-item span { font-size: 0.8rem; color: var(--text-muted); }

.layout-2col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.section-title .more { font-size: 0.85rem; font-family: var(--font-body); }

/* Feature showcase with images */
.feature-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #1a1510;
}
.feature-card .fc-body { padding: 16px; }
.feature-card h3 { font-size: 1rem; color: var(--gold-light); margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #1a1510;
}
.gallery-item figcaption {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-card2);
}

.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-tabs button {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}
.filter-tabs button.active, .filter-tabs button:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212,168,75,.08);
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  transition: border-color .2s, transform .2s;
}
.server-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.server-card .tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 0.72rem;
  border-radius: 3px;
  margin-right: 5px;
  margin-bottom: 8px;
}
.tag-hot { background: var(--red); color: #fff; }
.tag-new { background: #2a5c2a; color: #9ee69e; }
.tag-stable { background: #2a3d5c; color: #9ec8ee; }
.server-card h3 { font-size: 1.08rem; color: var(--gold-light); margin-bottom: 6px; }
.server-card .meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.server-card .desc { font-size: 0.88rem; margin-bottom: 12px; }
.server-card .features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.server-card .features em {
  font-style: normal;
  font-size: 0.74rem;
  padding: 2px 8px;
  background: var(--bg-card2);
  border-radius: 3px;
  color: var(--text-muted);
}
.server-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.server-card .open-time { font-size: 0.78rem; color: var(--gold); }

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 28px;
}
.rank-table th, .rank-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.rank-table th { background: var(--bg-card2); color: var(--gold); font-weight: normal; }
.rank-num {
  display: inline-flex;
  width: 24px; height: 24px;
  align-items: center; justify-content: center;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8rem;
}
.rank-1 { background: #8b6914; color: #fff; }
.rank-2 { background: #6a6a6a; color: #fff; }
.rank-3 { background: #6a4520; color: #fff; }

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}
.widget h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 0.88rem; }
.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--text); }
.widget .date { font-size: 0.72rem; color: var(--text-muted); display: block; }

.page-banner {
  height: 220px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-dark), transparent 60%);
  display: flex;
  align-items: flex-end;
}
.page-banner .banner-text {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px;
  width: 100%;
}
.page-banner h1 {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--gold-light);
  font-weight: normal;
}

.breadcrumb { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb span { margin: 0 8px; }
.page-header { margin-bottom: 24px; }
.page-header h1 {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 8px;
  font-weight: normal;
}
.page-header p { color: var(--text-muted); }

.article-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  margin-bottom: 24px;
}
.article-block h2 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--gold);
  margin: 20px 0 10px;
  font-weight: normal;
}
.article-block h2:first-child { margin-top: 0; }
.article-block h3 { font-size: 1.05rem; color: var(--gold-light); margin: 14px 0 8px; }
.article-block p, .article-block li { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 8px; }
.article-block ul { padding-left: 22px; }

.download-list { display: flex; flex-direction: column; gap: 16px; }
.download-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
}
.download-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.download-info { flex: 1; min-width: 200px; }
.download-info h3 { color: var(--gold-light); margin-bottom: 6px; }

.publish-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--gold); font-size: 0.9rem; }
.form-group .required { color: var(--red-bright); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.notice-box {
  padding: 14px 18px;
  background: rgba(155,28,28,.15);
  border: 1px solid var(--red);
  border-radius: 6px;
  margin-bottom: 22px;
  font-size: 0.9rem;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq-question {
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-family: inherit;
}
.faq-answer { display: none; padding: 0 18px 16px; color: var(--text-muted); font-size: 0.92rem; }
.faq-item.open .faq-answer { display: block; }

.help-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.help-nav a {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.88rem;
}
.help-section { margin-bottom: 32px; }
.help-section h2 { font-family: var(--font-title); font-size: 1.25rem; color: var(--gold); margin-bottom: 12px; }

.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.version-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}
.version-card h3 { font-family: var(--font-title); color: var(--gold-light); margin-bottom: 10px; }

.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.news-date {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  padding: 8px;
  background: var(--bg-card2);
  border-radius: 6px;
}
.news-date strong { display: block; font-size: 1.3rem; color: var(--gold-light); }
.news-item h3 { font-size: 1.02rem; color: var(--gold-light); margin-bottom: 6px; }
.news-item p { font-size: 0.88rem; color: var(--text-muted); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 16px 0;
}
.compare-table th, .compare-table td {
  padding: 11px;
  border: 1px solid var(--border);
  text-align: center;
}
.compare-table th { background: var(--bg-card2); color: var(--gold); }

.seo-content {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.seo-content h2 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--gold);
  margin: 16px 0 8px;
  font-weight: normal;
}
.seo-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 8px; }

.site-footer {
  background: #060504;
  border-top: 2px solid var(--border);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 10px; }
.footer-col h4 { color: var(--gold); margin-bottom: 12px; font-weight: normal; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: var(--text-muted); font-size: 0.86rem; }
.footer-keywords {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 12px;
  font-size: 0.74rem;
  color: #5a5048;
  line-height: 1.8;
}
.footer-bottom {
  text-align: center;
  padding: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 992px) {
  .layout-2col { grid-template-columns: 1fr; }
  .feature-showcase { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    padding: 14px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
