* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f5f5; color: #1a1a1a; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #f5f5f5; }
.topbar { background: #07c160; color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.topbar .brand { font-size: 18px; font-weight: 500; }
.topbar .back { font-size: 20px; }
.topbar a { color: #fff; }
.content { padding: 16px; padding-bottom: 40px; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.alert-success { background: #e8f8ee; color: #07934a; }
.alert-error { background: #fdecea; color: #c62828; }
.err-list { margin-left: 16px; }
.card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.card-title { font-size: 15px; font-weight: 500; margin-bottom: 12px; color: #1a1a1a; }
.hero { background: #07c160; color: #fff; padding: 22px 20px; border-radius: 12px; margin-bottom: 16px; }
.hero h1 { font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.hero p { opacity: .9; font-size: 13px; }
.section-label { font-size: 13px; color: #888; margin: 18px 2px 8px; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { background: #fff; border: 2px solid transparent; border-radius: 10px; padding: 12px 6px; text-align: center; cursor: pointer; transition: .15s; }
.cat.selected { border-color: #07c160; background: #f0fbf4; }
.cat input { display: none; }
.cat .icon { width: 34px; height: 34px; border-radius: 50%; background: #e8f8ee; color: #07c160; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-size: 11px; }
.cat .name { font-size: 13px; }
.cat .price { font-size: 11px; color: #e64340; margin-top: 2px; }
.cat .weight-row { margin-top: 8px; display: none; }
.cat.selected .weight-row { display: block; }
.cat input.w { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 5px; font-size: 13px; text-align: center; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: 15px; background: #fff; }
.field textarea { resize: vertical; min-height: 60px; }
.btn { display: block; width: 100%; background: #07c160; color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 16px; cursor: pointer; }
.btn:disabled { background: #a8d9bd; }
.btn-outline { background: #fff; color: #07c160; border: 1px solid #07c160; }
.btn-danger { background: #fff; color: #e64340; border: 1px solid #e64340; }
.btn-sm { padding: 8px 14px; font-size: 13px; width: auto; display: inline-block; }
.summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid #eee; }
.summary .amount { color: #e64340; font-size: 20px; font-weight: 500; }
.order-item { border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
.order-item:last-child { border-bottom: none; }
.row { display: flex; justify-content: space-between; }
.muted { color: #888; font-size: 13px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.badge-pending { background: #fff3e0; color: #e65100; }
.badge-completed { background: #e8f8ee; color: #07934a; }
.badge-canceled { background: #f0f0f0; color: #888; }
.verify-code { font-size: 34px; font-weight: 500; letter-spacing: 8px; color: #07c160; text-align: center; padding: 14px; background: #f0fbf4; border-radius: 10px; }
.timeline { list-style: none; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid #07c160; position: relative; font-size: 13px; }
.timeline li::before { content: ""; width: 8px; height: 8px; background: #07c160; border-radius: 50%; position: absolute; left: -5px; top: 12px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { flex: 1; text-align: center; padding: 8px; border-radius: 8px; background: #fff; font-size: 13px; }
.tab.active { background: #07c160; color: #fff; }
.nav { display: flex; gap: 10px; margin-bottom: 16px; }
.nav a { flex: 1; text-align: center; background: #fff; padding: 10px; border-radius: 8px; font-size: 13px; }
.empty { text-align: center; color: #aaa; padding: 40px 0; }
.login-box { max-width: 340px; margin: 40px auto; }
.w-input-row { display: flex; gap: 8px; }
.w-input-row input { flex: 1; }

/* H5 安装引导条 */
.pwa-install { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); width: calc(100% - 32px); max-width: 448px; z-index: 50; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 24px rgba(0,0,0,.16); }
.pwa-install[hidden] { display: none; }
.pwa-install-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: #07c160; color: #fff; font-size: 19px; line-height: 34px; text-align: center; }
.pwa-install-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pwa-install-body strong { font-size: 14px; font-weight: 500; }
.pwa-install-body span { font-size: 12px; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pwa-install-btn { flex: 0 0 auto; background: #07c160; color: #fff; border: none; border-radius: 7px; padding: 7px 13px; font-size: 13px; }
.pwa-install-close { flex: 0 0 auto; background: none; border: none; color: #aaa; font-size: 22px; line-height: 1; padding: 0 2px; }

/* ===== 智慧二手回收 视觉（参照宣传图：微信绿 + 叶片 + 卡片） ===== */
.topbar .slogan { font-size: 11px; opacity: .85; letter-spacing: 1px; }
.topbar .linkbtn { background: none; border: none; color: #fff; font-size: 13px; padding: 0; }
.linkbtn { background: none; border: none; color: #07c160; font-size: 13px; cursor: pointer; padding: 0; }
.linkbtn.danger { color: #e64340; }

/* Hero */
.hero-estimate { position: relative; overflow: hidden; background: linear-gradient(135deg, #07c160 0%, #12b76a 55%, #69d99b 100%); border-radius: 0 0 24px 24px; padding: 34px 20px 40px; color: #fff; margin: -16px -16px 16px; min-height: 190px; }
.hero-estimate::after { content: ""; position: absolute; right: -40px; top: -50px; width: 190px; height: 190px; border: 22px solid rgba(255,255,255,.10); border-radius: 50%; }
.hero-estimate::before { content: ""; position: absolute; right: 30px; bottom: -80px; width: 160px; height: 160px; background: rgba(255,255,255,.08); border-radius: 46% 54% 40% 60%; transform: rotate(25deg); }
.hero-estimate .leaf { position: absolute; font-size: 30px; opacity: .55; filter: blur(.3px); }
.hero-estimate .leaf-1 { right: 18px; top: 22px; transform: rotate(-18deg); }
.hero-estimate .leaf-2 { right: 92px; bottom: 18px; font-size: 24px; transform: rotate(35deg); }
.hero-estimate .leaf-3 { right: -6px; bottom: 46px; font-size: 26px; transform: rotate(-40deg); }
.hero-inner { position: relative; z-index: 2; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); padding: 3px 12px; border-radius: 14px; font-size: 11px; letter-spacing: 1px; margin-bottom: 14px; }
.hero-estimate h1 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: 1px; }
.hero-estimate h1 em { font-style: italic; font-size: 20px; font-weight: 400; opacity: .9; }
.hero-estimate p { font-size: 14px; margin-top: 8px; opacity: .95; }
.hero-estimate .hero-sub { font-size: 12px; opacity: .8; margin-top: 4px; }

/* 4 宫格入口 */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.quick-item { background: #fff; border-radius: 12px; padding: 12px 2px 10px; text-align: center; font-size: 11px; color: #444; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.quick-item .q-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; font-size: 21px; margin: 0 auto 6px; }
.q-green { background: #e8f8ee; } .q-blue { background: #e8f2fe; } .q-orange { background: #fff3e0; } .q-purple { background: #f3eafe; }

/* 今日报价速览 */
.quote-ticker { display: flex; flex-wrap: wrap; gap: 6px; }
.ticker-item { background: #f6fbf8; border: 1px solid #e3f3ea; border-radius: 8px; padding: 5px 9px; font-size: 12px; color: #555; }
.ticker-item b { color: #e64340; }
.ticker-item i { font-style: normal; color: #999; font-size: 10px; }

/* 品类卡：选中展开型号/数量 */
.cats .cat { padding: 12px 6px; }
.cats .cat .icon { font-size: 24px; background: #f0fbf4; width: 44px; height: 44px; line-height: 44px; }
.cat-detail { display: none; margin-top: 8px; }
.cat.selected .cat-detail { display: block; }
.model-select, .cat-detail .w { width: 100%; border: 1px solid #d8e8de; border-radius: 6px; padding: 5px 4px; font-size: 11px; margin-top: 4px; background: #fff; }
.model-select { max-width: 100%; }
.step { display: inline-flex; width: 20px; height: 20px; background: #07c160; color: #fff; border-radius: 50%; align-items: center; justify-content: center; font-size: 12px; margin-right: 6px; }

/* 管理端 */
.admin-head h1 { font-size: 20px; color: #1a1a1a; margin-bottom: 4px; }
.admin-head p { font-size: 13px; color: #888; margin-bottom: 16px; }
.datebar { padding: 12px; }
.dateform { display: flex; gap: 8px; align-items: center; }
.dateform label { font-size: 13px; color: #666; }
.dateform input { flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 8px; font-size: 14px; }
.quote-card { padding: 14px; }
.quote-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.quote-title strong { font-size: 15px; }
.quote-title .muted { font-size: 11px; margin-left: auto; }
.q-emoji { font-size: 20px; }
.quote-rows { display: flex; flex-direction: column; gap: 8px; }
.quote-row { display: flex; gap: 6px; align-items: center; }
.quote-row > input[type=text] { flex: 2; min-width: 0; border: 1px solid #ddd; border-radius: 8px; padding: 8px; font-size: 13px; }
.price-input { flex: 1; min-width: 0; display: flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; padding-left: 8px; background: #fff; }
.price-input span { color: #e64340; font-size: 13px; }
.price-input input { width: 100%; border: none; outline: none; padding: 8px 4px; font-size: 13px; }
.unit-tag { color: #999; font-size: 11px; white-space: nowrap; }
.row-del { flex: 0 0 26px; height: 26px; border: none; background: #fdecea; color: #e64340; border-radius: 6px; font-size: 17px; cursor: pointer; }
.quote-actions { display: flex; gap: 8px; margin-top: 12px; }
.quote-actions .btn { flex: 1; }
.quote-delete-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #eee; }
.quote-delete-list .linkbtn { font-size: 11px; }

/* ===== 首页视觉二次修订 + 报价通知轮播（ADR-006） ===== */
:root {
    --brand: #07a85a;
    --brand-dark: #078a4a;
    --ink: #17251e;
    --muted: #8a9a92;
    --line: #edf3ef;
}
body { background: #f7faf8; }
.app {
    max-width: 480px;
    background: linear-gradient(180deg, #f1fbf5 0, #f7faf8 240px, #f7faf8 100%);
    box-shadow: 0 0 48px rgba(16, 84, 50, .06);
}
.topbar {
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    padding: 12px 16px;
}
.topbar .brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 16px;
    font-weight: 700;
}
.brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}
.topbar .slogan {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .5px;
}
.topbar a, .topbar .linkbtn { color: var(--brand-dark); }
.content { padding: 18px 16px 44px; }
.card { border: 1px solid var(--line); box-shadow: 0 4px 18px rgba(23, 70, 45, .05); }

/* Hero：轻量浅色，不再是整块绿渐变 */
.hero-estimate {
    position: relative;
    min-height: 0;
    margin: 0 0 14px;
    padding: 26px 74px 18px 2px;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    overflow: hidden;
}
.hero-estimate::before {
    content: "";
    position: absolute;
    right: -18px;
    top: -24px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #d7f6e5 0, #ebfaf1 62%, transparent 72%);
}
.hero-estimate::after { display: none; }
.hero-estimate .leaf { font-size: 25px; opacity: 1; filter: none; }
.hero-estimate .leaf-1 { right: 24px; top: 8px; transform: rotate(-18deg); }
.hero-estimate .leaf-2 { right: 2px; top: 54px; font-size: 22px; transform: rotate(28deg); }
.hero-estimate .leaf-3 { right: 46px; bottom: 16px; font-size: 23px; transform: rotate(-38deg); }
.hero-inner { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 11px;
    border: 1px solid #d3efe0;
    border-radius: 12px;
    background: #e8f8ee;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
}
.hero-estimate h1 { font-size: 29px; font-weight: 800; line-height: 1.22; letter-spacing: -.5px; color: var(--ink); }
.hero-estimate h1 em { font-size: 20px; font-weight: 500; color: var(--brand); }
.hero-estimate p { margin-top: 7px; font-size: 13px; color: #4d6156; opacity: 1; }
.hero-estimate .hero-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }

/* 快捷入口：单行轻量导航 */
.quick-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 14px;
    padding: 12px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(23, 70, 45, .05);
}
.quick-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    color: #45564d;
    white-space: nowrap;
}
.quick-item .q-icon {
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    line-height: 1;
}
.q-green, .q-blue, .q-orange, .q-purple { background: transparent; }

/* 报价通知轮播 */
.quote-card { position: relative; padding: 14px 14px 12px; overflow: hidden; }
.quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.quote-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.quote-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #e8f8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.quote-title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 10px;
    background: #eaf8ef;
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 600;
}
.live-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); animation: livePulse 1.8s infinite; }
.quote-date { color: var(--muted); font-size: 10px; font-weight: 400; }
.quote-sub { margin-top: 2px; color: var(--muted); font-size: 11px; }
.quote-all { flex: 0 0 auto; padding-top: 4px; color: var(--brand-dark); font-size: 11px; }
.quote-ticker {
    position: relative;
    height: 42px;
    overflow: hidden;
    border: 1px solid #e3f3ea;
    border-radius: 10px;
    background: linear-gradient(90deg, #f2fbf6 0%, #f8fdfa 100%);
}
.ticker-track { transition: transform .45s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.ticker-line {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: #31453a;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
}
.ticker-emoji { font-size: 18px; }
.ticker-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ticker-price { margin-left: auto; color: #e64340; font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker-price small { margin-left: 2px; color: #9aa9a1; font-size: 10px; font-weight: 500; }
.ticker-meta { flex: 0 0 auto; padding: 2px 6px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 10px; }
.quote-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.quote-counter { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.quote-counter b { color: var(--brand-dark); }
.quote-dots { display: flex; align-items: center; gap: 4px; }
.quote-dots i { width: 5px; height: 5px; border-radius: 50%; background: #d9e5de; transition: .2s; }
.quote-dots i.active { width: 14px; border-radius: 3px; background: var(--brand); }
.ticker-toggle {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #f0f6f2;
    color: var(--brand-dark);
    font-size: 11px;
    cursor: pointer;
}
.quote-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.quote-toast {
    position: absolute;
    right: 12px;
    top: 10px;
    padding: 4px 9px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    box-shadow: 0 4px 12px rgba(7, 168, 90, .25);
}
.quote-card.updated { animation: quoteFlash .85s ease; }
@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.7); opacity: .45; }
}
@keyframes quoteFlash {
    0%, 100% { background: #fff; }
    35% { background: #f0fbf4; }
}

/* 横向滚动播报条：报价 + 预约（ADR-008） */
.marquee {
    display: flex;
    align-items: center;
    height: 38px;
    padding-right: 6px;
    border: 1px solid #e3f3ea;
    border-radius: 10px;
    background: linear-gradient(90deg, #f2fbf6 0%, #f8fdfa 100%);
    overflow: hidden;
}
.marquee-label {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    background: #e8f8ee;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.marquee-speaker { font-size: 14px; }
.marquee-window { flex: 1; min-width: 0; height: 100%; overflow: hidden; }
.marquee-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    height: 100%;
    animation: marqueeSlide 26s linear infinite;
}
.marquee-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    color: #31453a;
    font-size: 12px;
    white-space: nowrap;
}
.marquee-item::after { content: "•"; margin-left: 16px; color: #b6c8bd; }
.marquee-emoji { font-size: 14px; }
.marquee-item b { font-weight: 600; }
.marquee-price { color: #e64340; font-weight: 700; font-variant-numeric: tabular-nums; }
.marquee-pause {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--brand-dark);
    font-size: 10px;
    cursor: pointer;
}
.marquee:hover .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes marqueeSlide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 预约播报用暖色，和报价区分 */
.reservation-card {
    margin-bottom: 14px;
    padding: 6px;
    border: 1px solid #ffe1bf;
    border-radius: 14px;
    background: #fff9f2;
}
.marquee-reservation { height: 38px; border-color: #ffe1bf; background: #fff9f2; }
.marquee-reservation .marquee-label { background: #ffedd8; color: #b8480d; }
.marquee-reservation .marquee-item { color: #6b4a33; }
.marquee-reservation .marquee-pause { color: #b8480d; }

/* 品类卡：固定 2 列 + 允许收缩，杜绝长型号撑破栅格 */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cats .cat { min-width: 0; padding: 12px 10px; border: 1px solid transparent; border-radius: 14px; }
.cats .cat.selected { border: 1.5px solid var(--brand); box-shadow: 0 4px 14px rgba(7, 168, 90, .10); }
.cats .cat .icon { width: 46px; height: 46px; font-size: 23px; }
.cat .name { font-size: 14px; font-weight: 600; }
.cat .price { font-size: 12px; font-weight: 600; }
.cat-detail, .cat-detail .model-select, .cat-detail .w { min-width: 0; max-width: 100%; }
.cat-detail .model-select, .cat-detail .w { font-size: 12px; }
.btn { border-radius: 12px; background: linear-gradient(90deg, #07c160 0%, #07a85a 100%); font-weight: 600; }
.nav a { border: 1px solid var(--line); box-shadow: 0 3px 12px rgba(23, 70, 45, .04); }

@media (max-width: 360px) {
    .quick-item { font-size: 10px; gap: 2px; }
    .quick-item .q-icon { font-size: 14px; }
    .marquee-item { padding: 0 10px; font-size: 11px; }
    .marquee-item::after { margin-left: 10px; }
    .marquee-label { padding: 0 8px; font-size: 11px; }
    .hero-estimate { padding-right: 62px; }
    .hero-estimate h1 { font-size: 26px; }
}
