/* zhaopengyou.club: one stylesheet for every page. Colour tokens match the company site (website/public). */
:root {
  --ink: #0f1820; --ink-2: #16222c; --ink-line: #2a3a47;
  --on-ink: #eef2f4; --on-ink-muted: #9fb0bb;
  --paper: #f7f4ee; --surface: #ffffff; --text: #17212a; --muted: #56636e; --line: #e4dfd4;
  --red: #e0566b; --red-text: #b73149; --gold: #f2a93b; --gold-text: #8a5500;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0b1116; --surface: #141e26; --text: #e8edf0; --muted: #9aa9b4; --line: #25333e; --red-text: #f07a8d; --gold-text: #f2b45a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--text); font: 17px/1.7 var(--font-body); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
/* In English headings 找朋友 stays on one line. */
html[lang="en"] h1, html[lang="en"] h2 { word-break: keep-all; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: var(--gold); color: #1c1305; padding: 8px 14px; font-weight: 700; }
.red { color: var(--red-text); }

/* The legal pages carry both languages in one URL; <html lang> shows one. The other pages are one language each. */
html.bilingual[lang="en"] [lang^="zh"] { display: none !important; }
html.bilingual:not([lang="en"]) [lang="en"] { display: none !important; }

/* Header and footer */
.nav { background: var(--ink); color: var(--on-ink); border-bottom: 1px solid var(--ink-line); }
.nav .bar { max-width: 1040px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 3px; font-size: 11px; line-height: 1; }
.brand-mark span:nth-child(odd) { color: #1a1a1a; }
.brand-mark span:nth-child(even) { color: #c23a51; }
.lang-btn { margin-left: auto; order: 2; border: 1px solid var(--ink-line); background: var(--ink-2); color: var(--on-ink); font: 600 .85rem/1.4 var(--font-body); padding: 8px 14px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.nav-links { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: .93rem; }
.nav-links a { color: var(--on-ink-muted); text-decoration: none; padding: 5px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
@media (min-width: 760px) {
  .nav-links { order: 2; width: auto; margin-left: auto; }
  .lang-btn { order: 3; margin-left: 0; }
  .bilingual .lang-btn { margin-left: auto; }
}
footer { background: var(--ink); color: var(--on-ink-muted); font-size: .9rem; }
footer .bar { max-width: 1040px; margin: 0 auto; padding: 28px 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Text pages (articles and the legal pages) */
main { display: block; }
.doc, .bilingual main { max-width: 820px; margin: 0 auto; padding: 36px 20px 72px; }
h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); margin: 0 0 12px; }
h2 { font-size: 1.35rem; margin: 40px 0 12px; }
h3 { font-size: 1.05rem; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 1.3em; }
li { margin: 5px 0; }
.lead { font-size: 1.12rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.meta { color: var(--muted); font-size: .95rem; margin: 0 0 28px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 0 0 8px; }
.summary ul { margin: 0; }
.note { border-left: 4px solid var(--gold); padding: 4px 0 4px 14px; color: var(--muted); }
.steps li { margin: 8px 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 20px 0; font-size: .96rem; }
.toc ul { margin: 0; columns: 2 220px; }
.howto { list-style: none; padding: 0; }
.howto > li { margin: 0; }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.links { margin-top: 32px; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 11px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }
table.dense { font-size: .88rem; }
table.dense th, table.dense td { padding: 6px 8px; }
table.dense td { white-space: nowrap; }

/* Home page */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
main > section { padding: 48px 0; }
main > section > .wrap > h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 0; }
.wide { max-width: 720px; }
.hero { background: radial-gradient(900px 500px at 85% 10%, #1b3340 0%, transparent 60%), var(--ink); color: var(--on-ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.2rem); line-height: 1.1; }
.sub-h1 { display: block; font-size: clamp(1.2rem, 4vw, 1.7rem); color: var(--gold); font-weight: 600; margin-top: 6px; }
.hero .lead { color: var(--on-ink-muted); max-width: 32em; }
.hero-note { color: var(--on-ink-muted); font-size: .92rem; margin: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; }
.btn-primary { background: var(--gold); color: #1c1305; }
.btn-ghost { border-color: currentColor; }
.call-demo { margin: 0; background: radial-gradient(ellipse at 50% 30%, #1d5b4a 0%, #123d32 80%); border: 8px solid #2b2119; border-radius: 28px; padding: 24px 18px; text-align: center; }
.call-line { background: rgba(5, 15, 12, .6); border-radius: 999px; display: inline-block; padding: 6px 18px; }
.call-line b { color: var(--gold); }
.call-line .red, .pc .red { color: #f58a9b; }
.hand { display: flex; justify-content: center; gap: 8px; margin: 8px 0 18px; }
.pc { width: 58px; height: 82px; padding-top: 19px; border-radius: 8px; background: #fff; color: #1b1b1b; display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.2; text-align: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.call-demo .pc .red { color: #b73149; }
.pc.called { box-shadow: 0 0 0 3px var(--gold), 0 0 22px var(--gold); transform: translateY(-8px); }
.call-demo figcaption { color: #dce8e4; font-size: .94rem; }
.cards3, .cards4 { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 20px 0; }
.cards3 li, .cards4 li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 0; }
.cards3 h3, .cards4 h3 { margin-top: 0; }
.cards3 p:last-child, .cards4 p:last-child { margin-bottom: 0; color: var(--muted); }
.status { font-size: .86rem; font-weight: 700; color: var(--gold-text); margin-bottom: 6px; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.join { background: var(--ink); color: var(--on-ink); border-radius: 20px; padding: 8px 24px 6px; }
.shots { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: center; margin-top: 28px; }
.shots figure { margin: 0; width: min(280px, 100%); }
.shots figure.wide-shot { width: min(640px, 100%); }
.shots img { border-radius: 18px; border: 6px solid #04080b; background: #04080b; width: 100%; }
.shots figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* 404 */
.lost { text-align: center; padding: 80px 20px; }
