/* 落地页样式（绿色主题版）：#00b45c 主色 / 绿色头部 + 聊天演示 + 套餐卡片 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body, html { width: 100%; background: #f4f6f5; color: #222;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.page { max-width: 480px; margin: 0 auto; padding: 14px 14px 120px; }

/* ===== 绿色头部 + 聊天演示（紧凑版，保证套餐区首屏可见） ===== */
.hero { background: linear-gradient(170deg, #00c266 0%, #00a94f 100%); padding: 13px 14px 15px; }
.hero-inner { max-width: 480px; margin: 0 auto; }
.hero h1 { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.hero-sub { font-size: 12.5px; color: rgba(255,255,255,.92); line-height: 1.55; margin-top: 4px; }
.hero-sub .hl { color: #ffe13e; font-weight: 700; }

.chat-demo { margin-top: 9px; background: rgba(0,0,0,.10); border-radius: 12px; padding: 9px 10px; }
.chat-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: flex-start; }
.chat-row:last-child { margin-bottom: 0; }
.chat-row.row-me { justify-content: flex-end; }
.ava { width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center;
    justify-content: center; font-size: 11px; font-weight: 700; }
.ava-ta { background: #fff; color: #00a94f; }
.ava-me { background: #7ed957; color: #fff; }
.chat-col { max-width: calc(100% - 64px); }
.col-me { display: flex; flex-direction: column; align-items: flex-end; }
.bubble { padding: 6px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.45; max-width: 100%; word-break: break-all; }
.b-ta { background: #fff; color: #222; border-top-left-radius: 3px; }
.b-me { background: #9fe66c; color: #1d3a12; border-top-right-radius: 3px; }
.st { font-size: 11px; margin-top: 2px; }
.st-read { color: rgba(255,255,255,.9); text-align: left; }
.st-sent { color: rgba(255,255,255,.9); text-align: right; margin-bottom: 2px; }
.ticks { letter-spacing: -2px; }

/* ===== 套餐卡片 ===== */
.panel-card { background: #fff; border-radius: 16px; padding: 16px 14px 14px; box-shadow: 0 2px 10px rgba(20,80,50,.05); }
.sec-head { display: flex; align-items: center; margin-bottom: 12px; }
.sec-head h2 { font-size: 16px; font-weight: 700; color: #1a1a1a; padding-left: 9px; border-left: 4px solid #00b45c; line-height: 1.2; }

.plans { display: flex; flex-direction: column; gap: 10px; }
.plan { position: relative; background: #fff; border: 1.4px solid #e8e8e8; border-radius: 12px; padding: 13px 13px 12px;
    display: flex; gap: 9px; cursor: pointer; transition: border-color .15s; }
.plan.selected { border: 1.5px solid #00b45c; }

/* 右上角角标（热销 / 特惠） */
.corner { position: absolute; top: -8px; right: 12px; font-size: 10px; font-weight: 600; color: #fff;
    padding: 2px 9px; border-radius: 9px; line-height: 1.4; z-index: 2; }
.corner.hot { background: #ff9d2e; }
.corner.sale { background: #ff5b4c; }

.radio { width: 18px; height: 18px; border: 1.6px solid #d4d8d6; border-radius: 50%; flex-shrink: 0; align-self: center;
    position: relative; background: #fff; }
.plan.selected .radio { border-color: #00b45c; }
.plan.selected .radio:after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 10px; height: 10px; background: #00b45c; border-radius: 50%; }

.p-info { flex: 1; min-width: 0; }
.p-title { font-size: 15px; font-weight: 500; color: #2a2a2a; }
.p-sub { font-size: 12px; color: #b0b6b3; margin-top: 6px; }
.p-price { font-size: 17px; font-weight: 700; color: #00b45c; white-space: nowrap; align-self: center; }
.p-price small { font-size: 11px; font-weight: 600; }

/* ===== 协议行 ===== */
.agree-line { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; padding-left: 2px; }
.cbox { width: 14px; height: 14px; border: 1.4px solid #c4cac7; border-radius: 3px; flex-shrink: 0; position: relative; cursor: pointer; margin-top: 1px; }
.cbox.on { border-color: #00b45c;
    background: #00b45c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.2 7.3l2.6 2.6 5-5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 10px no-repeat; }
.cbox.on:after { content: none; }
.agree-line p { font-size: 11.5px; color: #666; line-height: 1.55; }
.agree-line a { color: #00a94f; text-decoration: underline; }

/* ===== 更多功能按钮 ===== */
.btn-coop { width: 100%; height: 44px; margin-top: 13px; border: 1px solid #bfe8d2; border-radius: 10px;
    background: #e9f8f0; color: #00a94f; font-size: 14px; font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.btn-coop:active { background: #d9f2e5; }

/* ===== 灰色备注 ===== */
.notes { margin: 12px 4px 0; }
.notes p { font-size: 11.5px; color: #9aa0a3; line-height: 1.8; }
.notes a { color: #00b45c; text-decoration: underline; }

/* ===== 页脚联系方式 ===== */
.site-footer { margin: 26px 4px 0; padding-top: 16px; border-top: 1px solid #e8ebe9; text-align: center; }
.site-footer p { font-size: 11.5px; color: #a8aeb2; line-height: 1.95; }

/* ===== 底部固定栏：合计 + 支付按钮 ===== */
.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #fff;
    border-top: 1px solid #ececec; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); }
.foot-inner { max-width: 480px; margin: 0 auto; }
.pay-row { display: flex; align-items: center; gap: 10px; }
.total { font-size: 14px; color: #333; flex: 1; min-width: 0; }
.total-num { color: #ff9d2e; font-size: 23px; font-weight: 700; margin-left: 2px; }
.total-num .yen { font-style: normal; font-size: 14px; font-weight: 700; margin-right: 1px; vertical-align: 2px; }
.btn { height: 42px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; flex: 0 0 auto; width: 62%; }
.btn-pay { background: #0bbf63; letter-spacing: 1px; }
.btn-pay:disabled { background: #9eddbc; }

/* ===== 查单中浮层 ===== */
.check-overlay { position: fixed; inset: 0; z-index: 900; display: none; align-items: center; justify-content: center; background: rgba(255,255,255,.86); }
.check-overlay.show { display: flex; }
.check-box { background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 26px 30px; text-align: center; font-size: 15px; color: #333; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #00b45c; border-top-color: transparent;
    border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 协议 / 须知 弹层 ===== */
.sheet { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(0,0,0,.45); }
.sheet.show { display: block; }
.sheet-panel { position: absolute; left: 50%; top: 5%; transform: translateX(-50%); width: min(92vw, 440px);
    height: 88%; background: #fff; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.sheet-head { position: relative; padding: 16px 46px 12px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.sheet-head h3 { font-size: 17px; font-weight: 700; color: #1c1c1c; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: #f4f5f5; color: #9aa0a3; font-size: 18px; cursor: pointer; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 18px 20px; }
.sheet-body h4 { font-size: 15px; margin: 14px 0 6px; color: #1c1c1c; }
.sheet-body h4:first-child { margin-top: 0; }
.sheet-body p { font-size: 13.5px; color: #444; line-height: 1.8; margin-bottom: 4px; }
.sheet-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #f0f0f0; }
.sheet-ok { width: 100%; height: 46px; border: 0; border-radius: 12px; background: #00b45c; color: #fff;
    font-size: 16px; font-weight: 700; cursor: pointer; }

/* ===== 可选功能弹层 ===== */
/* 功能面板高度随内容自适应，底部不留大片空白 */
#featureSheet .sheet-panel { height: auto; max-height: 88%; }
#featureSheet .sheet-body { padding-bottom: 12px; }
.feat-list { display: flex; flex-direction: column; gap: 10px; }
.feat { display: flex; align-items: center; gap: 10px; border: 1.4px solid #e8e8e8; border-radius: 12px;
    padding: 12px 13px; cursor: pointer; transition: border-color .15s; background: #fff; }
.feat.sel { border-color: #00b45c; background: #f4fbf8; }
.fcheck { width: 18px; height: 18px; border: 1.6px solid #c4cac7; border-radius: 4px; flex-shrink: 0;
    position: relative; background: #fff; }
.feat.sel .fcheck { border-color: #00b45c; background: #00b45c; }
.feat.sel .fcheck:after { content: ''; position: absolute; left: 50%; top: 50%; width: 5px; height: 8.5px;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -56%) rotate(42deg); }
.f-info { flex: 1; min-width: 0; }
.f-name { font-size: 15px; font-weight: 500; color: #2a2a2a; }
.f-tiers { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tier { font-size: 11px; color: #8b9194; background: #f4f5f5; border: 1px solid #e8e8e8;
    border-radius: 8px; padding: 3px 8px; line-height: 1.4; }
.tier.on { color: #fff; background: #00b45c; border-color: #00b45c; font-weight: 600; }
.feat-note { margin-top: 14px; font-size: 11.5px; color: #9aa0a3; line-height: 1.8; }
.feat-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #f0f0f0; }
.feat-total { flex: 1; min-width: 0; }
.feat-pay { flex: 0 0 auto; width: 58%; height: 42px; font-size: 15px; border-radius: 10px; }
