/* ============ 专业影像拍摄团购预约平台 - H5 样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --red: #e04b3f;
  --red-deep: #c0392b;
  --red-grad: linear-gradient(135deg, #e04b3f, #c0392b);
  --gold: #c9a86a;
  --cream: #faf6f0;
  --card: #ffffff;
  --text: #2b2320;
  --text2: #8a7a6a;
  --line: #f0e8de;
}
html, body { background: var(--cream); color: var(--text); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 70px; }

/* ---------- 顶部横幅 ---------- */
.banner { background: var(--red-grad); color: #fff; padding: 22px 18px 54px; position: relative; overflow: hidden; }
.banner::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08); }
.banner::before { content: ""; position: absolute; right: 40px; bottom: -50px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,.06); }
.banner .top-bar { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.banner .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.banner .brand .logo-dot { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--red-deep); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.banner h1 { font-size: 26px; letter-spacing: 2px; margin-top: 22px; position: relative; z-index: 1; }
.banner .sub { font-size: 15px; margin-top: 4px; letter-spacing: 4px; opacity: .95; position: relative; z-index: 1; }
.banner .tip { display: inline-block; margin-top: 12px; font-size: 12px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 5px 12px; border-radius: 20px; position: relative; z-index: 1; }

/* ---------- 区块 ---------- */
.section { margin: -34px 12px 14px; position: relative; z-index: 2; }
.section + .plain { margin: 14px 12px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 14px 10px; }
.sec-title h3 { font-size: 17px; font-weight: 700; }
.sec-title h3::before { content: ""; display: inline-block; width: 4px; height: 15px; background: var(--red); border-radius: 2px; margin-right: 7px; vertical-align: -2px; }
.sec-title a { font-size: 12px; color: var(--text2); }

/* ---------- 核心功能宫格 ---------- */
.grid-features { background: var(--card); border-radius: 14px; padding: 18px 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; box-shadow: 0 4px 16px rgba(140,80,60,.06); }
.grid-features .fi { text-align: center; font-size: 11px; color: var(--text2); }
.grid-features .fi .em { font-size: 24px; display: block; margin-bottom: 5px; }
.grid-features .fi b { display: block; color: var(--text); font-size: 12px; margin-bottom: 2px; }

/* ---------- 拍摄类型 ---------- */
.grid-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid-cats .cat { background: var(--card); border-radius: 12px; padding: 13px 4px; text-align: center; box-shadow: 0 3px 10px rgba(140,80,60,.05); }
.grid-cats .cat .em { font-size: 22px; display: block; }
.grid-cats .cat b { font-size: 12px; margin-top: 5px; display: block; }

/* ---------- 步骤条 ---------- */
.steps-flow { background: var(--card); border-radius: 14px; padding: 18px 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; box-shadow: 0 4px 16px rgba(140,80,60,.06); }
.steps-flow .step { text-align: center; position: relative; font-size: 11px; color: var(--text2); }
.steps-flow .step .num { width: 30px; height: 30px; line-height: 30px; border-radius: 50%; background: #fdeeed; color: var(--red); font-weight: 700; font-size: 13px; display: block; margin: 0 auto 6px; }
.steps-flow .step b { display: block; color: var(--text); font-size: 12px; margin-bottom: 2px; }
.steps-flow .step:not(:last-child)::after { content: ""; position: absolute; top: 15px; right: -22%; width: 44%; height: 2px; background: repeating-linear-gradient(90deg, #ecd8d3 0 5px, transparent 5px 9px); }

/* ---------- 套餐卡片 ---------- */
.pkg-list { display: grid; gap: 12px; }
.pkg-card { background: var(--card); border-radius: 14px; overflow: hidden; display: flex; box-shadow: 0 4px 16px rgba(140,80,60,.06); }
.pkg-card .cover { width: 118px; min-height: 108px; background: linear-gradient(135deg, #f5d5cc, #eec3b8); display: flex; align-items: center; justify-content: center; font-size: 34px; flex-shrink: 0; position: relative; }
.pkg-card .cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pkg-card .info { padding: 12px 13px; flex: 1; display: flex; flex-direction: column; }
.pkg-card .info h4 { font-size: 15px; line-height: 1.4; }
.pkg-card .hot { display: inline-block; background: #fff2e8; color: #ff8c42; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-right: 5px; vertical-align: 1px; }
.pkg-card .desc { font-size: 11px; color: var(--text2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pkg-card .meta { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; padding-top: 6px; }
.pkg-card .price { color: var(--red); font-weight: 800; font-size: 19px; }
.pkg-card .price::before { content: "¥"; font-size: 12px; }
.pkg-card .oprice { color: #b8aa9a; font-size: 11px; text-decoration: line-through; margin-left: 5px; font-weight: 400; }
.pkg-card .btn-buy { background: var(--red-grad); color: #fff; font-size: 12px; padding: 7px 15px; border-radius: 20px; font-weight: 600; }

/* ---------- 门店 ---------- */
.store-card { background: var(--card); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 4px 16px rgba(140,80,60,.06); margin-bottom: 10px; }
.store-card .em { font-size: 26px; }
.store-card h4 { font-size: 15px; }
.store-card p { font-size: 12px; color: var(--text2); margin-top: 3px; }

/* ---------- 表单 ---------- */
.form-card { background: var(--card); border-radius: 14px; padding: 8px 16px; box-shadow: 0 4px 16px rgba(140,80,60,.06); }
.form-row { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.form-row:last-child { border-bottom: none; }
.form-row label { width: 78px; font-size: 13px; color: var(--text2); flex-shrink: 0; }
.form-row input[type=text], .form-row input[type=tel], .form-row input[type=number], .form-row select, .form-row textarea {
  flex: 1; border: none; font-size: 14px; background: transparent; color: var(--text); font-family: inherit; width: 100%;
}
.form-row textarea { min-height: 60px; resize: none; line-height: 1.6; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; }
.form-row .arrow { color: #c8bbaa; font-size: 12px; }
.form-row .require::after { content: " *"; color: var(--red); }

/* ---------- 日期/时段选择 ---------- */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; }
.date-strip::-webkit-scrollbar { display: none; }
.date-item { flex-shrink: 0; width: 62px; background: var(--card); border-radius: 10px; padding: 9px 0; text-align: center; border: 1.5px solid transparent; box-shadow: 0 3px 10px rgba(140,80,60,.05); cursor: pointer; }
.date-item .d1 { font-size: 11px; color: var(--text2); }
.date-item .d2 { font-size: 17px; font-weight: 700; margin: 2px 0; }
.date-item .d3 { font-size: 10px; color: var(--text2); }
.date-item.on { border-color: var(--red); background: #fdf1ef; }
.date-item.on .d1, .date-item.on .d3 { color: var(--red); }
.date-item.full { opacity: .45; }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 4px; }
.slot-item { background: var(--card); border: 1.5px solid transparent; border-radius: 10px; padding: 11px 4px; text-align: center; box-shadow: 0 3px 10px rgba(140,80,60,.05); cursor: pointer; }
.slot-item .t { font-size: 13px; font-weight: 600; }
.slot-item .left { font-size: 10px; color: #27ae60; margin-top: 3px; }
.slot-item.on { border-color: var(--red); background: #fdf1ef; }
.slot-item.full { opacity: .45; cursor: not-allowed; }
.slot-item.full .left { color: var(--text2); }

/* ---------- 支付方式 ---------- */
.pay-item { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pay-item:last-child { border-bottom: none; }
.pay-item .em { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 10px; }
.pay-item .em.wechat { background: #e8f8ee; }
.pay-item .em.alipay { background: #e8f1fd; }
.pay-item .em.store { background: #fdf3e6; }
.pay-item b { flex: 1; font-size: 14px; }
.pay-item .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #d8ccc0; position: relative; }
.pay-item.on .radio { border-color: var(--red); }
.pay-item.on .radio::after { content: ""; position: absolute; inset: 3px; background: var(--red); border-radius: 50%; }

/* ---------- 按钮 ---------- */
.btn-main { display: block; width: calc(100% - 24px); margin: 18px 12px; padding: 14px; border: none; border-radius: 25px; background: var(--red-grad); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 2px; cursor: pointer; box-shadow: 0 6px 18px rgba(224,75,63,.35); }
.btn-main:active { opacity: .9; }
.btn-main:disabled { background: #d8ccc0; box-shadow: none; }
.btn-line { display: inline-block; padding: 7px 16px; border-radius: 18px; border: 1px solid var(--red); color: var(--red); font-size: 12px; background: transparent; cursor: pointer; }
.btn-ghost { display: inline-block; padding: 7px 16px; border-radius: 18px; border: 1px solid #d8ccc0; color: var(--text2); font-size: 12px; background: transparent; cursor: pointer; }

/* ---------- 订单卡片 ---------- */
.order-card { background: var(--card); border-radius: 14px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(140,80,60,.06); }
.order-card .head { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px dashed var(--line); font-size: 12px; color: var(--text2); }
.order-card .head .st { font-weight: 600; }
.order-card .body { padding: 12px 14px; display: flex; gap: 11px; }
.order-card .thumb { width: 64px; height: 64px; border-radius: 10px; background: linear-gradient(135deg, #f5d5cc, #eec3b8); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; overflow: hidden; position: relative; }
.order-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.order-card .b-info { flex: 1; min-width: 0; }
.order-card .b-info h4 { font-size: 14px; }
.order-card .b-info p { font-size: 12px; color: var(--text2); margin-top: 3px; }
.order-card .foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.order-card .foot .amount { font-size: 15px; font-weight: 700; color: var(--red); }
.order-card .foot .amount::before { content: "¥"; font-size: 11px; }
.st-0 { color: #ff8c42; } .st-1 { color: #2980d9; } .st-2 { color: #27ae60; } .st-3 { color: #aaa; }

/* ---------- 详情页 ---------- */
.d-block { background: var(--card); border-radius: 14px; margin: 12px; padding: 16px; box-shadow: 0 4px 16px rgba(140,80,60,.06); }
.d-block h3 { font-size: 15px; margin-bottom: 12px; }
.d-block h3::before { content: ""; display: inline-block; width: 4px; height: 13px; background: var(--red); border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.dl { display: flex; font-size: 13px; padding: 7px 0; }
.dl dt { width: 80px; color: var(--text2); flex-shrink: 0; }
.dl dd { flex: 1; word-break: break-all; }
.verify-box { text-align: center; padding: 10px 0 4px; }
.verify-box .code { font-size: 26px; font-weight: 800; letter-spacing: 5px; color: var(--red-deep); font-family: monospace; }
.verify-box p { font-size: 11px; color: var(--text2); margin-top: 6px; }

/* ---------- 详情大图 ---------- */
.pkg-hero { margin: 12px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #e04b3f, #c0392b); min-height: 170px; display: flex; align-items: center; justify-content: center; font-size: 60px; position: relative; }
.pkg-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pkg-hero .tag { position: absolute; left: 12px; top: 12px; background: #ffd76a; color: #7a4a00; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; z-index: 1; }

/* ---------- 底部导航 ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 50; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 9px; font-size: 10px; color: var(--text2); }
.tabbar a .em { font-size: 20px; display: block; }
.tabbar a.on { color: var(--red); font-weight: 600; }

/* ---------- 提示 ---------- */
.notice-bar { margin: 12px; background: #fdf6ec; border: 1px solid #f5e3c8; color: #9a7a3a; font-size: 12px; padding: 10px 13px; border-radius: 10px; line-height: 1.7; }
.empty { text-align: center; color: var(--text2); padding: 70px 0; font-size: 13px; }
.empty .em { font-size: 44px; display: block; margin-bottom: 12px; }
.toast-mask { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: none; align-items: center; justify-content: center; z-index: 99; }
.toast-mask .toast { background: rgba(30,20,18,.9); color: #fff; font-size: 14px; padding: 14px 26px; border-radius: 10px; max-width: 78%; text-align: center; line-height: 1.6; }
.back-bar { display: flex; align-items: center; background: var(--red-grad); color: #fff; padding: 13px 14px; position: sticky; top: 0; z-index: 40; max-width: 480px; margin: 0 auto; }
.back-bar a { font-size: 18px; margin-right: 10px; padding: 0 4px; }
.back-bar b { font-size: 16px; letter-spacing: 1px; }
