/* ============================================================
 * theme-ios.css — iOS 风格主题（毛玻璃 / 卡片 / 圆角 / 柔和阴影）
 * 叠加在 style.css / chat-v2.css / mobile-enhance.css 之后加载。
 * 全部规则限定在 body.theme-ios 作用域内，不会影响未启用主题的页面。
 * 新增文件：public/css/theme-ios.css
 * ============================================================ */

/* ---------- 设计令牌 (匹配 vehicle-doc-app 风格) ---------- */
body.theme-ios {
  --ios-blue: #007aff;
  --ios-blue-deep: #0066d6;
  --ios-green: #34c759;
  --ios-red: #ff3b30;
  --ios-orange: #ff9500;
  --ios-purple: #af52de;
  --ios-bg: #EEF2F8;
  --ios-glass: rgba(255, 255, 255, 0.58);
  --ios-glass-strong: rgba(255, 255, 255, 0.72);
  --ios-stroke: rgba(255, 255, 255, 0.75);
  --ios-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
  --ios-shadow-lg: 0 16px 48px rgba(31, 38, 135, 0.16);
  --ios-radius: 22px;
  --ios-radius-lg: 20px;
  --ios-radius-sm: 10px;
  --ios-transition: all 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #1c1c1e;
}

/* ---------- 背景 (匹配 vehicle-doc-app 渐变 + 光斑) ---------- */
body.theme-ios .layout { background: transparent; }
body.theme-ios .main {
  background: transparent;
}
body.theme-ios .app-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(155deg, #dbe6ff 0%, #ede4ff 34%, #ffe6ee 62%, #dcf4ec 100%);
}
body.theme-ios .app-blob {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
body.theme-ios .app-blob.b1 {
  width: 560px; height: 560px;
  background: #8ec2ff;
  top: -180px; left: -140px;
  animation: blobFloat1 16s ease-in-out infinite alternate;
}
body.theme-ios .app-blob.b2 {
  width: 480px; height: 480px;
  background: #f2b8d6;
  bottom: -200px; right: -120px;
  animation: blobFloat2 19s ease-in-out infinite alternate-reverse;
}
body.theme-ios .app-blob.b3 {
  width: 380px; height: 380px;
  background: #b8f0d8;
  top: 40%; left: 56%;
  opacity: 0.35;
  animation: blobFloat3 22s ease-in-out infinite alternate;
}
@keyframes blobFloat1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }
@keyframes blobFloat2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-30px, 40px) scale(1.05); } }
@keyframes blobFloat3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(20px, -30px) scale(1.06); } }

/* ---------- 侧边栏：浅色毛玻璃 (匹配 vehicle-doc-app) ---------- */
body.theme-ios .sidebar {
  background: var(--ios-glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--ios-stroke);
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-shadow);
  overflow: hidden;
  /* Round4 Fix T2: 去除底部圆角，使其与内容区平顺衔接 */
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  border-right: none;
  box-shadow: 4px 0 20px rgba(31, 38, 135, 0.06);
}
body.theme-ios .sidebar-logo {
  padding: 18px 16px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.theme-ios .sidebar-logo h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--ios-blue);
}
body.theme-ios .menu-item {
  margin: 2px 8px;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--ios-text);
  transition: var(--ios-transition);
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-ios .menu-item:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ios-text);
}
body.theme-ios .menu-item.active {
  background: #fff;
  color: var(--ios-blue);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.16);
  border-left: none;
}
body.theme-ios .menu-item .icon {
  width: 18px;
  text-align: center;
  font-size: 16px;
  margin-right: 10px;
}
body.theme-ios .menu-badge {
  background: var(--ios-red);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  font-size: 11px;
  padding: 1px 6px;
  margin-left: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.theme-ios .sidebar-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--ios-text-3, #8e8e93);
}

