@charset "utf-8";
/* ==========================================================================
   短剧优选 —— 全站共用样式表（纯静态 / 无框架）
   风格：简约深色 + 卡片式布局
   适配：PC 端 / 平板 / 手机移动端（断点 1024px / 768px / 480px）
   目录：
     1. 主题变量
     2. 基础重置
     3. 通用组件（按钮 / 区块标题 / 容器）
     4. 顶部导航 + 二级下拉 + 汉堡菜单
     5. 轮播横幅
     6. 短剧卡片网格
     7. 热销榜单
     8. 内容型页面（联系购买 / 关于）
     9. 购买提示弹窗 + 轻提示
    10. 页脚
    11. 响应式适配
   ========================================================================== */

/* ------------------------------ 1. 主题变量 ------------------------------ */
:root {
  --bg: #0b0d12;          /* 页面背景 */
  --bg-2: #101319;        /* 次级背景（导航 / 页脚） */
  --card: #161a23;        /* 卡片背景 */
  --card-2: #1c2130;      /* 卡片悬停背景 */
  --line: #232a38;        /* 描边 / 分割线 */
  --text: #e9ecf2;        /* 主文字 */
  --dim: #8f9aad;         /* 次要文字 */
  --accent: #ff3b5c;      /* 主色（红） */
  --accent-2: #ff7a45;    /* 辅色（橙） */
  --gold: #ffc93c;        /* 榜单第一名 */
  --radius: 14px;         /* 统一圆角 */
  --container: 1200px;    /* 内容最大宽度 */
  --header-h: 62px;       /* 固定导航高度 */
  --shadow: 0 12px 34px rgba(0, 0, 0, .5);
}

/* ------------------------------ 2. 基础重置 ------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: var(--header-h); /* 为固定导航让出空间 */
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 弹窗 / 移动端菜单打开时锁定页面滚动 */
body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* 细滚动条（深色风格） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0d1016; }
::-webkit-scrollbar-thumb { background: #262d3b; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #343d4f; }

/* --------------------------- 3. 通用组件 --------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* 主要按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 9px 16px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}
.btn:active { transform: scale(.96); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 59, 92, .28);
}
.btn--primary:hover { box-shadow: 0 10px 24px rgba(255, 59, 92, .42); }

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--lg { font-size: 15px; padding: 12px 26px; }

/* 区块标题 */
.section { margin: 34px 0; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section__title {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  padding-left: 12px;
  letter-spacing: .5px;
}
.section__title::before {            /* 标题前的红色竖条 */
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.section__more { color: var(--dim); font-size: 13px; }
.section__more:hover { color: var(--accent); }

/* 页面标题（分类页 / 列表页） */
.page-head {
  margin: 26px 0 20px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(600px 160px at 12% 0%, rgba(255, 59, 92, .18), transparent 65%),
    linear-gradient(180deg, var(--card-2), var(--card));
}
.page-head__title { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.page-head__desc { margin-top: 6px; color: var(--dim); font-size: 13.5px; }
.page-head__count { color: var(--accent); font-weight: 600; }

/* 空状态 */
.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* --------------------------- 4. 顶部导航 --------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 16, 22, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* 站点 Logo */
.logo { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px rgba(255, 59, 92, .4);
}
.logo__text { font-size: 17px; font-weight: 800; letter-spacing: 1px; }

/* 一级菜单 */
.nav__list { display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--dim);
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav__link.is-active { color: #fff; background: rgba(255, 59, 92, .16); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* 下拉箭头 */
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .25s ease;
}
.nav__item--has-sub:hover .caret,
.nav__item--has-sub.open .caret { transform: rotate(180deg); }

/* 二级下拉菜单（PC 悬停展开） */
.nav__item--has-sub { position: relative; }

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 8px);
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 4px;
  width: 268px;
  padding: 10px;
  background: #151922;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav__item--has-sub:hover .submenu,
.nav__item--has-sub.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.submenu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--dim);
  transition: background .2s ease, color .2s ease;
}
.submenu a:hover { background: rgba(255, 59, 92, .14); color: #fff; }

/* 汉堡按钮（移动端显示） */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 36px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .28s ease, opacity .2s ease;
}
/* 展开时汉堡变成 ✕ */
body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------- 5. 轮播横幅 --------------------------- */
.carousel {
  position: relative;
  margin: 22px 0 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
}

.carousel__track { position: relative; height: clamp(210px, 30vw, 360px); }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
}
/* 遮罩，保证文字可读 */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 15, .95) 8%, rgba(9, 11, 15, .55) 48%, rgba(9, 11, 15, .15) 100%),
    linear-gradient(0deg, rgba(9, 11, 15, .9), transparent 60%);
}
.slide__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(18px, 4vw, 46px) clamp(20px, 4vw, 40px);
  max-width: 680px;
}
.slide__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.slide__title {
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .6);
}
.slide__desc {
  margin-top: 8px;
  max-width: 520px;
  font-size: clamp(12.5px, 1.4vw, 15px);
  color: #c6cedd;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide__foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.slide__price { font-size: 20px; font-weight: 800; color: var(--accent); }

/* 左右切换按钮 */
.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(10, 12, 16, .5);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: background .2s ease, transform .2s ease;
}
.carousel__arrow:hover { background: rgba(255, 59, 92, .7); }
.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }

