/* =============================================================
   前端学生用户端样式
   PC 端：顶部导航栏 + 宽屏舒展布局
   移动端：底部导航栏 + 触控友好 + 一键可达
   ============================================================= */

body { padding-top: var(--nav-h); padding-bottom: 0; }

/* ================= 顶部导航 ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: #fff; border-bottom: 1px solid var(--c-border);
  z-index: 800; box-shadow: 0 1px 8px rgba(15,42,90,.05);
}
.nav-inner {
  max-width: var(--page-max); margin: 0 auto; height: 100%;
  padding: 0 20px; display: flex; align-items: center; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; min-width: 0; }
.nav-logo img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.nav-logo-ph {
  height: 40px; padding: 0 13px; border-radius: 8px;
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; letter-spacing: .5px;
}
.nav-title {
  font-size: 15px; font-weight: 600; color: var(--c-primary-dark);
  letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
.nav-menu a {
  padding: 8px 18px; border-radius: 8px; font-size: 14.5px;
  color: var(--c-text-2); font-weight: 500; transition: .18s; position: relative;
}
.nav-menu a:hover { color: var(--c-primary); background: var(--c-primary-light); }
.nav-menu a.active { color: var(--c-primary); background: var(--c-primary-light); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav-msg { position: relative; width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--c-text-2); }
.nav-msg:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.nav-msg .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; border: 1.5px solid #fff; }

.nav-user { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 22px; background: var(--c-bg-soft); cursor: pointer; transition: .18s; }
.nav-user:hover { background: var(--c-primary-light); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* 传过头像时里面是 <img>，得撑满并裁成圆 */
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-username { font-size: 13.5px; color: var(--c-text); font-weight: 500; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= 底部导航（移动端） ================= */
.tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff; border-top: 1px solid var(--c-border);
  z-index: 800; box-shadow: 0 -2px 12px rgba(15,42,90,.06);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--c-text-3); font-size: 11px; transition: .18s; padding-top: 6px;
}
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.active { color: var(--c-primary); font-weight: 600; }

/* ================= 页面容器 ================= */
.app { max-width: var(--page-max); margin: 0 auto; padding: 20px; min-height: calc(100vh - var(--nav-h)); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; }
.page-head .sub { font-size: 13px; color: var(--c-text-3); margin-top: 4px; font-weight: 400; }

/* ================= 轮播图 ================= */
.carousel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #0d2d63, #1a56c4);
  aspect-ratio: 16 / 5.4; margin-bottom: 20px; box-shadow: var(--shadow);
}
.carousel-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.carousel-slide { flex: 0 0 100%; height: 100%; position: relative; cursor: pointer; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: rgba(255,255,255,.9); gap: 12px; text-align: center; padding: 20px;
}
.carousel-empty h3 { color: #fff; font-size: 22px; letter-spacing: 1px; }
.carousel-empty p { color: rgba(255,255,255,.72); font-size: 13.5px; margin: 0; }
.carousel-empty svg { width: 56px; height: 56px; opacity: .5; }

.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.carousel-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: .25s; }
.carousel-dots i.on { background: #fff; width: 22px; border-radius: 4px; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(10,20,40,.34); color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: .2s; z-index: 3; opacity: 0;
}
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: rgba(10,20,40,.62); }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

/* ================= 公告栏 ================= */
.notice-bar { margin-bottom: 20px; overflow: hidden; }
.notice-list { max-height: 232px; overflow-y: auto; }
.notice-item {
  display: flex; align-items: center; gap: 11px; padding: 12px 20px;
  border-bottom: 1px solid var(--c-border); cursor: pointer; transition: .16s;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: #f7faff; }
.notice-item .n-title { flex: 1 1 auto; font-size: 14px; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-item:hover .n-title { color: var(--c-primary); }
.notice-item .n-time { font-size: 12px; color: var(--c-text-3); flex: 0 0 auto; }

/* ================= 筛选栏 ================= */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.filter-bar .search { flex: 1 1 220px; min-width: 160px; position: relative; }
.filter-bar .search .input { padding-left: 36px; }
.filter-bar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--c-text-3); }
.filter-bar .select { width: auto; min-width: 118px; flex: 0 0 auto; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 5px 14px; border-radius: 20px; font-size: 13px;
  background: var(--c-bg-soft); color: var(--c-text-2); cursor: pointer;
  border: 1px solid transparent; transition: .18s; white-space: nowrap;
}
.chip:hover { color: var(--c-primary); }
.chip.on { background: var(--c-primary-light); color: var(--c-primary); border-color: #b9d0f5; font-weight: 600; }

/* ================= 任务卡片 ================= */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }

