:root {
  --color-primary: #2D6A4F;
  --color-primary-soft: #95D5B2;
  --color-accent: #E76F51;
  --color-dark: #1B263B;
  --color-gold: #E9C46A;
  --color-cream: #F8F3E9;
  --color-ink: #3D405B;
  --color-alert: #D90429;
  --color-border: #D4C9B8;
  --header-width: 320px;
  --header-height-mobile: 72px;
  --content-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --shadow-card: 0 2px 10px rgba(27, 38, 59, 0.05);
  --shadow-hover: 0 10px 28px rgba(27, 38, 59, 0.1);
  --font-display: "Noto Sans SC", "Source Han Sans CN", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  --ease: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink);
  background-color: var(--color-cream);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height-mobile);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(233, 196, 106, 0.35) 0.8px, transparent 1px),
    radial-gradient(circle at 25% 65%, rgba(45, 106, 79, 0.28) 1px, transparent 1.4px),
    radial-gradient(circle at 72% 22%, rgba(231, 111, 81, 0.22) 0.8px, transparent 1.2px),
    radial-gradient(circle at 88% 62%, rgba(45, 106, 79, 0.32) 0.8px, transparent 1.2px),
    radial-gradient(circle at 45% 85%, rgba(233, 196, 106, 0.25) 0.7px, transparent 1px);
  background-size: 180px 180px, 220px 220px, 200px 200px, 260px 260px, 180px 180px;
  background-position: 0 0, 40px 60px, 80px 20px, 30px 80px, 60px 40px;
  background-repeat: repeat;
  pointer-events: none;
  opacity: 0.55;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-dark);
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(28px, 5vw, 56px);
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 17px;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.container-narrow {
  width: min(100%, 760px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section-cream {
  background: var(--color-cream);
}

.section-green {
  background: linear-gradient(165deg, var(--color-primary) 0%, var(--color-dark) 100%);
  color: rgba(248, 243, 233, 0.9);
}

.section-green h1,
.section-green h2,
.section-green h3,
.section-green h4 {
  color: #fff;
}

.section-dark {
  background: var(--color-dark);
  color: rgba(248, 243, 233, 0.85);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(27, 38, 59, 0.25);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: #c5532f;
  color: #fff;
  box-shadow: 0 6px 20px rgba(231, 111, 81, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0 8px;
  font-size: 14px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "\203A";
  margin-right: 8px;
  color: var(--color-border);
  font-size: 16px;
  line-height: 1;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--color-dark);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-ink);
  font-weight: 400;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: #fffbf2;
  border: 1px solid rgba(212, 201, 184, 0.55);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: rgba(61, 64, 91, 0.8);
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
}

.picture-frame {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--color-primary-soft), rgba(248, 243, 233, 0.6));
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 1px rgba(212, 201, 184, 0.3);
}

.picture-frame--wide {
  aspect-ratio: 16 / 7;
}

.picture-frame--tall {
  aspect-ratio: 3 / 4;
}

.picture-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.picture-frame:hover img {
  transform: scale(1.02);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--color-dark);
  color: var(--color-cream);
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.25s ease;
}

.skip-link:focus-visible {
  top: 0;
  color: var(--color-cream);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-gold) 60%, var(--color-accent) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 243, 233, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 201, 184, 0.45);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(27, 38, 59, 0.08);
}

.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  height: var(--header-height-mobile);
  padding: 12px 16px;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-dark);
  text-decoration: none;
  flex-shrink: 0;
}

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

.brand-mark {
  display: block;
  width: 40px;
  height: 36px;
  flex-shrink: 0;
}

.brand-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: currentColor;
}

