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

:root {
  --y: #FFC93C;
  --o: #EF6F4C;
  --ink: #2B3A42;
  --paper: #FFFDF5;
  --soft: #FFEFC2;
  --muted: #5C6B72;
  --cream: #F3EFE4;
  --r: 4px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Varela Round", "Nunito Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin: 0 0 14px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ---------- 顶部 ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--y);
  border-bottom: 3px solid var(--ink);
  position: relative;
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 2px;
  text-decoration: none;
  max-width: 58%;
}

.brand-mark,
.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--o);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  object-fit: cover;
}

.brand-txt {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.burger {
  display: none;
  margin-left: auto;
  min-width: 48px;
  min-height: 44px;
  padding: 0 10px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  cursor: pointer;
}

.primary {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nv,
.grp-btn,
.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nv:hover,
.grp-btn:hover {
  background: var(--ink);
  color: var(--y);
}

.contact {
  background: var(--o);
  color: #fff;
  border-color: var(--ink);
}

.contact:hover {
  background: var(--ink);
  color: #fff;
}

.grp {
  position: relative;
}

.grp-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 194px;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  z-index: 50;
}

.grp.open .grp-panel,
.grp:hover .grp-panel,
.grp:focus-within .grp-panel {
  display: flex;
}

.grp-panel .nv {
  width: 100%;
  justify-content: flex-start;
}

/* ---------- 锚点条 ---------- */
.strip {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: var(--ink);
  overflow-x: auto;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  font-size: 16px;
  color: #FFE9A8;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.strip a:hover {
  color: var(--y);
  border-color: var(--y);
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto;
  gap: 12px 22px;
  align-items: center;
  min-height: 45vh;
  padding: 22px clamp(16px, 3vw, 34px) 26px;
  background: var(--y);
  border-bottom: 3px solid var(--ink);
}

.hero-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
}

.hero h1 {
  font-size: clamp(26px, 4.4vw, 46px);
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 12px 0 0 auto;
  max-width: 34ch;
  font-size: 16px;
  color: #3B4C55;
}

.tile {
  margin: 0;
  height: 150px;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  background: var(--o);
  overflow: hidden;
}

.tile-a {
  grid-column: 1;
  grid-row: 1;
}

.tile-b {
  grid-column: 1;
  grid-row: 2;
  width: 80%;
  height: 104px;
  justify-self: end;
  background: #fff;
}

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

/* ---------- 主体 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  align-items: start;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px clamp(16px, 3vw, 26px) 52px;
}

.stream {
  min-width: 0;
}

.stream > section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 82px;
}

.stream > section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.stream h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font-size: clamp(21px, 2.6vw, 27px);
}

.stream h2::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--o);
}

.stream h3 {
  margin: 20px 0 8px;
  font-size: 19px;
}

.stream p {
  margin: 0 0 14px;
}

.stream ul,
.stream ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.stream li {
  margin: 0 0 8px;
}

.stream li::marker {
  color: var(--o);
  font-weight: 700;
}

.stream a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--y);
  transition: border-color 0.16s ease;
}

.stream a:hover {
  border-color: var(--o);
}

.stream blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--soft);
  border-left: 5px solid var(--o);
  border-radius: 0 var(--r) var(--r) 0;
}

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

.stream figure {
  margin: 0 0 16px;
}

.stream img {
  border: 2px solid var(--ink);
  border-radius: var(--r);
}

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

.stream th,
.stream td {
  border: 2px solid var(--ink);
  padding: 8px 10px;
  text-align: left;
}

.stream th {
  background: var(--y);
}

.stream hr {
  height: 2px;
  border: 0;
  background: var(--ink);
  margin: 22px 0;
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 74px;
}

.side-card {
  padding: 14px 14px 10px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
}

.side-card h2 {
  font-size: 18px;
}

.subtitle {
  margin: 2px 0 10px;
  font-size: 16px;
  color: var(--muted);
}

.jump {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jump a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  font-size: 16px;
  text-decoration: none;
  border-left: 4px solid var(--y);
  border-radius: 0 var(--r) var(--r) 0;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.jump a:hover {
  border-color: var(--o);
  background: var(--soft);
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 26px;
  padding: 34px clamp(16px, 5vw, 54px) 0;
  background: var(--ink);
  color: var(--cream);
  border-top: 3px solid var(--ink);
}

.foot a {
  color: #FFF0C4;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.foot a:hover {
  color: var(--y);
}

.f-logo {
  margin: 0;
}

.f-name {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.f-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--o);
}

.f-nav dl {
  margin: 0;
}

.f-nav dt {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--o);
}

.f-nav dd {
  margin: 0;
}

.f-nav dd a,
.f-cta .f-a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 16px;
}

.f-cta .f-a {
  padding: 0 12px;
  border: 2px solid #FFF0C4;
  border-radius: var(--r);
}

.f-cta .f-a:hover {
  border-color: var(--y);
}

.f-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(243, 239, 228, 0.28);
  font-size: 16px;
}

.copy {
  margin: 0;
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- 动效 ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: var(--d, 0ms);
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .js .rv {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .side {
    position: static;
    order: -1;
  }
  .side-card {
    padding: 12px;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .f-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .burger {
    display: block;
  }
  .primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px;
    background: var(--y);
    border-bottom: 3px solid var(--ink);
  }
  .primary.open {
    display: flex;
  }
  .nv,
  .contact {
    justify-content: flex-start;
    width: 100%;
  }
  .grp-panel {
    position: static;
    border: 0;
    padding: 0 0 0 14px;
    min-width: 0;
    background: transparent;
  }
  .grp.open .grp-panel,
  .grp:focus-within .grp-panel {
    display: flex;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 0;
    gap: 10px;
    padding: 18px 16px 22px;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }
  .hero-lead {
    margin-left: 0;
  }
  .tile,
  .tile-b {
    grid-column: 1;
    grid-row: auto;
    height: 126px;
    width: 100%;
    justify-self: stretch;
  }
  .tile-b {
    height: 98px;
    width: 82%;
    justify-self: end;
  }
  .strip {
    padding: 6px 12px;
  }
  .foot {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 0;
  }
  .f-bar {
    justify-content: space-between;
  }
  .stream > section {
    scroll-margin-top: 74px;
  }
}

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