/* ============================================================
   红色驿站 H5 样式框架 - 清爽大气版
   主题色: #C8102E (中国红)
   ============================================================ */

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

:root {
  --primary: #C8102E;
  --primary-light: #E8384F;
  --primary-dark: #A00D24;
  --primary-bg: #FFF5F5;
  --green: #07A35A;
  --green-light: #E8F8EF;
  --orange: #FF6B00;
  --orange-light: #FFF3E8;
  --blue: #1890FF;
  --blue-light: #E6F7FF;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #F3F4F6;
  --bg: #F7F8FA;
  --white: #FFF;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.08);
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ========== 顶部导航栏 ========== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: 50px; line-height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFF;
  text-align: center;
  font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(200,16,46,0.15);
}
.navbar .back {
  position: absolute; left: 12px; top: 0;
  width: 40px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer;
}
.navbar .right {
  position: absolute; right: 14px; top: 0;
  font-size: 14px; font-weight: normal; cursor: pointer;
}
.navbar.green { background: linear-gradient(135deg, var(--green), #2ECC71); }
.navbar.orange { background: linear-gradient(135deg, var(--orange), #FF9500); }

/* ========== 底部导航 ========== */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 750px;
  height: 58px;
  background: #FFF;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}
.tabbar .tab-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-light);
  font-size: 11px;
  cursor: pointer;
  gap: 2px;
  position: relative;
  transition: color 0.2s;
}
.tabbar .tab-item .icon { font-size: 22px; }
.tabbar .tab-item.active { color: var(--primary); }
.tabbar .tab-item.publish { position: relative; }
.tabbar .tab-item.publish .icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-top: -22px;
  box-shadow: 0 4px 12px rgba(200,16,46,0.35);
}
/* 底部导航未读消息红点 */
.tab-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  background: #FF4D4F;
  color: #FFF;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  border-radius: 9px;
  padding: 0 5px;
  box-shadow: 0 0 0 2px #FFF;
}

/* 页面底部留白 */
.page-content { padding-bottom: 72px; }

/* ========== 轮播图 ========== */
.banner {
  width: 100%; height: 170px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #FFF;
  position: relative;
  overflow: hidden;
}
.banner .banner-text { text-align: center; }
.banner .banner-text h2 { font-size: 24px; margin-bottom: 6px; font-weight: 700; }
.banner .banner-text p { font-size: 13px; opacity: 0.9; }

