/* ========================================
   驾校报名分销系统 - 现代化 UI 设计系统
   柔和琥珀橙主题 / 移动端优先 / 2026
   ======================================== */

:root {
  --primary: #D97706;
  --primary-light: #F59E0B;
  --primary-lighter: #FBBF24;
  --primary-deep: #B45309;
  --primary-bg: #FDE68A;
  --primary-bg-light: #FEF3C7;
  /* 统一柔和琥珀橙渐变体系 */
  --grad-hero: linear-gradient(150deg, #F59E0B 0%, #D97706 55%, #B45309 100%);
  --grad-btn: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --grad-icon: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  --grad-icon-soft: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  --grad-badge: linear-gradient(135deg, #F59E0B 0%, #B45309 100%);
  --primary-grad: var(--grad-hero);
  --dark: #111827;
  --text: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --placeholder: #6B7280;
  --border: #EBEDF0;
  --bg: #F5F6F7;
  --card: #FFFFFF;
  --danger: #DC2626;
  --warning: #FF9500;
  --info: #F59E0B;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-xs: 0 1px 3px rgba(17,24,39,0.04);
  --shadow-sm: 0 2px 8px rgba(17,24,39,0.05), 0 1px 2px rgba(17,24,39,0.04);
  --shadow: 0 8px 24px rgba(17,24,39,0.07), 0 2px 6px rgba(17,24,39,0.05);
  --shadow-lg: 0 16px 40px rgba(17,24,39,0.10), 0 4px 12px rgba(17,24,39,0.06);
  --shadow-primary: 0 8px 24px rgba(217,119,6,0.24);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== 页面容器 ========== */
.dv-page {
  min-height: 100vh;
  padding-bottom: calc(24px + var(--safe-bottom));
}

.dv-page-white {
  background: #fff;
}

/* ========== 顶部导航栏 ========== */
.dv-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--grad-hero);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 12px 16px calc(12px + env(safe-area-inset-top, 0px));
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  color: #fff;
  box-shadow: 0 4px 20px rgba(217,119,6,0.18);
  overflow: visible;
}

/* 顶部导航装饰圆环（与登录页风格统一） */
.dv-navbar::before {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.14);
  right: 6px;
  top: -40px;
  pointer-events: none;
}

/* 顶栏不再向外延伸遮罩，避免遮挡横幅/内容（融合感由三色渐变本身承担） */

.dv-navbar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.dv-navbar-title {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  text-align: center;
  margin: 0 12px;
}

.dv-navbar-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  transition: background .2s;
}

.dv-navbar-back:active {
  background: rgba(255,255,255,0.3);
}

.dv-navbar-back svg {
  width: 20px;
  height: 20px;
}

.dv-navbar-action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== 顶部搜索栏 ========== */
.dv-searchbar {
  background: var(--primary-deep);
  padding: 0 16px 16px;
}

.dv-searchbox {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
}

.dv-searchbox-icon {
  color: var(--text-muted);
  margin-right: 8px;
  font-size: 16px;
}

.dv-searchbox input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.dv-searchbox input::placeholder {
  color: var(--placeholder);
}

/* ========== 轮播图 ========== */
.dv-swiper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #e0e0e0;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(17,24,39,0.10), 0 2px 8px rgba(17,24,39,0.06);
}

.dv-swiper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  border-radius: 0;
}

