:root {
  --brand-green: #4caf50; /* 小熊绿 */
  --brand-blue: #2196f3; /* 蓝色 */
  --brand-cyan: #00B8D4; /* 跨界青 */
  --brand-orange: #ff9800;
  /* 悬停态：深 10% */
  --brand-green-deep: #388E3C;
  --brand-blue-deep: #1976D2;
  --brand-cyan-deep: #0097A7;
  /* 浅色背景态：用于标签背景、卡片高亮、Hover 遮罩 */
  --brand-green-surface: rgba(76, 175, 80, 0.1);
  --brand-blue-surface: rgba(33, 150, 243, 0.1);
  --brand-cyan-surface: rgba(0, 184, 212, 0.1);

  --text-dark: #2c3e50;
  --text-muted: #7f8c8d;
  --bg-body: #f4f7fa;
  --card-bg: #ffffff;
  --border-soft: #edf2f7;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.app-container {
  /* padding: 20px 0; */
}
.head-mobile {
  display: flex;
  flex-direction: column;
  padding: 0 8px;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-soft);
}

.logo-wrapper {
  padding: 6px 8px;
  text-align: center;
}

.logo {
  height: 23px;
}

.logo-slogan {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  text-align: center;
  display: none;
}


.search {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;

}

.search .search-input {
  width: 100%;
  height: 28px;
  background-color: #fff;
  border-radius: 14px;
  border: 1px solid #cdcdcd;
  padding: 0 10px;
  box-sizing: border-box;
  position: relative;
}

.search .search-input input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background-color: transparent;
  padding-left: 20px;
  padding-right: 60px;
  height: 100%;
}

.search .search-input input::placeholder {
  color: #cdcdcd;
}

.search .search-input .search-button {
  width: 60px;
  height: 28px;
  background-color: #4caf50;
  border-radius: 24px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 28px;
  position: absolute;
  right: 0;
  top: 0;
}

.search .search-input .search-icon {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
}

.search .login {
  white-space: nowrap;
  font-size: 14px;
  text-align: center;
  line-height: 28px;
  right: 0;
  top: 0;
  height: 28px;
  cursor: pointer;
  color: #333;
  margin-left: 20px;
  padding-right: 10px;
}

.search .login:hover {
  color: #35B058;
}

