/* 熊猫艺术 · 官网简页（摄影感背景 + 左侧阅读带） */
:root {
  --ink: #141210;
  --ink-soft: #3d3834;
  --paper: #f6f2ea;
  --paper-deep: #ebe4d7;
  --line: rgba(20, 18, 16, 0.12);
  --accent: #8b3a2a;
  --accent-hover: #6d2d20;
  --muted: #6b6560;
  --max: 48rem;
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Noto Serif SC", "Songti SC", "STSong", serif;
  --hero-rise-duration: 0.85s;
  --hero-rise-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* 正文区叠在 fixed 背景之上，避免页脚与背景层错误合成（“穿模”） */
body > * {
  position: relative;
  z-index: 1;
}

/* 全屏背景图：略偏左，利用画面左侧山水留白承载文案 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--paper);
  background-image: url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: 18% center;
  background-repeat: no-repeat;
}

/* 叠层：左侧宣纸感高不透明度，向右渐隐露出国潮画面与熊猫 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
      115deg,
      rgba(246, 242, 234, 0.97) 0%,
      rgba(246, 242, 234, 0.9) 28%,
      rgba(246, 242, 234, 0.55) 52%,
      rgba(235, 228, 215, 0.28) 72%,
      rgba(220, 210, 195, 0.12) 100%
    ),
    radial-gradient(
      120% 80% at 88% 45%,
      rgba(255, 255, 255, 0) 0%,
      rgba(246, 242, 234, 0.15) 100%
    ),
    /* 底部收边：避免视口下沿叠层过透，和页脚衔接发花 */
    linear-gradient(
      180deg,
      rgba(246, 242, 234, 0) 0%,
      rgba(246, 242, 234, 0.55) 70%,
      rgba(235, 228, 215, 0.94) 100%
    );
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.header-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--accent);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  align-items: center;
}

.nav-main a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-main a:hover {
  color: var(--accent);
}

main {
  flex: 1 0 auto;
  max-width: 56rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.hero--simple {
  padding: 2.5rem 0 1rem;
  max-width: var(--max);
}

.hero--simple h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin: 0 0 1.25rem;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-rise {
    from {
      opacity: 0;
      transform: translateY(1rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero--simple h1 {
    animation: hero-rise var(--hero-rise-duration) var(--hero-rise-ease) both;
  }

  .hero-lead {
    animation: hero-rise var(--hero-rise-duration) var(--hero-rise-ease) 0.1s both;
  }

  .hero-contact {
    animation: hero-rise var(--hero-rise-duration) var(--hero-rise-ease) 0.2s both;
  }
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.hero-contact {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.legal-doc {
  max-width: var(--max);
  padding: 0.35rem 0.85rem 0.5rem;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.legal-doc h1 {
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  line-height: 1.55;
}

.legal-doc h2 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.legal-doc p,
.legal-doc ul {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.legal-doc ul {
  padding-left: 1.2rem;
}

.legal-doc li {
  margin-bottom: 0.45rem;
}

.info-list {
  list-style: none;
  padding-left: 0;
}

.info-list li {
  margin-bottom: 0.75rem;
  padding-left: 0;
}

.info-k {
  display: inline-block;
  min-width: 7.5rem;
  font-weight: 600;
  color: var(--ink);
}

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.5rem 2.5rem;
  /* 实底：半透明 + backdrop 会在 fixed 背景上合成出错，底部像“穿模” */
  background: var(--paper-deep);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.35);
}

.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px) {
  body::before {
    background-position: 35% center;
  }

  body::after {
    background: linear-gradient(
      165deg,
      rgba(246, 242, 234, 0.96) 0%,
      rgba(246, 242, 234, 0.88) 45%,
      rgba(246, 242, 234, 0.5) 100%
    );
  }

  .nav-main a {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
