/* ============================================================
   GEO 湘菜预制食材B端工厂 · 全站样式
   存放路径: assets/css/style.css
   说明: 与Astra父主题共存,functions.php优先加载Astra父主题CSS,
   再加载本文件; 所有资源路径为占位, 上线由WP动态函数替换。
   ============================================================ */

/* ---------- 基础变量与重置 ---------- */
:root {
  --geo-primary: #b1272d;        /* 湘菜红 */
  --geo-primary-dark: #8f1d22;
  --geo-dark: #2b2b2b;
  --geo-gray: #f5f5f3;
  --geo-border: #e6e3de;
  --geo-text: #3d3d3d;
  --geo-muted: #777;
  --geo-white: #ffffff;
  --geo-gold: #c8a24b;
  --geo-radius: 8px;
  --geo-shadow: 0 6px 24px rgba(0,0,0,.08);
  --geo-max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; color: var(--geo-text); line-height: 1.7; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.geo-container { max-width: var(--geo-max); margin: 0 auto; padding: 0 20px; }
.geo-section { padding: 64px 0; }
.geo-section--alt { background: var(--geo-gray); }

/* ---------- 区块标题 ---------- */
.geo-section-head { max-width: 820px; margin: 0 auto 36px; text-align: center; }
.geo-eyebrow { color: var(--geo-primary); font-weight: 700; letter-spacing: 2px; font-size: 13px; margin-bottom: 8px; }
.geo-title-h1 { font-size: clamp(24px, 3vw, 38px); line-height: 1.3; color: var(--geo-dark); }
.geo-title-h2 { font-size: clamp(20px, 2.6vw, 30px); color: var(--geo-dark); line-height: 1.35; }
.geo-lead { color: var(--geo-muted); margin-top: 12px; font-size: 16px; }

/* ---------- Banner(视频嵌入位,全站统一) ---------- */
.geo-banner { position: relative; min-height: 380px; display: flex; align-items: center; overflow: hidden; background: var(--geo-dark); }
.geo-banner--short { min-height: 300px; }
.geo-banner--city { min-height: 340px; }
.geo-banner__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.geo-banner__inner { position: relative; z-index: 2; max-width: var(--geo-max); margin: 0 auto; padding: 48px 20px; color: #fff; }
.geo-banner__h1 { font-size: clamp(22px, 3vw, 34px); line-height: 1.3; margin-bottom: 14px; }
.geo-banner__lead { font-size: 16px; opacity: .92; max-width: 720px; }
.geo-banner__btns { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.geo-section--city-head { background: linear-gradient(135deg, #b1272d, #8f1d22); color: #fff; text-align: center; }
.geo-section--city-head .geo-title-h1 { color: #fff; }
.geo-section--city-head .geo-lead { color: rgba(255,255,255,.9); }

/* ---------- 按钮 ---------- */
.geo-btn { display: inline-block; padding: 12px 26px; border-radius: var(--geo-radius); font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: all .2s ease; }
.geo-btn--primary { background: var(--geo-primary); color: #fff; }
.geo-btn--primary:hover { background: var(--geo-primary-dark); }
.geo-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.geo-btn--ghost:hover { background: rgba(255,255,255,.15); }
.geo-btn--white { background: #fff; color: var(--geo-primary); }
.geo-btn--white:hover { background: #f2f2f2; }
.geo-btn-row { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 信任背书条 ---------- */
.geo-trustbar { background: var(--geo-dark); color: #fff; padding: 14px 0; }
.geo-trustbar__grid { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: center; }
.geo-trustbar__item { font-size: 14px; opacity: .95; }

/* ---------- 转化卡片 ---------- */
.geo-conv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.geo-conv-card { background: #fff; border: 1px solid var(--geo-border); border-radius: var(--geo-radius); padding: 26px 22px; box-shadow: var(--geo-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.geo-conv-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.geo-conv-card__title { font-size: 18px; color: var(--geo-dark); margin-bottom: 8px; }
.geo-conv-card__text { font-size: 14px; color: var(--geo-muted); margin-bottom: 14px; }
.geo-conv-card__link { color: var(--geo-primary); font-weight: 700; font-size: 14px; }

/* ---------- 产品卡片 ---------- */
.geo-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.geo-product-card { background: #fff; border: 1px solid var(--geo-border); border-radius: var(--geo-radius); padding: 18px; box-shadow: var(--geo-shadow); display: flex; flex-direction: column; gap: 8px; transition: transform .2s ease; }
.geo-product-card:hover { transform: translateY(-4px); }
.geo-product-card__img { height: 150px; background-size: cover; background-position: center; border-radius: 6px; }
.geo-product-card__series { align-self: flex-start; background: var(--geo-primary); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 20px; }
.geo-product-card__title { font-size: 17px; color: var(--geo-dark); }
.geo-product-card__spec { font-size: 13px; color: var(--geo-muted); }
.geo-product-card__link { color: var(--geo-primary); font-weight: 700; font-size: 14px; }
.geo-product-card--more { justify-content: center; align-items: center; text-align: center; border-style: dashed; }

/* ---------- 产品详情 ---------- */
.geo-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.geo-gallery__img { height: 300px; background-size: cover; background-position: center; border-radius: var(--geo-radius); margin-bottom: 16px; }
.geo-info h2 { margin-bottom: 16px; }
.geo-spec-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; }
.geo-spec-table th, .geo-spec-table td { border: 1px solid var(--geo-border); padding: 10px 12px; text-align: left; font-size: 14px; }
.geo-spec-table th { background: var(--geo-gray); width: 40%; }
.geo-tag { display: inline-block; background: rgba(255,255,255,.2); border: 1px solid #fff; color: #fff; padding: 3px 12px; border-radius: 20px; font-size: 13px; margin-bottom: 10px; }
.geo-tag--series { background: var(--geo-primary); border-color: var(--geo-primary); }
.geo-breadcrumb { background: var(--geo-gray); padding: 12px 0; font-size: 13px; color: var(--geo-muted); }
.geo-breadcrumb a { color: var(--geo-primary); }
.geo-note { font-size: 13px; color: var(--geo-muted); margin-top: 12px; }

/* ---------- 视频占位 ---------- */
.geo-video-placeholder { position: relative; margin: 16px 0; }
.geo-video-placeholder video { width: 100%; border-radius: var(--geo-radius); background: #000; }
.geo-video-placeholder__note { font-size: 12px; color: var(--geo-muted); margin-top: 6px; text-align: center; }

/* ---------- 工厂统计 ---------- */
.geo-factory__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 24px; text-align: center; }
.geo-stat { background: #fff; border: 1px solid var(--geo-border); border-radius: var(--geo-radius); padding: 20px 12px; }
.geo-stat__num { font-size: 28px; color: var(--geo-primary); display: block; }
.geo-stat span { font-size: 13px; color: var(--geo-muted); }

/* ---------- 资质证书墙 ---------- */
.geo-cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.geo-cert-card { background: #fff; border: 1px solid var(--geo-border); border-radius: var(--geo-radius); padding: 18px; text-align: center; box-shadow: var(--geo-shadow); }
.geo-cert-card img { height: 120px; object-fit: contain; margin: 0 auto 12px; }
.geo-cert-card h3 { font-size: 16px; color: var(--geo-dark); }
.geo-cert-card__num { font-size: 12px; color: var(--geo-muted); margin-top: 6px; }

/* ---------- 时间轴 ---------- */
.geo-timeline { position: relative; padding-left: 24px; border-left: 3px solid var(--geo-primary); }
.geo-timeline__item { margin-bottom: 22px; position: relative; }
.geo-timeline__item::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--geo-primary); }
.geo-timeline__year { display: inline-block; font-weight: 700; color: var(--geo-primary); margin-bottom: 4px; }
.geo-timeline__item p { color: var(--geo-muted); font-size: 14px; }

/* ---------- 解决方案 / 案例 ---------- */
.geo-solution-grid, .geo-policy-grid, .geo-mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 8px; }
.geo-solution-card, .geo-policy-card, .geo-mode-card { background: #fff; border: 1px solid var(--geo-border); border-radius: var(--geo-radius); padding: 24px 22px; box-shadow: var(--geo-shadow); }
.geo-solution-card__tag { display: inline-block; background: var(--geo-gold); color: #fff; padding: 2px 12px; border-radius: 20px; font-size: 12px; margin-bottom: 10px; }
.geo-solution-card h3, .geo-policy-card h3, .geo-mode-card h3 { font-size: 17px; color: var(--geo-dark); margin-bottom: 8px; }
.geo-solution-card p, .geo-policy-card p, .geo-mode-card p { font-size: 14px; color: var(--geo-muted); }
.geo-solution-card__link { display: inline-block; margin-top: 12px; color: var(--geo-primary); font-weight: 700; font-size: 14px; }
.geo-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.geo-case-card { background: #fff; border: 1px solid var(--geo-border); border-radius: var(--geo-radius); padding: 22px; box-shadow: var(--geo-shadow); }
.geo-case-card__meta { font-size: 12px; color: var(--geo-primary); margin-bottom: 6px; }
.geo-case-card h3 { font-size: 17px; color: var(--geo-dark); margin-bottom: 8px; }
.geo-case-card p { font-size: 14px; color: var(--geo-muted); }

/* ---------- 新闻列表 ---------- */
.geo-news-list { display: flex; flex-direction: column; gap: 16px; }
.geo-news-item { background: #fff; border: 1px solid var(--geo-border); border-radius: var(--geo-radius); padding: 20px 22px; box-shadow: var(--geo-shadow); }
.geo-news-item__cat { display: inline-block; background: var(--geo-primary); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.geo-news-item__title { font-size: 17px; color: var(--geo-dark); margin-bottom: 6px; }
.geo-news-item__excerpt { font-size: 14px; color: var(--geo-muted); }
.geo-news-item__excerpt a { color: var(--geo-primary); }

/* ---------- 步骤 ---------- */
.geo-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 8px; }
.geo-step { background: #fff; border: 1px solid var(--geo-border); border-radius: var(--geo-radius); padding: 22px; text-align: center; }
.geo-step__num { display: inline-block; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; background: var(--geo-primary); color: #fff; font-weight: 700; margin-bottom: 10px; }
.geo-step h3 { font-size: 16px; color: var(--geo-dark); margin-bottom: 6px; }
.geo-step p { font-size: 13px; color: var(--geo-muted); }

/* ---------- 表单 ---------- */
.geo-form { background: #fff; border: 1px solid var(--geo-border); border-radius: var(--geo-radius); padding: 28px; box-shadow: var(--geo-shadow); }
.geo-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.geo-field { display: flex; flex-direction: column; gap: 6px; }
.geo-field--full { grid-column: 1 / -1; }
.geo-field label { font-size: 14px; font-weight: 600; color: var(--geo-dark); }
.geo-input, .geo-select, .geo-textarea { border: 1px solid var(--geo-border); border-radius: 6px; padding: 11px 12px; font-size: 14px; font-family: inherit; width: 100%; background: #fff; color: var(--geo-text); }
.geo-input:focus, .geo-select:focus, .geo-textarea:focus { outline: 2px solid var(--geo-primary); outline-offset: -1px; }
.geo-form__submit { margin-top: 18px; width: 100%; }
.geo-form-note { font-size: 13px; color: var(--geo-muted); margin-top: 12px; text-align: center; }
.geo-form .geo-input.is-error, .geo-form .geo-select.is-error { border-color: var(--geo-primary); }

/* ---------- FAQ ---------- */
.geo-faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.geo-faq__item { border: 1px solid var(--geo-border); border-radius: var(--geo-radius); background: #fff; overflow: hidden; }
.geo-faq__q { width: 100%; text-align: left; padding: 16px 20px; background: none; border: none; font-size: 15px; font-weight: 700; color: var(--geo-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.geo-faq__q::after { content: "+"; font-size: 20px; color: var(--geo-primary); transition: transform .2s ease; }
.geo-faq__item.is-open .geo-faq__q::after { transform: rotate(45deg); }
.geo-faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.geo-faq__a p { padding: 0 20px 16px; font-size: 14px; color: var(--geo-muted); }

/* ---------- 分类内链 ---------- */
.geo-cat-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.geo-cat-links a { background: #fff; border: 1px solid var(--geo-border); padding: 10px 20px; border-radius: 30px; color: var(--geo-dark); font-weight: 600; transition: all .2s; }
.geo-cat-links a:hover { background: var(--geo-primary); color: #fff; border-color: var(--geo-primary); }

/* ---------- CTA横幅 ---------- */
.geo-cta-band { background: linear-gradient(135deg, #b1272d, #8f1d22); color: #fff; text-align: center; padding: 56px 0; }
.geo-cta-band__title { font-size: clamp(20px, 2.6vw, 30px); margin-bottom: 10px; }
.geo-cta-band__text { opacity: .92; margin-bottom: 18px; }
.geo-cta-band .geo-btn-row { justify-content: center; }

/* ---------- 城市落地页本地差异化面板 ---------- */
.geo-local-panel { position: relative; }
.geo-local-panel__tag { display: inline-block; background: var(--geo-dark); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 20px; margin-bottom: 12px; }

/* ---------- 免责文案 ---------- */
.geo-disclaimer { background: #1f1f1f; color: #bbb; font-size: 12px; padding: 28px 0; line-height: 1.9; }
.geo-disclaimer p { margin-bottom: 6px; }

/* ---------- 粘性CTA / 返回顶部 ---------- */
.geo-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; background: var(--geo-primary); color: #fff; text-align: center; padding: 12px; transform: translateY(110%); transition: transform .3s ease; z-index: 999; }
.geo-sticky-cta.is-visible { transform: translateY(0); }
.geo-sticky-cta a { color: #fff; font-weight: 700; }
.geo-top { position: fixed; right: 20px; bottom: 90px; width: 44px; height: 44px; line-height: 40px; text-align: center; background: var(--geo-dark); color: #fff; border-radius: 50%; opacity: 0; visibility: hidden; transition: all .3s; z-index: 998; }
.geo-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- 入场动画 ---------- */
.geo-reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.geo-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .geo-product-layout { grid-template-columns: 1fr; }
  .geo-form-grid { grid-template-columns: 1fr; }
  .geo-banner { min-height: 320px; }
  .geo-section { padding: 44px 0; }
}
@media (max-width: 560px) {
  .geo-conv-grid, .geo-product-grid, .geo-solution-grid, .geo-cert-grid, .geo-case-grid, .geo-policy-grid, .geo-mode-grid, .geo-factory__stats, .geo-steps { grid-template-columns: 1fr; }
}