/* ========================================
   宜玩-自驾APP - 公共样式文件
   移动端优先 H5 应用
   主题：户外、自驾、现代风格
   ======================================== */

/* 引入图标样式系统 */
@import url('./icons.css');

/* ========== CSS 变量（配色方案） ========== */
:root {
  --primary: #FF6B35;       /* 主色调：活力橙 */
  --primary-light: #FF8A5C;
  --primary-dark: #E55A2B;
  --secondary: #2EC4B6;     /* 辅助色：清新绿 */
  --secondary-light: #4DD8CC;
  --danger: #E74C3C;        /* 紧急/SOS 红色 */
  --gold: #F0C040;          /* 积分/会员金色 */
  --bg: #F5F6FA;            /* 背景色 */
  --text: #333333;          /* 文字色 */
  --text-light: #666666;
  --text-muted: #999999;
  --white: #FFFFFF;
  --border: #E8E8E8;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 4px;
  /* 导航栏/底部栏高度 */
  --navbar-height: 48px;
  --tabbar-height: 56px;
}

/* ========== CSS Reset 基础重置 ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* rem 基准 16px，移动端适配 */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;       /* 14px */
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  /* 移动端滚动优化 */
  -webkit-overflow-scrolling: touch;
  /* 底部安全区域适配 */
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

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

ul,
ol {
  list-style: none;
}

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

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

button {
  cursor: pointer;
}

/* 清除 input 默认样式 */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* ========== 移动端 viewport 适配 ========== */
/* 在小屏设备上缩小基准字体 */
@media screen and (max-width: 320px) {
  html {
    font-size: 14px;
  }
}

@media screen and (min-width: 375px) and (max-width: 414px) {
  html {
    font-size: 16px;
  }
}

/* ========== 顶部导航栏 .navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.navbar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  /* 标题居中 */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.navbar .icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text);
  border-radius: 50%;
  transition: background 0.2s;
}

.navbar .icon-btn:active {
  background: var(--bg);
}

/* ========== 子页面顶部导航栏 .nav-bar ========== */
/* 52 个 pages/*.html 子页面统一使用此类：返回键 + 标题 + 右侧操作 */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.nav-back {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.375rem;
  color: var(--text);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.nav-back:active { background: var(--bg); }

.nav-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.nav-right {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  color: var(--text);
  cursor: pointer;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.nav-right:active { background: var(--bg); }

/* ========== 分类筛选 Tab（水平滚动） ========== */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #f5f5f5;
}
.category-tabs::-webkit-scrollbar { display: none; }

.category-tabs .tab-tag {
  flex-shrink: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}
.category-tabs .tab-tag.active {
  color: var(--primary);
  font-weight: 600;
}
.category-tabs .tab-tag.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ========== 加载更多 ========== */
.load-more {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: #999;
  cursor: pointer;
}

/* ========== 底部 TabBar .tabbar ========== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--tabbar-height);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.06);
  /* 底部安全区域适配 */
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.625rem;
  transition: color 0.2s;
  cursor: pointer;
}

.tabbar-item .tab-icon {
  font-size: 1.375rem;
  margin-bottom: 2px;
  line-height: 1;
}

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

/* ========== 底部 TabBar 通用类名兼容 (.tab-bar / .tab-item) ========== */
/* 6 个带底部 TabBar 的页面（activity/route/shop/community/food/profile）
   使用了 .tab-bar 和 .tab-item，而公共样式原先只定义了 .tabbar/.tabbar-item。
   此处添加完全等价的别名，确保所有页面视觉一致。 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--tabbar-height);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.06);
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.625rem;
  transition: color 0.2s;
  cursor: pointer;
}

.tab-item .tab-icon {
  font-size: 1.375rem;
  margin-bottom: 2px;
  line-height: 1;
}

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

/* ========== 主内容容器：.main-content（子页面通用） ========== */
/* 与 .page-content 的唯一区别是命名不同，但需要同样的 padding-top/bottom */
.main-content {
  padding-top: var(--navbar-height);
  padding-bottom: 0.75rem;
  min-height: 100vh;
  box-sizing: border-box;
}