/* ---------- 菜单组 (父目录) 样式 ---------- */
body.theme-ios .menu-group {
  border-bottom: none;
}
body.theme-ios .menu-group-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 11px 14px;
  margin: 2px 8px;
  border-radius: 14px;
  color: var(--ios-text);
  background: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: var(--ios-transition);
  position: relative;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-ios .menu-group-header > span:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.theme-ios .menu-group-header .menu-badge {
  flex-shrink: 0;
}
body.theme-ios .menu-group-header .menu-arrow {
  position: static;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 10px;
  color: var(--muted, #6e6e73);
  transition: transform 0.25s ease;
}
body.theme-ios .menu-group.collapsed > .menu-group-header .menu-arrow {
  transform: rotate(-90deg);
}
body.theme-ios .menu-group-header:hover {
  background: rgba(255, 255, 255, 0.7);
}
body.theme-ios .menu-group-header .icon {
  width: 18px;
  text-align: center;
  font-size: 16px;
  margin-right: 10px;
  flex-shrink: 0;
}
body.theme-ios .lock-indicator {
  margin-left: 6px;
  color: #ffb020;
  font-size: 12px;
}
body.theme-ios .menu-group-items {
  max-height: 600px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
body.theme-ios .menu-group.collapsed .menu-group-items {
  max-height: 0;
  opacity: 0;
}
body.theme-ios .menu-group-items .menu-item {
  margin: 1px 8px;
  padding: 9px 14px 9px 42px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted, #6e6e73);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
body.theme-ios .menu-group-items .menu-item > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.theme-ios .menu-group-items .menu-item .menu-badge {
  flex-shrink: 0;
}
body.theme-ios .menu-group-items .menu-item:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ios-text);
}
body.theme-ios .menu-group-items .menu-item.active {
  background: #fff;
  color: var(--ios-blue);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.16);
}

/* ---------- 顶栏：白色毛玻璃 ---------- */
body.theme-ios .header {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--ios-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
body.theme-ios .header #pageTitle,
body.theme-ios .header-left span#pageTitle {
  font-size: 17px;
  font-weight: 700;
}
body.theme-ios .menu-toggle {
  border-radius: 10px;
  border: 1px solid var(--ios-border);
  background: rgba(255, 255, 255, 0.6);
  transition: var(--ios-transition);
}
body.theme-ios .menu-toggle:hover { background: #fff; }
body.theme-ios .user-avatar {
  background: linear-gradient(135deg, #0a84ff, #64b5ff);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35);
}

/* ---------- 卡片：毛玻璃 (匹配 vehicle-doc-app) ---------- */
body.theme-ios .card,
body.theme-ios .panel,
body.theme-ios .stats-card,
body.theme-ios .stat-card,
body.theme-ios .summary-card,
body.theme-ios .content-card,
body.theme-ios .calendar-card {
  background: var(--ios-glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--ios-stroke);
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-shadow);
  transition: box-shadow 0.25s;
}
body.theme-ios .card:hover {
  box-shadow: var(--ios-shadow-lg);
}
body.theme-ios .card { padding: 22px 24px; margin-bottom: 18px; }
body.theme-ios .card h3,
body.theme-ios .card-title {
  font-weight: 700;
  color: var(--ios-text);
  margin: 0 0 16px;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.theme-ios .card h3::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #007aff, #5ac8fa);
}

/* ---------- 表格：毛玻璃卡片化 (匹配 vehicle-doc-app) ---------- */
body.theme-ios .table-container {
  background: var(--ios-glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--ios-stroke);
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-shadow);
  overflow: hidden;
}
body.theme-ios table {
  font-size: 13px;
  border-collapse: separate;
  border-spacing: 0;
}
body.theme-ios table thead th {
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted, #6e6e73);
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.theme-ios table tbody tr {
  transition: background 0.15s;
}
body.theme-ios table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.55);
}
body.theme-ios table tbody td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ---------- 按钮：胶囊渐变风格 (匹配 vehicle-doc-app) ---------- */
body.theme-ios .btn {
  border-radius: 999px;
  font-weight: 600;
  transition: var(--ios-transition);
  border: none;
  font-size: 13.5px;
  padding: 9px 22px;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: inherit;
}
body.theme-ios .btn:active { transform: translateY(0); }
body.theme-ios .btn-primary {
  background: linear-gradient(180deg, #1a84ff, #007aff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.32);
}
body.theme-ios .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.42);
}
body.theme-ios .btn-success {
  background: linear-gradient(180deg, #34c759, #28a745);
  color: #fff;
  box-shadow: 0 4px 14px rgba(52, 199, 89, 0.32);
}
body.theme-ios .btn-warning {
  background: linear-gradient(180deg, #ff9f0a, #ff9500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 149, 0, 0.32);
}
body.theme-ios .btn-danger {
  background: linear-gradient(180deg, #ff453a, #ff3b30);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.32);
}
body.theme-ios .btn-default {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ios-text);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(31, 38, 135, 0.08);
}
body.theme-ios .btn-default:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(31, 38, 135, 0.14);
}

/* ---------- 表单 (匹配 vehicle-doc-app) ---------- */
body.theme-ios .form-group input,
body.theme-ios .form-group select,
body.theme-ios .form-group textarea,
body.theme-ios input[type="text"],
body.theme-ios input[type="password"],
body.theme-ios input[type="number"],
body.theme-ios input[type="tel"],
body.theme-ios input[type="date"],
body.theme-ios select,
body.theme-ios textarea {
  border-radius: 13px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ios-text);
  padding: 9px 13px;
  font-size: 13.5px;
  transition: var(--ios-transition);
  font-family: inherit;
}
body.theme-ios .form-group input:focus,
body.theme-ios .form-group select:focus,
body.theme-ios .form-group textarea:focus,
body.theme-ios input:focus,
body.theme-ios select:focus,
body.theme-ios textarea:focus {
  border-color: var(--ios-blue);
  box-shadow: 0 0 0 3.5px rgba(0, 122, 255, 0.18);
  background: #fff;
  outline: none;
}
body.theme-ios .form-group label {
  color: #3a3a3c;
  font-weight: 500;
  font-size: 12.5px;
  margin-bottom: 6px;
  display: block;
}

