/* =========================================================
   青禾装饰 · 全局设计系统 base.css
   视觉语言完全对齐原站 http://www.wxqhzs.com/
   青绿 #19bb9b + 蓝 #0064d4 + 橙强调 + 原站灰阶
   锋利圆角(3px) / 扁平阴影 / 0.4s 过渡（原站实测）
   创建：2026-10-11（M1） 整改：2026-10-11（对齐原站）
   ========================================================= */

:root {
  /* —— 品牌色（原站实测高频值） —— */
  --c-teal:       #19bb9b;   /* 主青绿，原站 10 处 */
  --c-teal-600:   #15a489;   /* 主色加深 hover */
  --c-teal-700:   #0f8f76;   /* 深青绿，文字/强调 */
  --c-teal-50:    #e8f7f4;
  --c-teal-100:   #c9eee5;
  --c-blue:       #0064d4;   /* 原站真实辅色蓝，8 处 */
  --c-blue-600:   #0056c0;
  --c-blue-50:    #e8f1fc;
  --c-orange:     #ff6600;   /* 原站橙强调 rgb(255,102,0) */
  --c-orange-2:   #ff9900;
  --c-orange-50:  #fff2e6;

  /* —— 中性（原站灰阶实测） —— */
  --c-ink:    #333333;   /* 主标题 */
  --c-body:   #5a5a5a;   /* 正文 */
  --c-muted:  #929292;   /* 弱化文字 */
  --c-line:   #e0e0e0;   /* 边框/分割线 */
  --c-bg:     #fbfbfb;   /* 浅背景（原站同值） */
  --c-bg-2:   #f4f4f4;
  --c-dark:   #2f2f2f;   /* 原站深色块（非渐变） */
  --c-white:  #ffffff;

  /* —— 渐变（仅按钮/品牌区用青绿→蓝，呼应原站双色） —— */
  --grad-brand:  linear-gradient(135deg, #19bb9b 0%, #0064d4 100%);
  --grad-brand-soft: linear-gradient(135deg, #e8f7f4 0%, #e8f1fc 100%);
  --grad-dark:   #2f2f2f;

  /* —— 字体（原站：微软雅黑为主，宋体/arial 辅助） —— */
  --font-sans: "Microsoft YaHei", SimSun, arial, "PingFang SC",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* —— 圆角（原站 3px 为主，锋利模板感） —— */
  --r-sm: 3px; --r-md: 3px; --r-lg: 4px; --r-xl: 6px; --r-pill: 4px;

  /* —— 阴影（原站扁平为主，仅极轻投影） —— */
  --sh-sm: 0 1px 4px rgba(0,0,0,.06);
  --sh-md: 0 3px 4px rgba(0,0,0,.18);
  --sh-lg: 0 1px 4px rgba(0,0,0,.12);
  --sh-teal: 0 3px 4px rgba(25,187,155,.25);

  /* —— 容器 —— */
  --container: 1200px;
  --container-narrow: 1000px;

  /* —— 过渡（原站节奏） —— */
  --t: .4s ease;       /* color/border/background 0.4s */
  --t-img: .5s ease;   /* 图片淡入 0.5s */
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;            /* 原站正文偏小，贴近模板观感 */
  line-height: 1.8;
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5 { color: var(--c-ink); font-weight: 700; line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(26px, 3.6vw, 38px); }
h2 { font-size: clamp(22px, 2.8vw, 30px); }
h3 { font-size: clamp(18px, 2vw, 21px); }
p { margin: 0 0 1em; }
a { color: var(--c-blue); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-teal-700); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .3em 0; }
:focus-visible { outline: 3px solid var(--c-teal-100); outline-offset: 2px; }

/* ============ 布局 ============ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-tight { padding: clamp(36px, 5vw, 60px) 0; }
.bg-soft { background: var(--c-bg); }
.bg-soft-2 { background: var(--c-bg-2); }
.bg-dark { background: var(--c-dark); color: #d6d6d6; }
.bg-dark h1,.bg-dark h2,.bg-dark h3 { color: #fff; }
.bg-brand { background: var(--grad-brand); color: #fff; }
.bg-brand h1,.bg-brand h2,.bg-brand h3 { color: #fff; }

/* ============ 区段标题 ============ */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(30px,5vw,52px); }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--c-teal-700); background: var(--c-teal-50);
  padding: 4px 14px; border-radius: var(--r-pill); margin-bottom: 14px;
}
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--c-muted); font-size: 15px; margin: 0; }
.eyebrow-left { text-align: left; margin-left: 0; }

