/* =========================================================
   贝思外贸软件 · 外贸独立站模板引擎样式
   - 10 个布局风格主题 (data-style="...")
   - 6 个行业配色主题 (data-industry="...")
   - 每套模板的 HTML 加载本文件 + JSON,根据属性自动套用
   ========================================================= */

:root {
  --c-text: #0f172a;
  --c-text-2: #475569;
  --c-text-3: #94a3b8;
  --c-bg: #ffffff;
  --c-bg-soft: #f8fafc;
  --c-border: #e2e8f0;
  --c-primary: #2563eb;
  --c-primary-2: #1e40af;
  --c-accent: #f59e0b;
  --c-success: #10b981;
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-md: 0 6px 18px -6px rgba(15,23,42,0.12);
  --shadow-lg: 0 18px 40px -16px rgba(15,23,42,0.18);
  --t-base: 280ms cubic-bezier(.4,0,.2,1);
}

/* ============== 行业配色 ============== */
[data-industry="electronics"] {
  --c-primary: #0891b2;
  --c-primary-2: #155e75;
  --c-accent: #06b6d4;
  --c-tint: #ecfeff;
  --c-deep: #083344;
  --grad: linear-gradient(135deg, #0891b2 0%, #06b6d4 60%, #67e8f9 100%);
}
[data-industry="machine"] {
  --c-primary: #475569;
  --c-primary-2: #1e293b;
  --c-accent: #ea580c;
  --c-tint: #f8fafc;
  --c-deep: #0f172a;
  --grad: linear-gradient(135deg, #1e293b 0%, #475569 60%, #ea580c 100%);
}
[data-industry="textile"] {
  --c-primary: #be123c;
  --c-primary-2: #881337;
  --c-accent: #f59e0b;
  --c-tint: #fef2f2;
  --c-deep: #450a0a;
  --grad: linear-gradient(135deg, #be123c 0%, #f59e0b 100%);
}
[data-industry="furniture"] {
  --c-primary: #78350f;
  --c-primary-2: #451a03;
  --c-accent: #65a30d;
  --c-tint: #fef7ed;
  --c-deep: #1c1917;
  --grad: linear-gradient(135deg, #78350f 0%, #b45309 60%, #d4a574 100%);
}
[data-industry="hardware"] {
  --c-primary: #27272a;
  --c-primary-2: #09090b;
  --c-accent: #facc15;
  --c-tint: #fafafa;
  --c-deep: #18181b;
  --grad: linear-gradient(135deg, #27272a 0%, #52525b 60%, #facc15 100%);
}
[data-industry="chemical"] {
  --c-primary: #0e7490;
  --c-primary-2: #155e75;
  --c-accent: #14b8a6;
  --c-tint: #ecfeff;
  --c-deep: #083344;
  --grad: linear-gradient(135deg, #0e7490 0%, #14b8a6 60%, #a7f3d0 100%);
}

/* ============== Reset ============== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-base); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============== 通用 header / footer ============== */
.tpl-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.tpl-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.tpl-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: 0.02em;
}
.tpl-brand-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 16px;
  box-shadow: var(--shadow-sm);
}
.tpl-nav { display: flex; gap: 28px; align-items: center; }
.tpl-nav a {
  font-size: 14px; font-weight: 500; color: var(--c-text-2);
  position: relative; padding: 4px 0;
}
.tpl-nav a:hover, .tpl-nav a.active { color: var(--c-primary); }
.tpl-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--c-primary); border-radius: 1px;
}
.tpl-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--r-md);
  background: var(--c-primary); color: #fff !important;
  font-size: 14px; font-weight: 600;
  transition: all var(--t-base);
  border: 1px solid transparent;
}
.tpl-cta:hover { background: var(--c-primary-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.tpl-cta.ghost { background: transparent; color: var(--c-primary) !important; border-color: var(--c-primary); }
.tpl-cta.ghost:hover { background: var(--c-primary); color: #fff !important; }

.tpl-footer {
  background: var(--c-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.tpl-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tpl-footer h5 {
  color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.tpl-footer-col p, .tpl-footer-col li { font-size: 13.5px; line-height: 1.9; }
.tpl-footer-col a:hover { color: var(--c-accent); }
.tpl-footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
}
.tpl-footer-bottom a { color: rgba(255,255,255,0.7); }
.tpl-social { display: flex; gap: 12px; }
.tpl-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center;
  transition: all var(--t-base);
}
.tpl-social a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff !important; }
.tpl-social svg { width: 16px; height: 16px; }

/* ============== Section 通用 ============== */
.tpl-section { padding: 90px 0; }
.tpl-section-sm { padding: 60px 0; }
.tpl-section-soft { background: var(--c-tint); }
.tpl-section-dark { background: var(--c-deep); color: #fff; }
.tpl-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.tpl-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 99px;
  background: var(--c-tint); color: var(--c-primary);
  margin-bottom: 16px;
}
.tpl-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; line-height: 1.18; letter-spacing: -0.02em;
}
.tpl-h2 + p { margin-top: 16px; color: var(--c-text-2); font-size: 16px; line-height: 1.7; }
.tpl-section-dark .tpl-eyebrow { background: rgba(255,255,255,0.1); color: var(--c-accent); }
.tpl-section-dark .tpl-h2 + p { color: rgba(255,255,255,0.7); }

/* ============== 表单 ============== */
.tpl-form { display: grid; gap: 16px; }
.tpl-form .field { display: flex; flex-direction: column; gap: 6px; }
.tpl-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tpl-form label { font-size: 13px; font-weight: 600; color: var(--c-text-2); }
.tpl-form input, .tpl-form textarea, .tpl-form select {
  padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: #fff; color: var(--c-text);
  transition: border var(--t-base), box-shadow var(--t-base);
}
.tpl-form input:focus, .tpl-form textarea:focus, .tpl-form select:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 18%, transparent);
}
.tpl-form textarea { min-height: 110px; resize: vertical; }
.tpl-form .submit {
  margin-top: 6px; padding: 14px 28px;
  background: var(--c-primary); color: #fff;
  font-size: 15px; font-weight: 700; border-radius: var(--r-md);
  transition: all var(--t-base);
}
.tpl-form .submit:hover { background: var(--c-primary-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ============== 卡片产品 ============== */
.tpl-prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tpl-prod-card {
  background: #fff; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--c-border);
  transition: all var(--t-base);
}
.tpl-prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--c-primary); }
.tpl-prod-card .img-wrap {
  aspect-ratio: 4/3; background: var(--c-bg-soft);
  display: grid; place-items: center;
  overflow: hidden;
}
.tpl-prod-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.tpl-prod-card:hover .img-wrap img { transform: scale(1.06); }
.tpl-prod-card-body { padding: 18px 22px 22px; }
.tpl-prod-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.tpl-prod-card p { font-size: 13.5px; color: var(--c-text-2); }
.tpl-prod-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tpl-prod-tags span {
  font-size: 11px; padding: 3px 8px; border-radius: 4px;
  background: var(--c-tint); color: var(--c-primary); font-weight: 600;
}