/* ---------- 弹窗：iOS 卡片 + 模糊遮罩 ---------- */
body.theme-ios .modal-backdrop {
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
body.theme-ios .modal-backdrop.show { opacity: 1; }
body.theme-ios .modal-content {
  border-radius: var(--ios-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--ios-shadow-lg);
  animation: iosModalIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes iosModalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 标签页：胶囊 ---------- */
body.theme-ios .tabs .tab {
  border-radius: 999px;
  font-weight: 600;
  transition: var(--ios-transition);
}
body.theme-ios .tabs .tab.active {
  background: var(--ios-blue);
  color: #fff;
  box-shadow: 0 3px 10px rgba(10, 132, 255, 0.3);
}

/* ---------- 徽标 / 标签 ---------- */
body.theme-ios .badge,
body.theme-ios .tag,
body.theme-ios .status-badge {
  border-radius: 999px;
  font-weight: 600;
}
body.theme-ios .tag-danger { background: rgba(255, 59, 48, 0.12); color: var(--ios-red); }
body.theme-ios .tag-success { background: rgba(52, 199, 89, 0.14); color: #1e9e47; }
body.theme-ios .tag-warning { background: rgba(255, 149, 0, 0.14); color: var(--ios-orange); }

/* ---------- 通知铃铛 + 下拉 ---------- */
body.theme-ios .notification-bell .bell-icon { font-size: 18px; }
body.theme-ios .notification-dropdown {
  border-radius: var(--ios-radius);
  border: 1px solid var(--ios-border);
  box-shadow: var(--ios-shadow-lg);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
body.theme-ios .notification-header {
  background: rgba(250, 250, 250, 0.8);
  font-weight: 700;
}

/* ---------- Toast：iOS 通知条 ---------- */
body.theme-ios .toast {
  background: rgba(28, 28, 30, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  padding: 12px 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- 空状态 / 分页 ---------- */
body.theme-ios .empty-state { color: var(--ios-text-3); }
body.theme-ios .pagination button {
  border-radius: 999px;
  border: 1px solid var(--ios-border);
  background: #fff;
  transition: var(--ios-transition);
}
body.theme-ios .pagination button.active { background: var(--ios-blue); color: #fff; border-color: var(--ios-blue); }

/* ---------- 滚动条 ---------- */
body.theme-ios ::-webkit-scrollbar { width: 8px; height: 8px; }
body.theme-ios ::-webkit-scrollbar-thumb { background: rgba(60, 60, 67, 0.25); border-radius: 999px; }
body.theme-ios ::-webkit-scrollbar-thumb:hover { background: rgba(60, 60, 67, 0.4); }

/* ============================================================
 * 登录 / 注册页：毛玻璃卡片 + 渐变光斑
 * ============================================================ */
body.theme-ios.auth-body {
  background: linear-gradient(150deg, #eaf4ff 0%, #f2f2f7 45%, #e9efff 100%);
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 修复：登录/注册页内容超高时需可滚动（原来是 hidden 导致底部看不到） */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
/* 装饰光斑（纯 CSS，无需图片资源） */
body.theme-ios.auth-body::before,
body.theme-ios.auth-body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
body.theme-ios.auth-body::before {
  width: 480px; height: 480px;
  left: -120px; top: -120px;
  background: radial-gradient(circle, #7cc4ff 0%, rgba(124, 196, 255, 0) 70%);
}
body.theme-ios.auth-body::after {
  width: 520px; height: 520px;
  right: -140px; bottom: -140px;
  background: radial-gradient(circle, #b9a8ff 0%, rgba(185, 168, 255, 0) 70%);
}
body.theme-ios .auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 24px 16px;
  padding: 34px 30px 28px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(31, 58, 120, 0.16);
  animation: iosAuthIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}
@keyframes iosAuthIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
body.theme-ios .auth-header { text-align: center; margin-bottom: 24px; }
body.theme-ios .auth-header h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(120deg, #0a84ff, #5e5ce6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.theme-ios .auth-header p { color: var(--ios-text-3); margin-top: 6px; font-size: 14px; }
body.theme-ios .auth-form .form-group { margin-bottom: 16px; }
body.theme-ios .auth-form input[type="text"],
body.theme-ios .auth-form input[type="password"],
body.theme-ios .auth-form input[type="tel"] {
  width: 100%;
  padding: 13px 15px;
  font-size: 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.85);
}
body.theme-ios .auth-form .btn-primary {
  width: 100%;
  padding: 13px;
  font-size: 16px;
  letter-spacing: 2px;
  border-radius: 13px;
  margin-top: 6px;
}
body.theme-ios .auth-footer {
  text-align: center;
  margin-top: 18px;
  color: var(--ios-text-3);
  font-size: 13px;
}
body.theme-ios .auth-footer a {
  color: var(--ios-blue);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- 移动端适配微调 ---------- */
@media (max-width: 768px) {
  body.theme-ios .header { background: rgba(255, 255, 255, 0.85); }
  body.theme-ios .auth-container { padding: 28px 22px 24px; border-radius: 24px; }
}

/* ---------- 通用：各目录页卡片统一间距（通知/反馈/日志等页面协调性） ---------- */
body.theme-ios .page-section .card { margin-bottom: 14px; }
body.theme-ios .page-section .card:last-child { margin-bottom: 0; }
body.theme-ios .notification-item-full {
  background: #fff;
  border: 1px solid var(--ios-border);
  border-radius: 12px;
  box-shadow: var(--ios-shadow);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow .18s ease;
}
body.theme-ios .notification-item-full:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }
body.theme-ios .notification-item-full.unread {
  border-left: 3px solid var(--ios-blue);
  background: #f6faff;
}

/* ============================================================
 * 车辆全生命周期档案弹窗（全新现代界面）
 * ============================================================ */
body.theme-ios #vehicleDetailModal .modal-content {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}
body.theme-ios #vehicleDetailModal .modal-header {
  background: #fff;
  border-bottom: 1px solid var(--ios-border);
  padding: 16px 20px;
}
body.theme-ios #vehicleDetailModal .modal-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--ios-text);
}
/* ============================================================
 * 车辆全生命周期档案弹窗（新版型：顶栏横条 + iOS设置风格统计条 + 分组信息）
 * ============================================================ */
body.theme-ios #vehicleDetailModal .modal-content {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}
body.theme-ios #vehicleDetailModal .modal-header {
  background: #fff;
  border-bottom: 1px solid var(--ios-border);
  padding: 16px 20px;
}
body.theme-ios #vehicleDetailModal .modal-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--ios-text);
}
/* 顶栏横条：车牌 + 品牌 + 导出 */
body.theme-ios .vdetail-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08);
  margin-bottom: 16px;
}
body.theme-ios .vdetail-topbar-accent {
  width: 4px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0a84ff, #5e5ce6);
  flex-shrink: 0;
}
body.theme-ios .vdetail-topbar-main { flex: 1; min-width: 0; }
body.theme-ios .vdetail-plate {
  font-size: 24px;
  font-weight: 800;
  color: var(--ios-text);
  letter-spacing: 1px;
  line-height: 1.2;
}
body.theme-ios .vdetail-brand {
  color: var(--ios-text-3);
  font-size: 13px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-ios .vdetail-export-btn {
  background: rgba(120, 120, 128, 0.08);
  border: 1px solid var(--ios-border);
  color: var(--ios-text);
  border-radius: 999px;
  padding: 7px 15px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all .2s;
}
body.theme-ios .vdetail-export-btn:hover { background: rgba(120, 120, 128, 0.16); }
/* 统计条：iOS 设置风格（等分 + 细分割线） */
body.theme-ios .vdetail-stats {
  display: flex;
  align-items: stretch;
  background: #fafafa;
  border: 1px solid var(--ios-border);
  border-radius: 14px;
  margin: 0 20px 16px;
  overflow: hidden;
}
body.theme-ios .vdetail-stat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  min-width: 0;
}
body.theme-ios .vdetail-stat-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--ios-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-ios .vdetail-stat-value--fee { color: #ff3b30; }
body.theme-ios .vdetail-stat-label {
  font-size: 11px;
  color: var(--ios-text-3);
  margin-top: 3px;
}
body.theme-ios .vdetail-stat-divider {
  width: 1px;
  background: var(--ios-border);
  margin: 10px 0;
}
@media (max-width: 480px) {
  body.theme-ios .vdetail-stat-value { font-size: 14px; }
  body.theme-ios .vdetail-stats { margin: 0 14px 12px; }
}
/* 基础信息：分组网格（浅灰块，紧凑） */
body.theme-ios .vdetail-info {
  margin: 0 20px 18px;
}
body.theme-ios .vdetail-info-title {
  font-weight: 700;
  color: var(--ios-text);
  font-size: 13px;
  margin-bottom: 10px;
  padding-left: 2px;
}
body.theme-ios .vdetail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 480px) {
  body.theme-ios .vdetail-info-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  body.theme-ios .vdetail-info { margin: 0 14px 14px; }
}
body.theme-ios .vdetail-info-cell {
  background: #fafafa;
  border-radius: 10px;
  padding: 9px 11px;
  min-width: 0;
}
body.theme-ios .vdetail-info-cell--wide { grid-column: 1 / -1; }
body.theme-ios .vdetail-info-label {
  color: var(--ios-text-3);
  font-size: 11px;
  margin-bottom: 2px;
}
body.theme-ios .vdetail-info-value {
  color: var(--ios-text);
  font-weight: 600;
  font-size: 13px;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.theme-ios .vdetail-info-value--mono { font-family: 'Courier New', monospace; }
/* 分段切换：细线式 */
body.theme-ios .vdetail-tabs {
  display: flex;
  border-bottom: 1px solid var(--ios-border);
  margin: 0 20px 14px;
}
body.theme-ios .vdetail-tab {
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ios-text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .2s;
  white-space: nowrap;
}
body.theme-ios .vdetail-tab.active {
  color: var(--ios-blue);
  border-bottom-color: var(--ios-blue);
}
@media (max-width: 480px) {
  body.theme-ios .vdetail-tabs { margin: 0 14px 12px; overflow-x: auto; }
  body.theme-ios .vdetail-tab { padding: 9px 12px; font-size: 13px; }
}
/* 费用汇总卡 */
body.theme-ios .cost-lifetime-summary {
  border-radius: 12px;
  border: 1px solid var(--ios-border);
  background: #fafafa;
  padding: 14px 16px;
  margin: 12px 0;
}
body.theme-ios .cost-lifetime-total { font-size: 24px; font-weight: 800; color: #ff3b30; }
/* 时间线卡片化 */
body.theme-ios #repairTimeline .timeline-item,
body.theme-ios #repairTimeline .tl-item {
  background: #fff;
  border: 1px solid var(--ios-border);
  border-radius: 12px;
  box-shadow: var(--ios-shadow);
  padding: 12px 14px;
  margin-bottom: 10px;
}

/* ============================================================
 * 西安今日油价模块（与主页统计卡片统一卡片风格）
 * ============================================================ */
body.theme-ios .oil-price-wrap {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-shadow);
  margin: 14px 0;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}
body.theme-ios .oil-price-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
body.theme-ios .oil-price-title {
  font-weight: 700;
  color: var(--ios-text);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.theme-ios .oil-ic {
  font-size: 20px;
}
body.theme-ios .oil-price-next {
  color: var(--ios-orange);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 149, 0, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}
body.theme-ios .oil-price-time {
  color: var(--ios-text-3);
  font-size: 11px;
  margin-left: auto;
}
body.theme-ios .oil-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 8px;
  flex: 1;
  min-width: 320px;
}
body.theme-ios .oil-price-cell {
  background: #fff;
  border: 1px solid var(--ios-border);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
body.theme-ios .oil-price-label {
  color: var(--ios-text-3);
  font-size: 11px;
  margin-bottom: 4px;
}
body.theme-ios .oil-price-value {
  font-size: 18px;
  font-weight: 700;
  color: #fa541c;
}
body.theme-ios .oil-loading { color: var(--ios-text-3); }

/* ============================================================
 * 网站主页整体排版（整齐/美观：统计卡、筛选栏、快捷入口统一卡片化）
 * ============================================================ */
body.theme-ios .dashboard-top {
  background: #fff;
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-shadow);
  padding: 12px 16px;
  margin-bottom: 14px;
}
body.theme-ios .filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
body.theme-ios .filter-bar .form-group { margin-bottom: 0; }
body.theme-ios .stats-grid {
  gap: 12px;
  margin-bottom: 14px;
}
body.theme-ios .stat-card {
  background: #fff;
  border: 1px solid var(--ios-border);
  border-radius: 14px;
  box-shadow: var(--ios-shadow);
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.theme-ios .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}
/* 统计卡顶部色条 */
body.theme-ios .stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #0a84ff;
  opacity: 0.85;
}
body.theme-ios .stat-card.warning::before { background: #ff9500; }
body.theme-ios .stat-card.success::before { background: #34c759; }
body.theme-ios .stat-card.danger::before { background: #ff3b30; }
body.theme-ios .stat-card.info::before { background: #5ac8fa; }
body.theme-ios .stat-card.primary::before { background: #0a84ff; }
body.theme-ios .stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--ios-text);
  line-height: 1.2;
}
body.theme-ios .stat-label {
  color: var(--ios-text-3);
  font-size: 12px;
  margin-top: 4px;
}
body.theme-ios .stat-card-sm { padding: 14px 12px; }
body.theme-ios .stat-card-sm .stat-value { font-size: 22px; }
/* 主页统计卡重排：4 核心卡一行 */
body.theme-ios .stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
body.theme-ios .stats-grid-4 .stat-card-sm { min-height: 86px; }
@media (max-width: 1100px) {
  body.theme-ios .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  body.theme-ios .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
  body.theme-ios .stats-grid-4 .stat-value { font-size: 20px; }
}
/* 综合数据统计卡片 */
body.theme-ios .content .card {
  background: #fff;
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-shadow);
}
body.theme-ios .content .card-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08);
}
body.theme-ios .content .card-title {
  font-weight: 700;
  color: var(--ios-text);
  font-size: 15px;
}
/* 快捷入口卡片化 */
body.theme-ios .quick-link {
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
body.theme-ios .quick-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* 日历按钮：提升层级防遮挡（"点了没反应"的防御），打开时高亮提示 */
body.theme-ios #btnToggleCalendar {
  position: relative;
  z-index: 6;
}
body.theme-ios #vehicleCalendarPanel {
  transition: box-shadow .3s ease;
}
/* 修复：style.css 中审车/检修卡是渐变背景+白字，theme-ios 改白底后白字看不见（空白），强制改深色 */
body.theme-ios .stat-card.inspection-warning,
body.theme-ios .stat-card.maintenance-warning {
  background: #fff;
  border: 1px solid var(--ios-border);
}
body.theme-ios .stat-card.inspection-warning .stat-value,
body.theme-ios .stat-card.inspection-warning .stat-label,
body.theme-ios .stat-card.maintenance-warning .stat-value,
body.theme-ios .stat-card.maintenance-warning .stat-label {
  color: var(--ios-text);
}

/* ============================================================
 * 主页双栏布局（趋势图+日历 / 到期清单+油价）
 * ============================================================ */
body.theme-ios .home-chart-card,
body.theme-ios .home-expiring-card {
  background: #fff;
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-shadow);
  padding: 0 0 12px;
  overflow: hidden;
}
body.theme-ios .home-chart-card .card-header,
body.theme-ios .home-expiring-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08);
}
body.theme-ios .home-chart-card .chart-container {
  padding: 8px 12px 0;
}
/* 到期清单滚动条 */
body.theme-ios #homeExpiringList {
  padding: 6px 16px;
  scrollbar-width: thin;
}
body.theme-ios #homeExpiringList::-webkit-scrollbar { width: 5px; }
body.theme-ios #homeExpiringList::-webkit-scrollbar-thumb { background: rgba(60, 60, 67, 0.18); border-radius: 999px; }

