/* Liaoning Tussah Silk — multi-page + bilingual */
:root {
  --bg: #faf8f5;
  --bg-elevated: #ffffff;
  --bg-soft: #f0ebe3;
  --ink: #14120f;
  --muted: #5c5854;
  --accent: #2d4a1c;
  --accent-hover: #1f3314;
  --accent-soft: #e8f0e0;
  --gold: #9a6b2f;
  --gold-light: #c9a227;
  --line: #e5e0d8;
  --card: #ffffff;
  --shadow-sm: 0 4px 20px rgba(20, 18, 15, 0.06);
  --shadow-md: 0 20px 50px rgba(20, 18, 15, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

body.zh {
  font-family: "Noto Sans SC", "DM Sans", system-ui, sans-serif;
}

.wrap {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* ----- Language gate (root index) ----- */
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(154, 107, 47, 0.15), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(45, 74, 28, 0.08), transparent 50%),
    linear-gradient(165deg, #faf8f5 0%, #efe8dd 100%);
}

.gate__card {
  max-width: 420px;
  width: 100%;
  background: var(--card);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  text-align: center;
}

.gate__logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.gate__logo span {
  color: var(--gold);
}

.gate__sub {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.gate__btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gate__btns a {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.2s;
}

.gate__btns a:first-child {
  background: linear-gradient(135deg, var(--accent) 0%, #1a3310 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(45, 74, 28, 0.35);
}

.gate__btns a:last-child {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.gate__btns a:hover {
  transform: translateY(-2px);
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--gold);
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold-light);
}

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  gap: 2px;
}

.lang-switch a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #1e3514 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(45, 74, 28, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(45, 74, 28, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--card);
  border-color: var(--ink);
}

.btn--small {
  padding: 0.48rem 1rem;
  font-size: 0.85rem;
}

/* Hero (home) */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 5.5rem) 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 75% 0%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(45, 74, 28, 0.1), transparent 50%),
    linear-gradient(180deg, #faf8f5 0%, #f3ede4 100%);
  pointer-events: none;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
}

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin: 0 0 1.6rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__tags li {
  font-size: 0.76rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.hero__card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.hero__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold-light));
}

.hero__stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.hero__stat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__stat-list strong {
  color: var(--ink);
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  background: linear-gradient(180deg, #f3ede4 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, #f0ebe3 0%, #faf8f5 55%);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.6rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.35rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 840px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card__kw {
  margin-top: 1rem !important;
  font-size: 0.76rem !important;
  color: var(--gold) !important;
  line-height: 1.5 !important;
}

.tile {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.85rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.tile h3 {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  margin: 0 0 0.5rem;
}

.tile p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.mini-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 840px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checklist li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.aside-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.85rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.aside-box h3 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  margin: 0 0 0.75rem;
}

.aside-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.aside-box__kw {
  margin-top: 1rem !important;
  font-size: 0.82rem !important;
  color: var(--gold) !important;
}

.kw-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .kw-table {
    grid-template-columns: 1fr;
  }
}

.kw-col {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--line);
}

.kw-col h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  margin: 0 0 0.5rem;
}

.kw-col p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
}

.cta {
  padding-bottom: 4rem;
}

.cta__inner {
  text-align: center;
  background: linear-gradient(145deg, #2d4a1c 0%, #142610 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.5rem, 5vw, 3.75rem) 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201, 162, 39, 0.15), transparent 45%);
  pointer-events: none;
}

.cta__inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 0.5rem;
  position: relative;
}

.cta__inner p {
  margin: 0 auto 1.35rem;
  max-width: 44ch;
  opacity: 0.92;
  font-size: 1.02rem;
  position: relative;
}

.cta__inner .btn {
  position: relative;
  background: #fff;
  color: var(--accent);
  box-shadow: none;
}

.cta__inner .btn:hover {
  background: var(--accent-soft);
}

.cta__note {
  margin-top: 1.1rem !important;
  font-size: 0.8rem !important;
  opacity: 0.75 !important;
}

/* Contact form */
.form {
  max-width: 520px;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  margin-bottom: 1rem;
  background: var(--bg);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Teaser links on home */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .teaser-grid {
    grid-template-columns: 1fr;
  }
}

.teaser {
  display: block;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.teaser:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.teaser h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.teaser p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.teaser span {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: #ebe4da;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}

.footer__muted {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Mobile header */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .header-right {
    justify-content: space-between;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.6rem;
    border-top: 1px solid var(--line);
  }
}