/* =====================================================
   STYLE 01 — classic-split  经典左右分屏 + 大背景渐变
   ===================================================== */
[data-style="classic-split"] .tpl-hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--c-tint) 0%, #fff 100%);
  position: relative; overflow: hidden;
}
[data-style="classic-split"] .tpl-hero::before {
  content: ''; position: absolute; right: -200px; top: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: var(--grad); opacity: 0.08; filter: blur(10px);
}
[data-style="classic-split"] .tpl-hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
[data-style="classic-split"] .tpl-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 20px;
}
[data-style="classic-split"] .tpl-hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-style="classic-split"] .tpl-hero .lead { font-size: 17px; color: var(--c-text-2); margin-bottom: 28px; line-height: 1.75; }
[data-style="classic-split"] .tpl-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
[data-style="classic-split"] .tpl-hero .visual {
  position: relative; aspect-ratio: 5/4;
  border-radius: var(--r-xl);
  background: var(--c-deep);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
[data-style="classic-split"] .tpl-hero .visual img { width: 100%; height: 100%; object-fit: cover; }
[data-style="classic-split"] .tpl-hero .stats {
  display: flex; gap: 32px; margin-top: 40px; padding-top: 30px;
  border-top: 1px solid var(--c-border);
}
[data-style="classic-split"] .tpl-hero .stats div .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px; color: var(--c-primary);
}
[data-style="classic-split"] .tpl-hero .stats div .lab { font-size: 12.5px; color: var(--c-text-2); }

