@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@400;500;600;700&display=swap');

:root {
  --mint: #5cc6b0;
  --sand: #d4c4a8;
  --ink: #172623;
  --clay: #b9714f;
  --olive: #6b7b3c;
  --paper: #f4ece1;
  --glass: rgba(255, 253, 249, 0.52);
  --line: rgba(23, 38, 35, 0.16);
  --header-h: 72px;
  --serif: "Noto Serif TC", Georgia, "Songti SC", serif;
  --sans: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E"),
    radial-gradient(920px 620px at 90% -8%, rgba(92, 198, 176, 0.32), transparent 62%),
    radial-gradient(760px 560px at -10% 24%, rgba(212, 196, 168, 0.62), transparent 68%),
    linear-gradient(180deg, #f7f0e6 0%, #f0e6d8 46%, #e8dcc9 100%);
  background-attachment: fixed;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}

a { color: inherit; }

summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

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

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
  padding: 8px clamp(12px, 4vw, 42px);
  background: rgba(246, 239, 229, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 2px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(15px, 4.1vw, 19px);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.mark-glyph {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 62% 0 62% 0;
  background: linear-gradient(150deg, var(--mint), var(--olive));
  box-shadow: inset 0 0 0 1px rgba(23, 38, 35, 0.18);
}

.mark-img {
  flex: none;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.drawer { position: relative; }

.drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--sans);
}

.burger {
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.drawer-menu,
.rail-list,
.foot-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-menu { display: none; }

.drawer[open] > .drawer-menu {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(74vw, 300px);
  padding: 6px 0;
  background: rgba(249, 244, 236, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 22px 46px -20px rgba(23, 38, 35, 0.42);
}

.drawer-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid rgba(23, 38, 35, 0.08);
  transition: background 0.2s ease-out, padding-left 0.2s ease-out;
}

.drawer-menu a:hover { background: rgba(92, 198, 176, 0.18); padding-left: 22px; }

.tick {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--mint);
  transform: rotate(45deg);
}

.cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #f6efe5;
  background: var(--ink);
  border: 1px solid var(--ink);
  white-space: nowrap;
  transition: background 0.25s ease-out, color 0.25s ease-out, transform 0.25s ease-out;
}

.cta:hover {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--mint);
  transform: translateY(-2px);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-content: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px clamp(14px, 4vw, 44px) 44px;
  min-height: calc(100vh - var(--header-h));
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.hero-copy { order: 1; align-self: center; }

.hero-h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 8.4vw, 66px);
  line-height: 1.16;
  letter-spacing: 0.005em;
  text-align: left;
  text-wrap: balance;
}

.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, rgba(212, 196, 168, 0.92), rgba(92, 198, 176, 0.5) 70%, rgba(185, 113, 79, 0.34));
  border: 1px solid rgba(23, 38, 35, 0.14);
  box-shadow: 0 26px 52px -26px rgba(23, 38, 35, 0.6);
  transition: transform 0.45s ease-out, box-shadow 0.45s ease-out;
}

.shot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-a {
  order: 2;
  z-index: 1;
  width: 88%;
  margin-left: auto;
  transform: rotate(-1.3deg);
}

.shot-b {
  order: 3;
  z-index: 2;
  width: 70%;
  margin-top: -30px;
  margin-right: auto;
  transform: rotate(1.5deg);
}

.shot:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 32px 60px -24px rgba(23, 38, 35, 0.56); }

/* ---------- 正文区 ---------- */
.stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 6px clamp(14px, 4vw, 44px) 72px;
}

.rail {
  padding: 16px 16px 10px;
  background: var(--glass);
  backdrop-filter: blur(10px) saturate(1.05);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mint);
  box-shadow: 0 18px 40px -34px rgba(23, 38, 35, 0.8);
}

.rail-kicker {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--olive);
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 2px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 38, 35, 0.09);
  transition: color 0.2s ease-out, padding-left 0.2s ease-out;
}

.rail-list li:last-child a { border-bottom: 0; }
.rail-list a:hover { color: #1d6b5c; padding-left: 6px; }

.stream {
  counter-reset: sec;
  min-width: 0;
}

.stream section {
  counter-increment: sec;
  position: relative;
  padding: clamp(20px, 3.4vw, 38px);
  margin-bottom: 22px;
  background: var(--glass);
  backdrop-filter: blur(11px) saturate(1.05);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sand);
  box-shadow: 0 20px 44px -36px rgba(23, 38, 35, 0.9);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.stream section:nth-child(even) { border-left-color: var(--mint); }
.stream section:last-child { margin-bottom: 0; }

.stream section::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.1em;
  color: rgba(23, 38, 35, 0.34);
}

