/* 肥乡家乡通官网样式 —— 纯静态，无外部依赖，移动端优先 */
:root {
  --primary: #5b5bd6;
  --primary-dark: #4646b8;
  --primary-soft: #eef0ff;
  --accent: #ff8a3d;
  --accent-dark: #e6762a;
  --bg: #f7f6fc;
  --card: #ffffff;
  --text: #1f2233;
  --muted: #6b7088;
  --line: #e7e6f0;
  --ok: #2ea36b;
  --shadow: 0 8px 24px rgba(60, 60, 120, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #6a6ae0 0%, #8a7bff 55%, #b8a6ff 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: 1px;
}
.hero .subtitle {
  font-size: 17px;
  opacity: 0.95;
  margin: 0 0 26px;
}
.hero-checks {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}
.hero-checks li {
  font-size: 16px;
  margin: 10px 0;
  padding-left: 28px;
  position: relative;
}
.hero-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 13px;
  font-weight: 700;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 138, 61, 0.4);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.3); }
.btn-block { width: 100%; }

.hero-qr {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  color: var(--text);
  box-shadow: var(--shadow);
}
.hero-qr .qr-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #fff;
  border: 2px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.hero-qr .qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-qr .qr-placeholder {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
  padding: 20px;
}
.hero-qr p { margin: 0; font-size: 15px; font-weight: 600; }
.hero-qr small { color: var(--muted); font-size: 13px; }

/* ---------- 通用区块 ---------- */
section.block { padding: 56px 0; }
.section-title {
  font-size: 26px;
  text-align: center;
  margin: 0 0 10px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 15px;
}
.text-center { text-align: center; }

/* ---------- 信息类型卡片 ---------- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.type-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.type-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.type-card .icon {
  font-size: 30px;
  margin-bottom: 8px;
}
.type-card h3 { margin: 0 0 6px; font-size: 17px; }
.type-card p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- 说明 / 流程 ---------- */
.note {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 18px 22px;
  color: #3a3a66;
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.step .num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 表单 ---------- */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px 30px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}
.form-row label .req { color: var(--accent-dark); margin-left: 3px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

.img-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.img-preview .thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.img-preview .thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .thumb button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8f1;
  border: 1px solid #ffe2c7;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #5a4632;
  margin-bottom: 22px;
}
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.checkbox-row label { font-weight: 400; margin: 0; cursor: pointer; }

.success-box {
  text-align: center;
  padding: 20px 10px;
}
.success-box .big-ok {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 32px;
  line-height: 64px;
  margin: 0 auto 14px;
}
.success-box h3 { margin: 0 0 10px; font-size: 20px; }
.success-box p { color: var(--muted); margin: 0 0 20px; }
.success-qr {
  max-width: 220px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.embed-frame {
  width: 100%;
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

/* ---------- 关于 / 免责 长文 ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 36px 40px;
}
.prose h2 { font-size: 21px; margin: 28px 0 10px; color: var(--primary-dark); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 10px 0; }
.prose ol { padding-left: 22px; }
.prose ol li { margin: 10px 0; }
.prose .warn {
  background: #fff4ef;
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 8px;
  color: #6b4226;
}
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 12px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* ---------- 底部 ---------- */
.site-footer {
  background: #1f2233;
  color: #c5c7d6;
  padding: 36px 0 26px;
  margin-top: 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.footer-grid p { margin: 4px 0; }
.footer-grid a { color: #c5c7d6; }
.footer-bottom {
  border-top: 1px solid #33364d;
  padding-top: 18px;
  text-align: center;
  color: #8a8da0;
  font-size: 13px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
  }
  .nav-links a.active { border-left-color: var(--primary); border-bottom-color: var(--line); }
  .nav-toggle { display: block; }
  .hero { padding: 38px 0 44px; }
  .hero h1 { font-size: 26px; }
  .form-wrap { padding: 24px 18px; }
  .prose { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
