/* 轻库存 SaaS · 落地页 / 付费页 / 试用样式 */
:root {
  --ink: #101828;
  --ink-2: #344054;
  --land-bg: #f6f8fc;
}

/* ---------- 通用小件 ---------- */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-card.wide { max-width: 440px; position: relative; }
.auth-back { border: 0; background: none; color: var(--sub); font-size: 12px; cursor: pointer; padding: 0; margin-bottom: 18px; }
.auth-back:hover { color: var(--brand); }
.auth-switch { text-align: center; color: var(--sub); font-size: 13px; margin: 16px 0 0; }
.auth-switch a, .demo-tip a { color: var(--brand); cursor: pointer; font-weight: 500; }
.demo-tip { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #f7f9fc; color: var(--sub); font-size: 12px; text-align: center; line-height: 1.7; }
.auth-foot { text-align: center; color: var(--mute); font-size: 11px; margin: 18px 0 0; }
.plan-badge { position: absolute; top: -11px; right: 18px; background: linear-gradient(135deg, #ff9a3d, #ff6b35); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 20px; box-shadow: 0 4px 10px rgba(255, 107, 53, .3); }

/* ---------- 落地页 ---------- */
.land { min-height: 100vh; background: var(--land-bg); overflow: hidden; }
.land-nav {
  position: relative; z-index: 3;
  max-width: 1160px; margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between;
}
.land-brand { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.land-brand .brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.land-brand .brand-logo svg { width: 19px; height: 19px; }
.land-brand b { letter-spacing: .2px; }
.saas-tag { font-size: 10px; color: var(--brand); background: var(--brand-l); border-radius: 5px; padding: 2px 5px; font-weight: 600; letter-spacing: .5px; }
.land-links { display: flex; align-items: center; gap: 26px; }
.land-links a { color: var(--ink-2); font-size: 13px; }
.land-links a:hover { color: var(--brand); }
.land-links .btn { margin-left: 4px; }

.land-hero {
  max-width: 1160px; margin: 0 auto; padding: 56px 28px 76px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative;
}
.land-hero::before {
  pointer-events: none;
  content: ''; position: absolute; width: 700px; height: 700px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, .12), rgba(47, 107, 255, 0) 62%); z-index: 0;
}
.hero-copy { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brand);
  background: #eaf0ff; border: 1px solid #dbe6ff; padding: 5px 11px; border-radius: 20px; font-weight: 500;
}
.hero-copy h1 { font-size: 46px; line-height: 1.18; margin: 18px 0 16px; color: var(--ink); letter-spacing: -.5px; font-weight: 750; }
.hero-copy h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero-copy h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px; background: rgba(47, 107, 255, .1); z-index: -1; border-radius: 6px; }
.hero-copy > p { color: #5b6577; font-size: 15px; line-height: 1.9; max-width: 470px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn.lg { padding: 13px 22px; font-size: 15px; border-radius: 11px; }
.hero-demo { margin-top: 22px; font-size: 12px; color: #7a8494; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-demo b { color: var(--ink-2); background: #fff; border: 1px dashed #d6deea; border-radius: 6px; padding: 2px 7px; font-family: ui-monospace, monospace; font-size: 12px; }
.hero-demo span { color: #98a2b3; }

.hero-visual { position: relative; z-index: 1; }
.browser-frame {
  background: #fff; border-radius: 16px; padding: 10px 10px 12px; box-shadow: 0 30px 80px rgba(37, 59, 105, .18), 0 2px 6px rgba(37, 59, 105, .06);
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg); border: 1px solid #e6ecf5;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 9px; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #dfe4ec; }
.browser-bar i:first-child { background: #ff6b5f; } .browser-bar i:nth-child(2) { background: #ffbd2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 8px; font-size: 10px; color: #98a2b3; background: #f4f6fa; border-radius: 5px; padding: 3px 9px; }
.browser-frame img { width: 100%; display: block; border-radius: 8px; border: 1px solid #eef1f6; }
.float-card {
  position: absolute; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border: 1px solid #e9eef7;
  box-shadow: 0 12px 30px rgba(37, 59, 105, .12); border-radius: 10px; padding: 9px 13px; font-size: 12px; color: var(--ink-2);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.float-a { left: -26px; bottom: 40px; animation: float 5s ease-in-out infinite; }
.float-b { right: -16px; top: 54px; animation: float 6s ease-in-out infinite .8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); box-shadow: 0 0 0 3px rgba(18, 185, 129, .12); }
.dot.blue { background: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }

.land-section { max-width: 1160px; margin: 0 auto; padding: 64px 28px; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head span { font-size: 11px; color: var(--brand); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.section-head h2 { font-size: 30px; color: var(--ink); margin: 9px 0 10px; letter-spacing: -.3px; }
.section-head p { color: #6b7280; font-size: 14px; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: #fff; border: 1px solid #edf1f7; border-radius: 14px; padding: 24px 22px; transition: .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(37, 59, 105, .08); border-color: #dfe8f8; }
.feature-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-l); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; margin-bottom: 7px; color: var(--ink); }
.feature-card p { margin: 0; color: #6b7280; font-size: 13px; line-height: 1.8; }

.pricing-section { padding-top: 46px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 22px; justify-content: center; }
.plan { position: relative; background: #fff; border: 1px solid #e8edf5; border-radius: 16px; padding: 26px 24px 24px; }
.plan.hot { border-color: #ffc9a8; box-shadow: 0 18px 40px rgba(255, 107, 53, .1); }
.plan-name { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.plan-price { margin: 10px 0 4px; color: var(--ink); }
.plan-price small { font-size: 16px; font-weight: 600; } .plan-price b { font-size: 40px; font-weight: 800; letter-spacing: -1px; } .plan-price span { font-size: 12px; color: #98a2b3; margin-left: 3px; }
.plan-desc { color: #98a2b3; font-size: 12px; }
.plan ul { list-style: none; margin: 20px 0; padding: 0; border-top: 1px dashed #edf0f5; padding-top: 16px; }
.plan li { font-size: 12.5px; color: #5b6577; line-height: 2.1; display: flex; gap: 8px; align-items: center; }
.plan li::before { content: '✓'; color: var(--green); font-weight: 700; }
.price-note { text-align: center; color: #98a2b3; font-size: 12px; margin: 26px 0 0; }

.trial-section { padding-top: 10px; }
.trial-card {
  background: linear-gradient(120deg, #1f4fd8, #2f6bff 55%, #4d86ff); color: #fff; border-radius: 20px;
  padding: 40px 44px; display: flex; align-items: center; gap: 30px; justify-content: space-between;
  box-shadow: 0 26px 60px rgba(47, 107, 255, .25); position: relative; overflow: hidden;
}
.trial-card::after { content: ''; position: absolute; width: 340px; height: 340px; right: -70px; top: -120px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.trial-card .hero-tag { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; }
.trial-card h2 { font-size: 26px; margin: 12px 0 10px; }
.trial-card p { color: rgba(255, 255, 255, .82); font-size: 13.5px; line-height: 1.9; margin: 0 0 6px; max-width: 640px; }
.trial-card .muted { color: rgba(255, 255, 255, .55); }
.trial-card .btn { background: #fff; color: var(--brand); box-shadow: 0 8px 20px rgba(0, 0, 0, .12); flex: none; position: relative; z-index: 1; }
.land-foot { max-width: 1160px; margin: 0 auto; padding: 30px 28px 46px; border-top: 1px solid #e8edf5; display: flex; align-items: center; gap: 18px; color: #98a2b3; font-size: 12px; flex-wrap: wrap; }
.land-foot .land-brand { font-size: 14px; color: var(--ink-2); }
.land-foot .brand-logo.sm { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
.land-foot a { margin-left: auto; color: #7a8494; }
.land-foot a:hover { color: var(--brand); }

/* ---------- 付费页 ---------- */
.pay-loading { min-height: 70vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--sub); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #dbe4f3; border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-page { min-height: 100vh; background: radial-gradient(900px 420px at 50% -10%, #e6eeff, rgba(246, 248, 252, 0) 70%), var(--land-bg); }
.pay-nav { max-width: 1080px; margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; }
.pay-nav-right { display: flex; align-items: center; gap: 14px; }
.pay-main { max-width: 860px; margin: 0 auto; padding: 34px 28px 70px; }
.pay-head { text-align: center; margin-bottom: 34px; }
.pay-head h1 { font-size: 32px; color: var(--ink); margin: 14px 0 10px; letter-spacing: -.5px; }
.pay-head p { color: #6b7280; font-size: 13.5px; line-height: 1.8; margin: 0; }
.pay-plans .plan { box-shadow: 0 8px 30px rgba(37, 59, 105, .06); }
.plans-modal { padding: 2px 0 6px; }
.plans-modal-head { text-align: center; margin-bottom: 20px; }
.plans-modal-head p { color: #6b7280; font-size: 12.5px; line-height: 1.8; margin: 10px 0 0; }
.plans-modal-grid { max-height: none; }
.plans-modal .plan { padding: 20px 18px 18px; border-radius: 14px; }
.plans-modal .plan-name { font-size: 15px; }
.plans-modal .plan-price b { font-size: 28px; }
.plans-modal .plan ul { margin: 12px 0 14px; }
.plans-modal .plan li { font-size: 12px; margin: 5px 0; }
.plans-note { margin: 16px 0 6px; gap: 16px; font-size: 11.5px; }
.plans-selected-tip { text-align: center; color: #2f6bff; background: #eef3ff; border: 1px solid #dbe7ff; border-radius: 8px; padding: 8px 10px; font-size: 12px; margin: 8px 0; }
.plans-orders { margin-top: 14px; padding: 12px 14px; }
.plans-orders h3 { font-size: 12px; }
.plans-invite { margin-top: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.plans-invite h3 { font-size: 14px; margin: 6px 0 4px; }
.plans-invite p { font-size: 11.5px; margin: 0; }
.plans-invite .btn { flex: 0 0 auto; }
.pay-note { display: flex; justify-content: center; gap: 26px; margin: 26px 0 8px; color: #8b95a5; font-size: 12px; flex-wrap: wrap; }
.pay-note span::before { content: '·'; margin-right: 8px; color: var(--brand); font-weight: 700; }
.pay-orders { margin-top: 34px; background: #fff; border: 1px solid #edf1f7; border-radius: 14px; padding: 18px 22px; }
.pay-orders h3 { font-size: 14px; margin-bottom: 10px; color: var(--ink-2); }
.pay-order-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #f2f5f9; font-size: 12px; }
.pay-order-row:first-of-type { border-top: 0; }
.pay-order-row > div { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pay-amount { font-weight: 700; color: var(--ink); }
.pay-help { text-align: center; color: #98a2b3; font-size: 12px; margin-top: 26px; }

.pay-modal { text-align: center; }
.pay-modal-plan { font-size: 13px; color: var(--sub); }
.pay-modal-amount { font-size: 36px; font-weight: 800; color: var(--ink); margin: 2px 0 16px; letter-spacing: -1px; }
.pay-modal-amount small { font-size: 18px; margin-right: 2px; }
.qr-box { width: 208px; height: 208px; margin: 0 auto; border: 1px solid #e8edf5; border-radius: 12px; padding: 10px; display: flex; align-items: center; justify-content: center; background: #fff; }
.qr-box svg { width: 100%; height: 100%; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.mock-box { background: #fff8ec; border: 1px dashed #f5c26b; color: #8a5a00; border-radius: 10px; padding: 14px; font-size: 12.5px; line-height: 1.8; margin: 16px 0; }
.pay-modal-tip { color: #98a2b3; font-size: 12px; margin: 12px 0; }
.pay-modal .btn.ghost { margin-top: 4px; }

/* ---------- 试用标识 ---------- */
.side-demo { margin: 10px 0 2px; background: #fff7e8; border: 1px solid #f7dfb5; color: #9a6400; border-radius: 8px; padding: 7px 9px; font-size: 11px; line-height: 1.5; cursor: pointer; }
.demo-strip { background: #fff8ea; border-bottom: 1px solid #f5e4bf; color: #8a5a00; font-size: 12px; padding: 7px 24px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.demo-strip button { border: 0; background: none; color: #b06c00; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }
.demo-modal { text-align: left; }
.demo-modal-ico { width: 56px; height: 56px; border-radius: 14px; background: #fff7e8; color: #d48806; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.demo-modal p { font-size: 13.5px; line-height: 1.85; color: #4b5563; margin: 8px 0; }
.demo-modal .warn-text { background: #fff7f5; border-left: 3px solid #ff8a65; padding: 9px 11px; border-radius: 0 8px 8px 0; color: #8a3b22; }
.demo-modal strong { color: #d4380d; }

@media (max-width: 900px) {
  .land-hero { grid-template-columns: 1fr; gap: 34px; padding-top: 30px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .browser-frame { transform: none; }
  .float-a { left: 8px; bottom: -10px; } .float-b { right: 4px; top: -12px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .trial-card { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 600px) {
  .land-nav { padding: 14px 16px; }
  .land-links { gap: 10px; } .land-links a { display: none; }
  .land-links .btn { padding: 7px 10px; font-size: 12px; }
  .land-hero { padding: 22px 18px 46px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions .btn { flex: 1; padding: 12px 10px; }
  .hero-demo { font-size: 11px; }
  .land-section { padding: 42px 18px; }
  .section-head h2 { font-size: 23px; }
  .feature-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .trial-card { border-radius: 16px; }
  .trial-card h2 { font-size: 21px; }
  .land-foot { padding: 22px 18px 36px; } .land-foot a { margin-left: 0; }
  .pay-nav { padding: 14px 16px; } .pay-nav-right .small { display: none; }
  .pay-main { padding: 22px 16px 50px; }
  .pay-head h1 { font-size: 24px; }
  .pay-note { gap: 12px; font-size: 11px; }
  .qr-box { width: 190px; height: 190px; }
  .auth-card.wide { padding: 24px 20px; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .demo-strip { padding: 6px 12px; font-size: 11px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .toast { top: 78px !important; max-width: calc(100vw - 32px); text-align: center; }
}

/* ===== 第二轮：移动端精简 + 行业优化 ===== */
.setup-card { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px 18px; background: linear-gradient(135deg,#f2f7ff,#fff); border: 1px solid #e4edff; }
.setup-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #e8f0ff; color: #2f6bff; display: flex; align-items: center; justify-content: center; }
.setup-card b { font-size: 14px; }
.setup-steps { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 7px; color: #6b7280; font-size: 12px; }
.setup-steps span { white-space: nowrap; }
.m-setup { margin-top: 10px; padding: 14px; }
.m-setup b { font-size: 13px; }
.m-setup-steps { display: flex; flex-direction: column; gap: 5px; margin: 9px 0 11px; font-size: 11.5px; color: #6b7280; }
.m-setup .btn { width: 100%; }
.am-replenish { width: 100%; margin: 0 0 6px; border: 1px solid #ffd6d6; background: #fff; color: #e54848; font-size: 10px; padding: 5px; border-radius: 7px; }
.m-st-tools { display: flex; justify-content: flex-end; gap: 6px; margin: -4px 2px 8px; }

@media (max-width: 860px) {
  .view { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .m-head { padding: 18px 16px 18px; }
  .m-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 0; }
  .m-kpi { padding: 11px 10px; gap: 8px; border-radius: 13px; box-shadow: 0 3px 12px rgba(20, 50, 120, .08); }
  .m-kpi .mi { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; }
  .m-kpi .mi svg { width: 16px; height: 16px; }
  .m-kpi .ml { font-size: 10px; }
  .m-kpi .mv { font-size: 16px; margin-top: 2px; }
  .m-kpi .mv small { font-size: 9px; }
  .m-kpi .md { font-size: 9px; margin-top: 2px; }
  .m-duo { grid-template-columns: 1fr; gap: 10px; }
  .m-duo > .card { padding: 14px; }
  .m-duo .am-btn, .m-duo .am-replenish { font-size: 11px; padding: 7px; }
  .m-duo .tm-ring { width: 88px; height: 88px; flex-basis: 88px; }
  .m-duo .tm-legend { font-size: 10px; }
  .m-duo .am-row { font-size: 10px; padding: 5px 0; }
  .m-duo .m-insight { font-size: 10px; }
  .tabbar { padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 52px; }
  .stock-thead, .stock-item { margin-left: 0; margin-right: 0; }
}
@media (max-width: 380px) {
  .setup-steps { gap: 8px; }
}
@media (max-width: 860px) {
  .tab-plus {
    flex: 0 0 46px !important; width: 46px; height: 46px; min-height: 46px;
    margin-top: 0 !important; align-self: center;
    border-radius: 50% !important;
    box-shadow: 0 5px 12px rgba(47, 107, 255, .3);
  }
  .tab-plus svg { width: 21px; height: 21px; }
}

/* ===== 推广中心 / 裂变 / 分销 ===== */
.aff-page { display: flex; flex-direction: column; gap: 14px; }
.aff-hero { display: flex; gap: 22px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: 18px; background: linear-gradient(120deg, #f7f9ff 0%, #fff 62%, #fff7ed 100%); border: 1px solid #e7edfb; }
.aff-hero.agent { background: linear-gradient(120deg, #f5fffb 0%, #fff 62%, #f3f7ff 100%); border-color: #dcefe7; }
.aff-hero-copy { flex: 1; min-width: 0; }
.aff-hero h1 { font-size: 21px; margin: 8px 0 8px; letter-spacing: -.3px; }
.aff-hero p { color: #5f6775; font-size: 13px; line-height: 1.8; margin: 0 0 13px; }
.aff-link-box { display: flex; align-items: center; gap: 7px; max-width: 560px; background: #fff; border: 1px solid #e1e8f6; border-radius: 11px; padding: 5px 5px 5px 11px; }
.aff-link-box span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: #536079; }
.aff-code { margin-top: 10px; color: #7b8496; font-size: 12px; }
.aff-code b { color: #2f6bff; letter-spacing: .4px; }
.aff-qr-card { flex: 0 0 172px; text-align: center; background: #fff; border: 1px solid #e6ebf4; border-radius: 15px; padding: 10px 9px 9px; }
.aff-qr { width: 140px; height: 140px; margin: 0 auto 5px; display: flex; align-items: center; justify-content: center; }
.aff-qr svg { width: 100%; height: 100%; }
.aff-qr-card b { display: block; font-size: 12px; }
.aff-qr-card .small { display: block; margin-top: 3px; font-size: 10px; line-height: 1.5; }
.aff-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 14px; }
.aff-card { min-width: 0; }
.aff-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.aff-kpis > div { background: #fff; border: 1px solid #eceff5; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.aff-kpis span { display: block; color: #7b8496; font-size: 11px; }
.aff-kpis b { display: block; margin-top: 5px; font-size: 21px; letter-spacing: -.4px; }
.aff-progress { height: 10px; border-radius: 99px; background: #edf1f7; overflow: hidden; margin: 12px 0 9px; }
.aff-progress > div { height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #2f6bff, #13b981); transition: width .3s; }
.aff-progress-label { display: flex; justify-content: space-between; color: #6e7788; font-size: 11px; }
.aff-agent-offer .btn { margin-top: 2px; }
.aff-price { display: flex; align-items: baseline; gap: 2px; margin: 10px 0 4px; color: #1f2430; }
.aff-price small { font-size: 14px; color: #526079; }
.aff-price b { font-size: 32px; letter-spacing: -1px; }
.aff-price span { font-size: 11px; color: #8a93a5; margin-left: 2px; }
.aff-team { display: flex; flex-direction: column; gap: 2px; max-height: 330px; overflow: auto; }
.aff-team-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f1f3f7; }
.aff-team-row:last-child { border-bottom: 0; }
.aff-avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; background: #edf2ff; color: #2f6bff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.aff-team-row b { display: block; font-size: 12px; }
.aff-team-row .small { display: block; font-size: 10px; margin-top: 1px; }
.aff-money-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed #edf0f5; font-size: 12px; color: #70798b; }
.aff-money-row:last-of-type { border-bottom: 0; }
.aff-money-row b { font-size: 18px; color: #1f2430; }
.aff-money-row b:first-child { color: #12b981; }
.aff-list { display: flex; flex-direction: column; }
.aff-list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f3f7; }
.aff-list-row:last-child { border-bottom: 0; }
.aff-list-row b { display: block; font-size: 12px; }
.aff-list-row .small { display: block; margin-top: 2px; font-size: 10px; }
.aff-table-wrap { overflow: auto; }
.aff-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.aff-table th { text-align: left; color: #8a93a5; font-weight: 500; padding: 5px 7px; white-space: nowrap; }
.aff-table td { padding: 8px 7px; border-top: 1px solid #f1f3f7; white-space: nowrap; color: #5e6878; }
.aff-note { color: #98a1af; font-size: 10px; line-height: 1.7; }
.aff-entry { cursor: pointer; border: 1px solid #ffe2c2; background: linear-gradient(100deg, #fffaf3, #fff); }
.aff-entry .more { display: inline-block; margin-top: 10px; color: #f08a16; }

@media (max-width: 860px) {
  .aff-page { gap: 10px; }
  .aff-hero { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; border-radius: 15px; }
  .aff-hero h1 { font-size: 18px; }
  .aff-hero p { font-size: 12px; margin-bottom: 10px; }
  .aff-link-box { gap: 5px; padding: 4px 4px 4px 9px; }
  .aff-link-box .btn { padding: 6px 8px; font-size: 11px; }
  .aff-qr-card { flex: none; display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px; }
  .aff-qr { width: 82px; height: 82px; flex: 0 0 82px; margin: 0; }
  .aff-qr-card b, .aff-qr-card .small { display: block; }
  .aff-grid { grid-template-columns: 1fr; gap: 10px; }
  .aff-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .aff-kpis > div { padding: 11px 12px; }
  .aff-kpis b { font-size: 18px; }
  .aff-team { max-height: none; }
  .aff-table { min-width: 560px; }
}
.pay-invite { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(100deg,#fffaf3,#fff); border: 1px solid #ffe2c2; border-radius: 14px; padding: 16px 18px; margin: 16px 0 12px; }
.pay-invite h3 { font-size: 15px; margin: 6px 0 4px; }
.pay-invite p { color: #7b6a57; font-size: 11.5px; line-height: 1.7; margin: 0; }
.pay-invite .btn { white-space: nowrap; }
.pending-invite-modal p { margin: 0 0 9px; font-size: 13px; line-height: 1.7; }
@media (max-width: 600px) {
  .pay-invite { flex-direction: column; align-items: stretch; padding: 14px; }
  .pay-invite .btn { width: 100%; }
}

/* ===== 第三轮：手机端重做（字号、留白、触控） ===== */
@media (max-width: 860px) {
  body { font-size: 14px; }
  .view { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .card { border-radius: 16px; }
  .card-title h3 { font-size: 15px; gap: 6px; }
  .card-title .more { font-size: 12px; padding: 6px 0 6px 10px; }
  .small { font-size: 12.5px; }
  .muted { font-size: 12.5px; }

  .m-head { margin: -16px -16px 0; padding: 22px 18px 58px; border-radius: 0 0 24px 24px; }
  .mh-title { font-size: 26px; letter-spacing: .5px; }
  .mh-sub { font-size: 12.5px; margin-top: 7px; opacity: .9; }
  .m-bell { width: 42px; height: 42px; border-radius: 14px; }
  .m-bell svg { width: 22px; height: 22px; }
  .m-bell i { font-size: 11px; min-width: 18px; height: 18px; border-radius: 10px; }

  .m-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: -34px 0 0; }
  .m-kpi { padding: 14px 12px; gap: 10px; min-height: 80px; border-radius: 15px; box-shadow: 0 8px 20px rgba(20, 50, 120, .13); }
  .m-kpi .mi { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
  .m-kpi .mi svg { width: 19px; height: 19px; }
  .m-kpi .ml { font-size: 11.5px; color: #7b8698; }
  .m-kpi .mv { font-size: 20px; margin-top: 2px; letter-spacing: -.3px; }
  .m-kpi .mv small { font-size: 10px; margin-left: 2px; }
  .m-kpi .md { font-size: 10.5px; margin-top: 3px; }

  .m-quick-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 14px; padding: 10px 6px; background: #fff; border: 1px solid #edf1f8; border-radius: 16px; box-shadow: 0 4px 14px rgba(20, 50, 120, .05); }
  .m-quick-4 button { border: 0; background: transparent; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 4px 0; border-radius: 12px; color: #354052; font-size: 12.5px; cursor: pointer; }
  .m-quick-4 button:active { background: #f5f8ff; }
  .m-quick-4 i { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
  .m-quick-4 i svg { width: 22px; height: 22px; }

  .alert-mini { padding: 15px 16px; }
  .alert-mini .t { font-size: 14px; }
  .alert-mini .badge { font-size: 10px; padding: 2px 7px; border-radius: 6px; }
  .am-actions { display: flex; gap: 8px; margin: 10px 0 6px; }
  .am-actions .am-btn, .am-actions .am-replenish { margin: 0; flex: 1; padding: 9px 8px; border-radius: 9px; font-size: 12px; }
  .am-replenish { font-size: 12px; }
  .am-row { font-size: 12px; padding: 8px 0; gap: 6px; }
  .am-row b { font-size: 12.5px; }
  .am-low { font-size: 9.5px; padding: 2px 5px; }

  .m-donut { width: 116px; height: 116px; flex-basis: 116px; }
  .m-donut .donut-center b { font-size: 18px; }
  .m-donut .donut-center span { font-size: 10px; }
  .m-cat { font-size: 12px; padding: 5.5px 0; gap: 6px; }
  .m-cat .pill { font-size: 10.5px; padding: 2px 7px; max-width: 80px; }
  .m-cat .pct { width: 36px; flex-basis: 36px; font-size: 11.5px; }
  .m-insight { font-size: 11.8px; line-height: 1.6; padding: 10px 11px; margin-top: 12px; border-radius: 10px; }

  .take-mini .t { font-size: 14px; }
  .tm-ring { width: 92px; height: 92px; flex-basis: 92px; }
  .tm-ring .ring-center b { font-size: 18px; }
  .tm-ring .ring-center span { font-size: 9.5px; }
  .tm-legend { font-size: 11.5px; }
  .tm-lg { padding: 4.5px 0; }

  .m-trend-svg text { font-size: 10px; }

  .m-setup { padding: 16px; }
  .m-setup b { font-size: 14px; }
  .m-setup-steps { font-size: 12.5px; gap: 7px; }
  .m-setup .btn { min-height: 42px; }

  .stock-banner { padding: 13px 16px; border-radius: 15px; }
  .stock-banner .sb-l { font-size: 11.5px; }
  .stock-banner .sb-v { font-size: 20px; }
  .stock-banner .sb-v small { font-size: 10.5px; }
  .m-st-search { padding: 8px 9px 8px 14px; }
  .m-st-search input { font-size: 15px; padding: 4px 0; }
  .st-seg button { font-size: 13.5px; min-height: 38px; }
  .stock-thead { font-size: 11px; padding: 10px 2px 6px; }
  .stock-item { padding: 14px 2px; gap: 12px; }
  .si-thumb { width: 46px; height: 46px; flex-basis: 46px; border-radius: 12px; font-size: 17px; }
  .si-name { font-size: 14.5px; }
  .si-sub { font-size: 11px; margin-top: 3px; }
  .si-qty { font-size: 18px; }
  .si-qty small { font-size: 10.5px; }
  .si-low { font-size: 9.5px; padding: 2px 5px; margin-top: 4px; }
  .si-amt { font-size: 11px; margin-top: 3px; }
  .si-mv { font-size: 10.5px; }
  .pager { font-size: 11.5px; gap: 7px; padding: 14px 0; }
  .pager button { min-width: 32px; height: 32px; font-size: 12px; }

  .topbar { padding: 14px 16px; min-height: 58px; }
  .topbar h2 { font-size: 19px; }
  .topbar .sub { display: none; }
  .tabbar { padding-top: 8px; }
  .tabbar button { font-size: 11.5px; min-height: 54px; gap: 4px; }
  .tabbar button svg { width: 23px; height: 23px; }
  .tab-plus { flex-basis: 50px !important; width: 50px; height: 50px; min-height: 50px; margin-top: -22px; }

  .btn { min-height: 40px; font-size: 13px; }
  .btn.sm { min-height: 36px; font-size: 12.5px; padding-left: 12px; padding-right: 12px; }
  input, select, textarea { font-size: 16px; }
  .modal { width: calc(100vw - 24px) !important; max-width: calc(100vw - 24px) !important; max-height: 92vh; border-radius: 18px; }
  .modal .modal-body { padding-bottom: 12px; }
  .qsheet button { min-height: 92px; font-size: 14px; }

  .plans-modal-grid { grid-template-columns: 1fr; max-width: 100%; gap: 12px; }
  .plans-modal .plan { padding: 18px 16px; }
  .plans-modal .plan-price b { font-size: 30px; }
  .plans-modal .plan li { font-size: 13px; }
  .plans-modal .plan .btn { min-height: 44px; }
  .plans-invite { flex-direction: column; align-items: flex-start; }
  .plans-invite .btn { width: 100%; }
  .plans-orders { padding: 12px 14px; }
}
@media (max-width: 860px) {
  .plans-modal .plan ul { display: none; }
  .plans-modal .plan { padding: 15px 16px 14px; }
  .plans-modal .plan-name { font-size: 15px; }
  .plans-modal .plan-price { margin: 2px 0 2px; }
  .plans-modal .plan-price b { font-size: 28px; }
  .plans-modal .plan-desc { font-size: 12px; }
  .plans-modal .plan .btn { margin-top: 12px; }
  .plans-modal-head { margin-bottom: 14px; }
  .plans-modal-head p { font-size: 12.5px; margin-top: 8px; }
  .plans-modal-grid { gap: 10px; }
  .plans-note { margin-top: 12px; }
}