/* 指示点 */
.carousel__dots {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 7px;
}
.carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  transition: width .25s ease, background .25s ease;
}
.carousel__dots button.is-active { width: 22px; background: var(--accent); }

/* --------------------------- 6. 短剧卡片网格 --------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 92, .55);
  box-shadow: var(--shadow);
}

/* 封面（占位图） */
.card__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, #1e2431, #0e1218);
}
.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.card:hover .card__cover img { transform: scale(1.06); }

/* 封面上的角标 */
.card__eps,
.card__badge {
  position: absolute;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #fff;
  background: rgba(0, 0, 0, .66);
  backdrop-filter: blur(4px);
}
.card__eps { right: 8px; bottom: 8px; }
.card__badge--hot {
  left: 8px;
  top: 8px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* 榜单排名序号 */
.card__rank {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  color: #dfe5ef;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(4px);
}
.card__rank--1 { color: #3a2500; background: linear-gradient(135deg, #ffdf7a, #ffab00); }
.card__rank--2 { color: #23272e; background: linear-gradient(135deg, #e6ecf5, #a8b4c4); }
.card__rank--3 { color: #3a1e08; background: linear-gradient(135deg, #ffbe86, #e07b39); }

/* 卡片文字区 */
.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
}
.card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__desc {
  min-height: 38px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: var(--dim);
}
.card__cat { color: var(--accent); }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}
.card__price { font-size: 17px; font-weight: 800; color: var(--accent); }
.card__price small { font-size: 11px; font-weight: 400; color: var(--dim); }

/* 首页分类入口 */
.cat-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.cat-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 14px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.cat-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 59, 92, .55);
  background: var(--card-2);
}
.cat-links a span { color: var(--accent); font-size: 16px; }

/* 通用间距工具类 */
.mt-20 { margin-top: 20px; }

/* 榜单页附加的销量条 */
.card__sales-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.card__sales-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* --------------------------- 7. 热销榜单 --------------------------- */
.rank-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.rank-top {
  position: relative;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  overflow: hidden;
}
.rank-top::before {
  content: attr(data-rank);
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, .05);
}
.rank-top__no { font-size: 13px; font-weight: 700; color: var(--accent); }
.rank-top__title { margin: 6px 0 4px; font-size: 16px; font-weight: 700; }
.rank-top__meta { font-size: 12px; color: var(--dim); }
.rank-top--1 { border-color: rgba(255, 201, 60, .5); }
.rank-top--1 .rank-top__no { color: var(--gold); }
.rank-top--2 { border-color: rgba(200, 212, 228, .35); }
.rank-top--3 { border-color: rgba(224, 123, 57, .45); }

/* --------------------------- 8. 内容型页面 --------------------------- */
.panel {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  margin-bottom: 20px;
}
.panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 700;
}
.panel__title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.panel p { color: #c3cad8; font-size: 14px; margin-bottom: 8px; }
.panel p:last-child { margin-bottom: 0; }
.panel .dim { color: var(--dim); font-size: 13px; }

/* 微信号展示块 */
.wx-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px dashed rgba(255, 59, 92, .5);
  border-radius: 12px;
  background: rgba(255, 59, 92, .07);
}
.wx-box__label { font-size: 13px; color: var(--dim); }
.wx-box__value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
}

/* 二维码 */
.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e1117;
}
.qr img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}
.qr span { font-size: 12.5px; color: var(--dim); }

