/* 凯薪科技国内站 · 静态站样式 */
:root {
  --green: #4c7a34;
  --green-dark: #2f4a24;
  --orange: #e8913a;
  --cream: #faf8f3;
  --sand: #f0ebe0;
  --ink: #24301f;
  --ink-soft: #5a6355;
  --line: #e5dfd2;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶栏 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: 2px; color: var(--green-dark); }
.brand-sub { font-size: 11px; letter-spacing: 1px; color: var(--ink-soft); }

.main-nav { margin-left: auto; display: flex; gap: 8px; }
.main-nav a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: 1px;
  color: var(--ink-soft); transition: all .2s;
}
.main-nav a:hover { color: var(--green-dark); background: var(--sand); }
.main-nav a.active { color: #fff; background: var(--green); }

.header-phone {
  margin-left: 12px; padding: 8px 18px;
  border: 2px solid var(--orange); border-radius: 999px;
  color: var(--orange); font-weight: 800; font-size: 15px; letter-spacing: 1px;
  white-space: nowrap;
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #eef3e4 0%, #faf8f3 55%, #fdf3e3 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr;
  align-items: center; gap: 48px;
  padding: 72px 0 64px;
}
.hero-kicker {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; letter-spacing: 3px; color: var(--green); font-weight: 700;
}
.hero h1 {
  font-size: 46px; line-height: 1.28; font-weight: 900;
  letter-spacing: 3px; color: var(--green-dark);
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead {
  margin: 20px 0 32px; font-size: 17px; color: var(--ink-soft);
  max-width: 30em;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 800; letter-spacing: 2px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(47,74,36,.15); }
.btn-primary { background: var(--green); color: #fff; }
.btn-ghost { border: 2px solid var(--green); color: var(--green-dark); }
.hero-art img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(47,74,36,.18); }

/* ===== 卖点条 ===== */
.usp { background: var(--green-dark); color: #fff; }
.usp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 34px 0;
}
.usp-item { text-align: center; padding: 0 16px; border-right: 1px solid rgba(255,255,255,.14); }
.usp-item:last-child { border-right: none; }
.usp-item b { display: block; font-size: 19px; letter-spacing: 2px; margin-bottom: 4px; }
.usp-item span { font-size: 13px; color: rgba(255,255,255,.72); letter-spacing: 1px; }

/* ===== 区块通用 ===== */
.section { padding: 72px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-size: 32px; font-weight: 900; letter-spacing: 4px; color: var(--green-dark);
}
.section-head .en {
  margin-top: 6px; font-size: 13px; letter-spacing: 5px;
  color: var(--orange); font-weight: 700; text-transform: uppercase;
}
.section-head p { margin-top: 14px; color: var(--ink-soft); max-width: 40em; margin-left: auto; margin-right: auto; }

/* ===== 产品网格 ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(47,74,36,.12); }
.product-card .ph { aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.product-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .ph img { transform: scale(1.04); }
.product-card .info { padding: 18px 20px 22px; }
.product-card h3 { font-size: 19px; font-weight: 800; letter-spacing: 2px; color: var(--green-dark); }
.product-card p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.product-card .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--sand); color: var(--green-dark); letter-spacing: 1px;
}

/* ===== 关于 ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(47,74,36,.14); }
.about-copy h2 { font-size: 30px; font-weight: 900; letter-spacing: 3px; color: var(--green-dark); }
.about-copy .en { font-size: 12px; letter-spacing: 4px; color: var(--orange); font-weight: 700; }
.about-copy p { margin-top: 18px; color: var(--ink-soft); text-align: justify; }
.about-facts { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { background: var(--sand); border-radius: 10px; padding: 14px 10px; text-align: center; }
.fact b { display: block; font-size: 22px; color: var(--green); font-weight: 900; }
.fact span { font-size: 12px; color: var(--ink-soft); letter-spacing: 1px; }

/* ===== 使用提示 ===== */
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.care-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; text-align: center;
}
.care-item .ico { font-size: 34px; }
.care-item h3 { margin-top: 10px; font-size: 17px; letter-spacing: 2px; color: var(--green-dark); }
.care-item p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* ===== CTA 带 ===== */
.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: #fff; text-align: center; padding: 64px 24px;
}
.cta-band h2 { font-size: 30px; font-weight: 900; letter-spacing: 3px; }
.cta-band p { margin: 14px auto 28px; color: rgba(255,255,255,.85); max-width: 36em; }
.cta-band .btn { background: var(--orange); color: #fff; }
.cta-band .contact-line { margin-top: 22px; font-size: 15px; letter-spacing: 1px; color: rgba(255,255,255,.85); }

/* ===== 页脚 ===== */
.site-footer { background: #1d2a18; color: rgba(255,255,255,.72); padding: 48px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.site-footer li { list-style: none; margin-bottom: 8px; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  text-align: center; font-size: 13px; color: rgba(255,255,255,.45);
}
/* 备案号占位：上线前替换为真实备案号 */
.icp-placeholder { color: var(--orange); }

/* ===== 顶部信息条 ===== */
.topbar { background: var(--green-dark); color: rgba(255,255,255,.85); font-size: 13px; letter-spacing: 1px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar-right { display: flex; gap: 18px; }
.topbar-right a:hover { color: #fff; }

/* ===== 轮播 Banner ===== */
.banner { position: relative; overflow: hidden; background: var(--sand); }
.banner-track { position: relative; }
.banner-slide { display: none; position: relative; }
.banner-slide.is-on { display: block; animation: fadein .5s ease; }
@keyframes fadein { from { opacity: .4; } to { opacity: 1; } }
.banner-slide img { width: 100%; height: auto; }
.banner-link { position: absolute; inset: 0; }
.banner-slide--text img { width: 100%; height: auto; }
.banner-copy {
  position: absolute; top: 50%; left: max(24px, calc((100% - 1120px)/2 + 24px));
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  max-width: 380px;
}
.banner-copy b { font-size: clamp(20px, 3.4vw, 40px); font-weight: 900; letter-spacing: 3px; color: var(--green-dark); text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.banner-copy span { font-size: clamp(13px, 1.6vw, 18px); letter-spacing: 2px; color: var(--ink-soft); }
.banner-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.banner-dots i { width: 26px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.55); cursor: pointer; transition: background .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.banner-dots i.is-on { background: var(--orange); }

/* ===== 服务流程 ===== */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.flow-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.flow-item i {
  font-style: normal; display: inline-block; font-size: 15px; font-weight: 900;
  color: var(--orange); border: 2px solid var(--orange); border-radius: 999px;
  width: 40px; height: 40px; line-height: 37px; text-align: center; letter-spacing: 1px;
}
.flow-item h3 { margin-top: 14px; font-size: 18px; font-weight: 800; letter-spacing: 2px; color: var(--green-dark); }
.flow-item p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* ===== 新闻动态 ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 26px; transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(47,74,36,.12); }
.news-date { font-size: 12px; letter-spacing: 2px; color: var(--orange); font-weight: 700; }
.news-card h3 { margin-top: 10px; font-size: 17px; line-height: 1.5; letter-spacing: 1px; color: var(--green-dark); }
.news-card p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* ===== 底部询盘 ===== */
.cta-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; text-align: left; }
.cta-copy h2 { font-size: 30px; font-weight: 900; letter-spacing: 3px; }
.cta-copy p { margin: 14px 0 18px; color: rgba(255,255,255,.85); max-width: 34em; }
.cta-copy .contact-line { margin-top: 14px; font-size: 15px; letter-spacing: 1px; color: rgba(255,255,255,.85); }
.inquiry-form { display: grid; gap: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 24px; }
.inquiry-form input, .inquiry-form textarea {
  border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: rgba(255,255,255,.92);
  padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink); resize: vertical;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 2px solid var(--orange); }
.inquiry-form .btn { background: var(--orange); color: #fff; border: none; cursor: pointer; }

/* ===== 查看更多 ===== */
.section-more { text-align: center; margin-top: 36px; }

/* ===== 悬浮客服 ===== */
.float-bar { position: fixed; right: 16px; bottom: 18vh; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fb-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 14px; cursor: pointer;
  background: var(--green); color: #fff; border: none; font-family: inherit;
  box-shadow: 0 8px 20px rgba(47,74,36,.28); transition: transform .15s;
}
.fb-item:hover { transform: translateY(-3px); }
.fb-item b { font-size: 13px; letter-spacing: 1px; }
.fb-item span { font-size: 11px; margin-top: 2px; color: rgba(255,255,255,.85); }
.fb-msg { background: var(--orange); }
.fb-top { background: #fff; color: var(--green-dark); border: 1px solid var(--line); }

/* ===== 产品详情页 ===== */
.crumbs { padding: 22px 0 0; font-size: 13px; color: var(--ink-soft); letter-spacing: 1px; }
.crumbs a { color: var(--green); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 28px 0 8px; }
.pd-grid .ph { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(47,74,36,.12); }
.pd-info h1 { font-size: 32px; font-weight: 900; letter-spacing: 3px; color: var(--green-dark); }
.pd-info .sub { margin-top: 8px; font-size: 14px; letter-spacing: 2px; color: var(--orange); font-weight: 700; }
.pd-info .desc { margin-top: 20px; color: var(--ink-soft); text-align: justify; }
.pd-specs { margin-top: 26px; border-top: 1px solid var(--line); }
.pd-specs div { display: flex; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd-specs dt { width: 96px; color: var(--ink-soft); flex-shrink: 0; }
.pd-specs dd { font-weight: 600; }
.pd-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.detail-body { max-width: 820px; margin: 0 auto; padding: 40px 0 20px; }
.detail-body h2 { font-size: 22px; letter-spacing: 2px; color: var(--green-dark); margin: 30px 0 12px; }
.detail-body p { color: var(--ink-soft); text-align: justify; }

/* ===== 列表页工具 ===== */
.filter-note { margin-bottom: 26px; color: var(--ink-soft); font-size: 15px; }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .banner-copy { position: static; transform: none; padding: 20px 24px 26px; max-width: none; background: #fff; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner, .about-grid, .pd-grid, .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .usp-item { border-right: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .care-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 34px; }
  /* 导航改为可横滑的第二行 */
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
  .main-nav { display: flex; order: 3; width: 100%; margin-left: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .main-nav a { white-space: nowrap; flex-shrink: 0; }
  .header-phone { margin-left: auto; }
  .float-bar { right: 12px; bottom: 78px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 26px; }
}

@media (max-width: 560px) {
  .topbar-inner { justify-content: center; }
  .topbar-inner > span:first-child { display: none; }
  .topbar-right { gap: 12px; font-size: 12px; }
  .banner-dots i { width: 18px; }
  .product-grid, .care-grid, .flow-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-item b { font-size: 16px; }
  .hero h1 { font-size: 28px; letter-spacing: 2px; }
  .section-head h2 { font-size: 23px; letter-spacing: 3px; }
  .inquiry-form { padding: 18px; }
  .float-bar {
    flex-direction: row; right: 0; bottom: 0; left: 0; gap: 0;
    border-radius: 0; box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  }
  .fb-item { flex: 1; width: auto; height: 52px; border-radius: 0; box-shadow: none; flex-direction: row; gap: 8px; }
  .fb-item span { display: none; }
}

/* 询盘分流下拉 */
.route-select option { color: #222; background: #fff; }
.route-select:focus { outline: 2px solid var(--green, #3f6f4f); outline-offset: 1px; }

/* ===== 文章页 ===== */
.article { max-width: 860px; margin: 0 auto; }
.article-meta { font-size: 13px; color: #8a8a8a; letter-spacing: 1px; margin-bottom: 10px; }
.article h1 { font-size: 30px; line-height: 1.45; margin-bottom: 24px; letter-spacing: 1px; }
.article h2 { font-size: 22px; margin: 40px 0 14px; color: var(--green-dark, #2e5c40); letter-spacing: 1px; }
.article h3 { font-size: 17px; margin: 26px 0 10px; }
.article p, .article li { line-height: 1.9; font-size: 15.5px; color: #333; }
.article ul { padding-left: 22px; margin-bottom: 14px; }
.article-fig { margin: 26px 0; }
.article-fig img { width: 100%; height: auto; border-radius: 10px; display: block; }
.article-fig figcaption { font-size: 13px; color: #999; text-align: center; margin-top: 8px; }
.article-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 14.5px; }
.article-table th, .article-table td { border: 1px solid #dfe7e1; padding: 10px 12px; text-align: left; line-height: 1.6; }
.article-table th { background: #eef4ef; color: var(--green-dark, #2e5c40); letter-spacing: 1px; }
.article-table td.ok { color: #2e7d4f; font-weight: 700; white-space: nowrap; }
.article-table td.warn { color: #c07a1f; font-weight: 700; white-space: nowrap; }
.article-table td.no { color: #b23c3c; font-weight: 700; white-space: nowrap; }
.article-note { font-size: 13px; color: #999; }
.article-cta { margin-top: 44px; padding: 34px 30px; border-radius: 12px; text-align: center;
  background: linear-gradient(120deg, #eef4ef, #f7f3e9); }
.article-cta .btn { margin: 12px 0; display: inline-block; }
.news-thumb { border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.news-thumb img { width: 100%; height: auto; display: block; }
.care-item a h3, a.care-item { display: block; text-decoration: none; color: inherit; }
@media (max-width: 560px) {
  .article h1 { font-size: 23px; }
  .article h2 { font-size: 19px; }
  .article-table { font-size: 13px; }
  .article-table th, .article-table td { padding: 8px; }
}

/* 详情页相关产品 */
.related-links { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.related-links a { color: var(--green); text-decoration: none; border-bottom: 1px dashed var(--line); padding-bottom: 2px; }
.related-links a:hover { color: var(--orange); border-bottom-color: var(--orange); }
