/* 饭粒网 (www.fanlinet.com) 响应式样式表 - 全本地零外链 */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --ink: #18202C;
  --ink-2: #3B4758;
  --muted: #667488;
  --border: #E4EAF2;
  --orange: #E66814;
  --orange-hover: #C8550A;
  --orange-soft: #FFF3EA;
  --blue: #1668B0;
  --blue-hover: #10518B;
  --blue-soft: #ECF4FC;
  --green: #128355;
  --green-soft: #EAF7F1;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(24, 32, 44, 0.05);
  --shadow-hover: 0 8px 24px rgba(24, 32, 44, 0.09);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--orange);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--orange);
  background: var(--orange-soft);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  padding: 2px 3px 2px 12px;
  width: 240px;
  flex-shrink: 0;
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}

.header-search button {
  border: none;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.header-search button:hover {
  background: var(--orange-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 14px 0 18px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.mobile-search button {
  border: none;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.mobile-nav a.active {
  background: var(--orange-soft);
  color: var(--orange);
}

/* ===== 首页顶部通栏公告（必留项） ===== */
.announce-bar {
  background: linear-gradient(90deg, #FFF5EC 0%, #EFF6FD 100%);
  border-bottom: 1px solid #F2DFC9;
  padding: 10px 0;
}

.announce-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.announce-badge {
  flex: 0 0 auto;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  margin-top: 2px;
}

.announce-text {
  margin: 0;
  font-size: 13.5px;
  color: #5C3D21;
  line-height: 1.55;
}

/* ===== 按钮与徽章 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--blue);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--blue-hover);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: #CBD5E1;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  line-height: 1.3;
}

.badge-orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge-green {
  background: var(--green-soft);
  color: var(--green);
}

/* ===== 首页 Hero ===== */
.hero-section {
  background: linear-gradient(135deg, #FFFFFF 0%, #F2F7FD 60%, #FFF7F0 100%);
  border-bottom: 1px solid var(--border);
  padding: 38px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 21px;
  color: var(--orange);
  line-height: 1.2;
}

.stat-item span {
  font-size: 12.5px;
  color: var(--muted);
}

/* 右侧快捷计算卡片 */
.hero-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.widget-head h2 {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}

.widget-tag {
  font-size: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.calc-row {
  margin-bottom: 12px;
}

.calc-row label,
.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 5px;
}

.calc-row input,
.field-group input,
.field-group select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #D3DCE6;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
}

.calc-row input:focus,
.field-group input:focus,
.field-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 104, 176, 0.12);
}

.calc-row-2,
.field-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #FFF4EC 0%, #F1F7FE 100%);
  border: 1px solid #F3DCC7;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 14px 0 12px;
}

.res-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.res-price {
  font-size: 24px;
  color: var(--orange);
  line-height: 1.2;
}

.res-right {
  text-align: right;
}

.res-save {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.res-rate {
  font-size: 12px;
  color: var(--muted);
}

.widget-more {
  display: block;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue);
}

/* ===== 通用区块 ===== */
.section {
  padding: 40px 0;
}

.section-tinted {
  background: #EEF3F9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: 23px;
  color: var(--ink);
}

.section-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.sub-heading {
  margin: 0 0 16px;
  font-size: 20px;
  color: var(--ink);
}

/* ===== Tab 切换与筛选 ===== */
.tab-pills,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tab-pill,
.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.tab-pill.active,
.filter-pill.active,
.tab-pill:hover,
.filter-pill:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.filter-pill-accent {
  background: var(--blue-soft);
  border-color: #C7DFF6;
  color: var(--blue);
}

/* ===== 特卖卡片 ===== */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.deal-card.is-hidden {
  display: none;
}

.deal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.deal-mall {
  font-size: 12.5px;
  color: var(--muted);
}

.deal-title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.deal-spec {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.deal-price-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #FAFCFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.price-now {
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
}

.price-now strong {
  font-size: 22px;
}

.price-orig {
  color: #94A3B8;
  font-size: 12.5px;
  margin-left: 6px;
}

.rebate-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.deal-unit {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}

.deal-tip {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ===== 分类知识卡片 ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.cat-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-hover);
  color: var(--ink);
}

.cat-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon svg {
  width: 24px;
  height: 24px;
}

.cat-icon-orange { background: var(--orange-soft); color: var(--orange); }
.cat-icon-blue { background: var(--blue-soft); color: var(--blue); }
.cat-icon-green { background: var(--green-soft); color: var(--green); }

.cat-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ink);
}

.cat-body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== 选购指南文章卡片 ===== */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.guide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
}

.guide-cat {
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 9px;
  border-radius: 6px;
  font-weight: 600;
}

.guide-read {
  color: var(--muted);
}

.guide-title {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.45;
}

.guide-title a {
  color: var(--ink);
}

.guide-title a:hover {
  color: var(--orange);
}

.guide-summary {
  margin: 0 0 14px;
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.65;
}

.guide-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.guide-tag {
  color: var(--orange);
  font-weight: 500;
}

.guide-more {
  font-weight: 600;
}

/* ===== 四步闭环 ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
}

.step-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ===== 内页 Banner ===== */
.page-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, #EEF5FC 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 30px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.breadcrumb span {
  margin: 0 4px;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: 27px;
  line-height: 1.3;
}

.page-banner p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 820px;
}

.notice-strip {
  background: #FFF8F1;
  border: 1px solid #F6DEC4;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.8px;
  color: #5C3D21;
  margin-bottom: 22px;
}

