/* =========================================================
   长安易租 — 年付专区（annual.html）
   ---------------------------------------------------------
   仅 annual.html 引入，类名统一 .an- 前缀，不改动 style.css。
   配色 / 圆角 / 按钮 / 卡片一律复用 style.css 的 CSS 变量与组件。
   顶部固定条 = 公告条 38px + 导航 72px = 110px（≤640px 公告条隐藏）。
   ========================================================= */

/* ===================== 首屏 ===================== */
.an-head p { max-width: 720px; }
.an-hl {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.18em;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.an-claims { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.an-claims span {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft);
  font-size: 13px; color: var(--text-dim);
}
.an-claims span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: .85;
}

/* ===================== 计价对比表 ===================== */
.an-calc-table td:first-child { width: 200px; color: var(--text); font-weight: 600; }
.an-calc-table .an-num { font-variant-numeric: tabular-nums; font-weight: 700; }
.an-calc-table .an-row-best td { background: var(--primary-soft); }
.an-calc-table .an-row-best td:first-child { color: var(--primary); }
.an-calc-table .an-row-best .an-num { color: var(--primary); }
.an-calc-table .an-save {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: #e8f6ee; border: 1px solid #c3e6d2; color: var(--success);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.an-calc-table .an-save.an-save-none { background: var(--bg-soft); border-color: var(--line); color: var(--muted); font-weight: 400; }
.an-calc-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

.an-why .card p { font-size: 14px; }

/* ===================== 机型清单：工具条 ===================== */
.an-toolbar {
  display: flex; flex-wrap: wrap; gap: 18px 40px;
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft);
  margin-bottom: 16px;
}
.an-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.an-filter-label { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.an-result { margin-bottom: 18px; }
.an-grid-note { margin-top: 20px; font-size: 12.5px; color: var(--muted); }

/* ===================== 机型卡：年付价展示 ===================== */
/* 年付角标：贴在媒体位右上（与 .pcard-tags 左上错开） */
.an-badge {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 6px; font-size: 12.5px; font-weight: 700;
  background: var(--primary); color: #ffffff;
}

/* ⚠️ 黑底官方图（PHOTOS 里 blend:"screen" 的 Apple 机型）：
   style.css 的 .pcard-photo.blend 走 screen 混合，叠在浅灰媒体位上会把纯黑底
   洗成白、机身暗部一起泛白。首页 v2.0.0 修过同一缺陷，这里在本页作用域内等效处理：
   深色媒体位 + 正常混合，让产品「悬浮在暗色舞台上」。
   （模板已按 ph.blend 给 .pcard-media 挂 dark-media 类，无需再等 JS 补类。） */
.an-card .pcard-media.dark-media { background: #0b0e14; }
.an-card .pcard-media.dark-media .pcard-photo.blend { mix-blend-mode: normal; }
/* 媒体位内 <img> 定位必须配 calc()/inset：图片是替换元素，写 height:100% 在 grid 里不生效，
   会按固有比例把媒体区顶破并压住下方标题 */
.an-card .pcard-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 10px 14px;
  object-fit: contain; object-position: 50% 50%;
}
.an-card .pcard-media.dark-media .pcard-photo { padding: 0; }

.an-price {
  padding: 14px 0 16px;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}
.an-price-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.an-price-main .an-now { display: flex; align-items: baseline; gap: 2px; }
.an-price-main .an-now b {
  font-size: 27px; font-weight: 800; color: var(--primary);
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.an-price-main .an-now span { font-size: 13px; color: var(--muted); }
.an-price-main .an-old { font-size: 12.5px; color: var(--muted); text-align: right; line-height: 1.5; }
.an-price-main .an-old s { text-decoration: line-through; }
.an-price-sub {
  margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-dim);
}
.an-price-sub .an-total { font-variant-numeric: tabular-nums; }
.an-price-sub .an-total b { color: var(--text); font-weight: 700; }
.an-price-sub .an-save {
  padding: 1px 8px; border-radius: 999px;
  background: #e8f6ee; border: 1px solid #c3e6d2; color: var(--success);
  font-size: 12px; font-weight: 700;
}
.an-price-sub .an-deposit { color: var(--success); }

/* ===================== 年付权益 ===================== */
.an-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.an-perks .card p { font-size: 14px; }

/* ===================== 响应式 ===================== */
@media (max-width: 1080px) {
  .an-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .an-toolbar { gap: 14px 24px; padding: 14px; }
}
@media (max-width: 640px) {
  /* 公告条隐藏，首屏高度差额由 .page-head 自身的 nav-h 补偿 */
  .an-claims span { font-size: 12.5px; height: 32px; padding: 0 12px; }
  .an-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .an-filter { flex-direction: column; align-items: flex-start; gap: 8px; }
  .an-perks { grid-template-columns: minmax(0, 1fr); }
  .an-price-main .an-now b { font-size: 24px; }

  /* 计价表窄屏收紧：首列降到 84px、字号与内边距同步压缩，
     避免「¥249/月」在列里折成「¥249/」+「月」两行 */
  .an-calc-table { min-width: 0; }
  .an-calc-table th, .an-calc-table td { padding: 12px 10px; font-size: 13px; white-space: nowrap; }
  .an-calc-table td:first-child { width: 84px; font-size: 12.5px; white-space: normal; }
  .an-calc-table .an-save { padding: 2px 7px; font-size: 12px; }
}