/* 渡语 duyu-ai.cn
   Palette from the logo: ink (deep navy), sea (blue), mint (teal), amber (the small orange dots).
   Display type: Noto Serif SC 700, subset to the headings on this site (assets/duyu-display.woff2). Body: system sans. */
@font-face {
  font-family: "DUYU Display";
  src: url("/assets/duyu-display.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #062c59;
  --sea: #1660a6;
  --mint: #27c7bf;
  --teal-deep: #0b7f7a;
  --amber: #f08a24;
  --paper: #ffffff;
  --tint: #eef6f6;
  --line: #cfe0e3;
  --muted: #47607a;
  --display: "DUYU Display", "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; }
a { color: var(--sea); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 14px; }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .08em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--mint); }

.btn {
  font: inherit; font-weight: 600; font-size: 17px; line-height: 1;
  color: #fff; background: var(--ink);
  border: 0; border-radius: 999px; padding: 17px 30px; cursor: pointer;
}
.btn:hover { background: var(--sea); }
.btn-small { font-size: 15px; padding: 11px 20px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mint); color: var(--ink); }

/* ---- hero ---- */
.hero { padding: 84px 0 96px; background: linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(52px, 8.2vw, 104px); line-height: 1.16; letter-spacing: .02em;
}
.lead { margin-top: 30px; font-size: 19px; max-width: 30em; }
.hero-act { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hero-note { font-size: 14px; line-height: 1.6; color: var(--muted); }

.talk { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -34px rgba(6, 44, 89, .45); }
.talk-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.talk-ch { font-weight: 600; color: var(--ink); }
.talk-body { padding: 22px 22px 8px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 84%; padding: 12px 16px; border-radius: 16px; font-size: 16px; line-height: 1.65; }
.msg-in { align-self: flex-start; background: var(--tint); border-top-left-radius: 4px; }
.msg-out { align-self: flex-end; background: var(--ink); color: #fff; border-top-right-radius: 4px; }
.src { margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 13.5px; color: #bfeeea; }
.src-k { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 4px; background: var(--mint); color: var(--ink); font-weight: 600; }
.handoff { align-self: center; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #9a5208; background: #fff3e3; border: 1px solid #f8d3a6; border-radius: 999px; padding: 5px 16px; }
.handoff-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.talk-foot { padding: 14px 22px 18px; font-size: 13.5px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .s1, .s2, .s3, .s4, .s5 { opacity: 0; transform: translateY(8px); animation: arrive .5s ease-out forwards; }
  .s1 { animation-delay: .3s; } .s2 { animation-delay: 1.1s; } .s3 { animation-delay: 2.1s; }
  .s4 { animation-delay: 2.9s; } .s5 { animation-delay: 3.6s; }
  @keyframes arrive { to { opacity: 1; transform: none; } }
}

/* ---- sections ---- */
.sec { padding: 96px 0; }
.sec-tint { background: var(--tint); }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.3; letter-spacing: .02em; }
h3 { font-size: 19px; line-height: 1.5; font-weight: 600; }
.sec-lead { margin-top: 18px; max-width: 34em; font-size: 18px; }

.pains { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.pains li { padding: 26px 0; border-top: 1px solid var(--line); max-width: 30em; }
.pains strong { display: block; font-size: 20px; margin-bottom: 4px; }

.can { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 48px; }
.can article { border-left: 3px solid var(--mint); padding-left: 20px; }
.can p { margin-top: 8px; color: #24405f; }
.aside { margin-top: 64px; background: #fff; border-radius: 18px; padding: 34px 38px; display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.aside h3 { font-family: var(--display); font-size: 24px; }

.ledger { margin-top: 44px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; border-top: 2px solid var(--ink); }
.ledger-col { padding: 22px 26px 8px 0; }
.ledger-col + .ledger-col { padding-left: 26px; border-left: 1px solid var(--line); }
.ledger h3 { font-size: 16px; color: var(--teal-deep); margin-bottom: 12px; }
.ledger li { padding: 10px 0; font-weight: 600; line-height: 1.5; }
.ledger small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; line-height: 1.65; color: var(--muted); }
.ledger-no h3 { color: #9a5208; }

/* ---- data (dark band) ---- */
.sec-deep { background: var(--ink); color: #fff; }
.sec-deep .sec-lead { color: #d6e6f3; }
.flow { margin-top: 52px; display: grid; grid-template-columns: 1.25fr 1fr .9fr; align-items: stretch; }
.flow-pc { border: 2px solid var(--mint); border-radius: 18px; padding: 26px 28px 30px; background: rgba(39, 199, 191, .08); }
.flow-title { font-family: var(--display); font-weight: 700; font-size: 22px; }
.flow-items { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.flow-items li { padding: 6px 16px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; font-size: 16px; }
.flow-items .flow-opt { background: transparent; color: #fff; border: 1.5px dashed var(--mint); }
.flow-gate { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 26px; font-size: 14.5px; line-height: 1.6; color: #d6e6f3; }
.flow-gate::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed #6f93b8; z-index: 0; }
.flow-gate p { position: relative; z-index: 1; background: var(--ink); padding: 3px 8px; border-left: 3px solid var(--amber); }
.flow-cloud { border: 1.5px dashed #6f93b8; border-radius: 18px; padding: 26px 26px 30px; }
.flow-sub { margin-top: 12px; font-size: 15px; line-height: 1.7; color: #d6e6f3; }
.modes { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.modes h3 { color: var(--mint); }
.modes p { margin-top: 8px; color: #e4eef7; }
.fine { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14.5px; color: #b9cfe3; max-width: 52em; }

/* ---- steps ---- */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--sea); margin-bottom: 14px; }
.steps p { margin-top: 8px; font-size: 15.5px; line-height: 1.75; color: #24405f; }
.after { margin-top: 44px; max-width: 40em; }

/* ---- faq ---- */
.faq-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-size: 18.5px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--sea); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 40px 24px 0; max-width: 38em; color: #24405f; }

/* ---- closing ---- */
.close { background: linear-gradient(120deg, var(--sea) 0%, #109a9a 100%); color: #fff; }
.close-in { text-align: left; }
.close p { margin: 22px 0 34px; max-width: 30em; font-size: 18px; }

.foot { background: var(--ink); color: #c8d9ea; padding: 30px 0; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 30px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; }
.foot-tag { font-weight: 400; color: #9fb8d2; }
.foot-links { display: flex; gap: 24px; }
.foot a { color: #c8d9ea; }
.foot-legal { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(200,217,234,.18); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; text-align: center; font-size: 13px; color: #9fb8d2; }
.foot-legal a { color: #9fb8d2; }

/* ---- text pages ---- */
.doc { padding: 64px 0 96px; }
.doc .wrap { width: min(760px, 100% - 48px); }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 44px; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { list-style: disc; padding-left: 1.4em; }
.doc .meta { color: var(--muted); font-size: 15px; }

/* ---- narrower screens ---- */
@media (max-width: 980px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero { padding: 52px 0 68px; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .sec { padding: 68px 0; }
  .pains { grid-template-columns: 1fr; }
  .can { grid-template-columns: 1fr 1fr; }
  .aside { grid-template-columns: 1fr; gap: 10px; padding: 28px 26px; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger-col, .ledger-col + .ledger-col { padding: 22px 20px 8px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; }
  .flow-gate { padding: 26px 0 26px 26px; }
  .flow-gate::before { left: 12px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px dashed #6f93b8; }
  .modes { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .lead { font-size: 17px; }
  .hero-note br { display: none; }
  .can, .ledger, .steps { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
  .faq summary { font-size: 17px; }
}