/* 到期提醒摘要：审车/检修数字 + 分割线 */
body.theme-ios .home-expiring-summary {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 4px 16px 8px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid var(--ios-border);
  overflow: hidden;
}
body.theme-ios .home-expiring-stat {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  transition: background .2s;
}
body.theme-ios .home-expiring-stat:hover { background: #f0f3f8; }
body.theme-ios .home-expiring-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
body.theme-ios .home-expiring-label {
  font-size: 11px;
  color: var(--ios-text-3);
  margin-top: 2px;
}
body.theme-ios .home-expiring-divider {
  width: 1px;
  background: var(--ios-border);
  margin: 8px 0;
}

/* ============================================================
 * 便民服务区：油价 / 天气 / 限行 / 节假日 + 快捷入口（紧凑合一）
 * ============================================================ */
body.theme-ios .home-utility-card {
  padding: 0;
  overflow: hidden;
}
body.theme-ios .home-utility-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0;
}
@media (max-width: 1100px) {
  body.theme-ios .home-utility-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  body.theme-ios .home-utility-grid { grid-template-columns: 1fr; }
}
body.theme-ios .home-utility-block {
  padding: 14px 16px;
  border-right: 1px solid rgba(60, 60, 67, 0.08);
  min-width: 0;
}
body.theme-ios .home-utility-block:last-child { border-right: none; }
@media (max-width: 1100px) {
  body.theme-ios .home-utility-block:nth-child(2n) { border-right: none; }
  body.theme-ios .home-utility-block:nth-child(-n+2) { border-bottom: 1px solid rgba(60, 60, 67, 0.08); }
}
@media (max-width: 480px) {
  body.theme-ios .home-utility-block { border-right: none; border-bottom: 1px solid rgba(60, 60, 67, 0.08); }
  body.theme-ios .home-utility-block:last-child { border-bottom: none; }
}
body.theme-ios .home-utility-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ios-text);
  font-size: 13px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