.main-content.has-tabbar,
.main-content.has-tab {
  padding-bottom: calc(var(--tabbar-height) + 0.75rem);
}

.page-content.has-tabbar,
.page-content.has-tab {
  padding-bottom: calc(var(--tabbar-height) + 0.75rem);
}

/* ========== 卡片组件 .card ========== */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.card-body {
  font-size: 0.875rem;
  color: var(--text-light);
}

.card-footer {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== 按钮样式 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

/* 主色调按钮 */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-primary:active {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: scale(0.97);
}

/* 紧急/危险按钮 */
.btn-danger {
  background: linear-gradient(135deg, var(--danger), #F06050);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-danger:active {
  transform: scale(0.97);
}

/* 描边按钮 */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:active {
  background: rgba(255, 107, 53, 0.05);
}

/* 小按钮 */
.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 14px;
}

/* 大按钮 */
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 24px;
}

/* 块级按钮 */
.btn-block {
  display: flex;
  width: 100%;
}

/* 禁用状态 */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== 表单样式 ========== */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text);
  background-color: var(--white);
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* 搜索输入框 */
.search-input {
  background-color: var(--bg);
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  font-size: 0.8125rem;
}

/* ========== 标签 .tag ========== */
.tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--white);
  background-color: var(--primary);
}

.tag-success {
  background-color: var(--secondary);
}

.tag-danger {
  background-color: var(--danger);
}

.tag-warning {
  background-color: var(--gold);
  color: var(--text);
}

.tag-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* ========== 列表项 .list-item ========== */
.list-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}