.dv-swiper-list {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.dv-swiper-list li {
  min-width: 100%;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  max-height: 200px;
  background: #e8eaed;
  overflow: hidden;
  border-radius: 0;
}

.dv-swiper-list img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.dv-swiper-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.dv-swiper-dots li {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.45);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dv-swiper-dots li.active {
  width: 20px;
  background: #F59E0B;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ========== 公告条 ========== */
.dv-notice {
  display: flex;
  align-items: center;
  background: var(--card);
  margin: 12px 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
  color: var(--text-secondary);
  text-decoration: none;
}

a.dv-notice:active {
  background: var(--bg);
}

.dv-notice-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex-shrink: 0;
  color: var(--primary);
}

.dv-notice-icon img,
.dv-notice-icon svg {
  width: 100%;
  height: 100%;
}

.dv-notice-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* ========== 快捷入口网格 ========== */
.dv-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 16px;
  background: var(--card);
  margin: 0 16px 12px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dv-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.dv-quick-item:active { transform: scale(0.95); }

.dv-quick-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 10px;
  background: var(--grad-icon);
  color: #fff;
  box-shadow: 0 4px 12px rgba(217,119,6,0.1);
  transition: all 0.25s ease;
}

.dv-quick-icon svg {
  width: 26px;
  height: 26px;
}

.dv-quick-item:hover .dv-quick-icon,
.dv-quick-item:active .dv-quick-icon {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(217,119,6,0.16);
}

/* 快捷入口：柔和彩色渐变，一色一入口，协调不刺眼 */
.dv-quick-item:nth-child(1) .dv-quick-icon { background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%); }
.dv-quick-item:nth-child(2) .dv-quick-icon { background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%); }
.dv-quick-item:nth-child(3) .dv-quick-icon { background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%); }
.dv-quick-item:nth-child(4) .dv-quick-icon { background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%); }

.dv-quick-text {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}

/* ========== 驾校优势 ========== */
.dv-advantage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 16px;
  background: var(--card);
  margin: 0 16px 12px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dv-advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.dv-advantage-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dv-advantage-icon svg {
  width: 22px;
  height: 22px;
}

.dv-advantage-text b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.dv-advantage-text span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

/* ========== 内容区 ========== */
.dv-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

.dv-section {
  margin-bottom: 16px;
}

/* ========== 卡片 ========== */
.dv-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.dv-card + .dv-card {
  margin-top: 12px;
}

.dv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

.dv-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dv-card-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary);
}

.dv-card-more {
  font-size: 13px;
  color: var(--text-muted);
}

.dv-card-body {
  padding: 16px;
}

.dv-card-body.no-padding {
  padding: 0;
}

/* ========== 分类标签 ========== */
.dv-category-bar {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
  margin: 0 16px 12px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dv-category-bar::-webkit-scrollbar {
  display: none;
}

.dv-category-item {
  flex-shrink: 0;
  padding: 9px 20px;
  border-radius: 22px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.dv-category-item.active {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 6px 16px rgba(217,119,6,0.25);
}

/* ========== 班型卡片 ========== */
.dv-class-list {
  padding: 14px 16px 28px;
}

.dv-class-card {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(17,24,39,0.06), 0 2px 6px rgba(17,24,39,0.04);
  border: 1px solid rgba(17,24,39,0.04);
  margin-bottom: 14px;
  padding: 14px;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease;
  position: relative;
}

.dv-class-card:active {
  transform: scale(0.98);
}

.dv-class-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-xs);
}

.dv-class-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.dv-class-thumb {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 14px;
  background: var(--bg);
}

.dv-class-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dv-class-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dv-class-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dv-class-badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--primary-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

