/* 宜小原 — 新中式宣传站 · 抖音开放平台友好布局 */
:root {
  --sage: #8aa382;
  --sage-deep: #6d8568;
  --sage-muted: #e8ede6;
  --cream: #f7f5ef;
  --cream-dark: #ebe6db;
  --teal: #2d5a56;
  --teal-light: #3d726d;
  --charcoal: #1c1c1c;
  --charcoal-soft: #3d3d3d;
  --white: #ffffff;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 12px 40px rgba(45, 90, 86, 0.08);
  --font-display: "KaiTi", "STKaiti", "BiauKai", "SimKai", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal-soft);
  background: var(--cream);
}

/*  subtle robe-like texture */
.bg-texture {
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(138, 163, 130, 0.12), transparent 55%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238aa382' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 163, 130, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.06em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--sage), var(--teal));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-display);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}

.nav-desktop a:hover {
  color: var(--teal);
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--teal-light);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--sage-muted);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-desktop {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0;
    border-bottom: 1px solid rgba(138, 163, 130, 0.25);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-desktop.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-desktop a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--cream-dark);
    width: 100%;
    text-align: center;
  }

  .nav-desktop .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
  }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  background: linear-gradient(165deg, var(--sage) 0%, #7a9574 45%, #6d8568 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  opacity: 0.95;
  margin: 0 0 1.5rem;
  max-width: 28em;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--cream);
  color: var(--teal);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--teal);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-visual figure {
  margin: 0;
  max-width: min(420px, 100%);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.2));
}

.hero-visual img {
  border-radius: var(--radius-lg);
  width: 100%;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-badges,
  .hero-actions {
    justify-content: center;
  }

  .hero-tagline {
    margin-inline: auto;
  }
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage-deep);
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.section-desc {
  margin: 0;
  color: var(--charcoal-soft);
  font-size: 1rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(138, 163, 130, 0.15);
}

.about-card h3 {
  font-family: var(--font-display);
  color: var(--teal);
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.about-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Gallery */
.section-gallery {
  background: var(--sage-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(138, 163, 130, 0.12);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item.placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream-dark), var(--sage-muted));
  color: var(--sage-deep);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.gallery-caption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  border-top: 1px solid var(--cream-dark);
}

/* Video */
.video-wrap {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--charcoal);
  border: 1px solid rgba(138, 163, 130, 0.2);
}

.video-wrap video {
  width: 100%;
  vertical-align: middle;
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
}

/* Contact */
.section-contact {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sage-muted) 100%);
}

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(138, 163, 130, 0.18);
}

.contact-card h3 {
  font-family: var(--font-display);
  color: var(--teal);
  margin: 0 0 1rem;
  text-align: center;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.95rem;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  color: var(--teal);
  min-width: 5em;
}

.contact-hint {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--sage-muted);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: var(--teal);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.9;
  line-height: 1.7;
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 0 4rem;
  min-height: 60vh;
}

.legal-page h1 {
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.1rem;
  color: var(--teal);
  margin: 1.75rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
