/* ============================================================
   pewdo_qa.css  v1  —  广州八个六防水补漏 · 漏水问答栏目
   适用页面：/qa/*.html（250 个问答详情页）+ /qa/index.html（列表页）
   设计体系：深蓝品牌头 + 卡片化正文 + 红色 CTA + 响应式双端
   ============================================================ */

:root {
  --brand-blue: #020080;
  --brand-blue-2: #0a2ea8;
  --brand-red: #d62828;
  --brand-red-2: #e63946;
  --bg-page: #f4f6fa;
  --card-bg: #ffffff;
  --text-main: #1f2430;
  --text-sub: #5b6472;
  --line: #e6e9f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(2, 0, 128, 0.08);
  --shadow-hover: 0 12px 34px rgba(2, 0, 128, 0.16);
  --maxw: 920px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
}

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

a { color: inherit; }

/* ---------- 公共头部 ---------- */
.site-header {
  background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-blue-2) 100%);
  box-shadow: 0 2px 12px rgba(2, 0, 128, 0.25);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd166, var(--brand-red-2));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}
.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topnav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s, transform 0.2s;
}
.topnav a:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.topnav a[href^="tel"] {
  background: linear-gradient(120deg, var(--brand-red), var(--brand-red-2));
  font-weight: 700;
}

/* ---------- 正文主体 ---------- */
.article-main {
  max-width: var(--maxw);
  margin: 26px auto 40px;
  padding: 0 16px;
}

/* 问答详情卡片 */
.geo-article {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 42px 40px;
  border: 1px solid var(--line);
}
.geo-article h1 {
  font-size: 28px;
  line-height: 1.45;
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 14px;
}
.geo-article h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-red), #ffb04d);
  margin-top: 14px;
}

/* 元信息胶囊 */
.article-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #eef1fb;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.article-meta::before { content: "📍"; }

/* 引言 */
.intro {
  background: linear-gradient(120deg, #eef4ff, #f8fbff);
  border-left: 4px solid var(--brand-blue-2);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 26px;
}

/* 问答标题 */
.geo-article h2 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-2));
  padding: 12px 18px;
  border-radius: 10px;
  margin: 30px 0 14px;
  line-height: 1.5;
  position: relative;
}
.geo-article h2::before {
  content: "Q";
  display: inline-block;
  width: 26px; height: 26px;
  line-height: 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-size: 14px;
  margin-right: 10px;
  vertical-align: 2px;
}

.geo-article p {
  color: var(--text-main);
  margin-bottom: 12px;
}

/* 配图卡片 */
.geo-img {
  margin: 22px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--line);
  background: #f0f2f7;
  max-width: 560px;
}
.geo-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.geo-img:hover img { transform: scale(1.03); }
.geo-img figcaption {
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  padding: 10px 12px;
  background: #fafbfe;
}

/* ---------- 底部 CTA ---------- */
.contact-bar {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: 0 16px;
}
.contact-bar p {
  background: linear-gradient(120deg, var(--brand-red), var(--brand-red-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 26px;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 8px 26px rgba(214, 40, 40, 0.3);
}
.contact-bar strong { font-size: 18px; }
.contact-bar a {
  color: #ffd166;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 209, 102, 0.6);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #10131f;
  color: #9aa3b5;
  text-align: center;
  padding: 26px 16px 30px;
  font-size: 13px;
  line-height: 1.9;
}
.site-footer a { color: #c9d2e4; text-decoration: none; }

/* ============================================================
   列表页（/qa/index.html）
   ============================================================ */
.qa-page-title {
  text-align: center;
  padding: 32px 16px 6px;
}
.qa-page-title h1 {
  font-size: 26px;
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: 8px;
}
.qa-page-title p {
  color: var(--text-sub);
  font-size: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.qa-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 16px 6px;
}
.qa-filter button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  background: #fff;
  border: 1.5px solid #d7ddf1;
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.qa-filter button:hover { border-color: var(--brand-blue); transform: translateY(-1px); }
.qa-filter button.active {
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-2));
  color: #fff;
  border-color: var(--brand-blue);
}

.qa-grid {
  max-width: 1200px;
  margin: 20px auto 50px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.qa-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.qa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.qa-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8ebf4;
  position: relative;
}
.qa-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.qa-card:hover .thumb img { transform: scale(1.06); }
.qa-card .thumb .tag {
  position: absolute;
  left: 12px; top: 12px;
  background: rgba(2, 0, 128, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.qa-card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.qa-card h3 { font-size: 15.5px; line-height: 1.5; margin-bottom: 8px; }
.qa-card h3 a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 700;
}
.qa-card h3 a:hover { color: var(--brand-red); }
.qa-card .desc {
  font-size: 13px;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.qa-card .scene {
  margin-top: auto;
  font-size: 12px;
  color: var(--brand-red);
  font-weight: 600;
  background: #fdf0f0;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

/* ---------- 响应式（移动端） ---------- */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .header-inner { padding: 12px 16px; }
  .logo { font-size: 17px; }
  .topnav a { font-size: 13px; padding: 6px 12px; }
  .article-main { margin: 16px auto 32px; }
  .geo-article { padding: 22px 18px 26px; border-radius: 10px; }
  .geo-article h1 { font-size: 21px; }
  .geo-article h2 { font-size: 16px; padding: 10px 14px; }
  .geo-img { max-width: 100%; }
  .contact-bar p { font-size: 14px; padding: 16px 18px; }
  .qa-page-title h1 { font-size: 21px; }
  .qa-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .qa-card h3 { font-size: 14px; }
  .qa-card .desc { font-size: 12px; }
}
@media (max-width: 420px) {
  .qa-grid { grid-template-columns: 1fr; }
}