/* ============ 按钮（原站锋利小圆角 + 0.4s） ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 700; line-height: 1;
  padding: 11px 24px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer; transition: var(--t);
  text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--c-teal); color: #fff; }
.btn-primary:hover { background: var(--c-teal-700); color: #fff; }
.btn-blue { background: var(--c-blue); color: #fff; }
.btn-blue:hover { background: var(--c-blue-600); color: #fff; }
.btn-orange { background: var(--c-orange); color: #fff; }
.btn-orange:hover { background: #e85d00; color: #fff; }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-teal); color: var(--c-teal-700); }
.btn-light { background: #fff; color: var(--c-teal-700); }
.btn-light:hover { background: var(--c-teal-50); }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-arrow::after { content: "→"; font-weight: 700; margin-left: 2px; }

/* ============ 卡片（扁平 + 锋利圆角） ============ */
.card {
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm);
  transition: var(--t);
}
.card:hover { box-shadow: var(--sh-md); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ 标签 / 徽章（原站小标签） ============ */
.tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--c-teal-700); background: var(--c-teal-50);
  padding: 3px 11px; border-radius: var(--r-pill);
}
.tag-blue { color: var(--c-blue); background: var(--c-blue-50); }
.tag-orange { color: #fff; background: var(--c-orange); }

/* ============ 顶部通知条（底色取自公司 LOGO 主色 #2daecf，与 logo 保持一致） ============ */
.topbar { background: #2daecf; color: #e9f7fd; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .tb-left { display: flex; gap: 18px; align-items: center; overflow: hidden; white-space: nowrap; }
.topbar .tb-right { display: flex; gap: 16px; align-items: center; }

/* ============ 站点头部 / 导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
/* 公司标准 LOGO（透明底 PNG，220x60 ≈ 3.67:1，已 3× 无损放大至 660x180 防高分屏发虚） */
.brand-logo { display: block; height: 46px; width: auto; max-width: 100%; }
.nav { list-style: none; padding: 0; margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav > li { position: relative; }
.nav a {
  position: relative; display: block; color: var(--c-ink); font-weight: 600; font-size: 15px;
  padding: 10px 13px; border-radius: var(--r-sm); transition: var(--t);
}
.nav a:hover { color: var(--c-teal-700); background: var(--c-teal-50); }
.nav a.active { color: var(--c-teal); }
.nav a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--c-teal); border-radius: 2px;
}
/* 下拉菜单 */
.nav .has-dropdown > a::after {
  content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: middle; opacity: .55;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
}
.nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 176px; list-style: none; margin: 0; padding: 6px 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm);
  box-shadow: var(--sh-md); display: none; z-index: 300;
}
.nav .has-dropdown:hover .dropdown { display: block; }
.nav .dropdown a {
  display: block; padding: 10px 18px; border-radius: 0; font-weight: 600; font-size: 14px;
  color: var(--c-ink); white-space: nowrap;
}
.nav .dropdown a:hover { background: var(--c-teal-50); color: var(--c-teal-700); }
.nav .dropdown a.active { color: var(--c-teal); background: var(--c-teal-50); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 页脚（结构 / 配色完全对齐原站 wxqhzs.com） ============
   原站版式：1200 容器内三栏绝对定位 —— 左栏 0/322 宽、中栏 437/352 宽、右栏 839/361 宽；
   各栏起始 Y：LOGO 82、公司全称 192、二维码 249、两个小标题 89、联系块 145、资讯块 170、版权 499。 */
.site-footer {
  background: var(--c-dark);
  color: #b9b9b9;
  font-size: 14px;
}
.site-footer a { color: #9fd8cb; }
.site-footer a:hover { color: #fff; }

.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }

/* —— 左栏：白色 LOGO + 公司全称 + 二维码（用户最新素材） —— */
.footer-brand .brand-logo { height: 46px; width: auto; display: block; }
.footer-brand .company-name { margin: 18px 0 0; color: #ccc; font-size: 20px; font-weight: 700; line-height: 1.45; }
.footer-brand .footer-qrcode { display: block; width: 150px; max-width: 100%; height: auto; margin-top: 16px; border-radius: 6px; }
.footer-brand .qrcode-tip { margin: 10px 0 0; color: #999; font-size: 13px; }

.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; position: relative; padding-left: 12px; }
.footer-col h4::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: var(--c-teal); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { color: var(--c-teal); flex-shrink: 0; font-weight: 700; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; color: #8a8a8a; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* —— 备案信息行（公安备案 + ICP + 版权） —— */
.footer-bottom a { color: #8a8a8a; }
.footer-bottom a:hover { color: #fff; }
.footer-record { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.footer-record .beian-icon { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.footer-record .record-copy { color: #666666; font-size: 13px; }

/* 页脚响应式：窄屏改为两列 / 单列 */
@media (max-width: 1120px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============ 表单 ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; font-size: 14px; }
.field .req { color: var(--c-orange); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 13px; font-size: 14px; font-family: inherit; color: var(--c-ink);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); transition: var(--t);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-teal); box-shadow: 0 0 0 3px var(--c-teal-50); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--c-muted); }
.form-ok { background: var(--c-teal-50); color: var(--c-teal-700); border: 1px solid var(--c-teal-100); padding: 11px 15px; border-radius: var(--r-md); margin-bottom: 16px; }
.form-err { background: #fdeaea; color: #c0392b; border: 1px solid #f5c6c0; padding: 11px 15px; border-radius: var(--r-md); margin-bottom: 16px; }

/* ============ 工具类 ============ */
.text-center { text-align: center; }
.text-muted { color: var(--c-muted); }
.text-teal { color: var(--c-teal-700); }
.text-blue { color: var(--c-blue); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.lead { font-size: 16px; color: var(--c-body); }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.divider { height: 1px; background: var(--c-line); border: 0; margin: 0; }

/* 入场动画（淡入上浮，对齐原站 velocity 观感） */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .brand-logo { height: 34px; }
  .nav {
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; padding: 10px 16px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--sh-md);
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 13px; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav a.active::after { display: none; }
  .nav a.active { background: var(--c-teal-50); border-left: 3px solid var(--c-teal); }
  .nav .has-dropdown > a::after { display: none; }
  .nav .dropdown { position: static; display: block; box-shadow: none; border: none; min-width: 0; padding: 0 0 6px 16px; }
  .nav .dropdown a { padding: 11px 13px; font-size: 14px; border-bottom: 1px solid var(--c-line); }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* 页脚移动端：单列，LOGO / 二维码收窄 */
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 12px; }
  .footer-brand .brand-logo { height: 40px; }
  .footer-brand .footer-qrcode { width: 140px; }
  .footer-brand .company-name { font-size: 18px; }
  .footer-col h4 { margin-top: 6px; }
  .footer-contact li { line-height: 1.8; }
  .footer-bottom { padding: 18px 0; }
}
