/* ============ 河北稻禾 企业官网样式 ============ */
:root {
  --primary: #1a56db;
  --primary-dark: #0b3b8c;
  --primary-light: #e8f0fe;
  --accent: #0ea5e9;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 8px 30px rgba(15, 23, 42, .10);
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ 顶部导航 ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 1px;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  transition: all .2s;
}
.nav a:hover { color: var(--primary); background: var(--primary-light); }
.nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #0b3b8c 0%, #1a56db 55%, #0ea5e9 100%);
  color: #fff;
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero p {
  font-size: 19px;
  opacity: .92;
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: #fff; color: var(--primary-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .25); }

/* ============ 通用区块 ============ */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 16px; }
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ============ 卡片网格 ============ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--dark); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ============ 数字统计 ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ============ 时间线 ============ */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -30px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item .year { font-weight: 700; color: var(--primary); font-size: 16px; }
.timeline-item h4 { color: var(--dark); margin: 4px 0 6px; }
.timeline-item p { color: var(--muted); font-size: 15px; }

/* ============ 页面横幅 ============ */
.page-banner {
  background: linear-gradient(135deg, #0b3b8c, #1a56db);
  color: #fff;
  padding: 64px 0;
}
.page-banner h1 { font-size: 36px; font-weight: 700; }
.page-banner p { opacity: .9; margin-top: 8px; }

/* ============ 联系页 ============ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info .item-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.contact-info .item h4 { color: var(--dark); font-size: 16px; margin-bottom: 2px; }
.contact-info .item p { color: var(--muted); font-size: 15px; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.form-card h3 { font-size: 20px; color: var(--dark); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--dark); margin-bottom: 6px; font-weight: 600; }
.field label .req { color: #e11d48; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s;
  background: #fff;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .12);
}
.field textarea { resize: vertical; min-height: 130px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { display: none; padding: 14px 16px; border-radius: 8px; margin-top: 16px; font-size: 15px; }
.form-msg.success { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-msg.error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ============ 关于页 ============ */
.about-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about-intro h2 { font-size: 28px; color: var(--dark); margin-bottom: 16px; }
.about-intro p { color: var(--muted); margin-bottom: 14px; }
.about-visual {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  color: #fff;
  padding: 48px 36px;
  text-align: center;
}
.about-visual .big { font-size: 56px; font-weight: 800; line-height: 1.1; }
.about-visual .small { opacity: .9; margin-top: 8px; letter-spacing: 2px; }

.value-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  color: var(--text); font-size: 16px;
}
.value-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============ 产品页 ============ */
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-card .card-icon { font-size: 30px; }
.product-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.product-card .tag {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: 20px;
  color: var(--muted);
}

/* ============ 页脚 ============ */
.footer { background: var(--dark); color: #94a3b8; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer p { font-size: 14px; line-height: 1.8; }
.footer a { display: block; font-size: 14px; padding: 4px 0; color: #94a3b8; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap, .about-intro { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 56px 0; }
  .form-card { padding: 24px; }
}