.list-item:active {
  background-color: var(--bg);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item .item-icon {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  color: var(--primary);
  flex-shrink: 0;
}

.list-item .item-content {
  flex: 1;
  min-width: 0;
}

.list-item .item-title {
  font-size: 0.9375rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item .item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.list-item .item-arrow {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  flex-shrink: 0;
}

/* ========== 徽章 .badge ========== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 0.625rem;
  color: var(--white);
  background-color: var(--danger);
  line-height: 1;
  position: absolute;
  top: -4px;
  right: -8px;
}

.badge-wrapper {
  position: relative;
  display: inline-flex;
}

/* ========== 网格布局 ========== */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 0.75rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ========== Flex 布局工具类 ========== */
.flex {
  display: flex;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
}

/* ========== 间距工具类 ========== */
/* margin-top */
.mt-5 { margin-top: 0.3125rem; }
.mt-10 { margin-top: 0.625rem; }
.mt-15 { margin-top: 0.9375rem; }
.mt-20 { margin-top: 1.25rem; }
.mt-30 { margin-top: 1.875rem; }

/* margin-bottom */
.mb-5 { margin-bottom: 0.3125rem; }
.mb-10 { margin-bottom: 0.625rem; }
.mb-15 { margin-bottom: 0.9375rem; }
.mb-20 { margin-bottom: 1.25rem; }
.mb-30 { margin-bottom: 1.875rem; }

/* margin-left */
.ml-5 { margin-left: 0.3125rem; }
.ml-10 { margin-left: 0.625rem; }
.ml-15 { margin-left: 0.9375rem; }

/* margin-right */
.mr-5 { margin-right: 0.3125rem; }
.mr-10 { margin-right: 0.625rem; }
.mr-15 { margin-right: 0.9375rem; }

/* padding */
.p-5 { padding: 0.3125rem; }
.p-10 { padding: 0.625rem; }
.p-15 { padding: 0.9375rem; }
.p-20 { padding: 1.25rem; }

/* padding-top */
.pt-5 { padding-top: 0.3125rem; }
.pt-10 { padding-top: 0.625rem; }
.pt-15 { padding-top: 0.9375rem; }
.pt-20 { padding-top: 1.25rem; }

/* padding-bottom */
.pb-5 { padding-bottom: 0.3125rem; }
.pb-10 { padding-bottom: 0.625rem; }
.pb-15 { padding-bottom: 0.9375rem; }
.pb-20 { padding-bottom: 1.25rem; }

/* padding-left */
.pl-10 { padding-left: 0.625rem; }
.pl-15 { padding-left: 0.9375rem; }
.pl-20 { padding-left: 1.25rem; }

/* padding-right */
.pr-10 { padding-right: 0.625rem; }
.pr-15 { padding-right: 0.9375rem; }
.pr-20 { padding-right: 1.25rem; }

/* ========== 文字工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-danger { color: var(--danger); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-white { color: var(--white); }

.text-sm { font-size: 0.75rem; }
.text-lg { font-size: 1rem; }
.text-xl { font-size: 1.25rem; }

.text-bold { font-weight: 600; }
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== 加载动画 .loading-spinner ========== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loading-spinner::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 全屏加载遮罩 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loading-overlay .loading-spinner {
  padding: 0;
}

.loading-overlay .loading-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========== Toast 提示 .toast ========== */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.625rem 1.25rem;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--white);
  background-color: rgba(51, 51, 51, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  animation: toastIn 0.3s ease;
  max-width: 80vw;
  text-align: center;
  white-space: nowrap;
}

.toast-success {
  background-color: rgba(46, 196, 182, 0.9);
}

.toast-error {
  background-color: rgba(231, 76, 60, 0.9);
}

.toast-warning {
  background-color: rgba(240, 192, 64, 0.9);
  color: var(--text);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ========== 弹窗 .modal ========== */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 85vw;
  max-width: 320px;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.modal-header {
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  border-top: 1px solid var(--border);
}

.modal-footer .btn {
  flex: 1;
  border-radius: 0;
  padding: 0.75rem;
  font-size: 0.9375rem;
}

.modal-footer .btn-cancel {
  background: var(--white);
  color: var(--text-light);
  border-right: 1px solid var(--border);
}

.modal-footer .btn-confirm {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== 分割线 .divider ========== */
.divider {
  height: 1px;
  background-color: var(--border);
  margin: 0.75rem 0;
}

.divider-text {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 1rem 0;
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.divider-text::before {
  margin-right: 0.75rem;
}

.divider-text::after {
  margin-left: 0.75rem;
}

/* ========== 空状态 .empty-state ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state .empty-text {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.empty-state .empty-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== 页面内容区域 ========== */
.page-content {
  padding-top: var(--navbar-height);
  padding-bottom: calc(var(--tabbar-height) + 0.75rem);
  min-height: 100vh;
}

.page-content.no-tabbar {
  padding-bottom: 0.75rem;
}

/* 内容区内边距 */
.content-padded {
  padding: 0.75rem 1rem;
}

/* ========== 横向滚动容器 ========== */
.scroll-x {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

.scroll-x::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.scroll-x > * {
  flex-shrink: 0;
}

/* ========== 轮播图 ========== */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0.75rem 0;
}

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

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}

.banner-dot.active {
  width: 18px;
  border-radius: 3px;
  background: var(--white);
}

.banner-title {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  padding: 16px 12px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  pointer-events: none;
}

/* ========== 功能入口 ========== */
.feature-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0;
  cursor: pointer;
}

.feature-entry .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.feature-entry .feature-name {
  font-size: 0.6875rem;
  color: var(--text);
  text-align: center;
}

/* ========== 响应式断点（768px 以上平板适配） ========== */
@media screen and (min-width: 768px) {
  html {
    font-size: 18px;
  }

  body {
    /* 平板居中显示 */
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
  }

  .navbar {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }

  .tabbar {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }

  .modal {
    max-width: 400px;
  }

  .toast {
    max-width: 400px;
  }
}