/* ==========================================================
   美育+行 H5 样式（按设计稿橙红主题还原）
   ========================================================== */
:root {
    --primary: #FF6A00;
    --primary-2: #FF8C33;
    --primary-3: #FFB266;
    --bg: #F7F7F7;
    --card: #FFFFFF;
    --t1: #333333;
    --t2: #666666;
    --t3: #999999;
    --line: #F0F0F0;
    --ok: #52C41A;
    --danger: #FF4D4F;
    --warn: #FAAD14;
    --grad: linear-gradient(135deg, #FF8C33, #FF6A00);
    --shadow: 0 4px 16px rgba(255, 106, 0, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
    font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: var(--bg); color: var(--t1);
    -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; color: inherit; }

/* ---------- 顶栏 ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    height: 48px; background: #fff; display: flex; align-items: center;
    padding: 0 12px; border-bottom: 1px solid var(--line);
}
.topbar h1 { flex: 1; text-align: center; font-size: 17px; font-weight: 600; }
.topbar .back { width: 32px; height: 32px; display: flex; align-items: center; color: var(--t1); margin-left: -8px; }
.topbar-main { background: var(--grad); border: none; color: #fff; padding-top: env(safe-area-inset-top); height: auto; min-height: 52px; }

/* ---------- 页面容器 ---------- */
.page { max-width: 640px; margin: 0 auto; padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); }
.page.has-tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.panel { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.loading { text-align: center; color: var(--t3); padding: 40px 0; font-size: 14px; }
.empty { text-align: center; color: var(--t3); padding: 40px 0; font-size: 14px; }

/* ---------- 搜索栏 ---------- */
.searchbar {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 999px; padding: 8px 12px;
    box-shadow: var(--shadow); margin-bottom: 12px; position: relative;
}
.searchbar .city { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; cursor: pointer; position: relative; white-space: nowrap; }
.searchbar .city i { font-style: normal; font-size: 10px; color: var(--t2); transform: scale(.8); }
.searchbar input { flex: 1; font-size: 14px; color: var(--t2); min-width: 0; }
.searchbar .s-btn { color: var(--t2); padding: 2px; display: flex; }
.city-pop {
    display: none; position: absolute; top: 42px; left: 0; z-index: 30;
    background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 8px; min-width: 180px; max-height: 260px; overflow: auto;
}
.city-pop.open { display: block; }
.city-pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; font-size: 14px; border-radius: 8px; }
.city-pop button:active { background: #FFF3E6; color: var(--primary); }

/* ---------- Banner ---------- */
.banner-wrap { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); }
.banner { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banner::-webkit-scrollbar { display: none; }
.banner img { width: 100%; height: 150px; object-fit: cover; flex-shrink: 0; scroll-snap-align: center; }
.banner-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: all .3s; }
.banner-dots i.on { width: 16px; background: #fff; }

/* ---------- 科目九宫格 ---------- */
.subject-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; padding: 6px 0 12px; }
.subject-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--t1); }
.subject-grid img { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; transition: transform .2s; }
.subject-grid a:active img { transform: scale(.92); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); }
.chip {
    padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--t2);
    background: #F5F5F5; cursor: pointer; transition: all .2s;
}
.chip.on { background: var(--grad); color: #fff; box-shadow: 0 3px 8px rgba(255,106,0,.3); }

/* ---------- 排序行 / 老师卡片 ---------- */
.sort-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sort-label { font-size: 14px; font-weight: 600; }
.sort-tabs { display: flex; gap: 8px; }
.sort-tabs button { padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--t2); background: #F5F5F5; transition: all .2s; }
.sort-tabs button.on { color: #fff; background: var(--grad); }
.t-list { display: flex; flex-direction: column; gap: 12px; }
.t-card {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: #fff; border-radius: 14px; box-shadow: var(--shadow);
    transition: transform .15s;
}
.t-card:active { transform: scale(.985); }
.t-card img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.t-info { flex: 1; min-width: 0; }
.t-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.stars { color: #FFAA00; font-size: 12px; letter-spacing: 1px; }
.t-info .score { color: var(--t2); font-size: 13px; margin-left: 4px; }
.t-info .p { color: var(--t3); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; }
.t-price { color: var(--primary); font-weight: 700; font-size: 15px; }
.t-price small { font-size: 11px; }
.btn-mini {
    padding: 7px 18px; border-radius: 999px; background: var(--grad); color: #fff;
    font-size: 13px; cursor: pointer; box-shadow: 0 4px 10px rgba(255,106,0,.3); transition: transform .15s;
}
.btn-mini:active { transform: scale(.94); }
.list-more { text-align: center; margin-top: 12px; }
.btn-ghost { color: var(--t2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 24px; font-size: 13px; }

/* ---------- 资讯 ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2, .sec-head h3 { font-size: 16px; font-weight: 600; }
.more-link { color: var(--t3); font-size: 13px; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.news-card { border-radius: 12px; overflow: hidden; position: relative; background: #eee; }
.news-card img { width: 100%; height: 92px; object-fit: cover; }
.news-card span {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 6px;
    color: #fff; font-size: 12px; background: linear-gradient(transparent, rgba(0,0,0,.55));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-row { display: flex; gap: 12px; align-items: center; }
.news-row img { width: 110px; height: 76px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.news-row b { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.news-row p { color: var(--t3); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 底部 Tab ---------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    max-width: 640px; margin: 0 auto; height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line);
    display: flex; justify-content: space-around; align-items: center;
}
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--t3); width: 33%; }
.tabbar .tab img { width: 24px; height: 24px; }
.tabbar .tab.on { color: var(--primary); font-weight: 600; }

/* ---------- 老师详情 ---------- */
.t-hero { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; }
.t-swiper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.t-swiper::-webkit-scrollbar { display: none; }
.t-swiper img, .t-swiper video { width: 100%; height: 300px; object-fit: cover; flex-shrink: 0; scroll-snap-align: center; background: #000; }
.t-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.t-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: all .3s; }
.t-dots i.on { width: 16px; background: #fff; }
.t-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.t-title h2 { font-size: 20px; font-weight: 700; }
.t-rating { color: #FFAA00; font-size: 16px; display: flex; align-items: center; gap: 4px; }
.t-rating b { color: #FFAA00; }
.t-meta { color: var(--t2); font-size: 13px; line-height: 1.7; }
.seg { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.seg button { flex: 1; padding: 12px 0; font-size: 14px; color: var(--t2); position: relative; }
.seg button.on { color: var(--primary); font-weight: 600; }
.seg button.on::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; border-radius: 2px; background: var(--primary); }
.sec-title { font-size: 15px; font-weight: 600; margin: 14px 0 10px; display: flex; align-items: center; gap: 6px; }
.sec-title i { width: 3px; height: 14px; border-radius: 2px; background: var(--primary); }
.t-intro { color: var(--t2); font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.date-strip::-webkit-scrollbar { display: none; }
.date-item {
    flex-shrink: 0; width: 56px; padding: 8px 0; text-align: center; border-radius: 12px;
    border: 1px solid var(--line); font-size: 13px; color: var(--t2); cursor: pointer; transition: all .2s;
}
.date-item b { display: block; font-size: 14px; color: var(--t1); margin-top: 2px; }
.date-item.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.date-item.on b { color: #fff; }
.slot-row { display: flex; gap: 10px; margin: 12px 0 4px; }
.slot-row button {
    flex: 1; padding: 11px 0; border: 1px solid var(--line); border-radius: 10px;
    font-size: 14px; color: var(--t2); cursor: pointer; transition: all .2s;
}
.slot-row button.on { border-color: var(--primary); color: var(--primary); background: #FFF3E6; font-weight: 600; }

/* ---------- 表单 ---------- */
.form { background: #fff; }
.f-row { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.f-row:last-child { border-bottom: none; }
.f-row label { width: 76px; color: var(--t1); font-size: 14px; flex-shrink: 0; }
.f-row input, .f-row select, .f-row textarea {
    flex: 1; font-size: 14px; color: var(--t1); min-width: 0;
}
.f-row input::placeholder, textarea::placeholder { color: #bbb; }
.f-row select { color: var(--t1); }
.form-page .f-row { padding: 16px 0; font-size: 15px; }
textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; resize: none; }
.btn-main {
    display: block; width: 100%; padding: 14px; border-radius: 12px;
    background: var(--grad); color: #fff; font-size: 16px; font-weight: 600;
    cursor: pointer; box-shadow: 0 6px 16px rgba(255,106,0,.35); transition: transform .15s;
}
.btn-main:active { transform: scale(.97); }
.btn-main[disabled] { opacity: .6; }
.btn-submit { margin-top: 24px; }
.btn-plain {
    display: block; width: 100%; padding: 13px; border-radius: 12px;
    border: 1.5px solid var(--primary); color: var(--primary); font-size: 16px; font-weight: 600; cursor: pointer;
}
.pay-tip { color: var(--t3); font-size: 12px; margin-top: 12px; line-height: 1.6; }
.bottom-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
}
.cta-ico { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--t2); font-size: 10px; }
.cta-ico img { width: 22px; height: 22px; }
.bottom-cta .btn-main { flex: 1; }

/* ---------- 评价 ---------- */
.rv-list { display: flex; flex-direction: column; gap: 12px; }
.rv-item { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rv-item:last-child { border: none; }
.rv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rv-head img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.rv-head b { font-size: 13px; flex: 1; }
.rv-head span { color: #FFAA00; font-size: 12px; }
.rv-item p { color: var(--t2); font-size: 13px; line-height: 1.6; }
.rv-item time { color: var(--t3); font-size: 11px; margin-top: 4px; display: block; }

/* ---------- 我的 ---------- */
.my-head {
    background: var(--grad); border-radius: 0 0 26px 26px; padding: 18px 16px 46px;
    margin: -12px -12px 0; position: relative; color: #fff;
}
.my-head::after { content: ''; }
.my-info, .my-login { display: flex; align-items: center; gap: 14px; }
.my-info b { font-size: 18px; display: block; }
.my-info span { font-size: 12px; opacity: .85; }
.avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.6); }
.order-panel { margin-top: -28px; position: relative; z-index: 2; }
.order-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 0; }
.order-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--t2); }
.order-grid img { width: 30px; height: 30px; object-fit: contain; }
.link-panel { padding: 4px 14px; }
.lk { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lk:last-child { border: none; }
.lk i { font-style: normal; color: #ccc; }
.role-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: #FFF3E6; color: var(--primary); margin-left: 8px; }

/* ---------- 订单 ---------- */
.o-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 0; margin-bottom: 12px; }
.o-tabs button { flex: 1; padding: 12px 0; font-size: 14px; color: var(--t2); position: relative; }
.o-tabs button.on { color: var(--primary); font-weight: 600; }
.o-tabs button.on::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px; border-radius: 2px; background: var(--primary); }
.o-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.o-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.o-top .sn { color: var(--t3); font-size: 12px; }
.o-top .st { color: var(--warn); font-size: 13px; font-weight: 600; }
.o-top .st.done { color: var(--ok); } .o-top .st.refund { color: var(--danger); } .o-top .st.visit { color: var(--primary); }
.o-body { display: flex; gap: 12px; }
.o-body img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.o-body .n { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.o-body .time { color: var(--t3); font-size: 12px; }
.o-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.o-foot .amt { color: var(--primary); font-weight: 700; }
.o-btns { display: flex; gap: 10px; }
.o-btn { padding: 8px 16px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line); color: var(--t2); cursor: pointer; }
.o-btn.main { background: var(--grad); color: #fff; border: none; }
.o-btn.danger { color: var(--danger); border-color: #FFD6D6; }
.od-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.od-line span { color: var(--t3); }
.od-status { padding: 16px; border-radius: 12px; background: #FFF3E6; color: var(--primary); font-weight: 600; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.star-select { display: flex; gap: 6px; font-size: 28px; color: #ddd; cursor: pointer; margin-bottom: 12px; }
.star-select .on { color: #FFAA00; }

/* ---------- 佣金 / 提现 ---------- */
.cw-head {
    background: var(--grad); border-radius: 16px; color: #fff; padding: 20px 16px;
    text-align: center; margin-bottom: 12px;
}
.cw-head .num { font-size: 34px; font-weight: 700; }
.cw-head .lbl { font-size: 12px; opacity: .85; margin-bottom: 6px; }
.cw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.cw-grid div { background: rgba(255,255,255,.16); border-radius: 10px; padding: 10px 0; text-align: center; }
.cw-grid b { display: block; font-size: 15px; }
.cw-grid span { font-size: 11px; opacity: .8; }
.cw-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cw-tabs button { padding: 7px 14px; border-radius: 999px; font-size: 13px; background: #F5F5F5; color: var(--t2); }
.cw-tabs button.on { background: var(--grad); color: #fff; }
.cw-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cw-item:last-child { border: none; }
.cw-item .r1 { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.cw-item .r1 b.plus { color: var(--ok); }
.cw-item .r2 { display: flex; justify-content: space-between; color: var(--t3); font-size: 12px; }
.wd-line { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.wd-line b { color: var(--primary); }
.wd-sub { color: var(--t3); font-size: 13px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.wd-input { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.wd-input .yen { color: var(--primary); font-size: 22px; font-weight: 700; }
.wd-input input { flex: 1; font-size: 22px; }
.wd-input .all-btn { color: var(--primary); font-size: 14px; }
.wd-rules { background: #EFEFEF; margin: 0 -14px; padding: 14px; color: var(--t2); font-size: 13px; line-height: 1.9; }
.wd-rules span { color: var(--primary); }

/* ---------- 分销 / 代理 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat-grid div { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 14px 0; text-align: center; }
.stat-grid b { display: block; font-size: 18px; color: var(--primary); }
.stat-grid span { font-size: 12px; color: var(--t3); }
.member-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.member-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.member-row .m-info { flex: 1; min-width: 0; }
.member-row time { color: var(--t3); font-size: 12px; }
.invite-box { background: #FFF3E6; border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--primary); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }

/* ---------- 资讯详情 ---------- */
.article { padding: 18px 16px; }
.art-title { font-size: 19px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.art-date { color: var(--t3); font-size: 12px; margin-bottom: 14px; }
.art-cover { width: 100%; border-radius: 12px; margin-bottom: 14px; }
.art-content { color: var(--t2); font-size: 15px; line-height: 1.9; }
.art-content p { margin-bottom: 12px; }

/* ---------- 登录 ---------- */
.login-page { max-width: 340px; margin: 40px auto 0; text-align: center; }
.login-logo { font-size: 34px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.login-logo span { color: var(--t1); }
.login-slogan { color: var(--t3); font-size: 13px; margin-bottom: 32px; }
.login-div { color: var(--t3); font-size: 13px; margin: 26px 0 0; }
.login-page .form-page { margin-top: 12px; text-align: left; background: #fff; border-radius: 14px; padding: 0 16px; box-shadow: var(--shadow); }
.login-page .btn-main, .login-page .btn-plain { margin-top: 20px; }
.login-tip { color: #bbb; font-size: 11px; margin-top: 20px; }

/* ---------- 申请状态 ---------- */
.apply-status { padding: 12px; border-radius: 12px; font-size: 14px; margin-bottom: 4px; display: none; }
.apply-status.warn { display: block; background: #FFF7E6; color: #AD6800; }
.apply-status.ok { display: block; background: #F6FFED; color: #389E0D; }
.apply-status.err { display: block; background: #FFF1F0; color: #CF1322; }
.apply-tip { color: var(--t3); font-size: 12px; text-align: center; margin-top: 14px; }

/* ---------- 老师(发布)中心 ---------- */
.tc-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
.badge { padding: 4px 12px; border-radius: 999px; font-size: 12px; background: #F5F5F5; color: var(--t2); }
.badge.p1 { background: #F6FFED; color: var(--ok); }
.badge.p0 { background: #FFF7E6; color: #AD6800; }
.badge.p2, .badge.p3 { background: #F5F5F5; color: var(--t3); }
.tc-form label { width: 84px; }
.thumb-row { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.thumb-row::-webkit-scrollbar { display: none; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.thumb-add { display: flex; align-items: center; justify-content: center; font-size: 26px; color: #ccc; border: 1px dashed #ddd; border-radius: 10px; width: 72px; height: 72px; flex-shrink: 0; position: relative; overflow: hidden; }

/* ---------- Toast / Modal ---------- */
.toast {
    position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(.9);
    background: rgba(0,0,0,.75); color: #fff; padding: 10px 20px; border-radius: 10px;
    font-size: 14px; z-index: 99; opacity: 0; pointer-events: none; transition: all .25s; max-width: 76%;
    text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal {
    position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center; padding: 32px;
}
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 340px; padding: 20px; animation: pop .22s ease; }
@keyframes pop { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-box h3 { font-size: 17px; margin-bottom: 12px; text-align: center; }
.modal-box .m-body { color: var(--t2); font-size: 14px; line-height: 1.7; }
.modal-btns { display: flex; gap: 12px; margin-top: 18px; }
.modal-btns button { flex: 1; padding: 12px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.modal-btns .cancel { background: #F5F5F5; color: var(--t2); }
.modal-btns .ok { background: var(--grad); color: #fff; font-weight: 600; }

/* ---------- 预约页左右布局 ---------- */
.booking-wrap { display: flex; gap: 0; margin: -4px -12px 0; min-height: 70vh; }
.cate-nav { width: 96px; background: #fff; padding: 6px 0; overflow-y: auto; flex-shrink: 0; }
.cate-nav button { display: block; width: 100%; text-align: center; padding: 17px 4px; font-size: 13px; color: var(--t2); border-left: 3px solid transparent; }
.cate-nav button.on { color: var(--primary); font-weight: 600; border-left-color: var(--primary); background: #FFF3E6; border-radius: 0 999px 999px 0; }
.booking-list { flex: 1; padding: 10px; min-width: 0; }

@media (max-width: 360px) {
    .subject-grid img { width: 42px; height: 42px; }
    .t-card img { width: 66px; height: 66px; }
}