body.theme-ios .home-utility-oil .oil-price-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
body.theme-ios .home-utility-oil .oil-price-cell {
  padding: 8px 6px;
}
body.theme-ios .home-utility-oil .oil-price-value { font-size: 15px; }
body.theme-ios .home-utility-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid rgba(60, 60, 67, 0.08);
  background: #fafafa;
}
body.theme-ios .home-utility-links .quick-link {
  border-radius: 10px !important;
  box-shadow: none;
}

/* ============================================================
 * 网站主页大屏（进入系统后的默认首页）
 * ============================================================ */
/* 顶部欢迎横幅 */
body.theme-ios .dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 14px;
  background: linear-gradient(120deg, #ffffff 0%, #f0f6ff 55%, #eef2ff 100%);
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-shadow);
}
body.theme-ios .dashboard-hero-greeting {
  font-size: 19px;
  font-weight: 800;
  color: var(--ios-text);
  letter-spacing: 0.3px;
}
body.theme-ios .dashboard-hero-date {
  font-size: 13px;
  color: var(--ios-text-3);
  margin-top: 4px;
}
body.theme-ios .dashboard-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
body.theme-ios .dash-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ios-text-2);
}
body.theme-ios .dash-meta-ic { font-size: 16px; }
body.theme-ios .dash-meta-divider {
  width: 1px;
  height: 16px;
  background: var(--ios-border);
}
/* 6 指标 */
body.theme-ios .stats-grid-6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 1100px) {
  body.theme-ios .stats-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  body.theme-ios .stats-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
/* 图表三栏（保留，但主页改用双栏） */
body.theme-ios .dashboard-chart-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
/* 便民三卡片：天气/限行/节假日 分开独立卡片 */
body.theme-ios .home-utility-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  body.theme-ios .home-utility-grid-3 { grid-template-columns: 1fr; }
}
body.theme-ios .home-util-item {
  padding: 14px 16px;
  min-height: 86px;
}
body.theme-ios .home-util-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ios-text);
  font-size: 14px;
  margin-bottom: 10px;
}
body.theme-ios .home-util-ic { font-size: 18px; }
body.theme-ios .home-mid-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  body.theme-ios .home-mid-grid { grid-template-columns: 1fr; }
}
body.theme-ios .dash-card {
  padding: 0 0 10px;
  overflow: hidden;
}
body.theme-ios .dash-card .card-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08);
}
body.theme-ios .dash-card .chart-container {
  padding: 8px 12px 0;
}
body.theme-ios #homePartRanking {
  scrollbar-width: thin;
}
body.theme-ios #homePartRanking::-webkit-scrollbar { width: 5px; }
body.theme-ios #homePartRanking::-webkit-scrollbar-thumb { background: rgba(60, 60, 67, 0.18); border-radius: 999px; }