/* =====================================================
   STYLE 02 — centered-hero  居中超大标题 + 背景渐变
   ===================================================== */
[data-style="centered-hero"] .tpl-hero {
  position: relative; padding: 140px 0 110px;
  text-align: center; overflow: hidden;
  background: var(--c-deep); color: #fff;
}
[data-style="centered-hero"] .tpl-hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad); opacity: 0.4;
  mix-blend-mode: screen;
}
[data-style="centered-hero"] .tpl-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--c-deep) 80%);
}
[data-style="centered-hero"] .tpl-hero > * { position: relative; z-index: 1; }
[data-style="centered-hero"] .tpl-hero .eyebrow {
  display: inline-block; padding: 8px 18px; border-radius: 99px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  margin-bottom: 28px;
}
[data-style="centered-hero"] .tpl-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 900; line-height: 1.04; letter-spacing: -0.03em;
  max-width: 1000px; margin: 0 auto;
}
[data-style="centered-hero"] .tpl-hero .lead {
  max-width: 640px; margin: 28px auto 36px;
  font-size: 18px; color: rgba(255,255,255,0.78); line-height: 1.7;
}
[data-style="centered-hero"] .tpl-hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
[data-style="centered-hero"] .tpl-hero .actions .tpl-cta.ghost { color: #fff !important; border-color: rgba(255,255,255,0.4); }
[data-style="centered-hero"] .tpl-hero .partners {
  margin-top: 80px; display: flex; gap: 40px; justify-content: center;
  flex-wrap: wrap; opacity: 0.6;
}
[data-style="centered-hero"] .tpl-hero .partners span {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =====================================================
   STYLE 03 — magazine-grid  杂志风网格
   ===================================================== */
[data-style="magazine-grid"] .tpl-hero {
  padding: 50px 0;
  background: var(--c-tint);
}
[data-style="magazine-grid"] .tpl-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px 200px;
  gap: 16px;
}
[data-style="magazine-grid"] .mg-item {
  border-radius: var(--r-md); overflow: hidden;
  position: relative; background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base);
}
[data-style="magazine-grid"] .mg-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
[data-style="magazine-grid"] .mg-item img { width: 100%; height: 100%; object-fit: cover; }
[data-style="magazine-grid"] .mg-item.feature {
  grid-column: 1 / 3; grid-row: 1 / 3;
  background: var(--c-deep); color: #fff;
  padding: 36px; display: flex; flex-direction: column; justify-content: space-between;
}
[data-style="magazine-grid"] .mg-item.feature::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad); opacity: 0.6; z-index: 0;
}
[data-style="magazine-grid"] .mg-item.feature > * { position: relative; z-index: 1; }
[data-style="magazine-grid"] .mg-item.feature h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 900; line-height: 1.08;
}
[data-style="magazine-grid"] .mg-item.feature p { font-size: 14.5px; color: rgba(255,255,255,0.85); margin-top: 12px; }
[data-style="magazine-grid"] .mg-item.feature .tpl-cta { align-self: flex-start; }
[data-style="magazine-grid"] .mg-item.wide { grid-column: 3 / 5; grid-row: 1; }
[data-style="magazine-grid"] .mg-item.tall { grid-column: 3; grid-row: 2 / 4; }
[data-style="magazine-grid"] .mg-item.text {
  padding: 24px; background: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
[data-style="magazine-grid"] .mg-item.text h3 { font-size: 18px; margin-bottom: 6px; }
[data-style="magazine-grid"] .mg-item.text p { font-size: 13px; color: var(--c-text-2); }

/* =====================================================
   STYLE 04 — dark-tech  深色科技
   ===================================================== */
[data-style="dark-tech"] {
  background: #050b18;
}
[data-style="dark-tech"] body { background: #050b18; color: #e2e8f0; }
[data-style="dark-tech"] .tpl-header { background: rgba(5,11,24,0.92); border-bottom-color: rgba(255,255,255,0.06); }
[data-style="dark-tech"] .tpl-nav a { color: rgba(255,255,255,0.7); }
[data-style="dark-tech"] .tpl-hero {
  padding: 120px 0 100px;
  background: radial-gradient(ellipse at top, rgba(8,145,178,0.18), transparent 60%);
  position: relative; overflow: hidden;
}
[data-style="dark-tech"] .tpl-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent);
}
[data-style="dark-tech"] .tpl-hero-inner { position: relative; z-index: 1; text-align: center; }
[data-style="dark-tech"] .tpl-hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 99px;
  background: rgba(8,145,178,0.15);
  border: 1px solid rgba(8,145,178,0.4);
  font-size: 13px; letter-spacing: 0.06em;
  color: #67e8f9; margin-bottom: 28px;
}
[data-style="dark-tech"] .tpl-hero .tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #06b6d4; box-shadow: 0 0 12px #06b6d4;
}
[data-style="dark-tech"] .tpl-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.025em;
  color: #fff;
}
[data-style="dark-tech"] .tpl-hero h1 .grad {
  background: linear-gradient(90deg, #06b6d4, #67e8f9, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-style="dark-tech"] .tpl-hero .lead {
  max-width: 600px; margin: 24px auto 36px;
  font-size: 17px; color: rgba(255,255,255,0.7);
}
[data-style="dark-tech"] .tpl-hero .actions { display: flex; gap: 14px; justify-content: center; }
[data-style="dark-tech"] .tpl-cta { background: var(--c-accent); color: #050b18 !important; }
[data-style="dark-tech"] .tpl-cta:hover { background: #67e8f9; }
[data-style="dark-tech"] .tpl-cta.ghost { background: transparent; color: rgba(255,255,255,0.9) !important; border-color: rgba(255,255,255,0.3); }
[data-style="dark-tech"] .tpl-section { background: #050b18; }
[data-style="dark-tech"] .tpl-section-soft { background: #0a1628; }
[data-style="dark-tech"] .tpl-h2 { color: #fff; }
[data-style="dark-tech"] .tpl-h2 + p { color: rgba(255,255,255,0.7); }
[data-style="dark-tech"] .tpl-prod-card { background: #0a1628; border-color: rgba(255,255,255,0.08); }
[data-style="dark-tech"] .tpl-prod-card h4 { color: #fff; }
[data-style="dark-tech"] .tpl-prod-card p { color: rgba(255,255,255,0.6); }
[data-style="dark-tech"] .tpl-prod-card .img-wrap { background: #050b18; }
[data-style="dark-tech"] .tpl-prod-tags span { background: rgba(8,145,178,0.18); color: #67e8f9; }
[data-style="dark-tech"] .tpl-eyebrow { background: rgba(8,145,178,0.18); color: #67e8f9; }
[data-style="dark-tech"] .tpl-form input, [data-style="dark-tech"] .tpl-form textarea {
  background: #0a1628; border-color: rgba(255,255,255,0.12); color: #fff;
}
[data-style="dark-tech"] .tpl-footer { background: #020617; }

/* =====================================================
   STYLE 05 — soft-pastel  柔和马卡龙
   ===================================================== */
[data-style="soft-pastel"] .tpl-hero {
  padding: 90px 0 80px;
  background: linear-gradient(180deg, #fff 0%, var(--c-tint) 100%);
  position: relative;
}
[data-style="soft-pastel"] .tpl-hero::before {
  content: ''; position: absolute; left: 8%; top: 25%;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--c-accent); opacity: 0.14; filter: blur(40px);
}
[data-style="soft-pastel"] .tpl-hero::after {
  content: ''; position: absolute; right: 12%; bottom: 15%;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--c-primary); opacity: 0.12; filter: blur(40px);
}
[data-style="soft-pastel"] .tpl-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
[data-style="soft-pastel"] .tpl-hero h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-style: italic;
}
[data-style="soft-pastel"] .tpl-hero h1 em { color: var(--c-primary); font-style: italic; }
[data-style="soft-pastel"] .tpl-hero .lead {
  font-size: 17px; color: var(--c-text-2);
  margin: 24px 0 32px; line-height: 1.8; max-width: 480px;
}
[data-style="soft-pastel"] .tpl-hero .visual {
  position: relative; aspect-ratio: 1; max-width: 480px; margin-left: auto;
}
[data-style="soft-pastel"] .tpl-hero .visual .blob {
  position: absolute; inset: 0;
  background: var(--grad);
  border-radius: 46% 54% 60% 40% / 50% 60% 40% 50%;
  animation: morph 12s ease-in-out infinite alternate;
}
@keyframes morph {
  0% { border-radius: 46% 54% 60% 40% / 50% 60% 40% 50%; }
  100% { border-radius: 60% 40% 50% 50% / 40% 50% 50% 60%; }
}
[data-style="soft-pastel"] .tpl-hero .visual img {
  position: absolute; inset: 8%;
  width: 84%; height: 84%; object-fit: cover;
  border-radius: 24% 76% 60% 40% / 50% 60% 40% 50%;
  box-shadow: var(--shadow-lg);
}

/* =====================================================
   STYLE 06 — bold-mono  大字单色排版
   ===================================================== */
[data-style="bold-mono"] .tpl-hero {
  padding: 110px 0 90px;
  border-bottom: 4px solid var(--c-deep);
}
[data-style="bold-mono"] .tpl-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 144px);
  font-weight: 900; line-height: 0.9; letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--c-deep);
}
[data-style="bold-mono"] .tpl-hero h1 .out {
  -webkit-text-stroke: 2px var(--c-deep);
  color: transparent;
}
[data-style="bold-mono"] .tpl-hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-style="bold-mono"] .tpl-hero .meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-top: 60px; padding-top: 40px;
  border-top: 1px solid var(--c-border);
}
[data-style="bold-mono"] .tpl-hero .meta h4 {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-text-3); margin-bottom: 12px;
}
[data-style="bold-mono"] .tpl-hero .meta p { font-size: 16px; line-height: 1.6; }
[data-style="bold-mono"] .tpl-hero .meta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =====================================================
   STYLE 07 — minimal-line  极简线条
   ===================================================== */
[data-style="minimal-line"] .tpl-header { border-bottom-width: 2px; border-bottom-color: var(--c-deep); }
[data-style="minimal-line"] .tpl-hero { padding: 100px 0 80px; position: relative; }
[data-style="minimal-line"] .tpl-hero-inner { max-width: 920px; margin: 0 auto; text-align: center; }
[data-style="minimal-line"] .tpl-hero .ln {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 32px;
}
[data-style="minimal-line"] .tpl-hero .ln::before, [data-style="minimal-line"] .tpl-hero .ln::after {
  content: ''; height: 1px; width: 50px; background: var(--c-deep);
}
[data-style="minimal-line"] .tpl-hero .ln span {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  font-weight: 600; color: var(--c-deep);
}
[data-style="minimal-line"] .tpl-hero h1 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.01em;
}
[data-style="minimal-line"] .tpl-hero h1 em {
  font-style: italic; color: var(--c-primary);
}
[data-style="minimal-line"] .tpl-hero .lead {
  font-size: 16px; color: var(--c-text-2);
  max-width: 600px; margin: 28px auto 36px; line-height: 1.85;
}
[data-style="minimal-line"] .tpl-hero .actions { display: flex; gap: 14px; justify-content: center; }
[data-style="minimal-line"] .tpl-cta {
  border-radius: 0; padding: 14px 32px;
  background: var(--c-deep); border: 1px solid var(--c-deep);
}
[data-style="minimal-line"] .tpl-cta:hover { background: transparent; color: var(--c-deep) !important; }
[data-style="minimal-line"] .tpl-cta.ghost { background: transparent; color: var(--c-deep) !important; border-color: var(--c-deep); }
[data-style="minimal-line"] .tpl-cta.ghost:hover { background: var(--c-deep); color: #fff !important; }
[data-style="minimal-line"] .tpl-prod-card { border-radius: 0; }
[data-style="minimal-line"] .tpl-prod-card .img-wrap { border-radius: 0; }

/* =====================================================
   STYLE 08 — card-stack  卡片堆叠
   ===================================================== */
[data-style="card-stack"] .tpl-hero {
  padding: 80px 0; background: var(--c-bg-soft);
  position: relative;
}
[data-style="card-stack"] .tpl-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
[data-style="card-stack"] .tpl-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800; line-height: 1.08;
}
[data-style="card-stack"] .tpl-hero .lead { font-size: 16.5px; color: var(--c-text-2); margin: 22px 0 30px; }
[data-style="card-stack"] .tpl-hero .stack { position: relative; height: 460px; }
[data-style="card-stack"] .tpl-hero .stack .card {
  position: absolute; inset: 0;
  background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--t-base);
}
[data-style="card-stack"] .tpl-hero .stack .card img { width: 100%; height: 100%; object-fit: cover; }
[data-style="card-stack"] .tpl-hero .stack .card:nth-child(1) {
  transform: rotate(-6deg) translate(-24px, 14px); z-index: 1;
}
[data-style="card-stack"] .tpl-hero .stack .card:nth-child(2) {
  transform: rotate(3deg) translate(20px, -10px); z-index: 2;
}
[data-style="card-stack"] .tpl-hero .stack .card:nth-child(3) {
  transform: rotate(-1deg); z-index: 3;
  border: 4px solid var(--c-accent);
}
[data-style="card-stack"] .tpl-hero .stack:hover .card:nth-child(1) { transform: rotate(-9deg) translate(-44px, 24px); }
[data-style="card-stack"] .tpl-hero .stack:hover .card:nth-child(2) { transform: rotate(6deg) translate(40px, -20px); }

/* =====================================================
   STYLE 09 — asymmetric-art  不对称艺术
   ===================================================== */
[data-style="asymmetric-art"] .tpl-hero {
  padding: 60px 0 100px; position: relative; overflow: hidden;
}
[data-style="asymmetric-art"] .tpl-hero::before {
  content: ''; position: absolute; right: -8%; top: 12%;
  width: 56vw; height: 90%;
  background: var(--c-deep);
  border-radius: 0 0 0 200px;
}
[data-style="asymmetric-art"] .tpl-hero::after {
  content: ''; position: absolute; right: 5%; top: 18%;
  width: 12vw; height: 12vw; max-width: 180px; max-height: 180px;
  border-radius: 50%;
  background: var(--c-accent);
  z-index: 1;
}
[data-style="asymmetric-art"] .tpl-hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 2;
}
[data-style="asymmetric-art"] .tpl-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.02em;
}
[data-style="asymmetric-art"] .tpl-hero h1 mark {
  background: var(--c-accent); padding: 0 8px; color: #000;
  font-style: normal; border-radius: 4px;
}
[data-style="asymmetric-art"] .tpl-hero .lead { font-size: 16.5px; color: var(--c-text-2); margin: 24px 0 32px; max-width: 480px; }
[data-style="asymmetric-art"] .tpl-hero .visual {
  position: relative; aspect-ratio: 3/4;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
}
[data-style="asymmetric-art"] .tpl-hero .visual img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================
   STYLE 10 — luxury-serif  奢华衬线
   ===================================================== */
