/* 租租Mac — site styles. System fonts only (Google Fonts is unreachable in mainland China). */
:root {
  color-scheme: light;
  --blue: #1F5EFF;
  --blue-600: #1546E0;
  --blue-700: #0F37B8;
  --blue-50: #EEF3FF;
  --blue-100: #DCE6FF;
  --mint: #12B886;
  --ink: #0B1220;
  --ink-2: #3D4757;
  --ink-3: #6B7585;
  --line: #E4E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --navy: #0A1633;
  --warn: #D97706;
  --danger: #DC2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11,18,32,.04), 0 8px 24px rgba(11,18,32,.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

/* language switching: content in both languages, one hidden */
html.lang-en .l-zh { display: none !important; }
html:not(.lang-en) .l-en { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.title { font-size: clamp(28px, 4vw, 40px); font-weight: 750; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.brand b { color: var(--blue); font-weight: 750; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--ink-2); font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn { background: none; border: 1px solid var(--line); height: 34px; padding: 0 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
.mobile-nav { display: none; }
.announce { background: var(--blue); color: #fff; font-size: 14px; text-align: center; padding: 8px 20px; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #DCE6FF 0%, rgba(220,230,255,0) 60%), linear-gradient(#fff, #F7F9FF); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(31,94,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(31,94,255,.06) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 19px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
.hero-points span::before { content: "✓"; color: var(--mint); font-weight: 700; margin-right: 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--blue-100); color: var(--blue-700); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(18,184,134,.18); }

.hero-visual { position: relative; }
.device-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(21,70,224,.25), var(--shadow); padding: 28px; }
.device-art { display: grid; place-items: center; padding: 24px 0 8px; }
.hero-img { width: 100%; max-height: 260px; object-fit: contain; }
.device-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.device-meta div { background: var(--bg-soft); border-radius: 12px; padding: 12px; }
.device-meta b { display: block; font-size: 15px; }
.device-meta span { font-size: 12px; color: var(--ink-3); }
.status-chip { position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 14px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.status-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.status-chip.a { top: -14px; right: 24px; }
.status-chip.b { bottom: -16px; left: 24px; }
.terminal { background: var(--navy); color: #C9D6FF; border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.7; margin-top: 18px; overflow-x: auto; }
.terminal .p { color: #7CF0C5; }
.terminal .c { color: #6B7DB3; }

/* grids & cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 19px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }
.head-block { margin-bottom: 44px; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stats div { padding: 22px 24px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 26px; font-weight: 750; color: var(--ink); }
.stats span { font-size: 14px; color: var(--ink-3); }

/* scenes */
.scene { padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.scene ul { margin: 12px 0 0; padding: 0; list-style: none; }
.scene li { padding: 7px 0; color: var(--ink-2); border-top: 1px dashed var(--line); font-size: 15px; }
.scene li:first-child { border-top: 0; }
.scene .tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); margin-bottom: 14px; }

/* pricing */
.seg { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; height: 38px; padding: 0 16px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11,18,32,.12); }
.seg button small { color: var(--mint); font-weight: 700; margin-left: 4px; }
.price-controls { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue); box-shadow: 0 24px 50px -24px rgba(31,94,255,.45); }
.plan .badge { position: absolute; top: -13px; left: 30px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .spec { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .price b { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.plan .price span { color: var(--ink-3); }
.plan .sub { font-size: 14px; color: var(--ink-3); min-height: 22px; margin-bottom: 18px; }
.plan .sub s { margin-right: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.stock i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.stock.out i { background: var(--warn); }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.compare th { font-weight: 600; color: var(--ink-3); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.compare td:first-child { color: var(--ink-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.step h4 { font-size: 17px; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 24px; font-weight: 400; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; color: var(--ink-2); white-space: pre-line; }

/* cta band */
.cta-band { background: linear-gradient(135deg, var(--blue-600), var(--blue) 55%, #3D8BFF); color: #fff; border-radius: 24px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 8px; }
.cta-band p { margin: 0; opacity: .85; }
.cta-band .btn-primary { background: #fff; color: var(--blue-700); }
.cta-band .btn-primary:hover { background: var(--blue-50); }

/* page header */
.page-head { padding: 64px 0 40px; background: linear-gradient(#F7F9FF, #fff); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.page-head .lead { margin: 0; }
.page-head.center .lead { margin: 0 auto; }

/* forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field label i { color: var(--danger); font-style: normal; }
.input, .select, .textarea { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,94,255,.12); }
.msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; display: none; }
.msg.show { display: block; }
.msg.ok { background: #E8F8F1; color: #0B7A57; }
.msg.err { background: #FDECEC; color: #B42318; }
.msg.info { background: var(--blue-50); color: var(--blue-700); }

/* docs/guide */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.doc nav { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; }
.doc nav a { color: var(--ink-2); padding: 7px 12px; border-radius: 8px; font-size: 15px; }
.doc nav a:hover { background: var(--bg-soft); color: var(--ink); }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 48px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose pre { background: var(--navy); color: #C9D6FF; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-family: var(--mono); font-size: 14px; }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
.prose pre code { background: none; padding: 0; }
.callout { border-left: 3px solid var(--blue); background: var(--blue-50); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--ink-2); margin: 18px 0; }
.callout.warn { border-color: var(--warn); background: #FFF7E8; }

/* checkout & portal */
.checkout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 28px; align-items: start; }
.opt-group { display: grid; gap: 10px; }
.opt-group.cols2 { grid-template-columns: 1fr 1fr; }
.opt-group.cols3 { grid-template-columns: repeat(3, 1fr); }
.opt { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; text-align: left; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--blue-100); }
.opt.on { border-color: var(--blue); background: var(--blue-50); }
.opt b { display: block; font-size: 15px; }
.opt span { font-size: 13px; color: var(--ink-3); }
.summary { position: sticky; top: 88px; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; color: var(--ink-2); }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; color: var(--ink); font-weight: 700; }
.pay-box { text-align: center; }
.qr { width: 220px; height: 220px; margin: 12px auto; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink-3); font-size: 13px; padding: 16px; overflow: hidden; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.order-no { font-family: var(--mono); background: var(--bg-soft); padding: 4px 10px; border-radius: 8px; font-weight: 700; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 16px; cursor: pointer; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--blue); border-color: var(--blue); }
.mac-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.mac-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; word-break: break-all; }
.copy { cursor: pointer; color: var(--blue); font-size: 12px; margin-left: 6px; border: 0; background: none; }
.badge-s { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); white-space: nowrap; }
.badge-s.blue { background: var(--blue-50); color: var(--blue-700); }
.badge-s.green { background: #E8F8F1; color: #0B7A57; }
.badge-s.amber { background: #FFF4E0; color: #A15C00; }
.badge-s.red { background: #FDECEC; color: #B42318; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 16px; }
.thread { display: grid; gap: 10px; margin: 12px 0; }
.bubble { padding: 10px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; white-space: pre-wrap; }
.bubble.me { background: var(--blue-50); }
.bubble small { display: block; color: var(--ink-3); font-size: 12px; margin-bottom: 2px; }

.preview-bar { position: fixed; left: 16px; bottom: 16px; z-index: 60; background: var(--navy); color: #fff; font-size: 12px; padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.preview-bar a { color: #9DBBFF; }

/* footer */
.site-footer { background: var(--navy); color: #AEB8D0; padding: 64px 0 32px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer h5 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.site-footer a { color: #AEB8D0; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 12px; line-height: 1.7; color: #7F8AA6; }

/* responsive */
@media (max-width: 960px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .menu-btn { display: block; }
  .site-header .wrap { justify-content: space-between; gap: 12px; }
  .mobile-nav.open { display: grid; padding: 8px 20px 16px; border-top: 1px solid var(--line); background: #fff; }
  .mobile-nav a { padding: 12px 4px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .g3, .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .doc { grid-template-columns: 1fr; }
  .doc nav { position: static; display: flex; flex-wrap: wrap; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .g2, .g3, .g4, .steps, .plans { grid-template-columns: 1fr; }
  .form .row, .opt-group.cols3 { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .status-chip.b { left: 8px; }
  .header-actions .btn-primary { height: 36px; padding: 0 12px; font-size: 14px; }
  .device-meta { grid-template-columns: repeat(3, 1fr); }
  .kv { grid-template-columns: 90px 1fr; }
}