.task-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm); padding: 18px; transition: .2s; cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
}
.task-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfdcf3; }
.task-card .tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.task-card .tc-title { font-size: 16px; font-weight: 600; color: var(--c-primary-dark); line-height: 1.5; }
.task-card .tc-meta { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--c-text-2); }
.task-card .tc-meta div { display: flex; align-items: center; gap: 7px; }
.task-card .tc-meta svg { width: 14px; height: 14px; color: var(--c-text-3); flex: 0 0 auto; }
.task-card .tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--c-border); }
.progress { height: 5px; border-radius: 3px; background: #eef1f6; overflow: hidden; margin-top: 2px; }
.progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #1a56c4, #4a8bf0); transition: width .4s; }
.progress.full i { background: linear-gradient(90deg, #d98a13, #e8a33d); }

/* ================= 设备卡片 ================= */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); gap: 16px; }
.dev-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--c-border);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: .2s;
  display: flex; flex-direction: column;
}
.dev-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfdcf3; }
.dev-card .dc-img { aspect-ratio: 4/3; background: var(--c-bg-soft); position: relative; overflow: hidden; }
.dev-card .dc-img img { width: 100%; height: 100%; object-fit: cover; }
.dev-card .dc-img .no-img { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--c-text-3); font-size: 12px; }
.dev-card .dc-body { padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dev-card .dc-name { font-size: 14.5px; font-weight: 600; color: var(--c-primary-dark); line-height: 1.45; }
.dev-card .dc-price { color: #e5484d; font-weight: 700; font-size: 17px; }
.dev-card .dc-price small { font-size: 11.5px; font-weight: 400; color: var(--c-text-3); }
.dev-card .dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--c-text-3); margin-top: auto; }
.dev-card .dc-badge { position: absolute; top: 9px; left: 9px; }

/* ================= 详情页 ================= */
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 16px; }
.detail-side { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; }

.gallery-main { aspect-ratio: 4/3; background: #0f172a; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs img {
  width: 68px; height: 68px; object-fit: cover; border-radius: 7px; cursor: pointer;
  border: 2px solid transparent; flex: 0 0 auto; transition: .18s;
}
.gallery-thumbs img:hover { opacity: .8; }
.gallery-thumbs img.on { border-color: var(--c-primary); }

.info-row { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--c-border); font-size: 13.5px; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--c-text-3); flex: 0 0 88px; }
.info-row .v { color: var(--c-text); flex: 1; word-break: break-word; }

