/* ============================================================
   松蕴智能官网 - 品牌样式
   配色：松蕴黄 #FFD500 × 炭黑 #2F2B27（取自 logo）
   ============================================================ */
:root {
  --sy-yellow: #FFD500;
  --sy-yellow-deep: #E8C100;
  --sy-yellow-soft: #FFF7D6;
  --sy-ink: #2F2B27;
  --sy-ink-2: #4A453F;
  --sy-ink-3: #6E675E;
  --sy-line: #ECE6DC;
  --sy-bg: #FFFFFF;
  --sy-bg-soft: #FBF9F5;
  --sy-radius: 14px;
}

html { scroll-behavior: smooth; }

/* 防御：任何装饰性元素超出视口时不产生横向滚动条（内容型溢出已在栅格层修复） */
html, body { overflow-x: clip; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  color: var(--sy-ink);
  background: var(--sy-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sy-ink); }

::selection { background: var(--sy-yellow); color: var(--sy-ink); }

/* ---------- 通用 ---------- */
.sy-container { max-width: 1140px; }

.section { padding: 96px 0; }
.section-soft { background: var(--sy-bg-soft); }

.kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--sy-ink);
  background: var(--sy-yellow);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.section-title { font-size: 40px; font-weight: 800; letter-spacing: 0.5px; }
.section-sub { color: var(--sy-ink-3); font-size: 18px; margin-top: 12px; }

.btn-sy {
  background: var(--sy-yellow);
  color: var(--sy-ink);
  font-weight: 700;
  border: 2px solid var(--sy-yellow);
  border-radius: 10px;
  padding: 12px 30px;
  transition: all .2s ease;
}
.btn-sy:hover { background: var(--sy-yellow-deep); border-color: var(--sy-yellow-deep); color: var(--sy-ink); }

.btn-sy-ghost {
  background: transparent;
  color: #fff;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 10px;
  padding: 12px 30px;
  transition: all .2s ease;
}
.btn-sy-ghost:hover { border-color: var(--sy-yellow); color: var(--sy-yellow); }

.btn-sy-outline {
  background: transparent;
  color: var(--sy-ink);
  font-weight: 700;
  border: 2px solid var(--sy-ink);
  border-radius: 10px;
  padding: 10px 26px;
  transition: all .2s ease;
}
.btn-sy-outline:hover { background: var(--sy-ink); color: var(--sy-yellow); }

/* ---------- 导航 ---------- */
.sy-nav {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sy-line);
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: box-shadow .25s ease;
}
.sy-nav.scrolled { box-shadow: 0 6px 24px rgba(47,43,39,.10); }
.sy-nav .navbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--sy-ink); }
.sy-nav .navbar-brand img { height: 34px; width: 34px; object-fit: contain; }
.sy-nav .brand-en { font-size: 12px; font-weight: 500; color: var(--sy-ink-3); letter-spacing: 1px; display: block; line-height: 1; }
.sy-nav .nav-link { color: var(--sy-ink-2); font-weight: 600; font-size: 16px; padding: 10px 16px !important; position: relative; }
.sy-nav .nav-link:hover { color: var(--sy-ink); }
.sy-nav .nav-link.active { color: var(--sy-ink); }
.sy-nav .nav-link.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 3px; background: var(--sy-yellow); border-radius: 2px;
}
.sy-nav-phone { font-weight: 800; color: var(--sy-ink); white-space: nowrap; }
.sy-nav-phone svg { vertical-align: -2px; margin-right: 4px; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: var(--sy-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 130px 0 140px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 46%, rgba(255,213,0,.07) 46%, rgba(255,213,0,.07) 54%, transparent 54%),
    linear-gradient(45deg, transparent 46%, rgba(255,213,0,.05) 46%, rgba(255,213,0,.05) 54%, transparent 54%);
  background-size: 220px 220px;
  pointer-events: none;
}
.hero h1 { font-size: 54px; font-weight: 800; line-height: 1.22; }
.hero h1 .hl { color: var(--sy-yellow); }
.hero .lead { color: rgba(255,255,255,.72); font-size: 20px; margin: 24px 0 38px; max-width: 680px; }
.hero-stats { display: flex; gap: 52px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .num { font-size: 38px; font-weight: 800; color: var(--sy-yellow); }
.hero-stats .lab { color: rgba(255,255,255,.65); font-size: 15px; margin-top: 2px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); border-radius: 999px; padding: 6px 16px; font-size: 14px; margin-bottom: 26px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sy-yellow); }

