:root {
  --gold-light: #fceabb;
  --gold-main: #f8b500;
  --gold-dark: #b8860b;
  --vip-gradient: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
  --bg-obsidian: #0a0a0c;
  --panel-bg: #141416;
  --text-main: #e0e0e0;
  --text-muted: #888;
  --border-gold: rgba(248, 181, 0, 0.3);
}

body.theme-vip {
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-image: radial-gradient(circle at 50% 0%, rgba(248, 181, 0, 0.05) 0%, transparent 50%);
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover, .gold-text {
  color: var(--gold-main);
}

/* ================= Header ================= */
.header {
  background: rgba(10, 10, 12, 0.85);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  background: var(--vip-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
}
.crown { margin-right: 5px; -webkit-text-fill-color: initial; }
.vip-sup {
  font-size: 10px;
  border: 1px solid var(--gold-main);
  padding: 0 4px;
  border-radius: 4px;
  margin-left: 8px;
  -webkit-text-fill-color: var(--gold-main);
}

.nav-links { display: flex; gap: 20px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(248, 181, 0, 0.15);
  color: var(--gold-main);
  box-shadow: inset 0 0 10px rgba(248, 181, 0, 0.1);
}
.tag-link {
  background: var(--vip-gradient);
  color: #000 !important;
  font-weight: bold;
}

/* ================= Main ================= */
.main-container, .article-wrap {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* 赞助商横幅 */
.ad-banner { display: block; position: relative; margin-bottom: 30px; border-radius: 8px; overflow: hidden; }
.ad-banner img { width: 100%; display: block; }
.vip-ad { border: 1px solid var(--gold-dark); box-shadow: 0 0 15px rgba(248, 181, 0, 0.15); }
.ad-label {
  position: absolute; top: 0; right: 0;
  background: var(--gold-main); color: #000;
  font-size: 12px; font-weight: bold; padding: 2px 8px;
  border-bottom-left-radius: 8px; z-index: 10;
}

.section-header { text-align: center; margin-bottom: 35px; }
.section-title { font-size: 24px; margin: 0 0 10px; font-weight: bold; }
.title-line { width: 60px; height: 3px; background: var(--vip-gradient); margin: 0 auto; border-radius: 2px; }

/* 网格卡片 */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.vip-card {
  background: var(--panel-bg);
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vip-card:hover {
  border-color: var(--gold-main);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 15px rgba(248, 181, 0, 0.2);
}

.img-wrap {
  aspect-ratio: 3/4.2;
  overflow: hidden;
  position: relative;
  display: block;
}

.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.vip-card:hover .card-img { transform: scale(1.08); }

.vip-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--vip-gradient);
  color: #000;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.card-info { padding: 16px; }
.card-info h3 { margin: 0 0 12px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.badge { color: var(--gold-light); background: rgba(248, 181, 0, 0.1); padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border-gold); }

/* ================= 详情页相关 ================= */
.vip-alert-bar {
  background: rgba(248, 181, 0, 0.1);
  border: 1px solid var(--gold-main);
  color: var(--gold-light);
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(248, 181, 0, 0.1) inset;
}

.article-title { font-size: 28px; text-align: center; color: #fff; margin-bottom: 15px; }
.article-meta { text-align: center; margin-bottom: 30px; font-size: 14px; color: var(--text-muted); display: flex; justify-content: center; gap: 20px; }

.vip-viewer {
  background: #000;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 8px;
  text-align: center;
}
.vip-viewer img { max-width: 100%; border-radius: 4px; }

.img-tip-vip { text-align: center; color: var(--gold-dark); font-size: 14px; margin: 20px 0; letter-spacing: 1px; }

/* 翻页按钮 */
.page-controls { display: flex; justify-content: center; gap: 25px; margin: 40px 0; }
.btn-vip {
  background: #111;
  color: var(--gold-main);
  border: 1px solid var(--gold-main);
  padding: 12px 35px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: bold;
  transition: 0.3s;
}
.btn-vip:hover, .btn-vip.next {
  background: var(--vip-gradient);
  color: #000;
  box-shadow: 0 5px 20px rgba(248, 181, 0, 0.4);
}

/* 面板通用类 (SEO与推荐区) */
.vip-panel {
  background: var(--panel-bg);
  border: 1px solid #222;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.seo-box-title, .seo-matrix-title, .text-recommend h3 {
  color: var(--gold-light);
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 12px;
}

.seo-content-wrap { position: relative; max-height: 180px; overflow: hidden; transition: max-height 0.8s ease; color: #aaa; line-height: 1.8; }
.seo-content-wrap.is-open { max-height: 5000px; }
.seo-mask-vip {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100px;
  background: linear-gradient(to bottom, rgba(20,20,22,0), var(--panel-bg));
}

.seo-btn-wrap { text-align: center; margin-top: 15px; }
.seo-btn-vip {
  display: inline-block; cursor: pointer;
  background: rgba(248, 181, 0, 0.1);
  color: var(--gold-main);
  border: 1px solid var(--border-gold);
  padding: 8px 25px;
  border-radius: 20px;
  font-size: 14px;
  transition: 0.3s;
}
.seo-btn-vip:hover { background: var(--gold-main); color: #000; }

.matrix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.matrix-grid ul { list-style: none; padding: 0; margin: 0; }
.matrix-grid li { margin-bottom: 12px; font-size: 14px; }
.matrix-grid li a::before { content: '⟡'; color: var(--gold-main); margin-right: 8px; }

.text-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.text-grid a {
  background: #000; padding: 12px 15px; border-radius: 6px; font-size: 14px;
  border: 1px solid #222; transition: 0.3s;
}
.text-grid a:hover { border-color: var(--gold-main); color: var(--gold-main); transform: translateX(5px); }

/* ================= Footer ================= */
.footer { background: #050506; border-top: 2px solid #222; padding: 50px 20px 20px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 40px; }
.footer-col h4 { color: var(--gold-main); font-size: 17px; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #777; font-size: 14px; }
.footer-links a:hover { color: var(--gold-light); padding-left: 5px; }

.footer-center { text-align: center; border-top: 1px solid #1a1a1a; padding-top: 25px; max-width: 1200px; margin: 0 auto; }
.footer-links-inline { margin-bottom: 15px; }
.footer-links-inline a { margin: 0 15px; color: #888; font-size: 13px; }
.footer-links-inline a:hover { color: var(--gold-main); }
.copyright { font-size: 12px; color: #555; letter-spacing: 1px; }

/* 响应式 */
@media (max-width: 768px) {
  .nav-container { flex-direction: column; gap: 15px; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
  .article-title { font-size: 22px; }
  .page-controls { flex-direction: column; padding: 0 20px; }
  .btn-vip { text-align: center; }
}