/* HERO：首屏 = 标题 + 数据 + 行情滚动条 */
.hero { position: relative; min-height: 100svh; padding-top: 80px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 120%, transparent 30%, var(--ink) 80%), linear-gradient(transparent 55%, var(--ink));
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: 28px; }
.hero-title { font-size: clamp(64px, 11vw, 160px); font-weight: 700; line-height: .9; letter-spacing: -.04em; }
.hero-title em { color: var(--moss); }
/* slogan：单行，与 Yuzu 共用基线、右端对齐内容区；重点词青柠色，逐字出现后划出下划线 */
.hero-head { display: flex; justify-content: space-between; align-items: last baseline; gap: 16px 48px; margin: 12px 0 28px; }
.hero-slogan { white-space: nowrap; font-size: clamp(28px, 3.6vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.hero-slogan em { color: var(--moss); background: linear-gradient(var(--moss), var(--moss)) 0 100% / 0 .08em no-repeat;
  padding-bottom: .1em; transition: background-size .9s var(--ease) .6s; }
.hero-slogan.in em { background-size: 100% .08em; }
@media (max-width: 860px) { .hero-head { display: block; } .hero-slogan { margin-top: 20px; white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .hero-slogan em { background-size: 100% .08em; transition: none; } }
.hero-desc { margin: 16px 0 22px; max-width: 460px; color: var(--mute); font-size: 15px; }
.hero-act { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-bar { text-align: center; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.hero-bar b { display: block; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.1; }
.hero-bar span { font-size: 12px; color: var(--mute); }
@media (max-width: 700px) { .hero-bar { grid-template-columns: repeat(2, 1fr); } }

/* 行情滚动条（证券行情风格） */
.ticker { position: relative; z-index: 2; display: flex; align-items: stretch; border-block: 1px solid var(--line); background: rgba(10, 11, 10, .85); font-family: var(--mono); font-size: 13px; }
.ticker-tag { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--moss); color: var(--ink); font-weight: 500; letter-spacing: .06em; }
.ticker-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ticker-view { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; animation: mq 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 24px; border-right: 1px solid var(--line); }
.tk b { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--paper); }
.tk .off { color: var(--moss); font-weight: 500; }
.tk .chg { font-size: 11px; color: var(--moss); }
.tk .chg::before { content: "▼ "; font-size: 9px; }
.tk .was { font-size: 11px; color: var(--mute); text-decoration: line-through; }
@keyframes mq { to { transform: translateX(-50%); } }

/* 通用区块 */
.sec { padding: 88px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.sec-head p { color: var(--mute); max-width: 380px; font-size: 13px; }
.sec-head .eyebrow { display: flex; margin-bottom: 10px; }
@media (max-width: 760px) { .sec { padding: 64px 0; } }

/* 价格模型 */
/* 首页价格摘要：大字行列表。悬停时青柠色从左铺满整行，文字反色，箭头滑出 */
.plist { border-top: 1px solid var(--paper); }
.plist-h, .plist a { display: grid; grid-template-columns: 56px minmax(150px, 1.1fr) minmax(0, 1.6fr) minmax(170px, 1fr) 150px; align-items: center; gap: 20px; }
.plist-h { padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.plist-h span:last-child { text-align: right; }
.plist ol { list-style: none; }
.plist li { border-bottom: 1px solid var(--line); }
.plist a { position: relative; padding: 18px 16px; overflow: hidden; isolation: isolate; transition: color .4s; }
.plist a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--moss); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.plist a:hover { color: var(--ink); }
.plist a:hover::before { transform: scaleX(1); }
.pl-n { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.pl-p b { display: block; font-size: clamp(24px, 2.6vw, 38px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; transition: transform .6s var(--ease); }
.pl-p small { font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.pl-g { display: grid; gap: 3px; min-width: 0; font-size: 14px; }
.pl-g code { font-family: var(--mono); font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-u { font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.pl-u i { margin: 0 6px; font-style: normal; color: var(--mute); }
.pl-d { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--moss); white-space: nowrap; transition: color .4s; }
.pl-d .arr { font-style: normal; font-size: .55em; opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .6s var(--ease); }
.plist a:hover .pl-n, .plist a:hover small, .plist a:hover code, .plist a:hover .pl-u i, .plist a:hover .pl-d { color: var(--ink); }
.plist a:hover .pl-p b { transform: translateX(8px); }
.plist a:hover .arr { opacity: 1; transform: none; }
/* 进入视口后逐行上浮 */
.plist.rv li { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.plist.rv.in li { opacity: 1; transform: none; }
.plist.rv { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .plist-h { display: none; }
  .plist a { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "n p d" "n g g" "n u u"; gap: 4px 14px; }
  .pl-n { grid-area: n; align-self: start; padding-top: 8px; } .pl-p { grid-area: p; } .pl-g { grid-area: g; } .pl-u { grid-area: u; font-size: 13px; } .pl-d { grid-area: d; }
}
@media (prefers-reduced-motion: reduce) { .plist.rv li { opacity: 1; transform: none; transition: none; } }
.pnote { margin-top: 14px; font-size: 12px; color: var(--mute); }
.tbl-scroll { overflow-x: auto; }

/* 接入文档 */
.code-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 32px; align-items: start; }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 12px; color: var(--moss); padding-top: 2px; }
.steps h4 { font-size: 15px; font-weight: 700; }
.steps p { color: var(--mute); font-size: 13px; }
.base-url { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; border: 1px dashed rgba(198, 243, 107, .4); font-family: var(--mono); font-size: 13px; cursor: pointer; transition: background .3s; }
.base-url:hover { background: rgba(198, 243, 107, .06); }
.base-url span { color: var(--mute); font-size: 11px; }
.term { border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.term-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; }
.tabs button { padding: 5px 12px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; color: var(--mute); transition: color .3s, background .3s; }
.tabs button.on { background: var(--paper); color: var(--ink); }
.copy { font-family: var(--mono); font-size: 11.5px; color: var(--mute); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; transition: color .3s, border-color .3s; }
.copy:hover { color: var(--moss); border-color: var(--moss); }
.term pre { padding: 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; overflow-x: auto; min-height: 290px; }
.tk-k { color: #ff9e64; } .tk-s { color: var(--moss); } .tk-c { color: rgba(242, 239, 233, .35); } .tk-f { color: #7dcfff; }
@media (max-width: 860px) { .code-grid { grid-template-columns: 1fr; } }

/* 常见问题 */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; font-size: 15px; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--moss); }
.faq summary i { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--moss); color: var(--ink); border-color: var(--moss); }
.faq .ans { color: var(--mute); font-size: 13px; max-width: 680px; padding-bottom: 18px; }

/* 联系我们 */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ct { --mx: 50%; --my: 50%; position: relative; padding: 20px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; cursor: pointer; }
.ct::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(198, 243, 107, .14), transparent 60%); }
.ct:hover { border-color: rgba(198, 243, 107, .4); }
.ct:hover::before { opacity: 1; }
.ct span { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
.ct b { display: block; margin: 6px 0 2px; font-size: 16px; }
.ct p { font-size: 12px; color: var(--mute); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
