@font-face {
    font-family: "YLT Serif";
    src: url("./fonts/ylt-serif-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --paper: #f5f2ea;
    --ink: #241e17;
    --text: #2b251e;
    --muted: #6a6459;
    --seal: #7f2a1e;
    --gold: #b08a4a;
    --route: #6e7f70;
    --dai: #3c4a51;
    --line: rgba(74, 66, 55, .12);
    --serif: "YLT Serif", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    --mono: "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  }

  * { box-sizing: border-box; }
  html, body { overflow-x: hidden; }
  html { background: var(--paper); }
  body {
    margin: 0;
    color: var(--text);
    font-family: var(--sans);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(42% 38% at 16% 34%, rgba(232, 240, 231, .78), rgba(232, 240, 231, 0) 70%),
      radial-gradient(40% 36% at 78% 18%, rgba(243, 234, 219, .62), rgba(243, 234, 219, 0) 70%),
      radial-gradient(36% 32% at 88% 84%, rgba(235, 228, 215, .52), rgba(235, 228, 215, 0) 72%),
      linear-gradient(180deg, #f8f5ee 0%, #f5f2ea 52%, #f2eee4 100%);
  }
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .03;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  }
  a { color: inherit; }
  button { font: inherit; }
  ::selection { background: rgba(176, 138, 74, .28); color: var(--ink); }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

  .page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1920px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 30px 56px 22px;
    display: grid;
    grid-template-rows: auto 1fr auto;
  }

  .topbar {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }
  .seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--seal);
    border: 1px solid currentColor;
  }
  .seal-glyph {
    display: block;
    width: 100%;
    height: 100%;
  }
  .seal-sm { width: 30px; height: 30px; padding: 3px; }
  .seal-lg { width: 54px; height: 54px; padding: 5px; }
  .brand-name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: .18em;
    color: var(--ink);
  }
  .company {
    margin: 0;
    font-size: 10.5px;
    letter-spacing: .12em;
    color: var(--muted);
    white-space: nowrap;
  }

  .stage {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 740px;
    margin: auto;
    align-self: center;
  }

  .wash {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
  }
  .wash-left {
    left: -150px;
    top: 50%;
    width: 680px;
    height: 680px;
    transform: translateY(-50%);
    background: radial-gradient(circle at 46% 50%, rgba(231, 239, 230, .82), rgba(245, 242, 234, 0) 68%);
  }
  .wash-right {
    right: -110px;
    top: -90px;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle at 55% 45%, rgba(243, 234, 219, .55), rgba(245, 242, 234, 0) 70%);
  }

  /* ---------- 大圆：品牌与联系入口 ---------- */
  .medallion {
    position: absolute;
    left: 0;
    top: 48%;
    width: 30%;
    aspect-ratio: 1;
    height: auto;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .medallion::before {
    content: "";
    position: absolute;
    inset: 11%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 44%, rgba(255, 253, 248, .88) 0%, rgba(238, 244, 236, .60) 48%, rgba(245, 242, 234, 0) 73%);
    z-index: 0;
  }
  .ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }
  .ring-outer {
    inset: 0;
    border: 1px solid rgba(110, 127, 112, .16);
    transition: border-color .3s ease;
  }
  .ring-mid {
    inset: 8%;
    border: 1px dashed rgba(176, 138, 74, .32);
    animation: spin 90s linear infinite;
  }
  .ring-inner {
    inset: 16%;
    border: 1px solid rgba(110, 127, 112, .12);
    animation: breathe 7s ease-in-out infinite;
    transition: border-color .3s ease;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes breathe {
    0%, 100% { transform: scale(.995); opacity: .8; }
    50% { transform: scale(1.008); opacity: 1; }
  }
  .medallion:hover .ring-outer { border-color: rgba(110, 127, 112, .30); }
  .medallion:hover .ring-inner { border-color: rgba(110, 127, 112, .24); }
  .medallion:focus-visible { outline: 2px solid var(--gold); outline-offset: 10px; }

  .medallion-core {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0 6% 0 12%;
    transition: transform .26s ease;
  }
  .medallion:hover .medallion-core { transform: translateY(-3px); }
  .medallion .seal-lg { margin-bottom: 16px; animation: stamp .55s .06s both; }
  @keyframes stamp {
    0% { opacity: 0; transform: scale(1.12); }
    62% { opacity: 1; transform: scale(.98); }
    100% { opacity: 1; }
  }
  .kicker {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 10px;
    letter-spacing: .30em;
    color: var(--muted);
  }
  .kicker::before, .kicker::after {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--gold);
    opacity: .52;
  }
  .medallion .kicker::after { display: none; }
  .medallion h1 {
    margin: 14px 0 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 84px;
    line-height: 1.05;
    letter-spacing: .08em;
    color: var(--ink);
  }
  .medallion h1 span { display: block; }
  .medallion h1 .company-sub {
    margin-top: 6px;
    margin-left: 2em;
    font-size: 44px;
    line-height: 1.2;
    letter-spacing: .20em;
    color: #4f473c;
  }
  .medallion-rule {
    display: block;
    width: 26px;
    height: 1px;
    margin-top: 18px;
    background: var(--gold);
    opacity: .55;
    transition: width .3s ease, opacity .3s ease;
  }
  .medallion:hover .medallion-rule { width: 42px; opacity: .8; }
  .medallion::after {
    content: "";
    position: absolute;
    inset: 3%;
    border: 1px solid rgba(176, 138, 74, 0);
    border-radius: 50%;
    pointer-events: none;
    transition: border-color .3s ease;
  }
  .medallion:hover::after { border-color: rgba(176, 138, 74, .22); }
  .medallion:hover .ring-mid { animation-duration: 18s; }
  .medallion .seal-lg { transition: transform .3s ease; }
  .medallion:hover .seal-lg { transform: scale(1.03); }

  /* 竖排 slogan：横向连接线上下两侧 */
  .slogan-v {
    position: absolute;
    left: 41.5%;
    top: 239px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    pointer-events: none;
  }
  .slogan-v span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: .18em;
    color: #4f473c;
    white-space: nowrap;
  }
  .origin-dot {
    position: absolute;
    right: -3.5px;
    top: 50%;
    width: 7px;
    height: 7px;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 242, 234, .95);
    transform: translateY(-50%) rotate(45deg);
    z-index: 3;
  }
  .pulse {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    border: 1px solid rgba(176, 138, 74, .45);
    opacity: 0;
    pointer-events: none;
  }
  .medallion.is-open .pulse { animation: ripple .75s ease-out; }
  @keyframes ripple {
    0% { opacity: .55; transform: scale(.96); }
    100% { opacity: 0; transform: scale(1.16); }
  }

  /* ---------- 路线与两张目的地卡 ---------- */
  .route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: visible;
  }
  .route path {
    fill: none;
    stroke: var(--dai);
    stroke-width: 1.5;
    stroke-opacity: .40;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    opacity: 0;
    animation: lineIn .6s .08s forwards;
  }
  .route-main, .route-up, .route-down { animation-delay: .08s; }
  .fork-dot {
    position: absolute;
    left: 53%;
    top: 48%;
    width: 8px;
    height: 8px;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 242, 234, .92);
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 2;
  }
  @keyframes lineIn { to { opacity: 1; } }

  .panel {
    position: absolute;
    z-index: 3;
    text-decoration: none;
    color: inherit;
    border-radius: 30px;
    transition: transform .26s ease, box-shadow .26s ease;
  }
  .num {
    margin: 0;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .18em;
  }
  .port {
    position: absolute;
    left: -4.5px;
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 0 4px rgba(245, 242, 234, .92);
    z-index: 2;
  }
  .port-gold { background: var(--gold); }
  .port-seal { background: var(--seal); }

  /* 新中式卡片：双线内框 + 四角回纹 + 朱砂印 + 菱形细线 */
  .enterprise::before, .driver::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(176, 141, 87, .22);
    border-radius: 24px;
    pointer-events: none;
    z-index: 0;
  }
  .card-stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    padding: 7px 4px;
    background: var(--seal);
    color: #fdf6ea;
    font-family: var(--serif);
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: .16em;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
    transform: rotate(-1.5deg);
    opacity: .9;
    pointer-events: none;
    z-index: 2;
  }
  .card-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 10px;
  }
  .card-rule::before, .card-rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 66, 55, .18), transparent);
  }
  .card-rule i {
    width: 4px;
    height: 4px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
  }

  .enterprise {
    right: 0;
    top: 22px;
    width: 32%;
    height: 315px;
    padding: 28px 30px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(145deg, #eef4ec 0%, #e1eae1 100%);
    border: 1px solid rgba(74, 66, 55, .10);
    opacity: 0;
    animation: fadein .5s .98s forwards;
  }
  .enterprise:hover, .driver:hover {
    transform: translateY(-3px);
  }
  .enterprise .num { color: var(--gold); }
  .enterprise h2 {
    margin: 10px 0 8px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: .06em;
    color: var(--ink);
  }
  .tagline {
    margin: 0;
    max-width: 290px;
    font-size: 13px;
    line-height: 1.9;
    color: #4f5a50;
  }
  .driver .tagline { color: #55666a; }
  .features {
    margin: 12px 0 0;
    font-size: 11.5px;
    line-height: 1.8;
    letter-spacing: .07em;
    color: #4f5a50;
  }
  .panel-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }
  .trust {
    margin: 0;
    max-width: 210px;
    font-size: 10px;
    line-height: 1.7;
    color: #566156;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 253, 248, .74);
    border: 1px solid rgba(74, 66, 55, .10);
    box-shadow: 0 2px 8px rgba(74, 66, 55, .04);
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--ink);
    white-space: nowrap;
  }
  .pill .arrow {
    display: inline-block;
    color: var(--gold);
    transition: transform .2s ease;
  }
  .enterprise:hover .pill .arrow { transform: translate(2px, -2px); }
  .stage:has(.enterprise:hover) .route-up { stroke-width: 2.2; stroke-opacity: .78; }
  .stage:has(.driver:hover) .route-down { stroke-width: 2.2; stroke-opacity: .78; }

  /* 司机卡换色：不跟页面主色同色 */
  .driver {
    right: 0;
    bottom: 22px;
    width: 32%;
    height: 315px;
    padding: 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(145deg, #eaf1f2 0%, #dce8ea 100%);
    border: 1px solid rgba(74, 66, 55, .10);
    opacity: 0;
    animation: fadein .5s 1.14s forwards;
  }
  @keyframes fadein { to { opacity: 1; } }
  .driver-copy { flex: 1; min-width: 0; }
  .driver .num { color: var(--seal); }
  .driver h2 {
    margin: 8px 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 26px;
    letter-spacing: .04em;
    color: var(--ink);
  }
  .driver .features {
    margin: 0;
    color: #55666a;
    letter-spacing: .04em;
  }
  .hint {
    margin: 12px 0 0;
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--ink);
  }
  .independent {
    margin: 6px 0 0;
    font-size: 9.5px;
    letter-spacing: .12em;
    color: #5f7074;
  }
  .qr {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    padding: 7px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(74, 66, 55, .10);
    box-shadow: 0 8px 20px rgba(74, 66, 55, .05);
  }
  .qr img { display: block; width: 100%; height: 100%; border-radius: 11px; }

  .footer {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 10px;
    letter-spacing: .03em;
    color: var(--muted);
  }
  .footer .legal {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
  }
  .footer .legal a { color: inherit; text-decoration: none; }
  .footer .legal a:hover { color: var(--seal); }

  /* ---------- 联系方式弹层 ---------- */
  .contact-dialog {
    width: min(520px, calc(100vw - 40px));
    border: 0;
    padding: 0;
    border-radius: 30px;
    background: transparent;
    color: var(--ink);
    overflow: visible;
  }
  .contact-dialog::backdrop {
    background: rgba(245, 242, 234, .55);
    backdrop-filter: blur(6px);
  }
  .contact-dialog[open] { animation: dialogIn .3s cubic-bezier(.2, .8, .3, 1); }
  @keyframes dialogIn {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: none; }
  }
  .contact-card {
    padding: 30px 32px 26px;
    border-radius: 30px;
    background: linear-gradient(145deg, #fffdf8 0%, #f7f1e6 100%);
    border: 1px solid rgba(74, 66, 55, .10);
    box-shadow: 0 40px 100px rgba(74, 66, 55, .18);
  }
  .contact-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .contact-head .seal-sm { width: 34px; height: 34px; padding: 3px; }
  .contact-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: .03em;
    color: var(--ink);
  }
  .contact-x {
    position: absolute;
    right: -10px;
    top: -14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, .82);
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }
  .contact-x:hover, .contact-done:hover { border-color: rgba(176, 138, 74, .45); color: var(--ink); }
  .contact-rows {
    margin-top: 24px;
    border-top: 1px solid var(--line);
  }
  .contact-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
  .contact-row span {
    flex: 0 0 auto;
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--muted);
  }
  .contact-row strong {
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .02em;
    color: var(--ink);
    text-align: right;
  }
  .contact-note {
    margin: 16px 0 0;
    font-size: 10px;
    letter-spacing: .04em;
    color: var(--muted);
  }
  .contact-note a { color: var(--seal); }
  .contact-done {
    margin-top: 20px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid rgba(176, 138, 74, .36);
    background: rgba(255, 253, 248, .72);
    color: var(--ink);
    font-size: 12px;
    letter-spacing: .12em;
    cursor: pointer;
  }

  @media (prefers-reduced-motion: reduce) {
    .route path { animation: none; opacity: 1; }
    .route .node { animation: none; opacity: 1; }
    .medallion .seal-lg { animation: none; opacity: 1; transform: none; }
    .enterprise, .driver { animation: none; opacity: 1; }
    .ring-mid, .ring-inner { animation: none; }
    .contact-dialog[open] { animation: none; }
  }

  /* 法务 / 404 页 */
  .legal-page {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 32px 24px 48px;
  }
  .legal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .legal-back {
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--muted);
    text-decoration: none;
  }
  .legal-back:hover { color: var(--seal); }
  .legal-page main { padding-top: 40px; }
  .legal-page .kicker { justify-content: flex-start; margin-bottom: 14px; }
  .legal-page h1 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 36px;
    line-height: 1.3;
    letter-spacing: .06em;
    color: var(--ink);
  }
  .legal-page .updated {
    margin: 0 0 30px;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--muted);
  }
  .legal-page h2 {
    margin: 30px 0 10px;
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: .04em;
    color: var(--ink);
  }
  .legal-page p, .legal-page li {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.95;
    color: #4f473c;
  }
  .legal-page a { color: var(--seal); }
  .legal-page .back-pill {
    display: inline-flex;
    margin-top: 26px;
    padding: 9px 16px;
    border: 1px solid rgba(176, 138, 74, .36);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .08em;
    text-decoration: none;
    color: var(--ink);
  }

  @media (max-width: 1320px) {
    .page { display: block; padding: 24px 22px 20px; }
    .company { display: none; }
    .stage {
      width: 100%;
      height: auto;
      margin: 28px 0 0;
    }
    .wash-left {
      left: 50%;
      top: -40px;
      width: 460px;
      height: 460px;
      transform: translateX(-50%);
    }
    .wash-right { display: none; }
    .route { display: none; }
    .medallion {
      position: relative;
      left: auto;
      top: auto;
      width: 320px;
      height: 320px;
      margin: 0 auto 30px;
      transform: none;
    }
    .medallion::before { inset: 40px; }
    .ring-mid { inset: 26px; }
    .ring-inner { inset: 52px; }
    .medallion-core { padding: 0 16px 0 36px; }
    .medallion .seal-lg { width: 46px; height: 46px; padding: 4px; margin-bottom: 12px; }
    .medallion .kicker { font-size: 9px; }
    .medallion h1 { font-size: 56px; margin-top: 10px; }
    .medallion h1 .company-sub { font-size: 30px; margin-top: 4px; letter-spacing: .20em; }
    .medallion-rule { margin-top: 12px; }
    .slogan-v {
      position: static;
      flex-direction: row;
      justify-content: center;
      gap: 28px;
      margin: 0 0 24px;
    }
    .slogan-v span { font-size: 18px; letter-spacing: .14em; }
    .origin-dot, .port, .fork-dot { display: none; }
    .panel {
      position: relative;
      right: auto;
      top: auto;
      bottom: auto;
      width: auto !important;
      max-width: 100%;
      min-width: 0;
      height: auto !important;
      margin: 0 0 18px;
      border-radius: 26px;
      padding: 22px;
    }
    .enterprise { padding: 22px; gap: 18px; }
    .panel-bottom { flex-wrap: wrap; align-items: flex-start; }
    .trust { max-width: 100%; }
    .pill { padding: 8px 14px; }
    .enterprise h2 { font-size: 30px; }
    .driver { padding: 20px; gap: 14px; }
    .enterprise::before, .driver::before { inset: 6px; border-radius: 20px; }
    .card-stamp { top: 16px; right: 16px; font-size: 9px; padding: 6px 3px; }
    .card-rule { margin: 10px 0 8px; }
    .driver h2 { font-size: 24px; }
    .qr { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 16px; }
    .qr img { border-radius: 10px; }
    .footer { display: block; margin-top: 26px; line-height: 2; }
    .footer .legal { display: block; margin-top: 6px; white-space: normal; }
    .footer .legal span { display: inline; margin-right: 10px; white-space: nowrap; }
  }
