/* ============================================================
   贵州黔顺森品牌管理有限公司 官网 样式
   设计基调：简洁大气 · 中老年友好 · 高对比 · 充足留白
   双品牌色：舒悦红 #C8102E  +  黔顺森绿 #2E7D5B
   ============================================================ */
:root {
  --red: #C8102E;        /* 舒悦主色 */
  --red-dark: #9e0c24;
  --green: #2E7D5B;      /* 黔顺森 / 贵州 */
  --green-dark: #235f45;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --soft: #f7f5f2;
  --line: #e7e2dc;
  --bg: #ffffff;
  --maxw: 1180px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", system-ui, sans-serif;
  font-size: 18px;            /* 适合中老年访客 */
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; margin: 0 0 .5em; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section-title {
  text-align: center; margin-bottom: 40px;
}
.section-title .kicker {
  display: inline-block; color: var(--red); font-weight: 700;
  letter-spacing: 2px; font-size: 15px; margin-bottom: 8px;
}
.section-title h2 { color: var(--ink); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-size: 18px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--red); color: var(--red); background: #fff; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-lg { padding: 18px 40px; font-size: 20px; }

/* ---------- 顶部导航（吸顶固定）---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.nav-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand .brand-text b { font-size: 19px; color: var(--red); }
.brand .brand-text span { display: block; font-size: 12px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 16px; border-radius: 8px; font-size: 17px; color: var(--ink); font-weight: 600;
}
.nav a:hover, .nav a.active { color: var(--red); background: var(--soft); }

/* 手机端两个主按钮 */
.mobile-cta { display: none; gap: 10px; }
.mobile-cta .btn { padding: 10px 18px; font-size: 16px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* 移动抽屉菜单 */
.mobile-menu {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; padding: 16px; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 16px; font-size: 19px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mm-cta { display: flex; gap: 12px; margin: 20px 0; }
.mobile-menu .mm-cta .btn { flex: 1; }

/* ---------- 轮播 Banner ---------- */
.hero { position: relative; }
.slides { position: relative; height: 520px; overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
.slide .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
}
.slide .slide-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; color: #fff; width: 100%; }
.slide .tag {
  display: inline-block; background: var(--red); color:#fff; padding: 6px 16px;
  border-radius: 999px; font-size: 15px; margin-bottom: 16px;
}
.slide h1 { font-size: 46px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); margin-bottom: 14px; }
.slide p { font-size: 20px; max-width: 560px; }
.slide .btn { margin-top: 18px; }
.dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,.6); cursor: pointer; }
.dots button.active { background: #fff; width: 28px; border-radius: 6px; }

/* Banner 配色（用 CSS 渐变替代图片占位，正式上线可换背景图） */
.slide.s1 { background: linear-gradient(120deg, var(--red), #e35a4f); }
.slide.s2 { background: linear-gradient(120deg, var(--green), #4aa37c); }
.slide.s3 { background: linear-gradient(120deg, #b8860b, var(--red)); }

/* ---------- 身份简介 ---------- */
.identity-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.identity-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.identity-card .badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--green); color:#fff;
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 16px; margin-bottom: 16px;
}
.identity-list { list-style: none; padding: 0; margin: 0; }
.identity-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 12px; align-items: flex-start; }
.identity-list li b { color: var(--red); }
.identity-list .ic { color: var(--green); font-weight: 700; }

/* ---------- 产品网格 ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); }
.card .thumb { aspect-ratio: 4/3; background: var(--soft); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card .body h3 { font-size: 19px; }
.card .cat { display: inline-block; font-size: 13px; color: var(--green); background: #eef6f1; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.card .price { color: var(--red); font-weight: 700; font-size: 18px; margin-top: auto; }
.card .desc { color: var(--muted); font-size: 15px; }

/* ---------- 招商优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.adv {
  background: #fff; border-radius: var(--radius); padding: 30px; border-top: 5px solid var(--red);
  box-shadow: var(--shadow); text-align: center;
}
.adv .num { font-size: 40px; font-weight: 800; color: var(--red); opacity: .25; }
.adv h3 { color: var(--ink); }
.adv p { color: var(--muted); font-size: 16px; }
.adv.green { border-top-color: var(--green); }
.adv.green .num { color: var(--green); }

/* ---------- 门店案例 ---------- */
.store-card .body { text-align: left; }
.store-card .city { color: var(--green); font-weight: 700; }

/* ---------- 咨询转化 ---------- */
.cta-band { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; border-radius: var(--radius); padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 19px; }
.cta-form { max-width: 720px; margin: 24px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.cta-form .full { grid-column: 1 / -1; }
.cta-form input, .cta-form textarea, .cta-form select {
  width: 100%; padding: 14px 16px; border: none; border-radius: 10px; font-size: 16px; font-family: inherit;
}
.cta-form .btn { grid-column: 1 / -1; }

/* ---------- 表单通用 ---------- */
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; font-family: inherit; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- 页脚 ---------- */
.site-footer { background: #232020; color: #d9d4cf; font-size: 15px; }
.site-footer .f-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 48px 0; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.site-footer a { color: #d9d4cf; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .f-contact p { margin: 4px 0; }
.site-footer .qr { background: #fff; padding: 8px; border-radius: 8px; width: 110px; }
.site-footer .f-bottom { border-top: 1px solid #3a3533; padding: 18px 0; font-size: 13px; color: #a59f99; text-align: center; line-height: 1.9; }
.site-footer .f-bottom b { color: #fff; }

/* ---------- 门店服务 / 地图 ---------- */
.map-box {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft);
  min-height: 360px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted);
}
.map-box iframe { width: 100%; height: 420px; border: 0; }

/* ---------- 资质页 ---------- */
.qual-img {
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--soft);
  min-height: 260px; display: flex; align-items: center; justify-content: center; color: var(--muted); padding: 20px;
}
.qual-img img { max-height: 360px; }

/* ---------- 文章详情 ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article img { border-radius: var(--radius); margin: 16px 0; }
.article .meta { color: var(--muted); font-size: 14px; }

/* ---------- 后台 ---------- */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 30px 20px; }
.admin-login { max-width: 380px; margin: 80px auto; background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.admin-tabs button { background: none; border: none; padding: 12px 18px; font-size: 16px; cursor: pointer; border-bottom: 3px solid transparent; font-weight: 600; }
.admin-tabs button.active { color: var(--red); border-bottom-color: var(--red); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { border: 1px solid var(--line); padding: 12px; text-align: left; font-size: 15px; }
.table th { background: var(--soft); }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.pill.pub { background: #eef6f1; color: var(--green); }
.pill.draft { background: #fbeaea; color: var(--red); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color:#fff; padding: 12px 22px; border-radius: 999px; opacity: 0; transition: .3s; z-index: 200; }
.toast.show { opacity: 1; }

/* ---------- 首页品牌宣传片卡片 ---------- */
.home-video { display: block; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; }
.home-video:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.10); }
.hv-thumb { position: relative; aspect-ratio: 16/9; background: #111; overflow: hidden; }
.hv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.18); transition: background .25s; }
.home-video:hover .hv-play { background: rgba(0,0,0,.34); }
.hv-play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(192,24,24,.92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.hv-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.hv-title { padding: 12px 14px; font-size: 15px; color: #222; font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .identity-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .site-footer .f-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .hamburger { display: block; }
  .mobile-cta { display: flex; }
  /* 手机端页头：缩小 logo 与按钮，给品牌名留宽度，确保「黔顺森」横排不竖排 */
  .brand img { height: 32px; }
  .brand .brand-text { flex-shrink: 0; white-space: nowrap; }
  .brand .brand-text b { display: none; }      /* 手机端隐藏品牌名，避免横排放不下 */
  .brand .brand-text span { display: none; }   /* 长副标题在手机端仍隐藏 */
  .mobile-cta .btn { padding: 8px 12px; font-size: 14px; }
  .slides { height: 380px; }
  .slide h1 { font-size: 30px; }
  .slide p { font-size: 16px; }
  .slide .slide-inner { padding: 0 22px; }
  .section { padding: 44px 0; }
  h2 { font-size: 25px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .cta-form { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 20px; }
  .site-footer .f-top { grid-template-columns: 1fr; }
  .site-footer .qr { width: 130px; }
}

/* 素材筹备中占位卡 */
.product-pending .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f7f3ee 0%, #fff 100%);
  min-height: 220px;
}
.product-pending .pending-art {
  font-size: 64px;
  opacity: 0.55;
}
.product-pending .body h3 {
  color: var(--muted);
  font-weight: 600;
}

/* 信息卡片网格（用于 products.html 等页） */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.info-card {
  background: #fff;
  border: 1px solid #ece6df;
  border-radius: 10px;
  padding: 22px 24px;
}
.info-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--red);
}
.info-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 800px) {
  .info-grid { grid-template-columns: 1fr; }
}