[data-style="luxury-serif"] body { font-family: 'Georgia', 'Times New Roman', serif; }
[data-style="luxury-serif"] .tpl-header { background: #fff; border-bottom-color: var(--c-deep); }
[data-style="luxury-serif"] .tpl-brand-mark { border-radius: 0; }
[data-style="luxury-serif"] .tpl-hero {
  padding: 80px 0 0;
  background: var(--c-tint);
}
[data-style="luxury-serif"] .tpl-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end;
}
[data-style="luxury-serif"] .tpl-hero .text { padding-bottom: 80px; }
[data-style="luxury-serif"] .tpl-hero .eyebrow {
  font-family: 'Georgia', serif; font-style: italic;
  font-size: 18px; color: var(--c-primary);
  margin-bottom: 16px;
}
[data-style="luxury-serif"] .tpl-hero h1 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.01em;
}
[data-style="luxury-serif"] .tpl-hero h1 em { font-style: italic; color: var(--c-primary); }
[data-style="luxury-serif"] .tpl-hero .lead {
  font-size: 17px; color: var(--c-text-2); margin: 24px 0 36px;
  line-height: 1.8; max-width: 480px;
}
[data-style="luxury-serif"] .tpl-hero .visual {
  aspect-ratio: 3/4; overflow: hidden;
  border-radius: 200px 200px 0 0;
  background: var(--c-deep);
}
[data-style="luxury-serif"] .tpl-hero .visual img { width: 100%; height: 100%; object-fit: cover; }
[data-style="luxury-serif"] .tpl-cta { border-radius: 0; padding: 14px 32px; font-family: 'Georgia', serif; letter-spacing: 0.06em; }
[data-style="luxury-serif"] .tpl-h2 { font-family: 'Playfair Display', 'Georgia', serif; font-weight: 400; }
[data-style="luxury-serif"] .tpl-prod-card { border-radius: 0; border-color: var(--c-deep); }
[data-style="luxury-serif"] .tpl-prod-card .img-wrap { border-radius: 0; }
[data-style="luxury-serif"] .tpl-prod-card h4 { font-family: 'Playfair Display', 'Georgia', serif; }

