/* ===== 战国传奇 · 全局设计令牌 ===== */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;700&display=swap');

:root {
  --color-brand: #B45309;
  --color-brand-dark: #92400E;
  --color-stone: #78716C;
  --color-gold: #F59E0B;
  --color-gold-light: #FCD34D;
  --color-bg: #1c1917;
  --color-bg-light: #292524;
  --color-surface: #44403C;
  --color-text: #E7E5E4;
  --color-muted: #A8A29E;

  --font-display: 'Ma Shan Zheng', cursive;
  --font-body: 'Noto Serif SC', serif;

  --text-hero: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  --text-h1: clamp(1.75rem, 3vw + .5rem, 3rem);
  --text-h2: clamp(1.5rem, 2.5vw + .25rem, 2.25rem);
  --text-h3: clamp(1.25rem, 1.5vw + .25rem, 1.5rem);
  --text-body: clamp(0.9375rem, 1vw + 0.5rem, 1.0625rem);
  --text-lead: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--color-gold);
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-gold-light);
}

/* 排版 */
.text-hero { font-size: var(--text-hero); line-height: 1.05; }
.text-h1 { font-size: var(--text-h1); }
.text-h2 { font-size: var(--text-h2); }
.text-h3 { font-size: var(--text-h3); }
.text-body { font-size: var(--text-body); }
.text-lead { font-size: var(--text-lead); }

/* 背景渐变 */
.bg-bronze-gradient {
  background: linear-gradient(135deg, #92400E 0%, #B45309 50%, #78350F 100%);
}
.bg-dark-gradient {
  background: linear-gradient(180deg, #1c1917 0%, #292524 100%);
}

/* 按钮变体 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-body);
}

.btn-bronze {
  background: linear-gradient(180deg, #B45309 0%, #92400E 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-bronze:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(180, 83, 9, 0.55);
  color: #fff;
}

.btn-gold {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.btn-gold:hover {
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
  color: var(--color-gold-light);
}

/* 卡片变体 */
.card-dark {
  background: rgba(41, 37, 36, 0.72);
  border: 1px solid rgba(120, 113, 108, 0.25);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
}

.card-bronze {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.18), rgba(120, 113, 108, 0.08));
  border: 1px solid rgba(180, 83, 9, 0.35);
  border-radius: 1rem;
}

/* 标题装饰变体 */
.title-decor-left {
  position: relative;
  padding-left: 1rem;
}

.title-decor-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background: var(--color-gold);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-gold);
}

.title-decor-center {
  position: relative;
  display: inline-block;
  padding: 0 1.5rem;
}

.title-decor-center::before,
.title-decor-center::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 3rem;
  height: 2px;
  background: var(--color-gold);
  opacity: 0.8;
}

.title-decor-center::before { right: 100%; }
.title-decor-center::after { left: 100%; }

/* 导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(120, 113, 108, 0.2);
}

.nav-link {
  position: relative;
  color: var(--color-muted);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

.mobile-menu { display: none; }

@media (max-width: 767px) {
  .desktop-nav { display: none !important; }
  .mobile-menu { display: inline-flex; }
}

/* 二维码墙 */
.qr-card img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 2px solid rgba(180, 83, 9, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.qr-card:hover img {
  transform: scale(1.03);
}

/* 滚动渐显 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* 友情链接 */
.section-friends {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(180, 83, 9, 0.06) 100%);
}
.friends-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.75rem;
  border-radius: 1rem;
  background: rgba(41, 37, 36, 0.6);
  border: 1px solid rgba(180, 83, 9, 0.3);
  backdrop-filter: blur(8px);
}
.friends-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gold);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
}
.friends-title::before {
  content: "◆";
  color: var(--color-gold);
  font-size: 0.7rem;
}
.friends-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.friends-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.35);
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
  max-width: 100%;
  word-break: break-word;
}
.friends-list a:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  .friends-card {
    padding: 2rem;
  }
}

/* 页脚联系区 */
.footer-contact {
  background: #141211;
  border-top: 1px solid rgba(120, 113, 108, 0.2);
}

.footer-link {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-gold);
}

/* 小标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
