/* ============================================================
 * style.css —— LPR利率走势网（仅本站使用）
 * 金融蓝灰档案风格：石板深蓝横幅 + 浅灰底 + 期限品种利率卡片
 * （本期报价衬线大字强调），章节标题下划线分隔。
 * ============================================================ */
:root {
  --lp-navy: #0f172a;      /* 深石板 */
  --lp-steel: #334155;     /* 主蓝灰 */
  --lp-mid: #475569;
  --lp-mist: #94a3b8;      /* 浅钢灰点缀 */
  --lp-line: #e2e8f0;
  --lp-bg: #f8fafc;        /* 浅灰底 */
  --lp-soft: #f1f5f9;
  --lp-card: #ffffff;
  --lp-text: #0f172a;
  --lp-muted: #64748b;
  --lp-radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--lp-bg); color: var(--lp-text);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.6;
}
.lp-wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; }

/* ---------- 品牌条：石板蓝灰横幅 + 左竖条发布注记 ---------- */
.lp-top { background: linear-gradient(120deg, var(--lp-navy), var(--lp-steel) 85%); color: #fff; padding: 22px 0 24px; }
.lp-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-brand { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: 1px; }
.lp-brand b { color: #cbd5e1; }
.lp-slogan { margin: 5px 0 0; font-size: 13px; color: #cbd5e1; }
.lp-tag {
  flex: 0 0 auto; margin: 0; padding: 8px 0 8px 12px; border-left: 3px solid var(--lp-mist);
  font-size: 11.5px; line-height: 1.8; color: #e2e8f0; text-align: left;
}
@media (max-width: 520px) { .lp-tag { display: none; } }

/* ---------- 广告位（≤90px） ---------- */
.lp-ad {
  min-height: 60px; max-height: 90px; margin: 14px 0;
  border: 1px dashed var(--lp-line); border-radius: var(--lp-radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--lp-muted); font-size: 12.5px; background: var(--lp-card); overflow: hidden;
}

/* ---------- 查询面板：档案卡（顶部钢灰渐变条） ---------- */
.lp-hero { padding: 12px 0 4px; }
.lp-hero h1 { font-size: 24px; margin: 0 0 6px; color: var(--lp-navy); }
.lp-hero h1 b { color: var(--lp-steel); }
.lp-sub { margin: 0 0 14px; font-size: 14px; color: var(--lp-muted); }
.lp-card {
  position: relative; overflow: hidden;
  background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: var(--lp-radius);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 26px rgba(15, 23, 42, .07);
}
.lp-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--lp-navy), var(--lp-mist));
}
.lp-filters { display: flex; gap: 12px; }
.lp-field { display: flex; flex-direction: column; gap: 6px; }
.lp-field-grow { flex: 1; }
.lp-label { font-size: 12.5px; font-weight: 600; color: var(--lp-muted); }
.lp-city, .lp-area {
  height: 44px; padding: 0 12px; border: 1px solid var(--lp-line); border-radius: 6px;
  font-size: 15px; color: var(--lp-text); background: var(--lp-soft); outline: none; min-width: 0; font-family: inherit;
}
.lp-city:focus, .lp-area:focus { background: #fff; border-color: var(--lp-steel); }
.lp-city {
  appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* ---------- 日期胶囊 chips（方角票根形） ---------- */
.lp-days { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lp-chip {
  padding: 6px 16px; border: 1px solid var(--lp-line); border-radius: 4px;
  background: var(--lp-card); font-size: 13px; color: var(--lp-text); cursor: pointer; font-family: inherit;
}
.lp-chip:hover { border-color: var(--lp-steel); color: var(--lp-steel); }
.lp-chip[aria-pressed="true"] { background: var(--lp-steel); border-color: var(--lp-steel); color: #fff; font-weight: 700; }

/* ---------- 操作按钮：实心钢灰主按钮 + 下划线文字次按钮 ---------- */
.lp-actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.lp-btn-main {
  min-width: 132px; height: 44px; border: none; border-radius: 4px;
  background: var(--lp-steel); color: #fff; font-size: 15.5px; font-weight: 700;
  letter-spacing: 6px; text-indent: 6px; cursor: pointer;
}
.lp-btn-main:hover { background: var(--lp-navy); }
.lp-btn-main:disabled { opacity: .5; cursor: not-allowed; }
.lp-btn-ghost {
  height: 44px; padding: 0 14px; border: none; border-radius: 4px;
  background: transparent; color: var(--lp-muted); font-size: 14px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.lp-btn-ghost:hover { color: var(--lp-steel); }

/* ---------- 维护横条 ---------- */
.lp-banner {
  display: none; margin: 14px 0 0; padding: 10px 14px; border-radius: 6px;
  font-size: 13px; background: #fef9c3; border: 1px solid #fde68a; color: #854d0e;
}

/* ---------- 四态面板（data-state 控制显隐） ---------- */
.lp-panel { margin-top: 4px; }
.lp-panel-default, .lp-panel-loading, .lp-panel-result, .lp-panel-empty { display: none; }
.lp-panel[data-state="idle"] .lp-panel-default { display: block; }
.lp-panel[data-state="loading"] .lp-panel-loading { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lp-panel[data-state="result"] .lp-panel-result { display: block; }
.lp-panel[data-state="empty"] .lp-panel-empty { display: block; }
.lp-hint { margin: 16px 0 2px; text-align: center; font-size: 13.5px; color: var(--lp-muted); }
.lp-panel-loading { margin-top: 16px; color: var(--lp-muted); font-size: 14px; }
.lp-spin {
  width: 18px; height: 18px; border: 3px solid var(--lp-line); border-top-color: var(--lp-steel);
  border-radius: 50%; animation: lp-spin .8s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ---------- 结果态：报告日徽章 + 期限品种卡片行（利率档案） ---------- */
.lp-result-headline {
  margin: 18px 0 0; font-size: 16px; color: var(--lp-text);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
}
.lp-result-headline strong { color: var(--lp-navy); font-size: 20px; }
.lp-report-date {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--lp-steel);
  background: var(--lp-soft); border: 1px solid var(--lp-line);
  font-variant-numeric: tabular-nums;
}
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 2px; }
.lp-card-item {
  background: var(--lp-soft); border: 1px solid var(--lp-line); border-radius: 8px; padding: 12px 14px;
}
.lp-card-item .lp-k { display: block; font-size: 12px; color: var(--lp-muted); margin-bottom: 3px; }
.lp-card-item .lp-v { display: block; font-style: normal; font-size: 14.5px; font-weight: 600; color: var(--lp-text); line-height: 1.55; }
/* 强调字段（本期报价）：钢灰深底 + 衬线大字 */
.lp-card-hot { background: var(--lp-steel); border-color: var(--lp-steel); }
.lp-card-hot .lp-k { color: #cbd5e1; }
.lp-card-hot .lp-v {
  font-size: 27px; font-weight: 800; color: #fff; line-height: 1.3;
  font-family: Georgia, "Times New Roman", "Songti SC", serif; font-variant-numeric: tabular-nums;
}
.lp-area-note {
  display: none; margin: 12px 0 0; padding: 8px 12px; border-radius: 6px;
  font-size: 13px; color: var(--lp-mid); background: var(--lp-soft); border: 1px dashed var(--lp-line);
}
.lp-result-meta {
  margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed var(--lp-line);
  font-size: 12.5px; color: var(--lp-muted);
}
.lp-result-meta .lp-src { color: var(--lp-steel); font-weight: 600; }
.lp-result-meta .lp-note { color: var(--lp-muted); }

/* ---------- 无结果态 ---------- */
.lp-panel-empty { margin-top: 18px; text-align: center; padding: 6px 0 2px; }
.lp-empty-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--lp-text); }
.lp-empty-sub { margin: 0 0 14px; font-size: 13.5px; color: var(--lp-muted); }
.lp-btn-sub {
  height: 40px; padding: 0 20px; border: 1px solid var(--lp-steel); border-radius: 4px;
  background: var(--lp-card); color: var(--lp-steel); font-size: 14px; font-weight: 600; cursor: pointer;
}
.lp-btn-sub:hover { background: var(--lp-steel); color: #fff; }
.lp-empty-link { display: inline-block; margin-left: 12px; font-size: 13.5px; color: var(--lp-steel); text-decoration: none; }
.lp-empty-link:hover { text-decoration: underline; }

/* ---------- 相关查询 ---------- */
.lp-links { margin: 26px 0 8px; }
.lp-links h2, .lp-content h2, .lp-cities h2 {
  font-size: 16px; margin: 0 0 10px; color: var(--lp-navy);
  padding-bottom: 6px; border-bottom: 2px solid var(--lp-line);
}
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips a {
  padding: 7px 14px; background: var(--lp-card); border: 1px solid var(--lp-line);
  border-radius: 4px; font-size: 13.5px; text-decoration: none; color: var(--lp-text);
}
.lp-chips a:hover { border-color: var(--lp-steel); color: var(--lp-steel); }

/* ---------- FAQ 内容区（构建期生成，类名 lp-content / lp-ai-badge / lp-src-note） ---------- */
.lp-content {
  margin: 26px 0; background: var(--lp-card); border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius); padding: 18px 20px;
}
.lp-content article { margin-bottom: 14px; }
.lp-content article:last-child { margin-bottom: 0; }
.lp-content h3 { font-size: 14.5px; margin: 0 0 6px; }
.lp-content p { font-size: 13.5px; color: #475569; margin: 0 0 4px; }
.lp-src-note { font-size: 12px; color: var(--lp-muted); }
.lp-ai-badge {
  display: inline-block; padding: 1px 8px; margin-left: 6px;
  font-size: 11px; font-weight: 600; vertical-align: 1px;
  color: var(--lp-steel); background: var(--lp-soft); border: 1px solid var(--lp-line); border-radius: 999px;
}

/* ---------- 期限品种查询矩阵 ---------- */
.lp-cities { margin: 26px 0; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lp-grid a {
  padding: 10px 8px; text-align: center; background: var(--lp-card); border: 1px solid var(--lp-line);
  border-radius: 6px; font-size: 13.5px; text-decoration: none; color: var(--lp-text);
}
.lp-grid a:hover { border-color: var(--lp-steel); color: var(--lp-steel); background: var(--lp-soft); }

/* ---------- 合规页脚（构建期生成：lp-foot / lp-links / lp-disc / lp-src / lp-ai） ---------- */
.lp-foot { background: var(--lp-soft); border-top: 1px solid var(--lp-line); margin-top: 24px; }
.lp-foot .lp-wrap { padding-top: 24px; padding-bottom: 32px; }
.lp-foot .lp-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: 13px; }
.lp-foot a { color: inherit; text-decoration: none; }
.lp-foot a:hover { color: var(--lp-steel); text-decoration: underline; }
.lp-foot .lp-strong { font-weight: 600; color: var(--lp-text); }
.lp-foot .lp-disc, .lp-foot .lp-src, .lp-foot .lp-ai { margin: 0 0 6px; font-size: 12.5px; color: var(--lp-muted); line-height: 1.9; }

/* ---------- 房贷月供参考（等额本息估算模块） ---------- */
.lp-mort { padding-top: 10px; }
.lp-mort h2 { font-size: 20px; margin: 0 0 6px; color: var(--lp-navy); }
.lp-mort h2 b { color: var(--lp-steel); }
.lp-mort-note {
  margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed var(--lp-line);
  font-size: 12.5px; color: var(--lp-muted); line-height: 1.7;
}

/* ---------- 移动适配 ---------- */
@media (max-width: 520px) {
  .lp-card { padding: 16px 14px; }
  .lp-filters { flex-direction: column; }
  .lp-btn-main { flex: 1; min-width: 0; }
  .lp-cards { grid-template-columns: 1fr 1fr; }
  .lp-card-hot { grid-column: 1 / -1; }
  .lp-card-hot .lp-v { font-size: 24px; }
  .lp-result-headline strong { font-size: 18px; }
}
