/* 宠栈云官网 · site.css · 依赖 tokens.css */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: var(--t-16); line-height: var(--lh-16); letter-spacing: var(--ls-16); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.4px; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--r-pill); font-size: 15px; white-space: nowrap; transition: transform .35s cubic-bezier(.2,.75,.2,1), box-shadow .35s, background .35s; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--btn-primary); color: var(--btn-primary-fg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-ghost { background: var(--card); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* 导航 */
.nav { height: 76px; border-bottom: 1px solid var(--line-soft); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.brand .mark svg { width: 17px; height: 17px; fill: #fff; }
.brand .name { font-family: var(--font-display); font-size: 17px; font-weight: var(--w-medium); letter-spacing: -0.34px; color: var(--ink); }
.brand .sep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }
.brand .sub { font-size: 14px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 13px; color: var(--muted-2); line-height: 21px; }
.footer .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer .fname { font-family: var(--font-display); font-size: 15px; font-weight: var(--w-medium); color: var(--ink); margin-bottom: 6px; }
.footer .right { text-align: right; }
.footer a:hover { color: var(--ink); }

/* 动效 */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes breathe { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .85; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes flow { from { background-position: 0 0; } to { background-position: 160px 0; } }
.r1 { animation: rise .8s .1s cubic-bezier(.2,.75,.2,1) both; }
.r2 { animation: rise .8s .25s cubic-bezier(.2,.75,.2,1) both; }
.r3 { animation: rise .8s .4s cubic-bezier(.2,.75,.2,1) both; }
.r4 { animation: rise .8s .55s cubic-bezier(.2,.75,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .r1, .r2, .r3, .r4, .glow, .flowline { animation: none !important; } }

/* ===== 入口选择页 ===== */
.gate { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.gate .glow { position: absolute; left: 50%; top: 46%; width: 1100px; height: 640px; border-radius: 999px; background: radial-gradient(closest-side, rgba(23,181,173,.16) 0%, rgba(23,181,173,.06) 55%, rgba(23,181,173,0) 100%); pointer-events: none; animation: breathe 9s ease-in-out infinite; }
.gate .nav { position: relative; background: transparent; border-bottom: none; }
.gate-main { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px; padding: 24px 0 56px; }
.gate-title { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gate-title h1 { margin: 0; font-family: var(--font-display); font-size: 64px; line-height: 72px; letter-spacing: -2px; font-weight: var(--w-medium); }
.gate-title p { margin: 0; font-size: var(--t-18); line-height: var(--lh-18); color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 500px)); gap: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px 40px 36px; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--sh-md); transition: transform .55s cubic-bezier(.2,.75,.2,1), box-shadow .55s, border-color .55s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--sh-3xl); border-color: var(--accent); }
.card .head { display: flex; align-items: center; justify-content: space-between; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.card .icon svg { width: 24px; height: 24px; }
.card .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.4px; color: var(--faint); transition: color .4s; }
.card:hover .num { color: var(--accent-2); }
.card h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 32px; line-height: 40px; letter-spacing: -0.8px; font-weight: var(--w-medium); }
.card p { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.card .tags { font-size: 13px; color: var(--faint); }
.card .go { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .4s, color .4s, transform .5s cubic-bezier(.2,.75,.2,1), border-color .4s; }
.card .go svg { width: 18px; height: 18px; stroke-width: 2; }
.card:hover .go { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateX(4px); }
.base { width: 100%; max-width: 1028px; display: flex; flex-direction: column; align-items: center; margin-top: 36px; }
.base .line { position: relative; width: 100%; height: 1px; background: var(--line); }
.base .flowline { position: absolute; inset: 0; opacity: .7; background-image: linear-gradient(90deg, rgba(23,181,173,0) 0%, rgba(23,181,173,.9) 50%, rgba(23,181,173,0) 100%); background-size: 160px 1px; background-repeat: repeat-x; animation: flow 3s linear infinite; }
.base .dot { position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.base .pill { margin-top: 18px; padding: 5px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.base .pill b { font-weight: var(--w-medium); color: var(--teal-700); }
.base .pill i { width: 1px; height: 10px; background: var(--line); }
.gate-foot { position: relative; padding: 0 0 20px; font-size: 12px; color: var(--faint); }
.gate-foot .wrap { display: flex; justify-content: space-between; gap: 16px; }

/* ===== 详情页 ===== */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; }
.hero .glow { position: absolute; left: 68%; top: 40%; width: 900px; height: 560px; border-radius: 999px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(23,181,173,.14) 0%, rgba(23,181,173,.05) 55%, rgba(23,181,173,0) 100%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 540px minmax(0, 1fr); gap: 72px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { margin: 0; font-family: var(--font-display); font-size: 56px; line-height: 66px; letter-spacing: -1.8px; font-weight: var(--w-medium); text-wrap: balance; }
.hero p { margin: 0; font-size: var(--t-18); line-height: var(--lh-18); color: var(--muted); text-wrap: pretty; }
.hero .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* 产品图(纯 CSS 示意) */
.shot { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-2xl); overflow: hidden; font-size: 11px; }
.shot-side { display: grid; grid-template-columns: 168px minmax(0, 1fr); height: 440px; }
.shot .side { background: var(--bg); border-right: 1px solid var(--line-soft); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.shot .side .t { font-size: 12px; font-weight: var(--w-medium); color: var(--ink); padding: 4px 8px 14px; }
.shot .side div:not(.t) { padding: 8px 10px; font-size: 12px; color: var(--muted-2); border-radius: 7px; }
.shot .side .on { background: var(--accent-soft); color: var(--teal-700); }
.shot .main { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.shot .bar { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: var(--w-medium); }
.shot .bar small { font-size: 12px; color: var(--muted-2); font-weight: var(--w-regular); margin-left: 6px; }
.shot .mini { height: 28px; padding: 0 11px; display: inline-flex; align-items: center; font-size: 11px; color: #fff; background: var(--accent); border-radius: 6px; font-weight: var(--w-regular); }
.shot .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shot .stat { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; }
.shot .stat span { display: block; font-size: 11px; color: var(--muted-2); }
.shot .stat b { display: block; font-family: var(--font-mono); font-size: 22px; font-weight: var(--w-light); margin-top: 4px; }
.shot .stat b small { font-size: 11px; color: var(--faint); }
.shot table { width: 100%; border-collapse: collapse; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.shot th { background: var(--bg); font-size: 10px; color: var(--muted-2); font-weight: var(--w-regular); text-align: left; padding: 8px 12px; }
.shot td { padding: 10px 12px; border-top: 1px solid var(--gray-100); color: var(--ink); }
.shot td.m { color: var(--ink-2); }
.pill { display: inline-flex; padding: 2px 8px; border: 1px solid; border-radius: 999px; font-size: 10px; }
.pill.info { border-color: var(--info-line); color: var(--info); }
.pill.ok { border-color: var(--ok-line); color: var(--ok); }
.pill.warn { border-color: var(--warn-line); color: var(--warn); }
.pill.teal { border-color: var(--accent-line); color: var(--teal-700); }
.shot .tabs { height: 52px; padding: 0 22px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--muted-2); overflow: hidden; white-space: nowrap; }
.shot .tabs .t { font-weight: var(--w-medium); color: var(--ink); margin-right: 8px; }
.shot .tabs .on { color: var(--teal-700); border-bottom: 2px solid var(--accent); padding: 17px 0; }
.shot .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1; }
.shot .col { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.shot .col .h { font-size: 11px; color: var(--muted-2); display: flex; justify-content: space-between; }
.shot .col .it { border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px 10px; }
.shot .col .it b { display: block; font-size: 11px; font-weight: var(--w-medium); }
.shot .col .it span { display: block; font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.shot .col .it.teal { border-color: var(--accent-line); background: var(--accent-soft); }
.shot .col .it.teal b, .shot .col .it.teal span { color: var(--teal-700); }
.shot .col .it.warn { border-color: var(--warn-line); background: var(--warn-bg); }
.shot .col .it.warn b, .shot .col .it.warn span { color: var(--warn); }

/* 六步 */
.steps { padding: 0 0 88px; }
.steps .wrap > div { border-top: 1px solid var(--line); padding-top: 40px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.step b { font-size: 15px; font-weight: var(--w-medium); }
.step span { font-size: 13px; line-height: 20px; color: var(--muted-2); }

/* 能力 */
.caps { padding: 0 0 96px; }
.caps .head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.caps h2 { margin: 0; font-family: var(--font-display); font-size: 40px; line-height: 50px; letter-spacing: -1.2px; font-weight: var(--w-medium); }
.caps .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cap { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .5s cubic-bezier(.2,.75,.2,1), border-color .5s, box-shadow .5s; }
.cap:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--sh-lg); }
.cap .top { display: flex; align-items: center; justify-content: space-between; }
.cap .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.cap .tag { padding: 3px 10px; border: 1px solid; border-radius: 999px; font-size: 11px; }
.cap .tag.purple { border-color: var(--purple-line); color: var(--purple); }
.cap .tag.teal { border-color: var(--accent-line); color: var(--teal-700); }
.cap h3 { margin: 0; font-size: 17px; font-weight: var(--w-medium); }
.cap p { margin: 0; font-size: 14px; line-height: 23px; color: var(--muted); }

/* CTA */
.cta { padding: 0 0 96px; }
.cta .box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 56px 64px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 32px; line-height: 42px; letter-spacing: -0.9px; font-weight: var(--w-medium); }
.cta p { margin: 0; font-size: 16px; line-height: 26px; color: var(--muted); }
.cta .side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.cta .contact { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.cta .contact a:hover { color: var(--ink); }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .wrap { padding: 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 48px; line-height: 58px; }
  .steps .wrap > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .caps .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; max-width: 560px; width: 100%; }
  .gate-title h1 { font-size: 52px; line-height: 60px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav { height: 60px; }
  .nav-links { display: none; }
  .brand .sep, .brand .sub { display: none; }
  .btn { height: 46px; width: 100%; }
  .btn-sm { height: 34px; width: auto; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 36px; line-height: 44px; letter-spacing: -1.1px; }
  .hero p { font-size: 15px; line-height: 25px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .shot-side { grid-template-columns: 1fr; height: auto; }
  .shot .side { display: none; }
  .shot .main { padding: 16px; }
  .shot .stat b { font-size: 18px; }
  .shot table th:nth-child(2), .shot table td:nth-child(2) { display: none; }
  .shot .cols { grid-template-columns: 1fr; }
  .steps { padding-bottom: 40px; }
  .steps .wrap > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding-top: 32px; }
  .caps { padding-bottom: 40px; }
  .caps h2 { font-size: 26px; line-height: 34px; }
  .caps .grid { grid-template-columns: 1fr; gap: 10px; }
  .cap { padding: 18px; flex-direction: row; gap: 14px; }
  .cap .top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cap .icon { width: 36px; height: 36px; flex-shrink: 0; }
  .cap .body { display: flex; flex-direction: column; gap: 4px; }
  .cap h3 { font-size: 15px; }
  .cap p { font-size: 13px; line-height: 20px; }
  .cta { padding-bottom: 40px; }
  .cta .box { flex-direction: column; align-items: stretch; padding: 28px 22px; gap: 14px; }
  .cta h2 { font-size: 24px; line-height: 32px; }
  .cta .side { align-items: stretch; }
  .cta .contact { text-align: center; }
  .footer { padding: 24px 0; }
  .footer .wrap { flex-direction: column; }
  .footer .right { text-align: left; }
  .gate-main { gap: 28px; padding: 16px 0 24px; }
  .gate-title h1 { font-size: 40px; line-height: 46px; letter-spacing: -1.2px; }
  .gate-title p { font-size: 14px; line-height: 22px; }
  .card { padding: 24px; gap: 14px; border-radius: 18px; }
  .card h2 { font-size: 24px; line-height: 30px; }
  .card p { font-size: 14px; line-height: 22px; }
  .card .tags { display: none; }
  .card .foot { justify-content: flex-end; }
  .base { margin-top: 8px; }
  .base .dot { display: none; }
  .gate-foot .wrap { flex-direction: column; gap: 4px; text-align: center; }
}

/* ===== 联系方式弹层 ===== */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(19,20,23,.45); backdrop-filter: blur(4px); }
.modal-box { position: relative; width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px 40px 32px; box-shadow: var(--sh-3xl); animation: rise .4s cubic-bezier(.2,.75,.2,1) both; }
.modal-box h2 { margin: 12px 0 8px; font-size: 26px; line-height: 34px; letter-spacing: -0.7px; font-weight: var(--w-medium); }
.modal-box p { margin: 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.modal-x { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color .3s, border-color .3s; }
.modal-x:hover { color: var(--ink); border-color: var(--accent); }
.modal-x .ic { width: 16px; height: 16px; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.contact-list li span { font-size: 13px; color: var(--muted-2); }
.contact-list li a { font-family: var(--font-mono); color: var(--ink); }
.contact-list li a:hover { color: var(--accent-2); }
.contact-list li em { font-style: normal; color: var(--ink-2); line-height: 24px; }
@media (max-width: 640px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { max-width: none; border-radius: 20px 20px 0 0; padding: 28px 22px 32px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}
