/* ==========================================================================
   【风格 04 · 宫墙猫卫】老猫云 (OLD CAT CLOUD) 全站共享样式表
   配色基调：深宫墙红 #8C1F14 | 鎏金 #E9B44C | 暖米白 #F7EBD9
   ========================================================================== */

:root {
  --bg-palace: #8C1F14;
  --bg-palace-deep: #63120A;
  --bg-palace-darker: #4A0B05;
  --gold-primary: #E9B44C;
  --gold-light: #F6D389;
  --gold-dark: #B88328;
  --text-rice: #F7EBD9;
  --text-rice-muted: rgba(247, 235, 217, 0.78);
  --text-rice-dim: rgba(247, 235, 217, 0.55);

  --gold-gradient: linear-gradient(135deg, #FCE7B8 0%, #E9B44C 50%, #B88328 100%);
  --gold-border: rgba(233, 180, 76, 0.35);
  --gold-border-strong: rgba(233, 180, 76, 0.7);
  --card-bg: rgba(99, 18, 10, 0.75);
  --card-bg-hover: rgba(115, 23, 14, 0.9);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif", "Songti SC", STSong, "SimSun", serif;
  --font-num: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-palace: 0 10px 30px rgba(45, 6, 3, 0.55), 0 0 20px rgba(233, 180, 76, 0.12);
  --shadow-gold-glow: 0 0 25px rgba(233, 180, 76, 0.38);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* 固定页眉防遮挡锚点规范 */
section[id], article[id], div[id], h1[id], h2[id], h3[id] {
  scroll-margin-top: 86px;
}

body {
  background-color: var(--bg-palace);
  color: var(--text-rice);
  font-family: var(--font-body);
  line-height: 1.68;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(233, 180, 76, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(74, 11, 5, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(74, 11, 5, 0.7) 0%, transparent 50%);
  background-attachment: fixed;
}

/* 键盘“跳转到主要内容”无障碍入口 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 9999;
  background: var(--gold-gradient);
  color: #380803;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: top 0.2s ease;
}

.skip-link:focus, .skip-link:focus-visible {
  top: 16px;
  outline: 2px solid #ffffff;
}

/* 键盘访问焦点轮廓规范 */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.num-font {
  font-family: var(--font-num);
}

h1, h2, h3, .hero-title, .section-title {
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 页眉与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(99, 18, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--gold-primary);
  font-family: var(--font-serif);
}

.brand-icon-coin {
  width: 38px;
  height: 38px;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #B88328 0%, #63120A 80%);
  box-shadow: 0 0 12px rgba(233, 180, 76, 0.4);
  position: relative;
  flex-shrink: 0;
}

.brand-icon-coin::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gold-primary);
  background: var(--bg-palace);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-rice-muted);
  transition: all 0.25s ease;
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-badge {
  color: var(--gold-light) !important;
  border: 1px solid var(--gold-border);
  padding: 4px 12px !important;
  border-radius: var(--radius-sm);
  background: rgba(233, 180, 76, 0.1);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title span {
  font-size: 0.8rem;
  font-family: var(--font-num);
  display: block;
  color: var(--text-rice-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  user-select: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #380803;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 16px rgba(233, 180, 76, 0.4);
  border-color: var(--gold-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 24px rgba(233, 180, 76, 0.65);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(74, 11, 5, 0.7);
  color: var(--gold-primary);
  border: 1px solid var(--gold-border);
}

.btn-secondary:hover {
  background: rgba(99, 18, 10, 0.9);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(233, 180, 76, 0.12);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

/* 子页面排版 (关于我们, 服务条款, 隐私政策, 网站地图, 知识科普) */
.subpage-hero {
  padding: 70px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--gold-border);
  background: rgba(74, 11, 5, 0.5);
}

.subpage-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  color: var(--text-rice);
  margin-bottom: 12px;
}

.subpage-hero p {
  color: var(--text-rice-muted);
  font-size: 1.05rem;
}

.subpage-content {
  max-width: 880px;
  margin: 50px auto 80px;
  padding: 0 24px;
}

.legal-card {
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 38px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-palace);
}

.legal-card h2 {
  font-size: 1.45rem;
  color: var(--gold-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(233, 180, 76, 0.2);
}

.legal-card h3 {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin: 20px 0 10px;
}

.legal-card p, .legal-card ul {
  font-size: 0.96rem;
  color: var(--text-rice-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-card ul {
  padding-left: 24px;
}

.legal-card li {
  margin-bottom: 8px;
}

.back-home-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

/* 网站地图卡片网格 */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.sitemap-card {
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-palace);
}

.sitemap-card h3 {
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 14px;
}

.sitemap-list {
  list-style: none;
}

.sitemap-list li {
  margin-bottom: 10px;
}

.sitemap-list a {
  color: var(--text-rice-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.sitemap-list a:hover {
  color: var(--gold-primary);
  text-decoration: underline;
}

/* 页脚 Footer */
.site-footer {
  border-top: 1px solid var(--gold-border);
  background: #380803;
  padding: 44px 0 32px;
  margin-top: 50px;
}

.footer-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-nav-link {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-rice-muted);
  transition: all 0.25s ease;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.footer-nav-link:hover {
  color: var(--gold-primary);
  background: rgba(233, 180, 76, 0.1);
}

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-rice-dim);
  border-top: 1px solid rgba(233, 180, 76, 0.12);
  padding-top: 20px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 24px 18px;
  }
  .footer-nav-list {
    flex-direction: column;
    gap: 12px;
  }
  .btn, .nav-link, .footer-nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* 遵循前庭运动障碍与减弱动效偏好规范 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