/* ===== 指南详情页 ===== */
.article-header-wrap {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 28px 0 30px;
}

.article-title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.35;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.article-summary {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 860px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.key-points-box {
  background: #F2F8FE;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.key-points-box h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--blue);
}

.key-points-box ul {
  margin: 0;
  padding-left: 18px;
}

.key-points-box li {
  margin-bottom: 6px;
  font-size: 14.5px;
  color: var(--ink);
}

.article-body h2 {
  margin: 26px 0 12px;
  font-size: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.article-body h3 {
  margin: 18px 0 8px;
  font-size: 16.5px;
  color: var(--ink);
}

.article-body p {
  margin: 0 0 14px;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 15px;
}

.article-body li {
  margin-bottom: 7px;
  line-height: 1.75;
}

.article-body .table-wrap,
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.data-table,
.article-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  background: #fff;
  font-size: 14px;
}

.data-table th,
.article-body th {
  background: #F4F7FB;
  color: var(--ink);
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.data-table td,
.article-body td {
  padding: 11px 14px;
  border-bottom: 1px solid #EEF2F7;
  color: var(--ink-2);
  vertical-align: top;
}

.article-body .tip-callout {
  background: #FFF7EE;
  border: 1px solid #F6D8BA;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 14.5px;
  color: #5A3A1E;
}

.article-cta-box {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #FFF5EC 0%, #EEF6FE 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-cta-box h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.article-cta-box p {
  margin: 0;
  font-size: 13.8px;
  color: var(--ink-2);
}

.article-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 侧边栏 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.side-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.side-tool-list,
.side-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-tool-list li {
  margin-bottom: 8px;
}

.side-tool-list a {
  display: block;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.side-tool-list a:hover {
  background: var(--orange-soft);
  color: var(--orange);
}

.side-link-list li {
  padding: 9px 0;
  border-bottom: 1px solid #F1F5F9;
}

.side-link-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-link-list a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.side-link-list a:hover {
  color: var(--orange);
}

.side-link-list span {
  font-size: 12px;
  color: var(--muted);
}

.side-deal-item {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

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

.side-deal-title {
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 4px;
}

.side-deal-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.side-deal-price {
  color: var(--orange);
  font-size: 14px;
}

.side-more-link {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== 工具箱 ===== */
.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  scroll-margin-top: 84px;
}

.tool-head h2 {
  margin: 8px 0 6px;
  font-size: 21px;
}

.tool-head p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.field-group {
  margin-bottom: 14px;
}

.tool-result-card {
  background: #FAFCFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.res-hero {
  background: linear-gradient(135deg, #FFF4EC 0%, #EEF6FE 100%);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.res-hero span {
  font-size: 13.5px;
  color: var(--ink-2);
}

.res-hero strong {
  font-size: 28px;
  color: var(--orange);
}

.res-breakdown {
  margin: 0;
}

.res-breakdown > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.res-breakdown dt {
  color: var(--muted);
}

.res-breakdown dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.text-green {
  color: var(--green) !important;
}

.res-tip {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
}

.unit-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.unit-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #FAFCFF;
}

.unit-box h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ink);
}

.unit-sub-result {
  padding-top: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.unit-verdict {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--green-soft);
  border: 1px solid #BCE5D4;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: #0E5A3A;
}

.prompt-output-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #FAFCFF;
}

.prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #EFF4FA;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.btn-copy {
  border: none;
  background: var(--blue);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--blue-hover);
}

.prompt-output-box textarea {
  width: 100%;
  border: none;
  padding: 14px;
  font-family: inherit;
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

/* ===== 返利与关于页 ===== */
.rebate-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 920px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.info-card h2,
.info-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

.info-card p,
.info-card li {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

.info-card ul {
  margin: 0;
  padding-left: 20px;
}

.info-card li {
  margin-bottom: 8px;
}

/* ===== 搜索与分页 ===== */
.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-bottom: 14px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.hot-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.hot-keywords a {
  padding: 3px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-2);
}

.hot-keywords a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.search-summary {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.page-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
}

.page-btn.active,
.page-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #182230;
  color: #C7D2E0;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px 18px 34px;
}

.footer-logo-link {
  display: inline-block;
  background: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.footer-logo-link img {
  height: 38px;
  width: auto;
}

.footer-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #9FB0C4;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #B4C3D5;
  font-size: 13.5px;
}

.footer-col a:hover {
  color: #FF9C52;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 13px;
  color: #8EA1B8;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  margin: 0;
}

.footer-icp a {
  color: #B9C8DA;
}

.footer-icp a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== 响应式适配（保障 375px 无横向滚动） ===== */
@media (max-width: 1024px) {
  .header-search {
    display: none;
  }
  .hero-grid,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .deals-grid,
  .guides-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .brand-logo img {
    height: 38px;
  }
  .header-inner {
    min-height: 58px;
  }
  .hero-section {
    padding: 24px 0 28px;
  }
  .hero-copy h1 {
    font-size: 25px;
  }
  .hero-lead {
    font-size: 14.5px;
  }
  .section {
    padding: 28px 0;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .deals-grid,
  .guides-grid,
  .category-grid,
  .steps-grid,
  .tool-grid,
  .unit-compare-grid,
  .rebate-rules-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-main {
    padding: 18px 16px;
  }
  .article-title,
  .page-banner h1 {
    font-size: 22px;
  }
  .tool-panel {
    padding: 18px 15px;
  }
  .calc-row-2,
  .field-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .search-page-form {
    flex-direction: column;
  }
  .res-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