/* =====================================================
   响应式
   ===================================================== */
@media (max-width: 1024px) {
  .tpl-hero-inner,
  [data-style="classic-split"] .tpl-hero-inner,
  [data-style="soft-pastel"] .tpl-hero-inner,
  [data-style="card-stack"] .tpl-hero-inner,
  [data-style="asymmetric-art"] .tpl-hero-inner,
  [data-style="luxury-serif"] .tpl-hero-inner {
    grid-template-columns: 1fr; gap: 40px;
  }
  .tpl-prod-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  [data-style="magazine-grid"] .tpl-hero-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  [data-style="magazine-grid"] .mg-item.feature { grid-column: 1 / 3; grid-row: auto; min-height: 320px; }
  [data-style="magazine-grid"] .mg-item.wide, [data-style="magazine-grid"] .mg-item.tall { grid-column: auto; grid-row: auto; min-height: 180px; }
}
@media (max-width: 720px) {
  .tpl-nav { display: none; }
  .tpl-section { padding: 60px 0; }
  .tpl-prod-grid { grid-template-columns: 1fr; }
  .tpl-footer-grid { grid-template-columns: 1fr; }
  .tpl-form .field-row { grid-template-columns: 1fr; }
}

/* 章节通用排版 */
.tpl-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tpl-feature-card {
  padding: 32px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--c-border);
  transition: all var(--t-base);
}
.tpl-feature-card:hover { transform: translateY(-4px); border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.tpl-feature-card .icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--c-tint); color: var(--c-primary);
  display: grid; place-items: center; margin-bottom: 18px;
}
.tpl-feature-card .icon svg { width: 22px; height: 22px; }
.tpl-feature-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.tpl-feature-card p { font-size: 14px; color: var(--c-text-2); line-height: 1.65; }