/* ========== 服务入口 ========== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 18px 12px;
  background: #FFF;
  margin: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-grid .service-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  cursor: pointer;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.service-grid .service-item:active { background: var(--bg); }
.service-grid .service-item .icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: #FFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.service-grid .service-item .icon.red { background: linear-gradient(135deg, #C8102E, #E8384F); }
.service-grid .service-item .icon.green { background: linear-gradient(135deg, #07A35A, #2ECC71); }
.service-grid .service-item .icon.orange { background: linear-gradient(135deg, #FF6B00, #FF9500); }
.service-grid .service-item .icon.blue { background: linear-gradient(135deg, #1890FF, #36CFC9); }
.service-grid .service-item .name { font-size: 13px; font-weight: 500; }
.service-grid .service-item .desc { font-size: 10px; color: var(--text-light); }

/* ========== 公告栏 ========== */
.notice-bar {
  display: flex; align-items: center;
  background: #FFF;
  margin: 0 12px 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  gap: 10px;
}
.notice-bar .label {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFF;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
}
.notice-bar .content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========== 卡片 ========== */
.card {
  background: #FFF;
  margin: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header .title { font-size: 15px; font-weight: 600; }
.card-header .more { font-size: 12px; color: var(--text-light); }
.card-body { padding: 14px 16px; }

/* ========== 商品/物品卡片 ========== */
.item-list { padding: 0 12px; }
.item-card {
  display: flex;
  background: #FFF;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.item-card:active { transform: scale(0.98); box-shadow: var(--shadow-lg); }
.item-card .item-img {
  width: 110px; height: 110px;
  background: #F5F5F5;
  flex-shrink: 0;
  object-fit: cover;
}
.item-card .item-info {
  flex: 1;
  padding: 12px 14px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.item-card .item-name {
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.4;
}
.item-card .item-meta {
  font-size: 12px; color: var(--text-light);
}
.item-card .item-price {
  color: var(--primary);
  font-size: 18px; font-weight: 700;
}
.item-card .item-price .unit { font-size: 12px; font-weight: normal; }
.item-card .item-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 4px;
  font-weight: 500;
}
.item-card .item-tag.green { background: var(--green-light); color: var(--green); }
.item-card .item-tag.orange { background: var(--orange-light); color: var(--orange); }
.item-card .item-tag.red { background: var(--primary-bg); color: var(--primary); }

/* ========== 表单 ========== */
.form-group {
  background: #FFF;
  margin: 12px;
  border-radius: var(--radius);
  padding: 4px 16px;
  box-shadow: var(--shadow);
}
.form-row {
  display: flex; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  min-height: 50px;
}
.form-row:last-child { border-bottom: none; }
.form-row .label {
  width: 95px;
  font-size: 14px;
  color: var(--text);
  flex-shrink: 0;
  font-weight: 500;
}
.form-row .label .required { color: var(--primary); margin-right: 2px; }
.form-row .value {
  flex: 1;
  font-size: 14px;
}
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="datetime-local"],
.form-row select,
.form-row textarea {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}
.form-row textarea {
  resize: none;
  min-height: 70px;
  padding: 4px 0;
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23999'/%3E%3C/svg%3E") no-repeat right center;
  padding-right: 20px;
}

/* 图片上传 */
.upload-area {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 8px 0;
}
.upload-area .upload-item {
  width: 75px; height: 75px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #F5F5F5;
}
.upload-area .upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-area .upload-item .remove {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.55);
  color: #FFF;
  border-radius: 50%;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.upload-area .upload-btn {
  width: 75px; height: 75px;
  border: 1.5px dashed #D1D5DB;
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-light);
  font-size: 11px;
  cursor: pointer;
  gap: 4px;
  background: #FAFAFA;
  transition: border-color 0.2s;
}
.upload-area .upload-btn:active { border-color: var(--primary); }
.upload-area .upload-btn .plus { font-size: 26px; line-height: 1; color: #D1D5DB; }

/* ========== 按钮 ========== */
.btn {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
}
.btn:active { opacity: 0.85; transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #FFF; box-shadow: 0 4px 12px rgba(200,16,46,0.25); }
.btn-green { background: linear-gradient(135deg, var(--green), #2ECC71); color: #FFF; box-shadow: 0 4px 12px rgba(7,163,90,0.25); }
.btn-orange { background: linear-gradient(135deg, var(--orange), #FF9500); color: #FFF; box-shadow: 0 4px 12px rgba(255,107,0,0.25); }
.btn-outline {
  background: #FFF;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-gray { background: #F3F4F6; color: var(--text-secondary); }
.btn-sm {
  display: inline-block;
  width: auto;
  height: 34px;
  line-height: 34px;
  padding: 0 18px;
  font-size: 13px;
  border-radius: 17px;
  letter-spacing: 0;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-bar {
  padding: 14px 16px;
  display: flex; gap: 12px;
}
.btn-bar .btn { flex: 1; }

/* ========== 标签页 ========== */
.tabs {
  display: flex;
  background: #FFF;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 50px; z-index: 50;
}
.tabs .tab {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.tabs .tab.active {
  color: var(--primary);
  font-weight: 600;
}
.tabs .tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

/* ========== 空状态 ========== */
.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-light);
}
.empty .icon { font-size: 52px; margin-bottom: 14px; opacity: 0.6; }
.empty .text { font-size: 14px; }

/* ========== 弹窗 ========== */
.modal-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.modal {
  width: 85%;
  max-width: 340px;
  background: #FFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.modal .modal-header {
  padding: 18px 16px;
  text-align: center;
  font-size: 16px; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.modal .modal-body {
  padding: 18px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  max-height: 55vh;
  overflow-y: auto;
  line-height: 1.8;
}
.modal .modal-footer {
  display: flex;
  border-top: 1px solid var(--border);
}
.modal .modal-footer .btn {
  flex: 1;
  border-radius: 0;
  height: 48px; line-height: 48px;
  font-size: 15px;
  box-shadow: none;
}
.modal .modal-footer .btn + .btn {
  border-left: 1px solid var(--border);
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.78);
  color: #FFF;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 999;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ========== 模块顶部提示 ========== */
.module-tip {
  padding: 12px 16px;
  font-size: 12px;
  text-align: center;
  font-weight: 500;
  line-height: 1.6;
}
.module-tip.green { background: var(--green-light); color: var(--green); }
.module-tip.orange { background: var(--orange-light); color: var(--orange); }
.module-tip.red { background: var(--primary-bg); color: var(--primary); }

/* ========== 状态标签 ========== */
.status-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 500;
}
.status-tag.pending { background: #FFF7E6; color: #FA8C16; }
.status-tag.approved { background: var(--green-light); color: var(--green); }
.status-tag.rejected { background: #FFF1F0; color: #FF4D4F; }
.status-tag.completed { background: var(--blue-light); color: var(--blue); }
.status-tag.canceled { background: #F5F5F5; color: var(--text-light); }

/* ========== 个人中心 ========== */
.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 40px 20px 60px;
  color: #FFF;
  display: flex; align-items: center; gap: 16px;
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: '';
  position: absolute;
  top: -50px; right: -30px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.profile-header::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -20px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.profile-header .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.profile-header .avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-header .info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.profile-header .info .name {
  font-size: 19px; font-weight: 700;
  margin-bottom: 6px;
}
.profile-header .info .sub {
  font-size: 12px; opacity: 0.9;
  line-height: 1.8;
}
.profile-header .info .badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  margin-right: 6px;
  margin-top: 4px;
  backdrop-filter: blur(4px);
}
.profile-header .edit {
  position: absolute;
  right: 16px; top: 16px;
  font-size: 13px;
  opacity: 0.9;
  z-index: 1;
  background: rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
}

.menu-list {
  background: #FFF;
  margin: -36px 12px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.menu-list .menu-item {
  display: flex; align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  gap: 14px;
  transition: background 0.15s;
}
.menu-list .menu-item:last-child { border-bottom: none; }
.menu-list .menu-item:active { background: var(--bg); }
.menu-list .menu-item .icon {
  font-size: 20px;
  width: 32px;
  text-align: center;
  background: var(--bg);
  height: 32px;
  line-height: 32px;
  border-radius: 8px;
}
.menu-list .menu-item .text { flex: 1; font-size: 14px; font-weight: 500; }
.menu-list .menu-item .arrow { color: var(--text-light); font-size: 18px; }

/* ========== 消息列表 ========== */
.msg-item {
  display: flex;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.msg-item:active { background: var(--bg); }
.msg-item .msg-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.msg-item .msg-icon.system { background: var(--blue-light); color: var(--blue); }
.msg-item .msg-icon.audit { background: var(--orange-light); color: var(--orange); }
.msg-item .msg-icon.order { background: var(--green-light); color: var(--green); }
.msg-item .msg-icon.exchange { background: #F9F0FF; color: #722ED1; }
.msg-item .msg-icon.task { background: var(--orange-light); color: var(--orange); }
.msg-item .msg-content { flex: 1; min-width: 0; }
.msg-item .msg-title {
  font-size: 14px; font-weight: 600;
  display: flex; justify-content: space-between;
  align-items: center;
}
.msg-item .msg-title .time { font-size: 11px; color: var(--text-light); font-weight: normal; }
.msg-item .msg-desc {
  font-size: 12px; color: var(--text-secondary);
  margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.5;
}
.msg-item.unread .msg-title::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ========== 详情页 ========== */
.detail-swiper {
  width: 100%; height: 280px;
  background: #F5F5F5;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #D1D5DB;
  position: relative;
}
.detail-swiper img { width: 100%; height: 100%; object-fit: cover; }
.detail-info {
  background: #FFF;
  padding: 16px;
  margin-top: -12px;
  border-radius: 16px 16px 0 0;
  position: relative;
  z-index: 1;
}
.detail-info .title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.detail-info .price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 10px;
}
.detail-info .price { color: var(--primary); font-size: 26px; font-weight: 700; }
.detail-info .market-price { color: var(--text-light); font-size: 13px; text-decoration: line-through; }
.detail-info .meta { font-size: 13px; color: var(--text-secondary); line-height: 2; }
.detail-section {
  background: #FFF;
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.detail-section .section-title {
  font-size: 15px; font-weight: 600;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}
.detail-section .section-content {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.8;
}

/* 底部固定操作栏 */
.fixed-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 750px;
  background: #FFF;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 12px;
  z-index: 100;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}
.fixed-bar .btn { flex: 1; }

/* ========== 筛选栏 ========== */
.filter-bar {
  display: flex;
  background: #FFF;
  padding: 10px 12px;
  gap: 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}
.filter-bar .filter-item {
  padding: 6px 16px;
  font-size: 12px;
  border-radius: 16px;
  background: #F3F4F6;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.filter-bar .filter-item.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFF;
  box-shadow: 0 2px 8px rgba(200,16,46,0.2);
}

/* ========== 兑换码 ========== */
.code-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFF;
  text-align: center;
  padding: 32px 20px;
  margin: 20px 12px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(200,16,46,0.2);
  position: relative;
  overflow: hidden;
}
.code-box::before {
  content: '';
  position: absolute;
  top: -30px; right: -20px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.code-box .code-label { font-size: 13px; opacity: 0.9; }
.code-box .code-value {
  font-size: 38px; font-weight: 700;
  letter-spacing: 10px;
  margin: 12px 0;
  font-family: 'Courier New', monospace;
  position: relative;
  z-index: 1;
}
.code-box .code-tip { font-size: 12px; opacity: 0.8; }

/* ========== 登录页 ========== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary) 220px, var(--bg) 220px);
  padding: 60px 30px 30px;
}
.login-page .logo {
  text-align: center;
  color: #FFF;
  margin-bottom: 44px;
}
.login-page .logo .icon { font-size: 52px; }
.login-page .logo .name { font-size: 26px; font-weight: 700; margin-top: 10px; }
.login-page .logo .slogan { font-size: 13px; opacity: 0.85; margin-top: 6px; }
.login-form {
  background: #FFF;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
}
.login-form .form-row { border-bottom: 1px solid var(--border); }
.login-form .code-row {
  display: flex; align-items: center;
}
.login-form .code-row input { flex: 1; }
.login-form .code-row .send-code {
  color: var(--primary);
  font-size: 13px;
  padding: 6px 0 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  border-left: 1px solid var(--border);
  margin-left: 10px;
  font-weight: 500;
}
.login-form .code-row .send-code.disabled { color: var(--text-light); }

/* ========== 数据统计行 ========== */
.stats-row {
  display: flex;
  background: #FFF;
  margin: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 0;
}
.stats-row .stat-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats-row .stat-item:last-child { border-right: none; }
.stats-row .stat-item .num { font-size: 24px; font-weight: 700; color: var(--primary); }
.stats-row .stat-item .label { font-size: 12px; color: var(--text-light); margin-top: 6px; }

/* 隐藏滚动条 */
::-webkit-scrollbar { display: none; }