.dv-class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.dv-class-condition {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dv-class-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dv-class-pricebox {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dv-class-price {
  font-size: 22px;
  color: var(--danger);
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.dv-class-price small {
  font-size: 12px;
  font-weight: 700;
  margin-right: 2px;
  margin-top: 2px;
}

.dv-class-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dv-class-btn {
  padding: 10px 22px;
  border-radius: 22px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(217,119,6,0.32), inset 0 1px 0 rgba(255,255,255,0.25);
  flex-shrink: 0;
  margin-left: 10px;
  transition: all 0.2s ease;
}

.dv-class-btn:active {
  transform: scale(0.94);
  box-shadow: 0 3px 10px rgba(217,119,6,0.25);
}

/* ========== 标签 ========== */
.dv-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.dv-tag-primary { background: var(--grad-badge); color: #fff; }
.dv-tag-success { background: #DCFCE7; color: #15803D; }
.dv-tag-warning { background: #FFFBEB; color: #B45309; }
.dv-tag-danger { background: #FEF2F2; color: #DC2626; }
.dv-tag-info { background: #E0F2FE; color: #0369A1; }

/* ========== 报名页 Banner ========== */
.dv-detail-banner {
  position: relative;
  width: 100%;
  background: #e0e0e0;
}

.dv-detail-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.dv-detail-pricebar {
  position: relative;
  margin: -28px 16px 0;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow);
  z-index: 2;
}

.dv-detail-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.4;
}

.dv-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.dv-detail-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.dv-detail-price .symbol {
  font-size: 14px;
  color: var(--danger);
  font-weight: 600;
}

.dv-detail-price .amount {
  font-size: 28px;
  color: var(--danger);
  font-weight: 700;
  line-height: 1;
}

.dv-detail-price .unit {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== 信息行 ========== */
.dv-info-row {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.dv-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dv-info-row:first-child {
  padding-top: 0;
}

.dv-info-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: #1F2937;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dv-info-icon svg {
  width: 100%;
  height: 100%;
}

.dv-info-content {
  flex: 1;
  min-width: 0;
}

.dv-info-label {
  color: var(--text-muted);
  margin-bottom: 2px;
  font-size: 12px;
}

.dv-info-value {
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

/* ========== 表单 ========== */
.dv-form-group {
  margin-bottom: 12px;
}

.dv-form-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 12px;
  padding-left: 12px;
  position: relative;
}

.dv-form-group-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--primary);
}

.dv-form-tip {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: var(--primary-deep);
  border-radius: var(--radius);
  color: #fff;
  font-size: 12px;
  margin-bottom: 12px;
}

.dv-form-tip svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
  color: #fff;
}

.dv-form .van-cell {
  padding: 14px 0;
  font-size: 15px;
  background: transparent;
}

.dv-form .van-cell::after {
  border-bottom: 1px solid var(--border) !important;
}

.dv-form .van-field__label {
  color: var(--text);
  width: 90px;
  font-weight: 500;
}

.dv-form .van-field__control,
.dv-form select {
  color: var(--text);
}

.dv-form .van-field__control::placeholder {
  color: var(--placeholder);
}

.dv-form select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
}

/* ========== 提交按钮 ========== */
.dv-submit-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dv-submit-info {
  flex: 1;
}

.dv-submit-info .label {
  font-size: 12px;
  color: var(--text-muted);
}

.dv-submit-info .price {
  font-size: 20px;
  color: var(--danger);
  font-weight: 700;
}

.dv-submit {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 23px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(217,119,6,0.35);
}

.dv-submit:active {
  opacity: 0.9;
}

.dv-submit-full {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 24px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(217,119,6,0.35);
  margin-top: 8px;
}

/* ========== 协议 ========== */
.dv-agreement {
  padding: 12px 4px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.dv-agreement a {
  color: var(--primary);
  font-weight: 500;
}

/* ========== 底部导航（极简线条式） ========== */
.dv-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(64px + var(--safe-bottom));
  padding: 6px 8px calc(6px + var(--safe-bottom));
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-top: 0.5px solid rgba(17,24,39,0.08);
  box-shadow: 0 -4px 16px rgba(17,24,39,0.04);
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.dv-tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 52px;
  color: #9CA3AF;
  position: relative;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s ease;
}

/* 点击按压反馈 */
.dv-tabbar-item:active {
  opacity: 0.7;
}

.dv-tabbar-item.active {
  color: var(--primary);
}

/* 细线图标 */
.dv-tabbar-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dv-tabbar-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
  transition: stroke-width 0.25s ease;
}

/* 选中：图标加粗变"实心"橙色 + 轻微放大回弹 */
.dv-tabbar-item.active .dv-tabbar-icon {
  transform: scale(1.18);
}

.dv-tabbar-item.active .dv-tabbar-icon svg {
  stroke-width: 2.6;
}

.dv-tabbar-text {
  font-size: 10px;
  font-weight: 600;
  color: inherit;
  transition: color 0.25s ease, font-weight 0.25s ease;
}

.dv-tabbar-item.active .dv-tabbar-text {
  color: var(--primary);
  font-weight: 700;
}

.dv-tabbar-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* iframe 内嵌时隐藏子页面底部导航 */
.in-iframe .dv-tabbar {
  display: none;
}

/* ========== 成功页 ========== */
.dv-success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: var(--primary-bg);
}

.dv-success-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
}

