@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --bg0: #f3efe6;
  --bg1: #e8f0ec;
  --ink: #1a1f1c;
  --muted: #5c665f;
  --card: rgba(255, 252, 247, 0.88);
  --card-solid: #fffdf9;
  --line: rgba(26, 31, 28, 0.1);
  --accent: #1f6f5b;
  --accent-2: #c4a574;
  --accent-soft: rgba(31, 111, 91, 0.1);
  --shadow: 0 18px 50px rgba(26, 31, 28, 0.08);
  --radius: 18px;
  --focus: #1f6f5b;
  --step-0: clamp(0.95rem, 0.3vw + 0.88rem, 1.05rem);
  --step-1: clamp(1.15rem, 0.6vw + 1rem, 1.35rem);
  --step-2: clamp(1.7rem, 1.4vw + 1.2rem, 2.35rem);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Source Sans 3", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: var(--step-0);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  background:
    radial-gradient(900px 420px at 8% -8%, #d7ebe3 0%, transparent 58%),
    radial-gradient(700px 380px at 96% 4%, rgba(196, 165, 116, 0.28) 0%, transparent 52%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #f7f4ee);
  background-attachment: fixed;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  animation: rise 0.55s ease both;
}

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--ink);
  margin: 0.15rem 0.35rem 0.95rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-solid);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  border-color: rgba(31, 111, 91, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(26, 31, 28, 0.08);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.15rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.1rem;
  animation: rise 0.65s ease both;
}
.card:nth-of-type(2) { animation-delay: 0.08s; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
  padding-bottom: 0.15rem;
}

.tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.tab:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.55);
}
.tab.active {
  background: var(--accent-soft);
  border-color: rgba(31, 111, 91, 0.28);
  color: var(--accent);
}

.panel { display: none; }
.panel.active {
  display: block;
  animation: fade 0.28s ease both;
}

.panel h3 {
  margin: 0.85rem 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.embed {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.embed.tall { min-height: 740px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 1.25rem, 1180px); padding-top: 1.25rem; }
  .btn { width: 100%; }
  .embed { min-height: 480px; }
  .embed.tall { min-height: 620px; }
}
