/* ==========================================================================
   公司建站系统 —— 默认主题样式（浅色 / 响应式）
   本系统由上海创缘网络科技有限公司开发　张天慈　15000261114
   ========================================================================== */

:root {
  --brand: #1a5fd0;
  --brand-dark: #14489c;
  --brand-soft: #eef4ff;
  --text: #1f2430;
  --text-2: #5b6478;
  --text-3: #8d95a6;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(23, 43, 85, .06);
  --shadow-hover: 0 10px 28px rgba(23, 43, 85, .12);
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

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

a { color: inherit; text-decoration: none; transition: color .18s; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; border: 0; }
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hide { display: none !important; }
.muted { color: var(--text-3); }
.center { text-align: center; }

/* ------------------------------------------------------------------ 顶部 */
.cms-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  background: var(--brand-soft); color: var(--text-2);
  font-size: 13px; line-height: 34px;
}
.header-top .wrap { display: flex; justify-content: space-between; gap: 16px; }
.header-top a { color: var(--text-2); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo img { height: 38px; width: auto; }
.logo-name { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), #4b8bf5);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}

.nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 0 16px; line-height: 72px; font-size: 15px;
  color: var(--text); white-space: nowrap;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--brand); }
.nav > li.active > a::after {
  content: ''; display: block; height: 2px; margin-top: -2px;
  background: var(--brand); border-radius: 2px;
}
.nav-sub {
  position: absolute; top: 72px; left: 50%; transform: translateX(-50%);
  min-width: 168px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-hover);
  padding: 6px 0; display: none;
}
.nav > li:hover .nav-sub { display: block; }
.nav-sub a { display: block; padding: 8px 18px; font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: all .18s; background: transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn-lg { height: 46px; padding: 0 30px; font-size: 16px; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ------------------------------------------------------------------ 轮播 */
.banner { position: relative; overflow: hidden; background: var(--brand-soft); }
.banner-slide {
  min-height: 420px; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.banner-slide.slide-1 { background: linear-gradient(120deg, #12325f, #2f6fd0 60%, #63a2f7); }
.banner-slide.slide-2 { background: linear-gradient(120deg, #0f3b57, #1f7a8c 60%, #38b6a8); }
.banner-slide.slide-3 { background: linear-gradient(120deg, #33204f, #6a49b8 60%, #9b7ae0); }
.banner-inner { color: #fff; max-width: 660px; padding: 70px 0; }
.banner-inner h2 { font-size: 38px; color: #fff; margin-bottom: 14px; }
.banner-inner p { font-size: 17px; opacity: .88; margin-bottom: 26px; }
.banner-inner .btn-primary { background: #fff; color: var(--brand); }
.banner-inner .btn-primary:hover { background: #eaf1ff; color: var(--brand-dark); }
.banner-dots { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dots i {
  width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45);
  cursor: pointer; display: block;
}
.banner-dots i.on { background: #fff; }

/* ------------------------------------------------------------------ 区块 */
.section { padding: 64px 0; }
.section.tint { background: var(--bg-2); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 28px; margin-bottom: 10px; }
.section-head p { color: var(--text-3); margin: 0; font-size: 15px; }
.section-head .line {
  width: 44px; height: 3px; border-radius: 2px; background: var(--brand);
  margin: 14px auto 0;
}
.section-head.left { text-align: left; }
.section-head.left .line { margin-left: 0; }
.section-more { text-align: center; margin-top: 34px; }

/* ------------------------------------------------------------------ 卡片 */
.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); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card-cover { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-cover img { transform: scale(1.05); }
.card-cover.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: #b9c2d4; font-size: 13px;
  background: linear-gradient(135deg, #f1f5fc, #e6ecf8);
}
.card-body { padding: 18px; flex: 1 1 auto; display: flex; flex-direction: column; }
.card-title {
  font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-desc {
  color: var(--text-3); font-size: 13px; flex: 1 1 auto; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-3); border-top: 1px dashed var(--line); padding-top: 12px;
}
.card-price { color: #d8382c; font-weight: 700; font-size: 17px; }
.card-price small { font-size: 12px; font-weight: 400; }
.price-old { color: var(--text-3); text-decoration: line-through; font-size: 12px; margin-left: 6px; }
.tag-hot {
  display: inline-block; font-size: 11px; color: #fff; background: #e8453c;
  border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px;
}

/* ------------------------------------------------------------------ 图文列表 */
.news-row {
  display: flex; gap: 20px; padding: 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s;
}
.news-row:hover { box-shadow: var(--shadow-hover); }
.news-row .thumb { width: 220px; flex: 0 0 auto; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; }
.news-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row .main { flex: 1 1 auto; min-width: 0; }
.news-row h3 { font-size: 17px; margin-bottom: 8px; }
.news-row .excerpt {
  color: var(--text-3); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-row .info { margin-top: 12px; font-size: 12px; color: var(--text-3); display: flex; gap: 16px; }
.news-list { display: grid; gap: 16px; }

.news-date {
  width: 62px; text-align: center; flex: 0 0 auto;
  border-right: 1px solid var(--line); padding-right: 16px;
}
.news-date b { display: block; font-size: 24px; color: var(--brand); line-height: 1.1; }
.news-date span { font-size: 12px; color: var(--text-3); }

/* ------------------------------------------------------------------ 面包屑 */
.crumb { padding: 18px 0; font-size: 13px; color: var(--text-3); }
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 6px; }

.page-head { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.page-head + .section { padding-top: 32px; }
.page-head h1 { font-size: 26px; margin: 0; }
.page-head p { color: var(--text-3); margin: 8px 0 0; font-size: 14px; }

/* ------------------------------------------------------------------ 正文 */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.layout.full { grid-template-columns: 1fr; }

.article { background: #fff; }
.article-title { font-size: 25px; margin-bottom: 12px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-3);
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
.article-body { font-size: 15.5px; line-height: 1.95; color: #2b3242; word-break: break-word; }
.article-body img { margin: 16px auto; border-radius: var(--radius-sm); }
.article-body h2 { margin-top: 1.6em; font-size: 20px; }
.article-body h3 { margin-top: 1.4em; font-size: 17px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; }
.article-body th { background: var(--bg-2); }
.article-body blockquote {
  margin: 18px 0; padding: 12px 18px; background: var(--brand-soft);
  border-left: 3px solid var(--brand); color: var(--text-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body pre {
  background: #1f2430; color: #e7ebf3; padding: 16px; border-radius: var(--radius-sm);
  overflow: auto; font-size: 13.5px; line-height: 1.7;
}
.article-body code { background: var(--bg-2); padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.article-body pre code { background: none; padding: 0; }

.article-foot { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager-pn { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pager-pn a, .pager-pn span { color: var(--text-2); }
.pager-pn span { color: var(--text-3); }

/* ------------------------------------------------------------------ 侧栏 */
.side { display: grid; gap: 22px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-box h3 {
  font-size: 15px; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--bg-2); display: flex; align-items: center; gap: 8px;
}
.side-box h3::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }
.side-box .inner { padding: 14px 18px; }
.side-list li { border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a {
  display: block; padding: 9px 0; font-size: 14px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-list a:hover { color: var(--brand); }
.cat-side a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 18px; font-size: 14px; border-left: 3px solid transparent;
}
.cat-side a:hover { background: var(--brand-soft); }
.cat-side a.on { border-left-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ------------------------------------------------------------------ 分页 */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; margin: 40px 0; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-2); background: #fff;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .pg-cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .disabled { color: #c3cad8; background: var(--bg-2); }
.pager .pg-info { border: 0; color: var(--text-3); font-size: 13px; }
.pager .pg-dot { border: 0; color: var(--text-3); }

/* ------------------------------------------------------------------ 商品 */
.product-detail { display: grid; grid-template-columns: 460px 1fr; gap: 36px; align-items: start; }
.gallery { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery-main { aspect-ratio: 1 / 1; background: var(--bg-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); overflow-x: auto; }
.gallery-thumbs img {
  width: 62px; height: 62px; object-fit: cover; border-radius: 6px;
  border: 2px solid transparent; cursor: pointer; flex: 0 0 auto;
}
.gallery-thumbs img.on { border-color: var(--brand); }

.product-info h1 { font-size: 24px; margin-bottom: 10px; }
.product-sub { color: var(--text-3); font-size: 14px; margin-bottom: 18px; }
.price-box {
  background: linear-gradient(120deg, #fff5f3, #fff9f0); border: 1px solid #ffe0d8;
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px;
}
.price-now { font-size: 32px; color: #d8382c; font-weight: 700; line-height: 1.2; }
.price-now small { font-size: 16px; font-weight: 400; }
.price-note { font-size: 13px; color: var(--text-3); margin-top: 6px; }

/* 分级会员价（v1.3.13）：不同会员级别不同价格 */
.mp-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-size: 13px; color: var(--text-2); }
.mp-list .mp-label { color: var(--text-3); }
.mp-list .mp-item { padding: 2px 10px; border-radius: 999px; background: rgba(216, 56, 44, .08); color: #b4302a; }
.mp-list .mp-item b { font-weight: 700; }
/* 商品详情返回商城 / 商品中心（v1.3.13） */
.back-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.back-link:hover { color: var(--brand); }
.meta-list { display: grid; gap: 8px; font-size: 14px; color: var(--text-2); margin-bottom: 22px; }
.meta-list .k { color: var(--text-3); display: inline-block; width: 76px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.spec-table th { background: var(--bg-2); width: 140px; color: var(--text-2); font-weight: 500; }

/* ------------------------------------------------------------------ 表单 */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 7px; }
.form-row label { font-size: 14px; color: var(--text-2); }
.form-row label i { color: #e8453c; font-style: normal; margin-left: 3px; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 13px; font-size: 14px; font-family: inherit; color: var(--text);
  background: #fff; transition: border-color .18s, box-shadow .18s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 95, 208, .12);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.form-tip { font-size: 12.5px; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.form-box.narrow { max-width: 460px; margin: 0 auto; }
.form-box h2 { font-size: 20px; text-align: center; margin-bottom: 6px; }
.form-box .sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.alert {
  border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13.5px; margin-bottom: 6px;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #d3e2ff;
}
.alert-warn { background: #fff8e6; color: #93650b; border-color: #ffe8b0; }
.alert-err { background: #fff1f0; color: #b32b23; border-color: #ffd7d3; }
.alert-ok { background: #eefbf3; color: #14713f; border-color: #c9f0da; }

/* ------------------------------------------------------------------ 会员中心 */
.member-wrap { display: grid; grid-template-columns: 232px 1fr; gap: 32px; align-items: start; }
.member-side {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.member-side .who { padding: 22px 18px; background: linear-gradient(135deg, var(--brand), #4b8bf5); color: #fff; }
.member-side .who .avatar {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
  margin-bottom: 10px; overflow: hidden;
}
.member-side .who .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-side .who b { display: block; font-size: 16px; }
.member-side .who span { font-size: 12.5px; opacity: .85; }
.member-side nav a {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  font-size: 14px; color: var(--text-2); border-left: 3px solid transparent;
}
.member-side nav a:hover { background: var(--bg-2); }
.member-side nav a.on { border-left-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head {
  padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.panel-body { padding: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  background: linear-gradient(160deg, #fff, var(--bg-2));
}
.stat b { display: block; font-size: 24px; color: var(--brand); line-height: 1.3; }
.stat span { font-size: 13px; color: var(--text-3); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { background: var(--bg-2); color: var(--text-2); font-weight: 500; font-size: 13px; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { color: #d8382c; font-weight: 600; }
.table td.num.plus { color: #14713f; }

.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty b { display: block; font-size: 16px; color: var(--text-2); margin-bottom: 6px; }

/* ------------------------------------------------------------------ 页脚 */
.cms-footer { background: #1b2333; color: #9aa4b8; padding: 56px 0 0; margin-top: 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 40px; }
.cms-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.cms-footer a { color: #9aa4b8; }
.cms-footer a:hover { color: #fff; }
.footer-about p { line-height: 1.9; margin-bottom: 12px; }
.footer-links li { margin-bottom: 9px; }
.footer-contact li { margin-bottom: 12px; display: flex; gap: 8px; }
.footer-contact .k { color: #6f7a90; flex: 0 0 46px; }
.footer-bottom {
  border-top: 1px solid #2a3346; padding: 20px 0; font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
}
.footer-bottom .support { color: #6f7a90; }

/* ------------------------------------------------------------------ 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-hover);
  display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 60;
  color: var(--text-2); font-size: 18px;
}
.to-top.show { display: flex; }

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1080px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; justify-content: flex-start;
    padding: 8px 0; display: none; box-shadow: var(--shadow-hover);
  }
  .nav.open { display: flex; }
  .nav > li > a { line-height: 46px; padding: 0 22px; }
  .nav > li.active > a::after { display: none; }
  .nav-sub { position: static; transform: none; display: block; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .nav-sub a { padding-left: 40px; }
  .header-actions .btn-ghost { display: none; }
  .banner-inner h2 { font-size: 26px; }
  .banner-slide { min-height: 320px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .member-wrap { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0; }
  .news-row { flex-direction: column; }
  .news-row .thumb { width: 100%; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-top .wrap { justify-content: center; }
  .header-top .ht-right { display: none; }
  .article-title { font-size: 21px; }
  .price-now { font-size: 26px; }
}

/* @@BLOCKS-CSS-BEGIN@@ 以下样式由 tools/_apply_blocks.py 统一写入，勿手改 */
/* ==========================================================================
   区块（模板 DIY）样式 —— 6 套主题共用，配色一律取自主题变量
   区块 HTML 由 app/Blocks.php 输出，结构固定；主题只调 :root 变量即可适配。
   本系统由上海创缘网络科技有限公司开发　张天慈　15000261114
   ========================================================================== */

.blk { position: relative; padding: 84px 0; }
.blk.is-tint { background: var(--bg-2); }
.blk.is-dark { background: #141a26; color: rgba(255, 255, 255, .84); }
.blk.is-dark h1, .blk.is-dark h2, .blk.is-dark h3, .blk.is-dark h4 { color: #fff; }

/* ------------------------------------------------------------------ 标题组 */
.blk-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.blk-head h2 { font-size: 32px; letter-spacing: -.4px; margin-bottom: 10px; }
.blk-head p { font-size: 15.5px; color: var(--text-2); margin: 0; }
.blk-line {
  width: 46px; height: 4px; border-radius: 4px; margin: 18px auto 0;
  background: linear-gradient(90deg, var(--brand), var(--accent, var(--brand-dark)));
}
.blk.is-dark .blk-head p, .blk.is-dark .blk-line { color: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------------ 通用网格 */
.blk-grid { display: grid; gap: 22px; }
.blk-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.blk-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.blk-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.blk-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.blk-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.blk-more { text-align: center; margin-top: 36px; }
.blk-empty {
  text-align: center; padding: 46px 20px; color: var(--text-3); font-size: 14px;
  border: 1px dashed var(--line); border-radius: var(--radius); background: #fff;
}
.blk-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 120px;
  background: var(--brand-soft); color: var(--brand); opacity: .75;
}
.blk-ph svg { width: 34px; height: 34px; }
.blk-badge {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px solid rgba(0, 0, 0, .04);
}

/* ------------------------------------------------------------------ 首屏轮播 */
.blk.blk-banner { padding: 0; }
.blk-banner.h-normal .banner-slide { min-height: 520px; }
.blk-banner.h-tall .banner-slide { min-height: 620px; }
.blk-banner.h-short .banner-slide { min-height: 400px; }
.blk-banner .banner-slide {
  position: relative; display: flex; align-items: center;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, var(--accent, var(--brand)));
}
.blk-banner .banner-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.blk-banner .banner-slide::after {
  content: ''; position: absolute; inset: 0; background: rgba(8, 14, 26, 0);
}
.blk-banner.ov-dark .banner-slide::after { background: linear-gradient(90deg, rgba(8, 14, 26, .72), rgba(8, 14, 26, .34)); }
.blk-banner.ov-medium .banner-slide::after { background: linear-gradient(90deg, rgba(8, 14, 26, .46), rgba(8, 14, 26, .16)); }
.blk-banner.ov-light .banner-slide::after { background: linear-gradient(90deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .5)); }
.blk-banner .wrap { position: relative; z-index: 2; }
.blk-banner .banner-inner { max-width: 700px; padding: 40px 0; }
.blk-banner .banner-title {
  font-size: 44px; line-height: 1.2; letter-spacing: -.8px; margin: 0 0 16px; color: #fff;
}
.blk-banner .banner-sub { font-size: 17px; line-height: 1.75; margin: 0 0 28px; color: rgba(255, 255, 255, .9); }
.blk-banner.ov-light .banner-title { color: var(--text); }
.blk-banner.ov-light .banner-sub { color: var(--text-2); }
.blk-banner .banner-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.blk-banner .btn-primary { background: #fff; color: var(--brand-dark); }
.blk-banner .btn-primary:hover { background: rgba(255, 255, 255, .86); color: var(--brand-dark); }
.blk-banner.ov-light .btn-primary { background: var(--brand); color: #fff; }
.blk-banner .banner-dots i { background: rgba(255, 255, 255, .45); }
.blk-banner.ov-light .banner-dots i { background: rgba(20, 30, 50, .25); }

/* ------------------------------------------------------------------ 主视觉（图文） */
.blk-hero { padding: 90px 0; overflow: hidden; }
.blk-hero.is-gradient {
  background:
    radial-gradient(760px 360px at 12% 4%, rgba(26, 95, 208, .12), transparent 62%),
    linear-gradient(160deg, var(--brand-soft), #fff 58%, var(--brand-soft));
}
.blk-hero.is-dark { background: #131a26; color: rgba(255, 255, 255, .82); }
.blk-hero.is-dark h1 { color: #fff; }
.blk-hero-inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center; }
.blk-hero-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .78); border: 1px solid var(--line);
  color: var(--brand-dark); font-size: 13px; margin-bottom: 20px;
}
.blk-hero-title { font-size: 42px; line-height: 1.22; letter-spacing: -1px; margin: 0 0 18px; font-weight: 800; }
.blk-hero-sub { font-size: 16.5px; line-height: 1.8; color: var(--text-2); margin: 0 0 24px; }
.blk-hero.is-dark .blk-hero-sub { color: rgba(255, 255, 255, .72); }
.blk-hero-points { display: grid; gap: 10px; margin: 0 0 30px; }
.blk-hero-points li, .blk-about-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; }
.blk-hero-points svg, .blk-about-points svg {
  width: 19px; height: 19px; flex: 0 0 auto; margin-top: 3px; color: var(--brand);
}
.blk-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.blk-hero-media img { width: 100%; border-radius: 18px; box-shadow: 0 26px 60px rgba(19, 38, 74, .16); }
.blk-hero-art { position: relative; height: 340px; }
.blk-hero-art .art-card {
  position: absolute; width: 62%; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 22px; box-shadow: 0 20px 46px rgba(19, 38, 74, .12);
}
.blk-hero-art .art-card svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 10px; }
.blk-hero-art .art-card b { display: block; font-size: 17px; }
.blk-hero-art .art-card span { font-size: 13px; color: var(--text-3); }
.blk-hero-art .art-1 { top: 4%; left: 0; }
.blk-hero-art .art-2 { top: 34%; right: 0; }
.blk-hero-art .art-3 { bottom: 2%; left: 8%; }

/* ------------------------------------------------------------------ 优势卡片 */
.blk-feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: all .22s;
}
.blk-feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent; }
.blk-feature-icon {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  border: 1px solid var(--line); color: var(--brand);
}
.blk-feature-icon svg { width: 27px; height: 27px; }
.blk-feature h3 { font-size: 18px; margin-bottom: 8px; }
.blk-feature p { font-size: 14px; color: var(--text-2); margin: 0; }
.blk-features.is-plain .blk-feature { border: 0; background: transparent; padding: 6px 0; }
.blk-features.is-plain .blk-feature:hover { transform: none; box-shadow: none; }
.blk-features.is-tint .blk-feature { border-color: transparent; box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ 产品 */
.blk-product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: all .22s;
}
.blk-product:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.blk-product-cover { aspect-ratio: 1 / 1; overflow: hidden; background: var(--brand-soft); }
.blk-product-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blk-product:hover .blk-product-cover img { transform: scale(1.06); }
.blk-product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.blk-product-body h3 {
  font-size: 16px; margin-bottom: 6px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blk-product-body p {
  font-size: 13px; color: var(--text-3); margin: 0 0 14px; flex: 1 1 auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blk-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.blk-price { color: var(--brand); font-weight: 700; font-size: 19px; }
.blk-price small { font-size: 13px; margin-right: 1px; }

/* ------------------------------------------------------------------ 新闻 */
.blk-news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.blk-news-row {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; transition: all .22s;
}
.blk-news-row:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.blk-news-thumb {
  flex: 0 0 172px; width: 172px; height: 118px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--brand-soft);
}
.blk-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blk-news-main { min-width: 0; display: flex; flex-direction: column; }
.blk-news-main h3 {
  font-size: 16.5px; margin-bottom: 6px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blk-news-row:hover h3 { color: var(--brand); }
.blk-news-main p {
  font-size: 13.5px; color: var(--text-2); margin: 0 0 10px; flex: 1 1 auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blk-news-info { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.blk-news-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: all .22s;
}
.blk-news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.blk-news-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-soft); }
.blk-news-cover img { width: 100%; height: 100%; object-fit: cover; }
.blk-news-body { padding: 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.blk-news-date { font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.blk-news-body h3 {
  font-size: 16.5px; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blk-news-body p {
  font-size: 13.5px; color: var(--text-2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ------------------------------------------------------------------ 数据统计 */
.blk-stats.is-brand { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 62%, var(--accent, var(--brand))); }
.blk-stats.is-dark { background: #131a26; }
.blk-stats.is-brand, .blk-stats.is-dark { color: #fff; }
.blk-stats.is-light { background: var(--bg-2); }
.blk-stats-title { text-align: center; font-size: 26px; margin-bottom: 34px; }
.blk-stat { text-align: center; padding: 6px 10px; }
.blk-stat b { display: block; font-size: 42px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.blk-stat b em { font-size: 20px; font-style: normal; margin-left: 2px; font-weight: 600; }
.blk-stat span { font-size: 14.5px; opacity: .86; }
.blk-stats.is-light .blk-stat b { color: var(--brand); }
.blk-stats.is-light .blk-stat span { color: var(--text-2); opacity: 1; }

/* ------------------------------------------------------------------ 图文介绍 */
.blk-about-inner { display: grid; grid-template-columns: 1.02fr 1.1fr; gap: 52px; align-items: center; }
.blk-about.img-right .blk-about-media { order: 2; }
.blk-about-media img { width: 100%; border-radius: 18px; box-shadow: 0 24px 56px rgba(19, 38, 74, .13); }
.blk-about-ph {
  aspect-ratio: 4 / 3; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), var(--bg-2)); color: var(--brand); opacity: .8;
}
.blk-about-ph svg { width: 52px; height: 52px; }
.blk-about-text h2 { font-size: 30px; letter-spacing: -.4px; margin-bottom: 10px; }
.blk-about-sub { font-size: 15.5px; color: var(--brand); margin-bottom: 16px; }
.blk-about-points { display: grid; gap: 10px; margin: 20px 0 26px; }
.blk-about-text .btn { margin-top: 4px; }

/* ------------------------------------------------------------------ 客户 */
.blk-client {
  height: 88px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 12px; transition: all .22s;
}
.blk-client:hover { box-shadow: var(--shadow-hover); }
.blk-client img { max-height: 42px; width: auto; filter: grayscale(1); opacity: .7; transition: all .22s; }
.blk-client:hover img { filter: none; opacity: 1; }
.blk-client span { font-size: 15px; font-weight: 600; color: var(--text-2); text-align: center; }

/* ------------------------------------------------------------------ 常见问题 */
.blk-faq-list { max-width: 880px; margin: 0 auto; }
.blk-faq-list.two { max-width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.blk-faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.blk-faq-list.two .blk-faq-item { margin-bottom: 0; }
.blk-faq-item summary {
  list-style: none; cursor: pointer; padding: 17px 52px 17px 20px; position: relative;
  font-size: 16.5px; font-weight: 600; line-height: 1.6;
}
.blk-faq-item summary::-webkit-details-marker { display: none; }
.blk-faq-item summary i {
  position: absolute; right: 20px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
}
.blk-faq-item summary i::before, .blk-faq-item summary i::after {
  content: ''; position: absolute; background: var(--text-3); border-radius: 2px; transition: all .2s;
}
.blk-faq-item summary i::before { left: 0; top: 7px; width: 16px; height: 2px; }
.blk-faq-item summary i::after { left: 7px; top: 0; width: 2px; height: 16px; }
.blk-faq-item[open] summary { color: var(--brand); }
.blk-faq-item[open] summary i::after { transform: scaleY(0); }
.blk-faq-a { padding: 0 20px 18px; font-size: 14.5px; color: var(--text-2); line-height: 1.85; }
.blk-faq-a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ 行动号召 */
.blk-cta { padding: 66px 0; }
.blk-cta.is-gradient { background: linear-gradient(120deg, var(--brand), var(--accent, var(--brand-dark)) 85%); color: #fff; }
.blk-cta.is-brand { background: var(--brand); color: #fff; }
.blk-cta.is-dark { background: #131a26; color: rgba(255, 255, 255, .84); }
.blk-cta.is-light { background: var(--bg-2); }
.blk-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.blk-cta-text { max-width: 640px; }
.blk-cta-text h2 { font-size: 30px; margin-bottom: 10px; letter-spacing: -.4px; }
.blk-cta.is-gradient h2, .blk-cta.is-brand h2, .blk-cta.is-dark h2 { color: #fff; }
.blk-cta-text p { font-size: 15.5px; margin: 0; opacity: .92; }
.blk-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: rgba(255, 255, 255, .88); color: var(--brand-dark); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }
.blk-cta.is-light .btn-ghost-light { border-color: var(--line); color: var(--text-2); }
.blk-cta.is-light .btn-ghost-light:hover { border-color: var(--brand); color: var(--brand); background: transparent; }

/* ------------------------------------------------------------------ 联系方式 */
.blk-contact-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.blk-contact-item .blk-feature-icon { margin: 0 auto 16px; }
.blk-contact-item > span { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.blk-contact-item > b { font-size: 15.5px; line-height: 1.6; display: block; word-break: break-all; }
.blk-contact-item > b a { color: var(--brand); }
.blk-contact-more { text-align: center; margin-top: 32px; }

/* ------------------------------------------------------------------ 自由图文 */
.blk-rich-body { font-size: 15.5px; line-height: 1.9; color: var(--text-2); }
.blk-rich-body.w-narrow { max-width: 820px; margin: 0 auto; }
.blk-rich-body.w-wide { max-width: 100%; }
.blk-rich-body h2, .blk-rich-body h3, .blk-rich-body h4 { color: var(--text); margin-top: 1.4em; }
.blk-rich-body img { border-radius: var(--radius-sm); margin: 14px 0; }
.blk-rich-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.blk-rich-body th, .blk-rich-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.blk-rich-body th { background: var(--bg-2); color: var(--text); }
.blk.is-dark .blk-rich-body { color: rgba(255, 255, 255, .75); }
.blk.is-dark .blk-rich-body h2, .blk.is-dark .blk-rich-body h3 { color: #fff; }

/* ------------------------------------------------------------------ 图片展示 */
.blk-gallery-item {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--brand-soft);
}
.blk-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.blk-gallery-item:hover img { transform: scale(1.07); }
.blk-gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 16px;
  background: linear-gradient(transparent, rgba(8, 14, 26, .78)); color: #fff;
}
.blk-gallery-item figcaption b { display: block; font-size: 15.5px; }
.blk-gallery-item figcaption span { font-size: 13px; opacity: .85; }

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1080px) {
  .blk-hero-inner, .blk-about-inner { grid-template-columns: 1fr; gap: 34px; }
  .blk-about.img-right .blk-about-media { order: 0; }
  .blk-hero-art { height: 300px; }
  .blk-grid.cols-5, .blk-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .blk-news-list { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .blk { padding: 56px 0; }
  .blk-head { margin-bottom: 30px; }
  .blk-head h2 { font-size: 25px; }
  .blk-hero { padding: 62px 0; }
  .blk-hero-title { font-size: 30px; }
  .blk-banner .banner-title { font-size: 30px; }
  .blk-banner.h-normal .banner-slide, .blk-banner.h-tall .banner-slide { min-height: 460px; }
  .blk-grid.cols-3, .blk-grid.cols-4, .blk-grid.cols-5, .blk-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .blk-faq-list.two { grid-template-columns: 1fr; }
  .blk-stat b { font-size: 32px; }
  .blk-cta-text h2 { font-size: 24px; }
  .blk-hero-art { display: none; }
}
@media (max-width: 560px) {
  .blk-grid.cols-2, .blk-grid.cols-3, .blk-grid.cols-4,
  .blk-grid.cols-5, .blk-grid.cols-6 { grid-template-columns: 1fr; }
  .blk-news-row { flex-direction: column; }
  .blk-news-thumb { flex: 0 0 auto; width: 100%; height: 180px; }
  .blk-cta-inner { flex-direction: column; align-items: flex-start; }
}
/* @@BLOCKS-CSS-END@@ */

/* ------------------------------------------------------------------ v1.2.5 移动端紧凑头部
   375px 走查发现：search-mini(130px)+登录按钮(115px)+购物车+菜单按钮在窄屏撑破
   header（scrollWidth 515）。640px 以下隐藏搜索框、收紧间距与按钮。 */
@media (max-width: 640px) {
  .header-inner { gap: 12px; height: 60px; }
  .nav { top: 60px; }
  .header-actions { gap: 8px; flex: 1 1 auto; justify-content: flex-end; }
  .header-actions .search-mini { display: none; }
  .header-actions .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .logo-name { font-size: 16px; }
}