.dv-success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--primary-deep);
  color: #fff;
  font-size: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(217,119,6,0.3);
  animation: successPop 0.5s ease;
}

.dv-success-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 2.5;
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.dv-success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 12px;
}

.dv-success-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 32px;
}

.dv-success-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  border-radius: 24px;
  background: var(--primary-deep);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(217,119,6,0.3);
  margin-bottom: 12px;
  border: none;
}

.dv-success-btn.secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

/* ========== 查询页 ========== */
.dv-search-page {
  min-height: 100vh;
  background: var(--primary-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 24px 24px;
}

.dv-search-box {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.dv-search-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}

.dv-search-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.dv-search-input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.dv-search-input:focus {
  border-color: var(--primary-light);
}

.dv-search-input::placeholder {
  color: var(--placeholder);
}

/* ========== 客服页 ========== */
.dv-kf-page {
  min-height: 100vh;
  background: var(--bg);
}

.dv-kf-header {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.dv-kf-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dv-kf-card {
  margin: -50px 16px 16px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.dv-kf-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--bg);
}

.dv-kf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dv-kf-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px;
}

.dv-kf-time {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.dv-kf-qrcode {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dv-kf-qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dv-kf-tip {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ========== 空状态 ========== */
.dv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.dv-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.dv-empty-title {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 6px;
}

.dv-empty-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ========== Vant 2 兼容 ========== */
.van-button--info {
  background: var(--primary-deep);
  border: none;
  border-radius: 23px;
}

.van-button--info.van-button--disabled {
  opacity: 0.6;
}

.van-toast {
  background: rgba(0,0,0,0.75);
}

/* ========== 辅助类 ========== */
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.pb-safe { padding-bottom: calc(80px + var(--safe-bottom)); }

body.in-iframe,
.dv-page.in-iframe {
  padding-bottom: 24px;
}

/* iframe 外壳模式下，子页自带的固定底部栏已由外壳脚本隐藏，只需少量底部留白 */
body.in-iframe #app { padding-bottom: 24px; }
body.in-iframe .dv-page.pb-safe { padding-bottom: 24px; }

/* ========== 协议页 ========== */
.dv-agreement-page {
  background: var(--bg);
}

/* 顶部大图标圆去绿 */
.dv-agreement-icon {
  background: var(--bg);
  color: var(--text-secondary);
  box-shadow: 0 8px 20px rgba(17,24,39,0.08);
}
/* 小节序号圆去绿 */
.dv-agreement-num {
  background: var(--bg);
  color: var(--text-secondary);
}
/* 提示条：绿色背景白字（特异性需高于 .dv-agreement-section > p） */
.dv-agreement-section > .dv-agreement-tip {
  background: var(--primary-deep);
  color: #fff;
}
/* 列表圆点去绿 */
.dv-agreement-list li::before {
  background: var(--border);
}

.dv-agreement-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.dv-agreement-header {
  text-align: center;
  padding: 28px 0 20px;
}

.dv-agreement-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-deep);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(217,119,6,0.22);
}

.dv-agreement-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2;
}

.dv-agreement-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.3;
}

.dv-agreement-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.dv-agreement-section {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.dv-agreement-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dv-agreement-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dv-agreement-section > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 12px;
}