.tpl-cta-band {
  background: var(--grad); color: #fff;
  padding: 70px 0; text-align: center;
}
.tpl-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800; margin-bottom: 14px;
}
.tpl-cta-band p { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.tpl-cta-band .tpl-cta { background: #fff; color: var(--c-primary) !important; }
.tpl-cta-band .tpl-cta:hover { background: var(--c-deep); color: #fff !important; }

/* About / Contact 页面 */
.tpl-about-hero {
  padding: 80px 0; background: var(--c-tint);
  text-align: center;
}
.tpl-about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; margin-bottom: 16px;
}
.tpl-about-hero p { font-size: 17px; color: var(--c-text-2); max-width: 700px; margin: 0 auto; }

.tpl-timeline { display: grid; gap: 32px; max-width: 720px; margin: 0 auto; }
.tpl-timeline-item {
  display: grid; grid-template-columns: 100px 1fr; gap: 28px;
  position: relative; padding-left: 12px;
}
.tpl-timeline-item::before {
  content: ''; position: absolute; left: 100px; top: 8px; bottom: -32px;
  width: 2px; background: var(--c-border);
}
.tpl-timeline-item:last-child::before { display: none; }
.tpl-timeline-item::after {
  content: ''; position: absolute; left: 96px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-primary); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--c-primary);
}
.tpl-timeline-year { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--c-primary); }
.tpl-timeline-body h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.tpl-timeline-body p { font-size: 14.5px; color: var(--c-text-2); line-height: 1.7; }

