/* 落地页基础样式（覆盖 index/install/r/about/privacy/terms 五张页） */
:root {
  --brand: #FF5A33;
  --brand-dark: #F65835;
  --ink: #1a1a2e;
  --ink-2: #4a4a5e;
  --muted: #8a8f99;
  --line: #ececf0;
  --bg: #ffffff;
  --bg-soft: #fafafb;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(20,20,40,.04), 0 2px 6px rgba(20,20,40,.04);
  --shadow: 0 6px 20px rgba(20,20,40,.06), 0 2px 6px rgba(20,20,40,.04);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
       backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
       border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--brand);
           color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
           transition: transform .15s, box-shadow .15s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,90,51,.3); }

/* Hero (index.html) */
.hero { position: relative; overflow: hidden;
        background: linear-gradient(135deg, #fff8f5 0%, #ffeee5 60%, #ffdfd0 100%);
        padding: 80px 0 100px; }
.hero::before { content:""; position:absolute; top:-20%; right:-10%; width:600px; height:600px;
                background: radial-gradient(circle, rgba(255,90,51,.16) 0%, transparent 70%); pointer-events: none; }
.hero::after { content:""; position:absolute; bottom:-30%; left:-15%; width:500px; height:500px;
               background: radial-gradient(circle, rgba(246,88,53,.10) 0%, transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 54px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero h1 .accent { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
                   -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { font-size: 20px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.55; }
.hero .lead-sub { font-size: 15px; color: var(--muted); margin: 0 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px;
       font-weight: 600; font-size: 15px; transition: transform .15s, box-shadow .15s, background .15s;
       cursor: pointer; border: 0; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,90,51,.35); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.btn .ico { font-size: 18px; }
.platforms { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 14px; }
.platforms .dot { width: 4px; height: 4px; background: var(--muted); border-radius: 50%; opacity: .4; }

/* Phone mockup */
.hero-art { display: flex; justify-content: center; align-items: center; }
.phone { position: relative; width: 280px; height: 560px; background: #1a1a2e; border-radius: 42px;
         padding: 14px; box-shadow: 0 30px 60px rgba(20,20,40,.25); }
.phone::before { content:""; position:absolute; top:14px; left:50%; transform:translateX(-50%);
                 width:110px; height:24px; background:#1a1a2e; border-radius:0 0 14px 14px; z-index:2; }
.phone-screen { width: 100%; height: 100%; background: linear-gradient(180deg, #fff 0%, #fff5f1 100%);
                border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; }
.phone-head { padding: 50px 18px 14px; border-bottom: 1px solid var(--line);
              display: flex; align-items: center; gap: 10px; }
.phone-head img { width: 36px; height: 36px; border-radius: 8px; }
.phone-head .name { font-size: 14px; font-weight: 600; }
.phone-head .meta { font-size: 11px; color: var(--muted); }
.phone-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.4; }
.bubble.them { background: #fff; color: var(--ink); align-self: flex-start;
               border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.bubble.me { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

/* Section common */
section { padding: 96px 0; }
.s-head { text-align: center; margin-bottom: 56px; }
.s-tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand);
         letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.s-title { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.s-sub { font-size: 17px; color: var(--ink-2); max-width: 600px; margin: 0 auto; }

/* Features */
.features { background: var(--bg-soft); }
.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.f-card { background: #fff; padding: 32px 28px; border-radius: var(--radius);
          border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.f-icon { display: inline-flex; align-items: center; justify-content: center;
          width: 52px; height: 52px; border-radius: 14px;
          background: linear-gradient(135deg, #fff5f1 0%, #ffe5d6 100%);
          font-size: 26px; margin-bottom: 18px; }
.f-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.f-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }

/* Footer */
.site-footer { background: #1a1a2e; color: #a0a8b8; padding: 48px 0 32px; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; }
.foot-brand img { width: 32px; height: 32px; border-radius: 8px; }
.foot-brand .name { font-weight: 600; font-size: 17px; }
.foot-desc { font-size: 14px; line-height: 1.7; color: #7a8090; max-width: 280px; }
.foot-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; color: #7a8090; padding: 5px 0; }
.foot-col a:hover { color: #fff; }
.foot-bot { border-top: 1px solid #2a2a4e; margin-top: 36px; padding-top: 24px;
            text-align: center; font-size: 13px; color: #5a6070; }

/* ─── install.html / r.html ─────────────────────────────── */
.install-page, .r-page {
  background: linear-gradient(180deg, #fff8f5 0%, #fff 60%);
  min-height: 100vh;
  padding: max(env(safe-area-inset-top, 0), 20px) 20px max(env(safe-area-inset-bottom, 0), 20px);
}
.install-page .wrap, .r-page .wrap {
  max-width: 480px; margin: 0 auto; padding-top: 32px; text-align: center;
}
.install-page .icon, .r-page .icon {
  width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #FFAC8B 100%);
  display: flex; align-items: center; justify-content: center; font-size: 48px;
  color: #fff; box-shadow: 0 10px 24px rgba(255,90,51,0.25); overflow: hidden;
}
.install-page .icon img, .r-page .icon img { width: 100%; height: 100%; object-fit: cover; }
.install-page .icon.icon-fallback::before { content: "🚀"; font-size: 48px; }
.install-page h1 { font-size: 24px; margin: 10px 0 8px; font-weight: 700; letter-spacing: 0.5px; }
.install-page .subtitle {
  display: inline-block; font-size: 13px; color: var(--muted);
  padding: 6px 14px; background: #fff7f3; border-radius: 20px; margin-bottom: 24px;
}

/* 工作区凭证卡 */
.workspace-card {
  background: #fff7f3; border: 1px dashed #ffc6b3;
  border-radius: 14px; padding: 18px 16px; margin: 16px 0;
  text-align: center;
}
.workspace-card .ws-tip { font-size: 13px; color: var(--ink-2); margin: 0 0 12px; }
.workspace-card .eid-bigtext {
  font-family: Menlo, Consolas, monospace;
  font-size: 32px; font-weight: 800; color: var(--brand-dark);
  letter-spacing: 4px; padding: 8px 12px; background: #fff;
  border-radius: 10px; display: inline-block; margin-bottom: 10px;
}
.workspace-card .btn-copy {
  display: inline-block; padding: 8px 18px; background: var(--brand); color: #fff;
  border: 0; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.workspace-card .ws-hint { font-size: 12px; color: var(--brand-dark); margin: 12px 0 0; }

/* 下载卡 */
.download-card {
  background: #fff; border-radius: 14px; padding: 24px 18px; margin: 18px 0;
  box-shadow: 0 4px 18px rgba(20,20,40,0.06);
}
.download-card .version-info { margin-bottom: 16px; }
.download-card .platform-badge {
  display: inline-block; padding: 4px 10px; background: var(--brand); color: #fff;
  border-radius: 6px; font-size: 12px; font-weight: 600; margin-right: 8px;
}
.download-card .version-text { font-size: 13px; color: var(--muted); }
.btn-primary {
  display: block; width: 100%; padding: 14px 18px;
  background: linear-gradient(135deg, var(--brand) 0%, #FF8366 100%);
  color: #fff; border: 0; border-radius: 10px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 16px rgba(255,90,51,0.25);
}
.btn-primary:active { transform: translateY(1px); }
.more-channels { margin-top: 14px; }
.more-toggle { display: inline-block; font-size: 13px; color: var(--brand); cursor: pointer; }
.channel-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.channel-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--bg-soft); border-radius: 8px;
  font-size: 14px; color: var(--ink);
}
.channel-item:hover { background: #fff7f3; }
.channel-item .ch-icon { font-size: 11px; color: var(--muted); }
.fallback-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
.fallback-hint a { color: var(--brand); font-weight: 500; }

.step-card {
  background: #fff; border-radius: 14px; padding: 16px 18px; margin-top: 14px;
  text-align: left; box-shadow: 0 2px 12px rgba(20,20,40,0.05);
}
.step-card .step-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.step-card .step-body { font-size: 13px; color: var(--ink-2); line-height: 1.65; }

.install-footer {
  text-align: center; margin-top: 32px; padding: 20px;
  font-size: 12px; color: var(--muted);
}
.install-footer a { color: var(--brand); }

.loading { padding: 40px 0; color: var(--muted); font-size: 14px; }

/* 微信拦截层 */
.wechat-blocker {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 60px 30px 0; color: #fff;
}
.wechat-blocker .overlay { max-width: 280px; text-align: right; }
.wechat-blocker .arrow { font-size: 64px; color: #FFC107; margin-bottom: 8px; }
.wechat-blocker .primary { font-size: 16px; line-height: 1.6; margin: 0 0 12px; }
.wechat-blocker .primary code {
  background: rgba(255,255,255,0.15); padding: 2px 8px; border-radius: 4px;
  font-family: Menlo, monospace; font-size: 18px;
}
.wechat-blocker .primary strong { color: #FFC107; }
.wechat-blocker .hint { font-size: 13px; color: #bbb; }

/* r.html */
.r-page .r-msg { font-size: 16px; color: var(--ink); margin-top: 16px; }
.r-page .r-manual { margin-top: 20px; text-align: left; padding: 16px; background: #fff7f3; border-radius: 12px; }
.r-page .r-hint { font-size: 13px; color: var(--brand-dark); margin-bottom: 10px; }
.r-page .r-link-item {
  display: block; padding: 10px 14px; margin-top: 6px; background: #fff;
  border-radius: 8px; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); transition: border-color .15s;
}
.r-page .r-link-item:hover { border-color: var(--brand); color: var(--brand); }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .hero-in { gap: 40px; }
  .phone { width: 240px; height: 480px; }
  .s-title { font-size: 32px; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 60px; }
  .hero-in { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 17px; }
  .hero-cta { justify-content: center; }
  .platforms { justify-content: center; }
  .s-title { font-size: 28px; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .f-card { padding: 24px 20px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16px; }
  .nav-cta { padding: 6px 12px; font-size: 13px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .f-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .install-page h1 { font-size: 20px; }
  .install-page .icon { width: 80px; height: 80px; }
  .workspace-card .eid-bigtext { font-size: 28px; }
}
@media (prefers-color-scheme: dark) {
  .install-page, .r-page { background: linear-gradient(180deg, #1c1a18 0%, #181618 60%); color: #e0e0e0; }
  .install-page .subtitle { background: #3a2a25; color: #b0b0b0; }
  .step-card, .download-card { background: #22201f; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
  .step-card .step-title { color: #e0e0e0; }
  .step-card .step-body { color: #a0a0a0; }
  .channel-item { background: #2a2826; color: #e0e0e0; }
}