/* ============================================================
 * 网站主页（最终版：简洁有层次）
 * ============================================================ */
body.theme-ios .dash-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 4px 16px;
}
body.theme-ios .dash-hero-greeting {
  font-size: 20px;
  font-weight: 800;
  color: var(--ios-text);
  letter-spacing: 0.3px;
}
body.theme-ios .dash-hero-date {
  font-size: 13px;
  color: var(--ios-text-3);
}
body.theme-ios .dash-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 1100px) {
  body.theme-ios .dash-main-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  body.theme-ios .dash-main-grid { grid-template-columns: 1fr; }
}
body.theme-ios .dash-utility-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  padding: 0;
}
/* 4 个便民卡田字型（2×2），作为一个大卡片内部格子，用分隔线区分，
   与趋势图/到期清单等高对齐 */
body.theme-ios .dash-utility-col .dash-util-item {
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 14px;
  min-height: 0;
}
body.theme-ios .dash-utility-col .dash-util-item:nth-child(1) { border-right: 1px solid rgba(60, 60, 67, 0.08); border-bottom: 1px solid rgba(60, 60, 67, 0.08); }
body.theme-ios .dash-utility-col .dash-util-item:nth-child(2) { border-bottom: 1px solid rgba(60, 60, 67, 0.08); }
body.theme-ios .dash-utility-col .dash-util-item:nth-child(3) { border-right: 1px solid rgba(60, 60, 67, 0.08); }
body.theme-ios .dash-utility-col .dash-util-item:nth-child(4) { }
body.theme-ios .dash-card {
  padding: 0 0 10px;
  overflow: hidden;
}
body.theme-ios .dash-card .card-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08);
}
body.theme-ios .dash-card .chart-container {
  padding: 8px 12px 0;
}
/* 便民信息条：一排四项（天气/限行/节假日/油价） */
body.theme-ios .dash-utility-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.6fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  body.theme-ios .dash-utility-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  body.theme-ios .dash-utility-row { grid-template-columns: 1fr; }
}
body.theme-ios .dash-util-item {
  background: #fff;
  border: 1px solid var(--ios-border);
  border-radius: 12px;
  box-shadow: var(--ios-shadow);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 52px;
}
body.theme-ios .dash-util-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--ios-text);
  font-size: 13px;
}
body.theme-ios .dash-util-ic { font-size: 17px; }
body.theme-ios .dash-util-body {
  font-size: 13px;
  color: var(--ios-text);
}
body.theme-ios .dash-util-sub {
  font-size: 11px;
  color: #8e8e93;
}
body.theme-ios .dash-links-title {
  font-weight: 700;
  color: var(--ios-text);
  font-size: 14px;
  margin-bottom: 10px;
}
body.theme-ios .dash-util-ic { font-size: 20px; }
body.theme-ios .dash-util-label {
  font-size: 12px;
  color: var(--ios-text-3);
  font-weight: 600;
}
body.theme-ios .dash-util-val {
  font-size: 14px;
  color: var(--ios-text);
  font-weight: 700;
  margin-left: auto;
}
body.theme-ios .dash-links-card {
  padding: 12px 16px;
}

