/* 宠宝科技 H5 —— 全站橙白配色，与 /pet-bus、/live 保持一致 */
:root{
  --orange:#ff9500;
  --orange-hover:#e98700;
  --orange-text:#bd7218;
  --orange-soft:#fff3e8;
  --orange-tint:#fff9f3;
  --orange-cream:#fff7ef;
  --orange-line:#f3ddc2;
  --line:#f0e7dd;
  --line-soft:#f5ede4;
  --ink:#333;
  --muted:#777;
}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.7;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
h1,h2,h3,p{margin:0}
p{color:var(--muted)}
img{display:block;max-width:100%;height:auto}
code{font-size:12px;color:#7a5c3d;background:var(--orange-tint);padding:3px 7px;border-radius:5px}

main{max-width:1100px;margin:auto;padding:24px 24px 56px;min-height:70vh}

.heading{margin:12px 0 26px}
.heading h1{font-size:clamp(26px,4vw,36px);line-height:1.3;letter-spacing:-.6px;margin:10px 0 8px}
.heading p{font-size:14px}
.panel{background:var(--orange-tint);border:1px solid var(--line);border-radius:18px;padding:26px}
.panel h2{font-size:20px;line-height:1.4;margin-bottom:8px}
.panel p{font-size:14px}
.button{display:inline-block;background:var(--orange);color:#fff;border:0;border-radius:999px;padding:11px 22px;font-size:14px;font-weight:600;cursor:pointer;margin-top:16px;box-shadow:0 8px 20px rgba(255,138,0,.18)}
.button:hover{background:var(--orange-hover)}

/* 运费计算规则（空调车） */
.rule-section{margin-top:28px}
.rule-heading{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}
.rule-index{font-size:11px;color:var(--orange-text);border-top:2px solid var(--orange);line-height:22px;margin-top:2px}
.rule-heading h2{font-size:20px;line-height:1.4;color:var(--ink)}
.ac-methods{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ac-method{padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}
.ac-method--manual{background:var(--orange-tint)}
.ac-method-label{display:inline-block;margin-bottom:8px;padding:3px 9px;border-radius:999px;background:var(--orange-soft);color:#99530a;font-size:11px}
.ac-formula{margin:0;font-size:15px;font-weight:600;line-height:1.9;color:var(--ink)}
.ac-formula b{padding:0 2px;color:var(--orange-text);font-weight:500}
.ac-formula small{font-size:12px;font-weight:400;color:#9a8670;white-space:nowrap}
.ac-method p:not(.ac-formula){font-size:12px;line-height:1.7;color:#8b8178}
.ac-table-wrap{margin-top:2px}
.ac-table{font-size:13px}
.ac-table th,.ac-table td{padding:12px 14px}
.ac-table td:first-child{font-weight:600;color:var(--ink)}
.ac-table td:last-child,.ac-table th:last-child{text-align:right;font-variant-numeric:tabular-nums}
.ac-table-note{margin-top:8px;font-size:11px;color:#a0917f}
.ac-note{margin-top:22px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--orange-tint)}
.ac-note p{font-size:12px;line-height:1.8;color:#947a61}
.ac-note p+p{margin-top:4px}

/* 视频页、空状态 */
.empty{text-align:center;padding:44px 16px;color:#a0917f;font-size:13px}
.video-empty{background:linear-gradient(145deg,var(--orange-tint),#fff)}
.video-empty>span{display:block;font-size:56px;line-height:1.2;color:#f0c894}
video{width:100%;max-height:65vh;background:#17191d;border-radius:12px}
#video-status{font-size:12px}

/* 页面目录 */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:22px}
.stats>div{background:var(--orange-cream);border:1px solid var(--line);border-radius:14px;padding:16px 18px;color:#9a8670;font-size:12px}
.stats strong{display:block;font-size:26px;line-height:1.5;color:var(--orange-text)}
.toolbar{display:flex;gap:10px;align-items:center;margin:18px 0}
.toolbar input{flex:1;min-width:0}
.toolbar span{font-size:12px;color:#a0917f;white-space:nowrap}
input,select{border:1px solid #e8ded2;border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink);min-width:0}
input:focus,select:focus{border-color:var(--orange);outline:2px solid #ffe3bf;outline-offset:0}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
th{font-size:11px;font-weight:600;letter-spacing:1px;background:var(--orange-cream);color:#9a7a55;padding:13px 18px}
td{padding:16px 18px;border-top:1px solid var(--line-soft);vertical-align:middle}
td strong{display:block;font-size:14px;font-weight:600}
td small{display:block;max-width:320px;font-size:11px;line-height:1.5;color:#a0917f;white-space:normal}
.badge{font-size:11px;padding:3px 8px;border-radius:5px;background:var(--orange-soft);color:#99530a;white-space:nowrap}
.actions a,.actions button{font-size:12px;color:var(--orange-text);background:none;border:0;cursor:pointer;padding:0}
.actions a:hover,.actions button:hover{color:var(--orange-hover)}
.actions button{margin-left:14px}
.muted{font-size:12px;margin-top:14px}
#toast:not(:empty){position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:10;padding:11px 22px;border-radius:999px;background:#333;color:#fff;font-size:13px;box-shadow:0 10px 30px rgba(51,51,51,.2)}

/* 首页：沿用 /pet-bus 的白底、暖橙渐变与卡片版式 */
.home{max-width:480px;margin:0 auto;padding:0 0 env(safe-area-inset-bottom);background:#fff}
.home-hero{padding:18px 16px 0;background:linear-gradient(165deg,#fff 8%,var(--orange-soft) 58%,#ffe6cd)}
.home-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-brand{display:flex;align-items:center;gap:10px}
.home-logo{width:64px;height:auto;display:block;flex:none}
.home-brand-name{font-size:18px;line-height:1.35;font-weight:700;letter-spacing:.5px;color:var(--ink)}
.home-copy{padding:26px 4px 20px}
.home-copy h1{font-size:clamp(27px,8vw,32px);line-height:1.38;letter-spacing:-1px;font-weight:800;color:var(--ink);margin-bottom:12px}
.home-copy h1 span{color:#ed8700}
.home-copy p{font-size:13px;color:var(--muted)}
.home-cta{display:inline-flex;align-items:center;gap:7px;margin-top:18px;padding:11px 20px;border-radius:999px;background:linear-gradient(135deg,#ffa41f,#ff8a00);color:#fff;font-size:13px;font-weight:600;box-shadow:0 8px 20px rgba(255,138,0,.24)}
.home-cta b{font-weight:400}
.home-hero-img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:18px}
.home-hero-foot{display:flex;align-items:center;justify-content:center;gap:18px;padding:16px 0 22px;font-size:12px;color:#946b42}
.home-hero-foot i{width:3px;height:3px;border-radius:50%;background:#eab97e}
.home-section{padding:28px 16px 6px}
.home-heading{display:flex;align-items:flex-start;gap:10px;margin-bottom:8px}
.home-heading .index{font-size:11px;color:var(--orange-text);border-top:2px solid var(--orange);line-height:22px;margin-top:2px}
.home-heading h2{font-size:23px;line-height:1.35;letter-spacing:-.5px;font-weight:700;color:var(--ink)}
.home-intro{font-size:13px;margin-bottom:18px}
.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.home-card{display:flex;flex-direction:column;background:var(--orange-cream);border:1px solid #f4e8dc;border-radius:16px;overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.home-card-img{width:100%;height:auto;aspect-ratio:11/10;object-fit:cover}
.home-card-glyph{display:flex;align-items:center;justify-content:center;aspect-ratio:11/10;font-size:40px;color:#e58f2a;background:linear-gradient(145deg,var(--orange-soft),#ffe5cb)}
.home-card-body{flex:1;display:flex;flex-direction:column;padding:11px 12px 13px}
.home-badge{align-self:flex-start;font-size:10px;color:#99530a;background:#fff0dd;border-radius:4px;padding:2px 7px;margin-bottom:7px}
.home-card h3{font-size:17px;line-height:1.4;font-weight:700;color:var(--ink);margin-bottom:3px}
.home-card p{flex:1;font-size:12px;line-height:1.6;color:#8b8178}
.home-card-link{display:flex;align-items:center;gap:4px;margin-top:10px;font-size:11px;color:#c1730e}
.home-card-link b{font-weight:400;transition:transform .2s}
.home-card--wide{grid-column:1/-1;flex-direction:row}
.home-card--wide .home-card-glyph{width:108px;flex:none;aspect-ratio:auto;font-size:46px}
.home-card--wide .home-card-body{padding:14px 14px 14px 3px}
.home-note{margin:22px 16px 0;padding:13px 16px;border-left:3px solid #ffc27a;border-radius:0 12px 12px 0;background:var(--orange-tint);font-size:12px;color:#947a61}

@media(hover:hover){
  .home-card:hover{transform:translateY(-3px);border-color:#f0d3ad;box-shadow:0 12px 26px rgba(255,138,0,.1)}
  .home-card:hover .home-card-link b{transform:translateX(3px)}
  .home-cta:hover{box-shadow:0 10px 24px rgba(255,138,0,.32)}
}
@media(max-width:760px){
  .ac-methods{grid-template-columns:1fr}
}
@media(max-width:640px){
  main{padding:18px 16px 44px}
  .panel{padding:20px;border-radius:16px}
  .heading h1{font-size:26px}
  .stats{gap:8px}
  .stats>div{padding:12px}
  .stats strong{font-size:20px}
  .toolbar{flex-wrap:wrap}
  .toolbar input{flex:1 1 100%;width:100%}
  .actions button{margin-left:0;display:block;padding-top:6px}
  th{padding:12px}
  td{padding:14px 12px}
  td small{max-width:200px}
  .home-card--wide .home-card-glyph{width:92px;font-size:40px}
  .ac-method{padding:16px}
  .ac-table{font-size:12px}
  .ac-table th,.ac-table td{padding:10px 12px}
}
@media(max-width:350px){
  .home-copy h1{font-size:26px}
  .home-card--wide .home-card-glyph{width:80px;font-size:34px}
}