.dv-agreement-section > p:last-child {
  margin-bottom: 0;
}

.dv-agreement-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.dv-agreement-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

.dv-agreement-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-lighter);
}

.dv-agreement-tip {
  padding: 12px;
  background: var(--primary-deep);
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.dv-agreement-footer {
  text-align: center;
  padding: 12px 0 8px;
}

.dv-agreement-footer p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ========== 覆盖 Vant 默认蓝色 ========== */
.van-button--info,
.van-button--primary {
  background: var(--primary-deep) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.van-button--info:active,
.van-button--primary:active {
  opacity: 0.9;
}
.van-field__label,
.van-field__control:focus,
.van-cell--required::before {
  color: var(--primary) !important;
}
.van-checkbox__icon--checked .van-icon {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.van-radio__icon--checked .van-icon {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* 强化自定义按钮，防止被覆盖 */
.dv-submit {
  background: var(--primary-deep) !important;
  box-shadow: 0 6px 16px rgba(217,119,6,0.35) !important;
}
.dv-submit-full {
  background: var(--primary-deep) !important;
}
/* 顶栏渐变与主样式统一（不再覆盖为旧双色） */

/* ========== 电脑端适配（≥768px，居中卡片式布局） ========== */
@media screen and (min-width: 768px) {
  /* 页面主体限宽居中 */
  .dv-page,
  body.dv-kf-page,
  body.v-page,
  #app {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 60px rgba(15, 23, 42, 0.10);
  }

  /* 顶部导航内容居中（导航条自身通栏时兜底） */
  .dv-navbar-inner {
    max-width: 640px;
    margin: 0 auto;
  }

  /* 底部固定操作栏居中限宽 */
  .dv-submit-bar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 640px;
    max-width: calc(100vw - 24px);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
  }

  /* 底部导航：桌面端居中限宽（保持贴底直角） */
  .dv-tabbar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 100%;
    max-width: 640px;
    border-radius: 0;
  }

  /* 成功页/查询结果页限宽 */
  .dv-success-page {
    max-width: 640px;
    margin: 0 auto;
  }
}

/* ========== App 级设计标准增强 ========== */

/* 页面入场动画 */
.dv-swiper, .dv-notice, .dv-quick-grid, .dv-category-bar, .dv-class-card {
  animation: dv-fade-up 0.5s cubic-bezier(0.25, 1, 0.5, 1) both;
}
.dv-notice { animation-delay: 0.06s; }
.dv-quick-grid { animation-delay: 0.12s; }
.dv-category-bar { animation-delay: 0.18s; }
.dv-class-card:nth-child(1) { animation-delay: 0.24s; }
.dv-class-card:nth-child(2) { animation-delay: 0.30s; }
.dv-class-card:nth-child(3) { animation-delay: 0.36s; }
.dv-class-card:nth-child(4) { animation-delay: 0.42s; }
.dv-class-card:nth-child(5) { animation-delay: 0.48s; }

@keyframes dv-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 全局按压反馈（可点击元素） */
a[href], .dv-class-card, .dv-quick-item, .dv-category-item, button {
  -webkit-tap-highlight-color: transparent;
}
a[href]:active, .dv-quick-item:active, .dv-category-item:active {
  opacity: 0.7;
}

/* 快捷入口图标微动效 */
.dv-quick-icon {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dv-quick-item:active .dv-quick-icon {
  transform: scale(0.88);
}

/* 公告条滚动跑马灯（文本过长时） */
.dv-notice-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 卡片顶栏渐变分隔 */
.dv-quick-grid {
  position: relative;
  overflow: hidden;
}
.dv-quick-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #D97706;
  opacity: 0.9;
}

/* 数字等宽对齐（价格、数量） */
.dv-class-price, .dv-price, .mall-price, .amount {
  font-variant-numeric: tabular-nums;
}

/* 安全区滚动底部留白 */
.pb-safe {
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

/* 细滚动条美化 */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}