/* 购买流程步骤 */
.steps { counter-reset: step; }
.steps li {
  position: relative;
  padding: 10px 0 10px 46px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: #c3cad8;
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq__q {
  font-size: 14px;
  font-weight: 600;
  color: #eef1f6;
}
.faq__a { font-size: 13.5px; color: var(--dim); }

/* 两栏布局（联系页 / 常见问题等） */
.split {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: start;
}

/* --------------------------- 9. 弹窗 & 轻提示 --------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }

.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, .74);
  backdrop-filter: blur(4px);
}
.modal__box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  padding: 28px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #1a1f2b, #12161f);
  box-shadow: var(--shadow);
  text-align: center;
  animation: modal-pop .26s cubic-bezier(.34, 1.4, .64, 1);
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: var(--dim);
  font-size: 16px;
  line-height: 1;
}
.modal__close:hover { background: rgba(255, 59, 92, .2); color: #fff; }

.modal__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  font-size: 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px rgba(255, 59, 92, .38);
}
.modal__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.modal__drama {
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--dim);
}
.modal__drama b { color: var(--text); }
.modal__text { font-size: 14px; color: #c3cad8; }
.modal__wx {
  margin: 14px 0 6px;
  padding: 12px;
  border: 1px dashed rgba(255, 59, 92, .55);
  border-radius: 12px;
  background: rgba(255, 59, 92, .08);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  user-select: all;
}
.modal__tip { font-size: 12px; color: var(--dim); }
.modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.modal__actions .btn { flex: 1; }

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 300;
  transform: translate(-50%, 20px);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  color: #fff;
  background: rgba(30, 36, 48, .96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* --------------------------- 10. 页脚 --------------------------- */
.footer {
  margin-top: 46px;
  padding: 32px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
}
.footer__title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.footer__text { font-size: 13px; color: var(--dim); line-height: 1.8; }
.footer__links { display: grid; gap: 7px; font-size: 13px; }
.footer__links a { color: var(--dim); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: #6c7688;
  line-height: 1.9;
}

/* --------------------------- 11. 响应式适配 --------------------------- */
/* 平板及以下：导航切换为汉堡折叠菜单 */
@media (max-width: 1024px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    max-height: 0;
    overflow: hidden;
    background: #0e1117;
    border-bottom: 1px solid var(--line);
    transition: max-height .35s ease;
  }
  body.nav-open .nav {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    box-shadow: var(--shadow);
  }

  .nav__list {
    display: block;
    padding: 8px 16px 18px;
  }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__item:last-child { border-bottom: 0; }
  .nav__link {
    padding: 14px 4px;
    border-radius: 0;
    font-size: 15px;
    color: var(--text);
  }
  .nav__link:hover { background: transparent; }
  .nav__link.is-active { background: transparent; color: var(--accent); }
  .nav__link.is-active::after { display: none; }
  .nav__link--sub { display: flex; align-items: center; justify-content: space-between; }

  /* 二级菜单在移动端变成可展开的折叠列表 */
  .submenu {
    position: static;
    display: block;
    width: auto;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height .35s ease;
  }
  .nav__item--has-sub.open .submenu { max-height: 640px; }
  .submenu a {
    padding: 11px 4px 11px 18px;
    border-left: 2px solid var(--line);
    border-radius: 0;
    font-size: 14px;
  }
  .submenu a:hover { background: rgba(255, 59, 92, .1); }

  .split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* 手机端 */
@media (max-width: 768px) {
  body { font-size: 14px; }

  .section { margin: 24px 0; }
  .section__title { font-size: 17px; }
  .page-head { margin: 18px 0 14px; padding: 18px 16px; border-radius: 14px; }
  .page-head__title { font-size: 20px; }

  .carousel { border-radius: 14px; }
  .carousel__arrow { display: none; }
  .carousel__dots { right: 50%; transform: translateX(50%); bottom: 10px; }
  .slide__foot { margin-top: 12px; gap: 10px; }
  .slide__price { font-size: 17px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { padding: 10px; gap: 6px; }
  .card__title { font-size: 14px; }
  .card__desc { min-height: 36px; font-size: 12px; }
  .card__price { font-size: 15px; }
  .card__foot .btn { padding: 7px 12px; font-size: 12.5px; }

  .cat-links { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-links a { padding: 12px 14px; font-size: 13.5px; }

  .rank-head { grid-template-columns: 1fr; gap: 10px; }
  .panel { padding: 18px 16px; }
  .wx-box__value { font-size: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 18px; }
  .modal__box { padding: 24px 18px 18px; }
}

/* 小屏（iPhone SE 等） */
@media (max-width: 480px) {
  .logo__text { font-size: 15px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__desc { display: none; }        /* 小屏隐藏简介，保证卡片高度紧凑 */
  .card__title { -webkit-line-clamp: 2; display: -webkit-box; }
  .card__meta { font-size: 11px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 6px; }
  .card__foot .btn { width: 100%; }
  .modal__wx { font-size: 19px; }
}