.stream h2 {
  margin: 0 0 0.55em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 31px);
  line-height: 1.3;
  letter-spacing: 0.005em;
}

.stream h3 {
  margin: 1.4em 0 0.4em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.4;
  color: #1d4a40;
}

.stream h4 {
  margin: 1.2em 0 0.35em;
  font-size: 17px;
  font-weight: 700;
  color: #1d4a40;
}

.stream p { margin: 0 0 1em; }
.stream p:last-child { margin-bottom: 0; }

.stream ul,
.stream ol { margin: 0 0 1em; padding-left: 1.3em; }
.stream li { margin-bottom: 0.4em; }
.stream li::marker { color: var(--olive); }

.stream a {
  color: #17604f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease-out, background 0.2s ease-out;
}

.stream a:hover { color: #0d3b31; background: rgba(92, 198, 176, 0.24); }

.stream img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.1em 0;
  border: 1px solid var(--line);
}

.stream blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--clay);
  color: #3c4d48;
}

.stream table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 1em 0;
}

.stream th,
.stream td {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.stream th { background: rgba(212, 196, 168, 0.4); }

.stream code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  background: rgba(23, 38, 35, 0.07);
  padding: 1px 5px;
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: clamp(34px, 6vw, 62px) clamp(14px, 4vw, 44px) 18px;
  color: #e9e2d4;
  background: var(--ink);
  border-top: 4px solid var(--mint);
}

.foot-h2 {
  margin: 0 0 0.35em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 3.2vw, 29px);
  line-height: 1.3;
  color: #f6efe5;
}

.foot .subtitle {
  margin: 0;
  max-width: 46ch;
  color: rgba(233, 226, 212, 0.74);
}

.foot-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
}

.foot-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  text-decoration: none;
  color: rgba(233, 226, 212, 0.86);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

.foot-menu a:hover { color: var(--mint); border-bottom-color: var(--mint); }

.foot-sub-t {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: rgba(233, 226, 212, 0.6);
}

.sub-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; }

.sub-form input {
  flex: 1 1 190px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: #f6efe5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(233, 226, 212, 0.34);
  border-radius: 0;
}

.sub-form input::placeholder { color: rgba(233, 226, 212, 0.5); }

.sub-form button {
  min-height: 46px;
  padding: 8px 24px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--mint);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s ease-out, transform 0.25s ease-out;
}

.sub-form button:hover { background: var(--sand); border-color: var(--sand); transform: translateY(-2px); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(233, 226, 212, 0.18);
  font-size: 16px;
  color: rgba(233, 226, 212, 0.66);
}

.foot-base p { margin: 0; }

.to-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: rgba(233, 226, 212, 0.86);
  border-bottom: 1px solid transparent;
}

.to-top a:hover { color: var(--mint); border-bottom-color: var(--mint); }

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: fade 0.7s ease-out both; }
  .shot-a { animation: drop 0.8s 0.08s ease-out both; }
  .shot-b { animation: drop 0.8s 0.18s ease-out both; }
  .drawer-menu li { animation: fade 0.42s ease-out both; animation-delay: calc(var(--i) * 55ms); }
  .stream div { animation: fade 0.55s ease-out both; }

  @keyframes fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes drop {
    from { opacity: 0; transform: translateY(-16px) rotate(-3deg); }
    to { opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .hero { gap: 22px; }
  .shot-b { margin-top: -56px; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: 1fr;
    align-items: center;
    column-gap: 40px;
  }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .shot-a {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    width: min(74%, 360px);
    margin: 4vh 0 0;
  }
  .shot-b {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    align-self: end;
    width: min(64%, 310px);
    margin: 0 0 5vh;
  }
  .stage {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
  }
  .rail { position: sticky; top: calc(var(--header-h) + 18px); }
  .stream { max-width: 780px; }
  .foot {
    grid-template-columns: 1.4fr 1fr;
    gap: 30px 44px;
  }
  .foot-sub, .foot-base { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .drawer-btn { display: none; }
  .drawer-menu,
  .drawer[open] > .drawer-menu {
    display: flex;
    position: static;
    width: auto;
    padding: 0;
    gap: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .drawer-menu a {
    border-bottom: 0;
    padding: 10px 12px;
    min-height: 44px;
  }
  .drawer-menu a:hover { padding-left: 12px; background: rgba(92, 198, 176, 0.2); }
  .drawer-menu li { border-bottom: 2px solid transparent; }
  .drawer-menu li:hover { border-bottom-color: var(--mint); }
}

button[aria-expanded]{min-width:44px;min-height:44px}