/* ---------- 卡片 ---------- */
.sy-card {
  background: #fff;
  border: 1px solid var(--sy-line);
  border-radius: var(--sy-radius);
  padding: 30px;
  height: 100%;
  transition: all .25s ease;
  position: relative;
}
.sy-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(47,43,39,.10); border-color: var(--sy-yellow); }

.sy-card .ic {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--sy-yellow-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sy-card h3 { font-size: 20px; font-weight: 700; }
.sy-card p { color: var(--sy-ink-3); font-size: 15.5px; line-height: 1.75; margin-bottom: 0; }
.sy-card .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--sy-ink); }
.sy-card .more span { border-bottom: 3px solid var(--sy-yellow); padding-bottom: 2px; }

/* ---------- 案例封面（CSS 生成的品牌色块封面，无图片依赖） ---------- */
.case-cover {
  border-radius: var(--sy-radius);
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
}
.case-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 46%, rgba(255,255,255,.10) 46%, rgba(255,255,255,.10) 54%, transparent 54%);
  background-size: 140px 140px;
}
.case-cover .tag-ind {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.92); color: var(--sy-ink);
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.case-cover .nm { font-size: 20px; font-weight: 800; position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.cover-c1 { background: linear-gradient(135deg, #2F2B27, #57503F); }
.cover-c2 { background: linear-gradient(135deg, #B8941A, #E8C100); }
.cover-c3 { background: linear-gradient(135deg, #3E4A3D, #6B7F5E); }
.cover-c4 { background: linear-gradient(135deg, #4A3B32, #8A6A52); }
.cover-c5 { background: linear-gradient(135deg, #33393F, #5B7183); }

/* ---------- 列表页 ---------- */
.page-head {
  background: var(--sy-ink);
  color: #fff;
  padding: 66px 0;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent 46%, rgba(255,213,0,.06) 46%, rgba(255,213,0,.06) 54%, transparent 54%);
  background-size: 200px 200px;
}
.page-head h1 { font-size: 36px; font-weight: 800; position: relative; }
.page-head .sub { color: rgba(255,255,255,.7); margin-top: 10px; position: relative; }
.breadcrumb-sy { font-size: 14.5px; color: rgba(255,255,255,.6); position: relative; margin-bottom: 14px; }
.breadcrumb-sy a { color: rgba(255,255,255,.6); }
.breadcrumb-sy a:hover { color: var(--sy-yellow); }
.breadcrumb-sy .sep { margin: 0 8px; opacity: .5; }

/* 新闻列表 */
.news-item {
  display: flex; gap: 26px; align-items: baseline;
  padding: 26px 6px;
  border-bottom: 1px solid var(--sy-line);
  transition: background .2s ease;
}
.news-item:hover { background: var(--sy-bg-soft); }
.news-item .d {
  flex: 0 0 118px;
  font-weight: 800; font-size: 16px; color: var(--sy-ink-3);
  font-variant-numeric: tabular-nums;
}
.news-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.news-item:hover h3 { text-decoration: underline; text-decoration-color: var(--sy-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.news-item p { color: var(--sy-ink-3); font-size: 15px; margin: 0; }
.cat-chip { display: inline-block; font-size: 13px; font-weight: 700; background: var(--sy-yellow-soft); color: var(--sy-ink); border-radius: 4px; padding: 2px 10px; margin-bottom: 8px; }

/* 详情正文 */
.article { max-width: 820px; margin: 0 auto; }
.article h2 { font-size: 24px; font-weight: 800; margin: 40px 0 16px; padding-left: 14px; border-left: 6px solid var(--sy-yellow); }
.article p { color: var(--sy-ink-2); line-height: 1.9; font-size: 17px; }
.article ul { color: var(--sy-ink-2); line-height: 1.9; }
.article ul li { margin-bottom: 6px; }
.article ul li::marker { color: var(--sy-yellow-deep); }

.meta-bar { color: var(--sy-ink-3); font-size: 15px; display: flex; gap: 18px; align-items: center; }
.meta-bar .cat-chip { margin: 0; }

/* 标签 */
.tag-chip {
  display: inline-block; font-size: 14px; font-weight: 600;
  border: 1px solid var(--sy-line); border-radius: 999px;
  padding: 4px 14px; margin: 0 8px 8px 0; color: var(--sy-ink-2);
  background: #fff;
}

/* ---------- FAQ ---------- */
.accordion-sy .accordion-item { border: 1px solid var(--sy-line); border-radius: 12px !important; margin-bottom: 12px; overflow: hidden; }
.accordion-sy .accordion-button { font-weight: 700; color: var(--sy-ink); background: #fff; font-size: 17px; }
.accordion-sy .accordion-button:not(.collapsed) { background: var(--sy-yellow-soft); color: var(--sy-ink); box-shadow: none; }
.accordion-sy .accordion-button:focus { box-shadow: none; border-color: var(--sy-yellow); }
.accordion-sy .accordion-body { color: var(--sy-ink-3); line-height: 1.85; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--sy-ink);
  color: #fff;
  border-radius: 20px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 46%, rgba(255,213,0,.08) 46%, rgba(255,213,0,.08) 54%, transparent 54%);
  background-size: 180px 180px;
}
.cta-band h2 { font-weight: 800; font-size: 30px; position: relative; }
.cta-band p { color: rgba(255,255,255,.7); position: relative; margin-bottom: 0; }
.cta-band .cta-actions { position: relative; }
.cta-phone-lg { font-size: 26px; font-weight: 800; color: var(--sy-yellow); display: block; margin-top: 8px; }

/* ---------- 关于我们 ---------- */
.milestone { position: relative; padding-left: 34px; padding-bottom: 30px; border-left: 2px solid var(--sy-line); }
.milestone:last-child { padding-bottom: 0; }
.milestone::before {
  content: ""; position: absolute; left: -9px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sy-yellow); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--sy-line);
}
.milestone .yr { font-weight: 800; font-size: 19px; }
.milestone p { color: var(--sy-ink-3); margin: 4px 0 0; font-size: 15.5px; }

/* ---------- 联系 ---------- */
.contact-card { text-align: center; padding: 40px 24px; }
.contact-card .ic { margin: 0 auto 16px; }
.contact-card .big { font-size: 22px; font-weight: 800; margin-top: 4px; }
.contact-card .sub { color: var(--sy-ink-3); font-size: 15px; }

/* ---------- 页脚 ---------- */
.sy-footer { background: var(--sy-ink); color: rgba(255,255,255,.68); padding: 64px 0 0; margin-top: 0; font-size: 15px; }
.sy-footer .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sy-footer .brand img { height: 38px; width: 38px; background: var(--sy-yellow); border-radius: 8px; padding: 3px; }
.sy-footer .brand b { color: #fff; font-size: 17px; }
.sy-footer h5 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.sy-footer a { display: block; color: rgba(255,255,255,.68); padding: 4px 0; }
.sy-footer a:hover { color: var(--sy-yellow); }
.sy-footer .contact-line { padding: 4px 0; }
.sy-footer .contact-line b { color: #fff; }
.sy-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding: 20px 0; font-size: 14px; color: rgba(255,255,255,.62); }
.sy-footer-bottom a { display: inline; color: rgba(255,255,255,.62); }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
  .hero { padding: 76px 0 84px; }
  .hero h1 { font-size: 32px; }
  .hero-badge { font-size: 13px; white-space: normal; }
  .section { padding: 60px 0; }
  .section-title { font-size: 26px; }
  .page-head h1 { font-size: 28px; }
  .news-item { flex-direction: column; gap: 4px; }
  .news-item .d { flex: none; }
  .cta-band { padding: 40px 26px; }
  .hero-stats { gap: 28px; }
  .slogan-band .slg { font-size: 24px; }
  .local-block { padding: 36px 26px; }
}

/* ============================================================
   动效与视觉增强
   ============================================================ */

/* 滚动进入动效：reveal 标记的元素进入视口时上浮淡入 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* 容器级错峰：子元素按序延迟 */
.reveal-stagger > *:nth-child(1) { transition-delay: .02s; }
.reveal-stagger > *:nth-child(2) { transition-delay: .10s; }
.reveal-stagger > *:nth-child(3) { transition-delay: .18s; }
.reveal-stagger > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger > *:nth-child(5) { transition-delay: .34s; }
.reveal-stagger > *:nth-child(6) { transition-delay: .42s; }
/* 用户偏好减少动效时全部禁用 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 首页 Slogan 横幅（大气深色带） */
.slogan-band {
  background: var(--sy-ink);
  color: #fff;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--sy-yellow);
}
.slogan-band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 46%, rgba(255,213,0,.06) 46%, rgba(255,213,0,.06) 54%, transparent 54%);
  background-size: 260px 260px;
}
.slogan-band .kicker { position: relative; }
.slogan-band .slg {
  font-size: 34px; font-weight: 800; line-height: 1.5;
  position: relative; margin-bottom: 6px;
}
.slogan-band .slg .yl { color: var(--sy-yellow); }
.slogan-band .slg-sub { color: rgba(255,255,255,.6); font-size: 17px; position: relative; }

/* 价值承诺横幅（首页/关于页，深色大气带） */
.promise-band {
  background: var(--sy-ink);
  color: #fff;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--sy-yellow);
}
.promise-band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 46%, rgba(255,213,0,.05) 46%, rgba(255,213,0,.05) 54%, transparent 54%);
  background-size: 280px 280px;
}
.promise-band .kicker { position: relative; }
.promise-title {
  font-size: 36px; font-weight: 800; line-height: 1.5;
  position: relative; margin: 10px 0 14px;
}
.promise-desc {
  color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.9;
  max-width: 720px; margin: 0 auto; position: relative;
}
.promise-cards { margin-top: 44px; position: relative; }
.promise-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 28px 26px;
  height: 100%;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.promise-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,213,0,.45);
  background: rgba(255,255,255,.09);
}
.promise-card h3 {
  font-size: 19px; font-weight: 700; margin-bottom: 12px; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.promise-card h3 .bi { color: var(--sy-yellow); font-size: 22px; }
.promise-card p { color: rgba(255,255,255,.66); font-size: 14.5px; line-height: 1.85; margin: 0; }
@media (max-width: 767px) {
  .promise-band { padding: 64px 0; }
  .promise-title { font-size: 26px; }
}

/* 案例筛选 chips */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-chip {
  border: 1.5px solid var(--sy-line);
  background: #fff; color: var(--sy-ink-2);
  border-radius: 999px; padding: 7px 18px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s ease;
}
.filter-chip:hover { border-color: var(--sy-ink); color: var(--sy-ink); }
.filter-chip.active { background: var(--sy-ink); border-color: var(--sy-ink); color: var(--sy-yellow); }
.filter-label { font-size: 14px; color: var(--sy-ink-3); font-weight: 700; margin-right: 2px; }

/* 案例类型角标（定制开发/二次开发） */
.tag-ctype {
  position: absolute; top: 16px; right: 16px;
  background: rgba(47,43,39,.82); color: var(--sy-yellow);
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}

/* 案例封面悬浮动效 */
.case-cover { transition: transform .3s ease, box-shadow .3s ease; }
a:hover .case-cover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(47,43,39,.18); }

/* 关于我们 - 坐标郑州区块 */
.local-block {
  background: var(--sy-ink); color: #fff;
  border-radius: 20px; padding: 48px 44px;
  position: relative; overflow: hidden;
  border-left: 8px solid var(--sy-yellow);
}
.local-block::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent 46%, rgba(255,213,0,.07) 46%, rgba(255,213,0,.07) 54%, transparent 54%);
  background-size: 200px 200px;
}
.local-block h3 { color: #fff; font-size: 26px; font-weight: 800; position: relative; }
.local-block p { color: rgba(255,255,255,.72); line-height: 1.9; font-size: 17px; margin-bottom: 0; position: relative; }
.local-block .map-pin { color: var(--sy-yellow); margin-right: 10px; }

/* 行业标签墙 */
.ind-chip {
  display: inline-block; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--sy-line); border-radius: 999px;
  padding: 8px 20px; margin: 0 10px 12px 0; color: var(--sy-ink-2);
  background: #fff; transition: all .2s ease;
}
.ind-chip:hover { border-color: var(--sy-yellow-deep); background: var(--sy-yellow-soft); color: var(--sy-ink); }

/* 保障卡片图标 */
.guarantee-num {
  font-size: 26px; font-weight: 800; color: var(--sy-yellow-deep);
  line-height: 1; margin-bottom: 10px;
}

/* 服务对比表（行业常见做法 vs 松蕴的做法） */
.compare-wrap {
  border: 1.5px solid var(--sy-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  overflow-x: auto;
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; vertical-align: top; }
.compare-table thead th { font-size: 15px; letter-spacing: 1px; }
.compare-table thead .c-item { background: var(--sy-bg-soft); color: var(--sy-ink-3); width: 130px; }
.compare-table thead .c-them { background: var(--sy-bg-soft); color: var(--sy-ink-3); }
.compare-table thead .c-us { background: var(--sy-ink); color: var(--sy-yellow); }
.compare-table tbody tr { border-top: 1px solid var(--sy-line); }
.compare-table tbody tr:hover { background: var(--sy-bg-soft); }
.compare-table .c-item { font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.compare-table .c-them { color: var(--sy-ink-3); font-size: 15px; line-height: 1.7; }
.compare-table .c-us { background: rgba(255,213,0,.07); color: var(--sy-ink); font-size: 15px; line-height: 1.7; font-weight: 600; }
.compare-table td i { margin-right: 8px; }
.compare-table .c-them i { color: #C0B9AE; }
.compare-table .c-us i { color: var(--sy-yellow-deep); }

/* 新闻分页 */
.sy-pagination { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 44px; }
.pg-btn {
  display: inline-block; min-width: 46px; text-align: center;
  border: 1.5px solid var(--sy-line); border-radius: 10px;
  padding: 9px 16px; font-size: 15.5px; font-weight: 700; color: var(--sy-ink-2);
  background: #fff; transition: all .2s ease;
}
a.pg-btn:hover { border-color: var(--sy-ink); color: var(--sy-ink); }
.pg-btn.active { background: var(--sy-ink); border-color: var(--sy-ink); color: var(--sy-yellow); }
.pg-btn.disabled { opacity: .38; cursor: not-allowed; }

/* 表单控件统一品牌圆角 */
.form-control {
  border: 1.5px solid var(--sy-line); border-radius: 10px;
  padding: 12px 16px; font-size: 16px; color: var(--sy-ink);
}
.form-control:focus { border-color: var(--sy-yellow-deep); box-shadow: 0 0 0 3px rgba(255,213,0,.18); }
.form-label { font-weight: 700; font-size: 15px; }