.price-box { padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, #f2f7ff, #e8f0ff); border: 1px solid #d6e4fb; }
.price-box .p { font-size: 30px; font-weight: 700; color: #e5484d; line-height: 1.1; }
.price-box .p small { font-size: 13px; font-weight: 400; color: var(--c-text-3); }

/* 倒计时 */
.countdown { display: flex; gap: 8px; align-items: center; justify-content: center; }
.countdown .cd-cell {
  background: var(--c-primary-dark); color: #fff; border-radius: 8px;
  padding: 9px 0; min-width: 54px; text-align: center; font-variant-numeric: tabular-nums;
}
.countdown .cd-cell b { display: block; font-size: 21px; font-weight: 700; line-height: 1.15; }
.countdown .cd-cell span { font-size: 10.5px; opacity: .7; }
.countdown .cd-sep { color: var(--c-primary-dark); font-weight: 700; font-size: 18px; opacity: .35; }
.countdown.urgent .cd-cell { background: #c0392b; }

/* 流程步骤 */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 13px; position: relative; padding-bottom: 20px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; left: 10px; top: 24px; bottom: 0;
  width: 2px; background: var(--c-border);
}
.step:last-child::before { display: none; }
.step .dot {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; z-index: 1;
  background: #e8edf5; color: var(--c-text-3); font-size: 11.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.step.done .dot { background: var(--c-success); color: #fff; }
.step.on .dot { background: var(--c-primary); color: #fff; box-shadow: 0 0 0 4px rgba(26,86,196,.16); }
.step.done::before { background: var(--c-success); }
/* no = 该级已驳回（入校申请两级审核用）；off = 流程终止 / 还没轮到这一级 */
.step.no .dot { background: var(--c-danger); color: #fff; }
.step.no::before { background: var(--c-danger); }
.step.no .st-title { color: #9b2c2c; }
.step.off .dot { background: #eef1f6; color: #a8b4c6; }
.step.off .st-title { color: var(--c-text-3); }
.step .st-body { flex: 1; padding-top: 1px; }
.step .st-title { font-size: 13.5px; font-weight: 600; color: var(--c-text); }
.step .st-desc { font-size: 12.5px; color: var(--c-text-3); margin-top: 3px; line-height: 1.7; }

/* 凭证展示 */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; }
.proof-grid .pi {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--c-border); background: #f4f6fa; position: relative;
}
.proof-grid .pi img { width: 100%; height: 100%; object-fit: cover; }
.proof-grid .pi.video::after {
  content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.36); color: #fff; font-size: 20px;
}

/* ================= 我的 ================= */
.my-head {
  display: flex; align-items: center; gap: 18px; padding: 24px;
  background: linear-gradient(135deg, #0d2d63, #1a56c4); border-radius: var(--radius-lg);
  color: #fff; margin-bottom: 18px; position: relative; overflow: hidden;
}
.my-head::after {
  content: ''; position: absolute; right: -40px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06);
}
.my-head .mh-avatar {
  width: 62px; height: 62px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600;
  overflow: hidden;
}
.my-head .mh-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 头像 + 「更换头像 / 恢复默认」两个按钮。按钮排到头像下面而不是做成角标：
   深色渐变底上角标看不清，而且按钮文字长，下面一行更好点。 */
.my-head .mh-av-box {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  flex: 0 0 auto; z-index: 1;      /* 压过 .my-head::after 那个装饰圆（flex 项上 z-index 生效） */
}
.my-head .mh-av-btn {
  padding: 4px 11px; font-size: 12px; line-height: 1.5;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.42); color: #fff;
}
.my-head .mh-av-btn:hover { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.72); color: #fff; }
.my-head .mh-info { flex: 1; min-width: 0; }
.my-head .mh-info h3 { color: #fff; font-size: 19px; margin-bottom: 5px; }
.my-head .mh-info p { color: rgba(255,255,255,.72); font-size: 12.5px; margin: 0; }
.my-head .mh-stat { display: flex; gap: 26px; z-index: 1; }
.my-head .mh-stat div { text-align: center; }
.my-head .mh-stat b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.my-head .mh-stat span { font-size: 11.5px; opacity: .72; }

.my-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.my-menu a {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 17px 16px; display: flex; flex-direction: column; gap: 9px;
  color: var(--c-text); transition: .18s; box-shadow: var(--shadow-sm); position: relative;
}
.my-menu a:hover { border-color: #b9d0f5; box-shadow: var(--shadow); color: var(--c-text); }
.my-menu a svg { width: 23px; height: 23px; color: var(--c-primary); }
.my-menu a .t { font-size: 14px; font-weight: 600; }
.my-menu a .d { font-size: 11.5px; color: var(--c-text-3); }
.my-menu a .badge {
  position: absolute; top: 12px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* ================= 订单/记录列表项 ================= */
.rec-item {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: .18s;
}
.rec-item:hover { box-shadow: var(--shadow); }
.rec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.rec-head .rh-title { font-size: 15px; font-weight: 600; color: var(--c-primary-dark); flex: 1; min-width: 0; }
.rec-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--c-text-2); margin-bottom: 12px; }
.rec-meta div { display: flex; gap: 6px; }
.rec-meta .k { color: var(--c-text-3); }
.rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--c-border); flex-wrap: wrap; }
.rec-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ================= 分段切换 ================= */
.seg { display: inline-flex; background: var(--c-bg-soft); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button {
  border: none; background: transparent; padding: 7px 16px; border-radius: 7px;
  font-size: 13.5px; color: var(--c-text-2); cursor: pointer; transition: .18s; font-weight: 500;
}
.seg button.on { background: #fff; color: var(--c-primary); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ================= 欢迎弹窗 ================= */
.welcome-modal { max-width: 620px; }
.welcome-hero {
  background: linear-gradient(135deg, #0d2d63, #1a56c4);
  padding: 26px 26px 22px; color: #fff; text-align: center;
}
.welcome-hero h2 { color: #fff; font-size: 20px; margin-bottom: 7px; }
.welcome-hero p { color: rgba(255,255,255,.75); font-size: 13px; margin: 0; }
.welcome-scroll {
  height: min(42vh, 340px); overflow-y: auto; padding: 20px 26px;
  font-size: 13.5px; line-height: 1.95; color: var(--c-text-2);
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.welcome-scroll h4 { font-size: 14.5px; color: var(--c-primary-dark); margin: 16px 0 8px; }
.welcome-scroll h4:first-child { margin-top: 0; }
.welcome-scroll .pre-wrap { color: var(--c-text-2); }
.scroll-tip {
  text-align: center; font-size: 12px; color: var(--c-warn);
  padding: 8px; background: var(--c-warn-bg); border-radius: 7px; margin-top: 12px;
}
.scroll-tip.done { color: var(--c-success); background: var(--c-success-bg); }
.welcome-foot {
  padding: 15px 26px; border-top: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fbfcfe; flex-wrap: wrap;
}

/* ================= 强制资料弹窗 ================= */
.force-modal { max-width: 520px; }
.force-note {
  background: var(--c-primary-light); border-left: 4px solid var(--c-primary);
  padding: 13px 15px; border-radius: 8px; font-size: 13px; color: #1e4a9e;
  line-height: 1.85; margin-bottom: 20px;
}
.force-note.warn { background: var(--c-danger-bg); border-left-color: var(--c-danger); color: #9b2c2c; }
.force-note strong { font-weight: 700; }

/* ================= 手写签名 ================= */
.sign-wrap { border: 2px dashed var(--c-border-2); border-radius: var(--radius); background: #fcfdff; overflow: hidden; position: relative; }
.sign-wrap canvas { display: block; width: 100%; touch-action: none; cursor: crosshair; background: #fff; }
.sign-tools { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; background: var(--c-bg-soft); border-top: 1px solid var(--c-border); font-size: 12.5px; color: var(--c-text-3); gap: 10px; }

/* ================= 验证码输入 ================= */
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; letter-spacing: 3px; font-weight: 600; }
.code-row .btn { flex: 0 0 auto; min-width: 118px; }

/* ================= 步骤条（入校申请） ================= */
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tpl-pick .tp {
  border: 2px solid var(--c-border); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: .2s; background: #fff;
}
.tpl-pick .tp:hover { border-color: #9dbdf0; }
.tpl-pick .tp.on { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(26,86,196,.10); }
.tpl-pick .tp img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--c-bg-soft); }
.tpl-pick .tp .tn { padding: 11px 13px; font-size: 13.5px; font-weight: 600; color: var(--c-primary-dark); }

/* ================= 登录注册 ================= */
.auth-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--c-border); margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; border: none; background: transparent; padding: 12px; font-size: 15px;
  color: var(--c-text-3); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-weight: 500; transition: .18s;
}
.auth-tabs button.on { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }

/* ================= 移动端适配 ================= */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}

@media (max-width: 768px) {
  body { padding-top: 56px; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
  .nav { height: 56px; }
  .nav-inner { padding: 0 14px; gap: 10px; }
  .nav-logo img { height: 32px; max-width: 110px; }
  .nav-logo-ph { height: 32px; font-size: 12.5px; padding: 0 10px; }
  .nav-title { font-size: 13.5px; max-width: 44vw; }
  .nav-menu { display: none; }
  .tabbar { display: flex; }
  .nav-right { gap: 8px; margin-left: auto; }
  .nav-user { padding: 3px; }
  .nav-username { display: none; }
  .nav-msg { width: 32px; height: 32px; }

  .app { padding: 14px; }
  .page-head h2 { font-size: 18px; }

  .carousel { aspect-ratio: 16/9; border-radius: 12px; margin-bottom: 14px; }
  .carousel-empty h3 { font-size: 17px; }
  .carousel-arrow { display: none; }

  .list-grid { grid-template-columns: 1fr; gap: 12px; }
  .dev-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .dev-card .dc-body { padding: 10px 11px; gap: 6px; }
  .dev-card .dc-name { font-size: 13.5px; }
  .dev-card .dc-price { font-size: 15px; }

  .filter-bar { padding: 11px 13px; gap: 9px; }
  .filter-bar .search { flex: 1 1 100%; }
  .filter-bar .select { flex: 1 1 auto; min-width: 0; }

  .my-head { padding: 18px; gap: 14px; flex-wrap: wrap; }
  .my-head .mh-avatar { width: 52px; height: 52px; font-size: 20px; }
  .my-head .mh-av-btn { padding: 3px 9px; font-size: 11px; }
  .my-head .mh-info h3 { font-size: 17px; }
  .my-head .mh-stat { width: 100%; gap: 0; justify-content: space-around; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); }
  .my-head .mh-stat b { font-size: 19px; }
  .my-menu { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .gallery-thumbs img { width: 58px; height: 58px; }
  .rec-item { padding: 14px; }
  .rec-meta { gap: 12px; }
  .rec-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .rec-actions { justify-content: stretch; }
  .rec-actions .btn { flex: 1; }

  .welcome-scroll { height: min(46vh, 320px); padding: 16px 18px; }
  .welcome-hero { padding: 20px 18px 17px; }
  .welcome-hero h2 { font-size: 17px; }
  .welcome-foot { padding: 13px 18px; flex-direction: column; align-items: stretch; }
  .welcome-foot .btn { width: 100%; }
  .welcome-foot .check { justify-content: center; }

  .tpl-pick { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .countdown .cd-cell { min-width: 46px; padding: 7px 0; }
  .countdown .cd-cell b { font-size: 17px; }
}

@media (max-width: 380px) {
  .dev-grid { grid-template-columns: 1fr; }
  .my-menu { grid-template-columns: 1fr; }
}