.tpl-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tpl-team-card { text-align: center; }
.tpl-team-card .avatar {
  width: 120px; height: 120px; margin: 0 auto 14px;
  border-radius: 50%; overflow: hidden;
  background: var(--c-tint);
}
.tpl-team-card h5 { font-size: 16px; font-weight: 700; }
.tpl-team-card p { font-size: 13px; color: var(--c-text-2); }
@media (max-width: 720px) {
  .tpl-team-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-feature-grid { grid-template-columns: 1fr; }
}

.tpl-contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
}
.tpl-contact-info {
  background: var(--c-deep); color: #fff;
  padding: 50px 40px; border-radius: var(--r-xl);
}
.tpl-contact-info h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.tpl-contact-info .row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.tpl-contact-info .row svg { width: 22px; height: 22px; color: var(--c-accent); flex-shrink: 0; margin-top: 2px; }
.tpl-contact-info .row h6 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.tpl-contact-info .row p { font-size: 14.5px; color: rgba(255,255,255,0.9); }
@media (max-width: 720px) {
  .tpl-contact-grid { grid-template-columns: 1fr; }
}

/* 通用 banner / breadcrumb */
.tpl-banner {
  padding: 60px 0; background: var(--c-tint);
}
.tpl-banner h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); font-weight: 800; }
.tpl-banner p { color: var(--c-text-2); font-size: 15px; margin-top: 8px; }
.tpl-banner nav { font-size: 13px; color: var(--c-text-3); margin-bottom: 16px; }
.tpl-banner nav a { color: var(--c-text-3); }
.tpl-banner nav a:hover { color: var(--c-primary); }