/* ============================================================
 * 系统设置页（新版式：分组卡片 + 图标头 + 副标题）
 * ============================================================ */
body.theme-ios .settings-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.theme-ios .settings-card {
  background: #fff;
  border: 1px solid var(--ios-border);
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-shadow);
  overflow: hidden;
}
body.theme-ios .settings-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08);
  background: #fafafa;
}
body.theme-ios .settings-card-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
body.theme-ios .settings-card-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ios-text);
}
body.theme-ios .settings-card-sub {
  font-size: 12px;
  color: var(--ios-text-3);
  margin-top: 2px;
}
body.theme-ios .settings-card-body {
  padding: 16px 18px;
}
body.theme-ios .settings-grid-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
}
@media (max-width: 900px) {
  body.theme-ios .settings-grid-inline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body.theme-ios .settings-grid-inline { grid-template-columns: 1fr; }
}
body.theme-ios .settings-actions {
  padding: 4px 0 0;
  text-align: right;
}

/* ============================================================
 * 我的邀请码（修理厂用户，新版式）
 * ============================================================ */
body.theme-ios .invite-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: linear-gradient(120deg, #ffffff 0%, #f0f6ff 100%);
  border-bottom: 1px solid var(--ios-border);
}
body.theme-ios .invite-hero-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ios-text);
}
body.theme-ios .invite-hero-sub {
  font-size: 12px;
  color: var(--ios-text-3);
  margin-top: 3px;
}
body.theme-ios .invite-stats {
  display: flex;
  align-items: stretch;
  background: #fafafa;
  border: 1px solid var(--ios-border);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}