.banner-item-wrap {
  width: 100%;
  background-color: #b2f951;
  padding: 22px 8px 14px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.banner-item-wrap img {
  max-width: 1360px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.info-detail {
  margin-top: 16px;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 10px;
  padding: 0 10px;
  max-width: 1068px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.info-detail .info-detail-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.info-detail .info-detail-item .number {
  color: #35b058;
  font-size: 20px;
  font-weight: bold;
}

.info-detail .info-detail-item .desc {
  font-size: 10px;
  min-height: 45px;
}

.info-detail .info-detail-item .btn {
  /* width: 64px; */
  /* height: 18px; */
  padding: 4px 13px;
  color: #5AFE4F;
  background-color: #000;
  font-weight: bold;
  font-size: 10px;
  line-height: 12px;
  border-radius: 10px;
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-detail .info-detail-item .btn img {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}


.charts-module {
  margin-top: 25px;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.charts-wrap {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding-bottom: 10px;
  box-sizing: border-box;
}


.canvas-wrap {
  height: 264px;
  text-align: center;
  background-color: #fff;
  border-radius: 10px;
}

.canvas-wrap img {
  width: 90%;
  height: 100%;
  object-fit: contain;
}

.charts-text {
  padding: 0 10px;
}

.charts-text-title {
  font-size: 24px;
  font-weight: bold;
  line-height: 34px;
  margin-top: 10px;
}

.charts-text-desc {
  font-size: 12px;
  color: #828282;
  line-height: 18px;
}

.rank-module-container {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px;
}

.rank-module {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rank-module-title {
  margin: 0;
  font-size: 24px;
  line-height: 34px;
}
.rank-module-title1 {
  margin: 0;
  line-height: 68px;
  font-size: 48px;
}
.rank-module-desc {
  font-size: 12px;
  color: #828282;
  line-height: 21px;
}

.rank-module .btn {
  /* width: 182px; */
  /* height: 34px; */
  font-size: 14px;
  padding: 10px 24px;
  line-height: 18px;
  border-radius: 20px;
  color: white;
  background-color: #000;
  font-weight: bold;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-module .btn img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
}
.group-btns {
  display: flex;
  align-items: center;
  margin-top: 14px;
  gap: 12px;
}

.btn-white {
  padding: 6px 12px;
  border: 1px solid #000;
  border-radius: 15px;
  box-sizing: border-box;
  font-size: 10px;
  line-height: 12px;
  font-weight: bold;
}

/* 根据不同屏幕适配 */
.box-module {
  margin: 0 auto;
  margin-top: 10px;
  /* position: relative; */
  box-sizing: border-box;

}
.box-module-item {
  position: relative;

}

.box-module .bg-img {
  height: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
}

.box-module .text-content {
  position: absolute;
  padding-right: 10px;
  top: 0;
  height: 100%;
  width: 100%;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 公共测试模块标题样式 */
.public-test .text-content .public-test-title,
.public-test .text-content .public-test-subtitle {
  color: #653d00;
}

/* 续航力排行模块标题样式 */
.continue-rank .text-content .continue-rank-title,
.continue-rank .text-content .continue-rank-subtitle {
  color: #1b7678;
}
.public-test-title, .continue-rank-title {
  font-size: 42px;
  line-height: 60px;
}
.public-test-content, .continue-rank-content {
  margin-top: 21px;
}
.avatars {
  margin-top: 48px;
}

.public-test-desc, .continue-rank-desc {
  white-space: nowrap;
}
.public-test-number, .continue-rank-number {
  font-size: 52px;
  line-height: 60px;
}
.public-test-number .unit, .continue-rank-number .unit {
  font-size: 24px;
  font-weight: bold;
  line-height: 34px;
  margin-left: 4px;
}
.public-test-desc1 .unit, .continue-rank-desc1 .unit {
  font-weight: bold;
}
.public-test-subtitle img, .continue-rank-subtitle img {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}
.public-test-subtitle, .continue-rank-subtitle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}



.avatars {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.avatars .avatars-stack {
  display: flex;
  align-items: center;
}

.avatars .avatars-stack img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
}

.avatars .avatars-stack img:not(:first-child) {
  margin-left: -12px;
}

.avatars span {
  font-size: 14px;
}

.app-modules {
  width: 100%;
  background-color: rgba(209, 249, 153, 0.2);
  margin-top: 16px;
  padding: 10px;
  box-sizing: border-box;
}

.app-modules-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.app-modules-item .apps-item {
  background-color: white;
  height: 44px;
  flex: 0 0 calc(33.333% - 6px);
  max-width: 104px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  color: #333;
}


.app-modules .apps-item img {
  width: 23px;
  height: 23px;
  display: block;
  margin-right: 4px;
}

.app-modules .apps-item .title {
  font-size: 9px;
  font-weight: bold;
}

.app-modules .apps-item .sub-title {
  font-size: 8px;
  color: #828282;
}



.footer {
  width: 100%;
  padding: 40px 0;
  background-color: #000;
  color: white;
  display: flex;
  flex-direction: column;
  /* gap: 40px; */
  justify-content: space-around;
}

/* 第一级footer-item（两列布局） */
.footer>.footer-item-wrap {
  flex: 1;
  white-space: nowrap;
}

.footer>.footer-item-wrap:last-child {
  text-align: center;
}
.footer>.footer-item-wrap:first-child {
  padding-left: 0;
  text-align: center;
}

/* 标题样式 */
.footer>.footer-item-wrap>.footer-item-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* 第二级footer-item（内容容器） */
.footer>.footer-item-wrap>.footer-item {
  display: flex;
  flex-direction: column;
  /* 窄屏：一列 */
  gap: 10px;
}

.footer>.footer-item-wrap>.footer-item .footer-item-title {
  font-size: 14px;
  font-weight: normal;
  color: #999;
}


/* 轮播图样式 */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-items {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
  touch-action: pan-y;
  user-select: none;
}

.carousel-items.dragging {
  transition: none;
}

.carousel-item {
  flex: 0 0 100%;
  width: 100%;
}


/* 导航栏激活状态 */
.navi-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 34px;
  margin-top: 8px;
}

.navi-bar-item {
  text-align: center;
  line-height: 100%;
  height: 100%;
  min-height: 34px;
  font-size: 12px;
  color: #333;
  /* 不允许换行 */
  white-space: nowrap;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.navi-bar-item.active {
  color: #35B058;
}

.navi-bar-item.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: #35B058;
  position: absolute;
  bottom: 0;
}


/* MapContainer 样式 */
.map-module {
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.map-container {
  max-width: 1300px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.map-item {
  flex: 0 0 calc(50% - 5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* gap: 14px; */
  margin-bottom: 24px;
}


.map-item-text {
  font-size: 12px;
}

.map-item-text span {
  font-size: 34px;
  font-weight: bold;
}

.map-item img {
  display: block;
  width: 108px;
  height: 108px;
}

/* 底部模块 */
.instructions-module {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.instruction1 {
  height: 224px;
  width: 100%;
  background-color: #000;
  color: white;
  padding: 25px 16px;
  box-sizing: border-box;
}

.instruction1-title {
  font-size: 22px;
  font-weight: bold;
  line-height: 31px;
}
.instruction1-subtitle {
  font-size: 22px;
  line-height: 31px;
  font-weight: bold;
  margin-bottom: 10px;
}
.instruction1-stats {
  display: flex;
  gap: 10px;
}
.instruction1-stats div {
  font-size: 12px;
  line-height: 18px;
  color: #F2F2F2;
  display: flex;
  align-items: center;
  margin-right: 6px;
}
.instruction1-stats div img {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  margin-bottom: 2px;
}
.instruction1-btn {
  width: 152px;
  height: 40px;
  background-image: linear-gradient(45deg, #35B058 0%, #B2F951 100%);
  border-radius: 40px;
  color: #000;
  font-size: 16px;
  line-height: 40px;
  font-weight: bold;
  text-align: center;
  margin-top: 28px;
}

.instruction2 {
  height: 256px;
  width: 100%;
  position: relative;
}
.instruction2-wrap {
  width: 100%;
  height: 100%;
  background-color: #F6FEEB;
}
.instruction2-hi {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 112px;
  height: 185px;
}

.instruction2-content-title {
  color: #333333;
  font-size: 22px;
  line-height: 31px;
  font-weight: bold;
  margin-bottom: 10px;
}
.instruction2-content {
  margin-left: 128px;
  padding-top: 24px;
  padding-right: 24px;
}
.instruction2-content-info {
  color: #828282;
}
.instruction2-content-info div {
  font-size: 12px;
  line-height: 18px;
  display: flex;
  align-items: center;
  margin-right: 6px;
  margin-bottom: 6px;
}
.instruction2-content-info div img {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}
.instruction2-btn {
  width: 115px;
  height: 33px;
  background-color: #000;
  border-radius: 33px;
  color: white;
  font-size: 12px;
  line-height: 33px;
  font-weight: bold;
  text-align: center;
  margin-top: 24px;
}

/* instruction3 引文模块样式 */
.instruction3 {
  width: 100%;
  background-color: #FFFFFF;
  padding: 48px 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.instruction3-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.desc-wrap {
  position: relative;
}
.desc-wrap > img {
  width: 18px;
  height: 16px;
}
.desc-wrap > img:last-of-type {
  position: absolute;
  right: 16px;
  bottom: 6px;
}

.instruction3-content-text {
  order: 2;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  line-height: 22px;
  font-style: italic;
  margin: 0;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: left;
}

.instruction3-content-desc {
  order: 3;
  font-size: 12px;
  color: #828282;
  line-height: 28px;
  font-weight: 400;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: left;
}



.instruction3-author {
  margin-top: 20px;
  padding: 12px 10px;
  background-color: #F6FEEB;
  border-radius: 3px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.instruction3-author .name {
  font-size: 12px;
  font-weight: bold;
  color: #333333;
  line-height: 24px;
  margin-bottom: 4px;
}

.instruction3-author .info {
  font-size: 8px;
  color: #828282;
  line-height: 12px;
  text-align: justify;
}
/* --- 夜间模式变量补充 --- */
@media (prefers-color-scheme: dark) {
  :root {
    /* 背景色：使用深黑色或深灰色 */
    --bg-body: #12141a;       /* 极深蓝黑背景 */
    --card-bg: #1c1f26;       /* 卡片背景，比底色稍浅，增加浮现感 */
    --bg-gray: #252932;       /* 搜索框、输入框、表头等次级背景 */

    /* 文字颜色 */
    --text-dark: #e2e8f0;     /* 主文字：浅灰白 */
    --text-muted: #94a3b8;    /* 辅助文字：中灰蓝 */

    /* 边框与装饰 */
    --border-soft: #2d333f;   /* 线条：深灰色 */

    /* 品牌色微调，在深色背景下，提升颜色的亮度和饱和度，防止“发闷” */
    --brand-green: #66BB6A;
    --brand-blue: #64B5F6;
    --brand-cyan: #26C6DA;
    --brand-orange: #fbbf24;

    /* 深色背景下的表面色，需要增加不透明度 */
    --brand-green-surface: rgba(102, 187, 106, 0.15);
    --brand-blue-surface: rgba(100, 181, 246, 0.15);
    --brand-cyan-surface: rgba(38, 198, 218, 0.15);

  }

  /* 夜间模式下的特殊处理 */
  body {
    background-color: var(--bg-body);
    color: var(--text-dark);
  }

  /* 图片亮度调节：防止车标/Logo 在暗色下太刺眼 */
  img {
    filter: brightness(0.8) contrast(1.2);
  }

  /* 阴影弱化：深色模式下不需要太重的阴影 */
  .hero-card, .data-card, .biz-card, .filter-sidebar, .rank-tab {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  }
  .download-card, .text-card {
    background-color: var(--card-bg) !important;
    border-color: var(--border-soft) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
  }
  .text-card h2 { color: var(--text-dark); }

  /* --- 2. 品牌与数据容器 (brand-group, data-card) --- */
  .brand-group, .data-card {
    background-color: var(--card-bg) !important;
    border-color: var(--border-soft) !important;
  }
  /* 针对品牌行的分割线 */
  .brand-group { border-bottom: 1px solid var(--border-soft) !important; }

  /* 表格行在深色模式下的 Hover 效果 */
  .rank-table tr:hover, .list-row:hover {
    background-color: var(--bg-gray) !important;
  }
  .rank-table th {
    background-color: var(--bg-gray) !important;
    color: var(--text-muted);
  }

  /* --- 3. 导航与侧边栏 (index-nav, sidebar) --- */
  .alphabet-nav, .index-nav {
    background: rgba(28, 31, 38, 0.85) !important; /* 使用 card-bg 配合透明度 */
    border-color: var(--border-soft) !important;
  }
  .sidebar {
    background-color: var(--card-bg) !important;
    border-color: var(--border-soft) !important;
  }
  .sidebar-title {
    border-bottom-color: var(--border-soft) !important;
  }

  /* --- 4. 说明盒与筛选药丸 (intro-box, filter-pills) --- */
  .intro-box {
    background-color: var(--bg-gray) !important;
    border-color: var(--border-soft) !important;
    color: var(--text-muted) !important;
  }

  .filter-pills {
    background-color: var(--card-bg) !important;
    border-color: var(--border-soft) !important;
  }
  .pill {
    background-color: var(--bg-gray) !important;
    color: var(--text-muted) !important;
  }
  .pill.active {
    background-color: var(--brand-green-light) !important;
    color: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
  }

  /* --- 5. 表单控件增强 --- */
  .form-control, .input-base, .search-input {
    background-color: var(--bg-gray) !important;
    border-color: var(--border-soft) !important;
    color: var(--text-dark) !important;
  }
  .input-addon {
    background-color: #334155 !important;
    border-color: var(--border-soft) !important;
    color: var(--text-muted) !important;
  }

  /* --- 6. 图片与图标特殊处理 --- */
  /* 车标、Logo等在黑底上可能由于对比度太高而刺眼，稍微调暗 */
  .brand-logo, .logo-icon img {
    filter: brightness(0.9) contrast(1.1);
  }
  /* 针对白底图片的特殊处理（如某些白色背景的车标） */
  .brand-logo-wrap, .logo-icon {
    background-color: #f0f0f0 !important; /* 保持图片容器稍微亮一点，确保 Logo 清晰 */
  }

}