.brand-tag {
  font-size: 10px;
  color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-nav {
  position: fixed;
  top: calc(var(--header-height-mobile) + 8px);
  left: 12px;
  right: 12px;
  z-index: 1001;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: rgba(248, 243, 233, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 201, 184, 0.6);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(27, 38, 59, 0.18);
  padding: 12px 12px 16px;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.site-nav[data-open] {
  max-height: 520px;
  opacity: 1;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.nav-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.3;
  flex-shrink: 0;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover {
  background: rgba(149, 213, 178, 0.3);
  color: var(--color-primary);
  transform: translateX(2px);
}

.nav-link:hover::before {
  opacity: 0.8;
}

.nav-link[aria-current="page"] {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.nav-link[aria-current="page"]::before {
  background: var(--color-gold);
  opacity: 1;
  box-shadow: 0 0 8px rgba(233, 196, 106, 0.8);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(231, 111, 81, 0.3);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--color-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(231, 111, 81, 0.4);
}

.header-cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
  animation: cta-pulse 2.2s ease-out infinite;
}

@keyframes cta-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(233, 196, 106, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(233, 196, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(233, 196, 106, 0);
  }
}

.header-cta-text--full {
  display: inline;
}

.header-cta-text--short {
  display: none;
}

.header-status {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-ink);
  opacity: 0.6;
  margin: 0;
}

.header-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(45, 106, 79, 0);
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  padding: 0;
  background: rgba(149, 213, 178, 0.2);
  border-radius: 50%;
  border: 1px solid rgba(212, 201, 184, 0.5);
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(149, 213, 178, 0.4);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav[data-open] ~ .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav[data-open] ~ .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav[data-open] ~ .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: 2px solid rgba(248, 243, 233, 0.6);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  z-index: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(27, 38, 59, 0.2);
}

.scroll-top:hover {
  background: var(--color-dark);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-footer {
  background-color: var(--color-dark);
  color: rgba(248, 243, 233, 0.85);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(233, 196, 106, 0.6) 0.6px, transparent 1px),
    radial-gradient(circle at 35% 60%, rgba(255, 255, 255, 0.4) 0.5px, transparent 1px),
    radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.3) 0.6px, transparent 1px),
    radial-gradient(circle at 85% 50%, rgba(149, 213, 178, 0.5) 0.6px, transparent 1px),
    radial-gradient(circle at 50% 85%, rgba(233, 196, 106, 0.35) 0.5px, transparent 1px);
  background-size: 140px 140px, 100px 100px, 180px 180px, 120px 120px, 160px 160px;
  background-position: 0 0, 30px 40px, 70px 10px, 20px 60px, 50px 30px;
  opacity: 0.7;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-block: 40px 32px;
}

.footer-brand .brand {
  color: var(--color-cream);
}

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

.footer-brand .brand-tag {
  color: var(--color-gold);
}

.footer-lead {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(248, 243, 233, 0.7);
  max-width: 300px;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(248, 243, 233, 0.8);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-label {
  font-size: 12px;
  color: rgba(248, 243, 233, 0.5);
  letter-spacing: 0.05em;
}

.footer-contact-value {
  font-size: 14px;
  color: rgba(248, 243, 233, 0.9);
  line-height: 1.5;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(248, 243, 233, 0.12);
  padding-block: 20px;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  font-size: 13px;
  color: rgba(248, 243, 233, 0.55);
}

.footer-copy,
.footer-icp {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  body {
    padding-top: 0;
    margin-left: var(--header-width);
  }

  .site-header {
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: var(--header-width);
    background: linear-gradient(165deg, rgba(248, 243, 233, 0.95) 0%, rgba(248, 243, 233, 0.85) 70%, rgba(149, 213, 178, 0.25) 100%);
    border-right: 1px solid rgba(212, 201, 184, 0.6);
    border-bottom: none;
  }

  .site-header.is-scrolled {
    box-shadow: none;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    height: auto;
    padding: 32px 24px;
  }

  .brand {
    padding: 4px 8px;
  }

  .brand-mark {
    width: 48px;
    height: 44px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-tag {
    font-size: 11px;
  }

  .site-nav {
    position: static;
    max-height: none;
    opacity: 1;
    overflow: visible;
    background: rgba(255, 251, 242, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    border: 1px solid rgba(212, 201, 184, 0.5);
    box-shadow: 0 12px 32px rgba(27, 38, 59, 0.08);
    padding: 12px;
    z-index: auto;
  }

  .site-nav[data-open] {
    max-height: none;
    opacity: 1;
  }

  .nav-link {
    padding: 12px 18px;
    border-radius: 22px;
    font-size: 15px;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-left: 0;
  }

  .header-cta {
    padding: 14px 20px;
    font-size: 14px;
    width: 100%;
  }

  .header-cta-dot {
    width: 8px;
    height: 8px;
  }

  .header-status {
    display: flex;
    justify-content: center;
  }

  .nav-toggle {
    display: none;
  }

  .scroll-top {
    right: 32px;
    bottom: 32px;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
    gap: clamp(24px, 4vw, 48px);
    padding-block: clamp(48px, 6vw, 72px) 48px;
  }

  .footer-lead {
    max-width: 280px;
  }
}

@media (max-width: 575px) {
  .header-cta-text--full {
    display: none;
  }

  .header-cta-text--short {
    display: inline;
  }

  .header-cta {
    padding: 8px 14px;
    gap: 6px;
    font-size: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .scroll-top {
    bottom: 20px;
    right: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