body.theme-ios .invite-stat {
  flex: 1;
  text-align: center;
  padding: 16px 10px;
}
body.theme-ios .invite-stat-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}
body.theme-ios .invite-stat-label {
  font-size: 12px;
  color: var(--ios-text-3);
  margin-top: 4px;
}
body.theme-ios .invite-stat-divider {
  width: 1px;
  background: var(--ios-border);
  margin: 10px 0;
}
body.theme-ios .invite-list-title {
  font-weight: 700;
  color: var(--ios-text);
  font-size: 14px;
  margin-bottom: 10px;
  padding-left: 2px;
}

/* V13：主页三栏（趋势图/到期清单/便民列）统一固定 425px 高，彻底对齐 */
body.theme-ios .dash-main-grid > .card {
  height: 425px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
/* V14：便民列必须覆盖 .dash-main-grid > .card 的 flex 布局，保持田字型 2×2 */
body.theme-ios .dash-main-grid > .dash-utility-col {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  padding: 0;
  flex-direction: unset;
}
body.theme-ios .dash-main-grid > .card .chart-container {
  flex: 1;
  height: auto;
  min-height: 0;
  padding: 8px 12px 0;
  box-sizing: border-box;
}
body.theme-ios .dash-main-grid > .card .card-header {
  flex-shrink: 0;
}
body.theme-ios .dash-main-grid #homeExpiringList {
  flex: 1;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
}
body.theme-ios .dash-utility-col {
  height: 425px;
}