/* ============ 贝思 · 模板库 顶部行业 / 风格标签条 ============
   由 template.js 的 renderTpllibBar() 注入,适用于全部 60 套模板
   ============================================================ */
#tpllib-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40px;
  z-index: 99999;
  background: linear-gradient(90deg, rgba(15,37,71,0.96) 0%, rgba(76,29,149,0.96) 100%);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.tpllib-bar-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  max-width: 1440px;
  margin: 0 auto;
  gap: 16px;
}
.tpllib-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.tpllib-logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #93c5fd;
  white-space: nowrap;
}
.tpllib-sep {
  opacity: 0.4;
  padding: 0 2px;
}
.tpllib-tag {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.tpllib-industry {
  background: rgba(59,130,246,0.32);
  color: #dbeafe;
}
.tpllib-style {
  background: rgba(168,85,247,0.32);
  color: #ede9fe;
}
.tpllib-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tpllib-back,
.tpllib-pick {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.tpllib-back {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
}
.tpllib-back:hover {
  background: rgba(255,255,255,0.20);
}
.tpllib-pick {
  background: linear-gradient(120deg, #f59e0b, #fbbf24);
  color: #1e3a8a;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(245,158,11,0.32);
}
.tpllib-pick:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(245,158,11,0.42);
}

body.has-tpllib-bar {
  padding-top: 40px;
}
body.has-tpllib-bar .tpl-header {
  top: 40px;
}

@media (max-width: 768px) {
  #tpllib-bar { height: 36px; font-size: 12px; }
  .tpllib-bar-inner { padding: 0 12px; gap: 8px; }
  .tpllib-back { display: none; }
  .tpllib-tag { padding: 2px 8px; font-size: 11px; }
  body.has-tpllib-bar { padding-top: 36px; }
  body.has-tpllib-bar .tpl-header { top: 36px; }
}

@media (max-width: 480px) {
  .tpllib-logo { display: none; }
  .tpllib-sep { display: none; }
  .tpllib-style { display: none; }
}
