/* ============================================================
   global.css — 碧湾 BEAWAN v5 (温润 · 人文 · 信任感)
   Warm beige · Taupe accent · Serif editorial
   ============================================================ */

/* ── CSS Variables (v5 Design Tokens) ────────────────────── */
:root {
  --bg:         #F2F0EC;
  --bg-alt:     #F9F8F5;
  --text:       #1E1E1C;
  --text-sec:   #5C5B58;
  --text-tert:  #8F8D89;
  --accent:     #7A6E5E;
  --accent-bg:  rgba(122,110,94,0.07);
  --line:       #DCD9D4;
  --safe:       #4F7F66;
  --warn:       #B8924F;
  --alert:      #A65E52;
  --steel:      #3B4046;
  --steel-bg:   rgba(59,64,70,0.04);
  --up:         #D8392B;   /* 涨 · 主行动红 */
  --up-deep:    #B5281C;
  --hero-grad:  linear-gradient(135deg, #FFF8F3 0%, #FCEFE3 52%, #F6ECDD 100%);
  --hero-glow-1: rgba(216,57,43,0.10);
  --hero-glow-2: rgba(184,146,79,0.13);
  --hero-glow-3: rgba(79,127,102,0.10);

  --serif: "Noto Serif SC","Source Han Serif SC","STSong",serif;
  --sans:  "Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --mono:  "JetBrains Mono","Fira Code",monospace;

  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  60px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.25,0.46,0.45,0.94);
  --container: 1200px;
  --header-h: 72px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
::selection { background: var(--text); color: var(--bg-alt); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--text);
  line-height: 1.35;
  font-weight: 400;
}
h1 { font-size: clamp(28px, 3.2vw, 40px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 16px; }
h3 { font-size: clamp(18px, 1.6vw, 22px); margin-bottom: 10px; }
h4 { font-size: 18px; }
p { margin-bottom: 12px; }
table { border-collapse: collapse; width: 100%; }

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Section spacing ───────────────────────────────────────── */
.section { padding: var(--space-3xl) 0; }
.section-alt {
  padding: var(--space-3xl) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title {
  text-align: center; margin-bottom: 48px;
  font-family: var(--serif); font-weight: 400;
}

/* ── Header (v5 transparent editorial) ───────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.4s var(--ease);
  padding: 0 0;
}
header.scrolled {
  background: rgba(242,240,236,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.head { height: var(--header-h); display: flex; align-items: center; }
.head .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; }
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { height: 36px; width: auto; transition: all 0.4s var(--ease); }
.logo .logo-text {
  font-family: var(--serif);
  font-size: 17px; font-weight: 400; color: #fff;
  letter-spacing: 0.08em;
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 12px;
  transition: color 0.4s var(--ease);
}
header.scrolled .logo .logo-text { color: var(--text); }
header.scrolled .logo img { opacity: 0.85; }

/* Navigation - v5 white text on hero, dark on scroll */
.head nav ul { display: flex; align-items: center; gap: 2px; }
.head nav ul > li { position: relative; }
.head nav ul > li > a {
  display: block; padding: 8px 18px; font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  font-weight: 300;
  transition: color 0.3s var(--ease);
  position: relative;
}
header.scrolled .head nav ul > li > a { color: var(--text-tert); }
.head nav ul > li > a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px;
  background: rgba(255,255,255,0.6);
  transition: width 0.4s var(--ease), opacity 0.3s var(--ease);
}
header.scrolled .head nav ul > li > a::after { background: var(--accent); }
.head nav ul > li > a:hover { color: #fff; }
header.scrolled .head nav ul > li > a:hover { color: var(--accent); }
.head nav ul > li > a:hover::after { width: 20px; }
.head nav ul > li.active > a { color: #fff; }
header.scrolled .head nav ul > li.active > a { color: var(--accent); }
.head nav ul > li.active > a::after { width: 20px; background: #fff; }
header.scrolled .head nav ul > li.active > a::after { background: var(--accent); }

.has-dropdown > a::after { content: " ▾"; font-size: 10px; opacity: .5; }
.has-dropdown:hover > a::after { opacity: 1; }

/* Dropdown — high-contrast, forced to override any cached old rules */
.has-dropdown > ul.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  min-width: 200px; background: #F2F0EC; border-radius: var(--radius-md);
  box-shadow: 0 14px 44px rgba(59,64,70,.18);
  padding: 8px 0; z-index: 100;
  border: 1px solid #DCD9D4;
  display: block; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .2s, visibility .2s, transform .2s var(--ease);
}
.has-dropdown:hover > ul.dropdown,
.has-dropdown:focus-within > ul.dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.has-dropdown > .dropdown::before {
  content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.dropdown li a {
  display: block; padding: 11px 22px; font-size: 14px;
  color: #3B4046 !important; font-weight: 500;
  white-space: nowrap; transition: all 0.25s var(--ease);
}
.dropdown li a:hover { background: rgba(122,110,94,0.10); color: #7A6E5E !important; padding-left: 28px; }

/* Header actions */
.head-actions { display: flex; align-items: center; gap: 12px; }
.head-tel a {
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
  transition: color 0.3s var(--ease);
}
header.scrolled .head-tel a { color: var(--text-sec); }
.head-tel a:hover { color: #fff; }
header.scrolled .head-tel a:hover { color: var(--accent); }

.btn-apply {
  display: inline-block; padding: 8px 22px;
  background: var(--steel); color: #fff;
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.04em;
  transition: all 0.4s var(--ease);
}
header.scrolled .btn-apply { background: var(--accent); }
.btn-apply:hover { background: var(--text) !important; color: #fff; }
.btn-apply--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
header.scrolled .btn-apply--outline { color: var(--accent); border-color: var(--accent); }
.btn-apply--outline:hover { background: var(--accent) !important; color: #fff !important; border-color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer;
  padding: 4px; z-index: 1001; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 100%; height: 2px; border-radius: 1px;
  transition: all 0.3s var(--ease);
  background: #fff;
}
header.scrolled .hamburger span { background: var(--text); }
.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Header on light hero (top state = dark text) ─────────── */
header:not(.scrolled) .logo .logo-text,
header:not(.scrolled) .head nav ul > li > a,
header:not(.scrolled) .head-tel a { color: var(--text-sec); }
header:not(.scrolled) .head nav ul > li > a::after { background: var(--accent); }
header:not(.scrolled) .head nav ul > li > a:hover,
header:not(.scrolled) .head nav ul > li.active > a { color: var(--accent); }
header:not(.scrolled) .head nav ul > li.active > a::after { background: var(--accent); }
header:not(.scrolled) .head-tel a:hover { color: var(--accent); }
header:not(.scrolled) .btn-apply--outline { color: var(--accent); border-color: var(--accent); }
header:not(.scrolled) .hamburger span { background: var(--text); }

/* ── Hero (v5 light + carousel) ─────────────────────────────── */
.hero {
  padding: 170px 0 92px;
  min-height: 88vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--hero-grad);
  color: var(--text);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 18%, var(--hero-glow-2) 0%, transparent 46%),
    radial-gradient(ellipse at 88% 12%, var(--hero-glow-1) 0%, transparent 42%),
    radial-gradient(ellipse at 72% 88%, var(--hero-glow-3) 0%, transparent 50%);
}
.hero .container {
  position: relative; z-index: 2;
  max-width: 1080px;
}

/* ── Carousel Hero ──────────────────────────────────────────── */
.carousel-track {
  position: relative;
  z-index: 1;
  width: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  padding: 160px 0 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.carousel-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
/* Slide-specific gradient overlays */
.carousel-slide[data-bg="0"]::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 50%, var(--hero-glow-1) 0%, transparent 62%);
  pointer-events: none;
}
.carousel-slide[data-bg="1"]::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, var(--hero-glow-2) 0%, transparent 58%);
  pointer-events: none;
}
.carousel-slide[data-bg="2"]::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, var(--hero-glow-1) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 20%, var(--hero-glow-3) 0%, transparent 50%);
  pointer-events: none;
}
.carousel-slide .container {
  position: relative; z-index: 2;
  max-width: 1080px;
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(59,64,70,0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}
.carousel-dots button.active {
  background: var(--up);
  border-color: var(--up);
}
.carousel-dots button:hover {
  border-color: var(--up);
  background: rgba(216,57,43,0.25);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 720px;
}
.hero-sub {
  font-size: clamp(18px, 1.8vw, 24px);
  font-family: var(--serif);
  color: var(--up);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-sec);
  max-width: 540px;
  line-height: 1.95;
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.stat span {
  font-size: 13px;
  color: var(--text-tert);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px;
}
.hero-trust .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
  font-size: 12px; color: var(--text-sec);
  letter-spacing: 0.04em; font-weight: 400;
}
.hero-trust .badge em { font-style: normal; color: var(--up); font-weight: 600; }

/* Hero CTAs — bright red for clear, upbeat action */
.hero .btn-primary { background: var(--up); color: #fff; font-weight: 500; }
.hero .btn-primary:hover { background: var(--up-deep); color: #fff; }
.hero .btn-outline { color: var(--up); border-color: var(--up); }
.hero .btn-outline:hover { background: var(--up); color: #fff; border-color: var(--up); }

/* ── Buttons (v5 minimal) ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 28px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.04em;
  transition: all 0.4s var(--ease);
  cursor: pointer; border: none; border-radius: 0;
}
.btn-primary {
  background: var(--steel);
  color: #fff;
}
.btn-primary:hover { background: var(--text); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; color: var(--accent);
  background: var(--accent-bg); font-size: 14px; font-weight: 400;
  transition: all 0.3s var(--ease);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-size: 14px; font-weight: 400;
}
.btn-link:hover { color: var(--text); gap: 8px; }
.btn-link::after { content: '→'; transition: transform .2s; }
.btn-link:hover::after { transform: translateX(2px); }

/* ── Product Cards (v5 refined) ────────────────────────────── */
.products-overview {
  padding: var(--space-3xl) 0;
  background: var(--bg);
}
.products-overview h2 {
  text-align: center; margin-bottom: 48px;
  font-family: var(--serif); font-weight: 400;
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  display: block; padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
  position: relative;
}
.product-card:hover { border-color: var(--accent); background: #fff; }
.product-card h3 {
  font-family: var(--serif);
  font-size: 19px; margin-bottom: 10px;
  color: var(--text); font-weight: 400;
}
.product-card p {
  color: var(--text-sec);
  font-size: 14px; line-height: 1.7;
  margin-bottom: 0; font-weight: 300;
}
.product-card-more {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; color: var(--accent); font-weight: 400; gap: 4px;
}
.product-card-more:hover { border-style: solid; }

/* ── Solutions (v5 refined) ───────────────────────────────── */
.solutions-preview {
  padding: var(--space-3xl) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.solutions-preview h2 {
  text-align: center; margin-bottom: 48px;
  font-family: var(--serif); font-weight: 400;
}
.solution-list { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin: 0 auto; }
.solution-item {
  display: block; padding: 28px 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.solution-item:hover { border-color: var(--accent); background: #fff; }
.solution-item h3 {
  font-family: var(--serif);
  font-size: 19px; margin-bottom: 8px; font-weight: 400;
}
.solution-item p { color: var(--text-sec); font-size: 14px; margin-bottom: 0; font-weight: 300; }

/* ── Cloud Platform ───────────────────────────────────────── */
.cloud-platform { padding: var(--space-3xl) 0; background: var(--bg-alt); }
.cloud-platform h2 { text-align: center; margin-bottom: 48px; }
.cloud-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cloud-card {
  padding: 20px 28px; background: var(--bg-alt); border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.cloud-card:hover { border-color: var(--accent); background: #fff; }
.cloud-card h3 { font-size: 16px; margin-bottom: 0; }

/* ── Case Highlight ───────────────────────────────────────── */
.case-highlight {
  padding: var(--space-3xl) 0;
  background: var(--bg);
}
.case-highlight h2 {
  text-align: center; margin-bottom: 48px;
  font-family: var(--serif); font-weight: 400;
}
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.case-card {
  padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.case-card:hover { border-color: var(--accent); background: #fff; }
.case-tag {
  display: inline-block; padding: 3px 12px;
  background: var(--accent-bg); color: var(--accent);
  font-size: 12px; font-weight: 400; letter-spacing: 0.04em;
}
.case-card h3 {
  font-family: var(--serif);
  font-size: 17px; margin-bottom: 8px; font-weight: 400;
}
.case-card h3 a { color: var(--text); }
.case-card h3 a:hover { color: var(--accent); }
.case-card p { color: var(--text-sec); font-size: 14px; margin-bottom: 0; font-weight: 300; }

/* ── About Preview ────────────────────────────────────────── */
.about-preview {
  padding: var(--space-3xl) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.about-preview h2 { font-family: var(--serif); margin-bottom: 20px; font-weight: 400; }
.about-preview p {
  color: var(--text-sec);
  max-width: 640px; margin: 0 auto 24px;
  font-size: 15px; line-height: 1.9; font-weight: 300;
}

/* ── Partners ─────────────────────────────────────────────── */
.partners-section { padding: var(--space-3xl) 0; background: var(--bg); }
.partners-section h2 {
  text-align: center; margin-bottom: 48px;
  font-family: var(--serif); font-weight: 400;
}
.partner-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.partner-item {
  width: 150px; height: 80px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg-alt); padding: 12px; transition: all 0.4s var(--ease);
}
.partner-item:hover { border-color: var(--accent); background: #fff; }
.partner-item img { max-height: 48px; width: auto; }
.partner-item span { font-size: 14px; color: var(--text-sec); font-weight: 300; }

/* ── Page Common ──────────────────────────────────────────── */
.page-header {
  padding: 132px 0 56px;
  position: relative; overflow: hidden;
  background: var(--hero-grad);
  color: var(--text);
}
.page-header::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url('/images/biwan_banner01_home.webp') center/cover no-repeat;
  filter: none; opacity: 0.10;
}
.page-header::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 85% 15%, var(--hero-glow-1) 0%, transparent 45%),
    radial-gradient(ellipse at 10% 90%, var(--hero-glow-3) 0%, transparent 50%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--serif);
  color: var(--text);
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 8px;
  font-weight: 600;
}
.page-header p {
  font-size: 13px; color: var(--text-sec);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0; font-weight: 400;
}
.content-area { max-width: 1100px; margin: 0 auto; padding: 48px 24px var(--space-3xl); }
.breadcrumb {
  padding: 14px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text-tert);
}
.breadcrumb .container { display: flex; gap: 8px; }
.breadcrumb a { color: var(--text-sec); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-tert); }

.subnav {
  display: flex; gap: 8px; margin-bottom: 36px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.subnav a {
  padding: 7px 18px; font-size: 14px; color: var(--text-sec);
  transition: all 0.3s var(--ease); background: transparent; font-weight: 300;
}
.subnav a:hover { color: var(--accent); background: var(--accent-bg); }
.subnav a.active { background: var(--accent); color: #fff; }

/* ── Certificates ─────────────────────────────────────────── */
.cert-category { margin-bottom: 40px; }
.cert-category h2 { margin-bottom: 24px; font-size: 22px; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.cert-item { text-align: center; }
.cert-item p { font-size: 13px; color: var(--text-sec); margin-top: 8px; font-weight: 300; }
.cert-img-wrap {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 16px; height: 170px; display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease);
}
.cert-img-wrap:hover { border-color: var(--accent); background: #fff; }
.cert-img-wrap img { max-height: 100%; width: auto; }

/* ── Partners Grid Page ───────────────────────────────────── */
.partner-grid-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px; }
.partner-item-page {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg-alt); padding: 20px; height: 100px;
  transition: all 0.4s var(--ease);
}
.partner-item-page:hover { border-color: var(--accent); background: #fff; }
.partner-item-page img { max-height: 56px; width: auto; }
.partner-item-page span { font-size: 14px; color: var(--text-sec); font-weight: 300; }

/* ── Vision ───────────────────────────────────────────────── */
.vision-highlight {
  margin: 28px 0 40px; padding: 36px 40px;
  background: var(--accent-bg);
  border: 1px solid rgba(122,110,94,0.15);
  text-align: center;
  font-size: 18px; color: var(--accent); font-weight: 400;
  line-height: 2;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #FFF4EC 0%, #FBE7D8 100%);
  color: var(--text);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section h2 {
  font-family: var(--serif);
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.cta-section p { color: var(--text-sec); opacity: 1; margin-bottom: 32px; font-size: 15px; font-weight: 400; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-section .btn-primary { background: var(--up); color: #fff; }
.cta-section .btn-primary:hover { background: var(--up-deep); color: #fff; }
.cta-section .btn-outline { border-color: var(--up); color: var(--up); }
.cta-section .btn-outline:hover { border-color: var(--up); color: #fff; background: var(--up); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { margin-top: 40px; }
.faq-list h2 { margin-bottom: 24px; }
.faq-item {
  margin-bottom: 16px; padding: 24px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  transition: all 0.3s var(--ease);
}
.faq-item:hover { border-color: var(--accent); background: #fff; }
.faq-item h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.faq-item p { color: var(--text-sec); font-size: 14px; margin-bottom: 0; font-weight: 300; }

/* ── Article Body ─────────────────────────────────────────── */
.article-body { font-size: 15px; line-height: 1.9; color: var(--text); font-weight: 300; }
.article-body h1 {
  font-family: var(--serif);
  font-size: 28px; margin-bottom: 8px; font-weight: 400;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 22px; margin: 36px 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); font-weight: 400;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 18px; margin: 28px 0 12px; font-weight: 400;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 12px 0 18px 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  margin: 24px 0; padding: 20px 24px;
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  color: var(--text-sec); font-size: 15px; font-weight: 300;
}
.article-body img { margin: 24px 0; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body a:hover { color: var(--text); }
.article-body table { margin: 24px 0; font-size: 14px; overflow: hidden; }
.article-body th, .article-body td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--accent-bg); font-weight: 400; color: var(--text); }
.article-body tr:nth-child(even) td { background: var(--bg); }
.article-body code { background: var(--accent-bg); padding: 3px 8px; font-size: 14px; }
.article-body pre {
  background: var(--text); color: #e0e0e0;
  padding: 24px; overflow-x: auto; margin: 24px 0;
}
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body strong { font-weight: 500; color: var(--text); }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

/* ── Footer (v5 warm) ─────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  color: var(--text-sec);
}
.footer-main { padding: var(--space-2xl) 0 var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h4 {
  font-family: var(--serif);
  font-size: 14px; font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: var(--text-tert);
  font-size: 13px; font-weight: 300;
  transition: all 0.3s var(--ease);
  display: inline-flex; align-items: center; gap: 4px;
}
.footer-col ul li a::before { content: '›'; font-size: 16px; opacity: .4; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 2px; }
.footer-contact p {
  font-size: 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px; font-weight: 300;
}
.footer-contact p::before { content: '•'; color: var(--accent); }
.footer-contact a { color: var(--text-tert); }
.footer-contact a:hover { color: var(--accent); }
.footer-qr-row { display: flex; gap: 20px; margin-top: 20px; }
.footer-qr-item { text-align: center; }
.footer-qr {
  width: 110px; height: 110px;
  border: 1px solid var(--line);
  padding: 4px; background: #fff;
}
.footer-qr-item span { font-size: 12px; color: var(--text-tert); display: block; margin-top: 6px; font-weight: 300; }
.footer-wechat-row { display: flex; gap: 16px; margin-top: 16px; }
.footer-wechat-item { text-align: center; }
.footer-wechat-item img { width: 100px; height: 100px; border: 1px solid var(--line); padding: 3px; background: #fff; }
.footer-wechat-item span { font-size: 12px; color: var(--text-tert); display: block; margin-top: 4px; font-weight: 300; }
.footer-wechat-tip { font-size: 13px; color: var(--accent); margin-top: 10px; font-weight: 400; }
.footer-links {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-tert); font-weight: 300;
}
.footer-links span { margin-right: 8px; }
.footer-links a { color: var(--text-tert); margin-right: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom-bar {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  background: var(--bg);
}
.footer-bottom-bar p {
  font-size: 12px; color: var(--text-tert);
  text-align: center; margin-bottom: 0; font-weight: 300;
}
.footer-bottom-bar a { color: var(--text-tert); }
.footer-bottom-bar a:hover { color: var(--accent); }

/* ── Floating Sidebar (v5) ────────────────────────────────── */
.diyos {
  position: fixed; right: 16px; bottom: 120px; z-index: 999;
  display: flex; flex-direction: column; gap: 4px;
}
.diyos ul { display: flex; flex-direction: column; gap: 4px; }
.diyos li { position: relative; }
.diyos li a {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px;
  background: var(--steel); color: #fff; font-size: 13px; font-weight: 300;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--ease);
}
.diyos li a:hover { background: var(--accent); }
.sidebox { display: flex; align-items: center; gap: 6px; }
.sideewm { cursor: pointer; }
.sideewm a { min-width: 44px; }
.sideewmshow {
  display: none; position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
  width: 140px; padding: 8px; background: #fff;
  margin-right: 10px;
  border: 1px solid var(--line);
}
.sideewm:hover .sideewmshow { display: block; }
.sidetop {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px; background: var(--text-tert);
  color: #fff; font-size: 13px;
  transition: all 0.3s var(--ease);
}
.sidetop:hover { background: var(--steel); }

/* ── Mobile Bottom Bar (v5) ───────────────────────────────── */
.footer-bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--steel);
  display: flex; justify-content: center; gap: 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}
.footer-bottom a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 12px 16px; color: #fff; font-size: 14px; text-align: center;
  font-weight: 300; letter-spacing: 0.03em;
  transition: all 0.3s var(--ease);
}
.footer-bottom a + a { border-left: 1px solid rgba(255,255,255,.15); }
.footer-bottom a:hover { background: var(--accent); }

/* ── Article List ─────────────────────────────────────────── */
.article-list-pages { display: grid; gap: 24px; }
.article-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  transition: all 0.3s var(--ease);
}
.article-card:hover { padding-left: 8px; }
.article-card time { color: var(--text-tert); font-size: 13px; font-weight: 300; }
.article-card h3 {
  margin: 6px 0 10px;
  font-size: 18px;
  font-family: var(--serif);
  font-weight: 400;
}
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--accent); }
.article-card p { color: var(--text-sec); font-size: 14px; margin-bottom: 0; font-weight: 300; }
.article-tag {
  display: inline-block; padding: 3px 10px;
  background: var(--accent-bg); color: var(--accent);
  font-size: 12px; font-weight: 400; letter-spacing: 0.03em;
}

/* Category filter */
.category-filter { margin-bottom: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.category-filter a {
  font-size: 14px; color: var(--text-sec); padding: 6px 16px;
  transition: all 0.3s var(--ease); font-weight: 300;
}
.category-filter a:hover { color: var(--accent); background: var(--accent-bg); }
.category-filter a.active { color: #fff; background: var(--accent); font-weight: 400; }

/* ── Tables ────────────────────────────────────────────────── */
table { margin: 16px 0; font-size: 14px; width: 100%; }
thead th {
  padding: 12px 16px;
  background: var(--accent-bg); color: var(--text);
  font-weight: 400; text-align: left;
  border-bottom: 1px solid var(--accent);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
tbody tr:hover td { background: var(--accent-bg); }
.empty-row td { color: var(--text-tert); text-align: center; padding: 20px; font-weight: 300; }

/* ── Contact Page ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-card {
  padding: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.contact-info-card h3 {
  margin-bottom: 20px;
  color: var(--accent);
  font-family: var(--serif); font-weight: 400;
}
.contact-info-card p {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; margin-bottom: 14px; font-weight: 300;
}
.contact-info-card p::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); flex-shrink: 0;
}
.contact-qr { width: 180px; margin: 0 auto; }
.contact-qr img { border: 1px solid var(--line); }
.contact-hint { color: var(--text-tert); margin-top: 8px; font-size: 14px; font-weight: 300; }

/* ── Info Box ─────────────────────────────────────────────── */
.info-box {
  margin-top: 40px; padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.info-box h3 { font-family: var(--serif); margin-bottom: 12px; font-weight: 400; }

/* ── Stats Grid ───────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; margin: 36px 0;
}
.stats-grid .stat-card {
  padding: 28px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  text-align: center;
  transition: all 0.4s var(--ease);
}
.stats-grid .stat-card:hover { border-color: var(--accent); background: #fff; }
.stats-grid .stat-value {
  font-family: var(--serif);
  font-size: 30px; color: var(--accent);
  font-weight: 400; display: block;
}
.stats-grid .stat-label {
  color: var(--text-sec); margin-top: 6px;
  font-size: 14px; font-weight: 300;
}

/* ── Feature Grid ─────────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 36px 0;
}
.feature-card {
  padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.feature-card:hover { border-color: var(--accent); background: #fff; }
.feature-card h3 {
  font-family: var(--serif);
  font-size: 17px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px; font-weight: 400;
}
.feature-card h3::before { content: '◆'; color: var(--accent); font-size: 10px; }
.feature-card p { color: var(--text-sec); font-size: 14px; margin-bottom: 0; font-weight: 300; }

/* ── Hero Banner ──────────────────────────────────────────── */
.hero-banner {
  background: var(--accent-bg);
  border: 1px solid var(--line);
  padding: 36px 40px;
  margin-bottom: 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-banner-content h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 400;
  color: var(--text); margin-bottom: 8px;
}
.hero-banner-content p { color: var(--text-sec); font-size: 15px; margin-bottom: 4px; font-weight: 300; }
.hero-banner-icon { width: 120px; flex-shrink: 0; }

/* ── QR Download ──────────────────────────────────────────── */
.download-section { text-align: center; padding: 24px; }
.download-section h4 { margin-bottom: 16px; }
.download-qr { width: 140px; margin: 0 auto; }
.download-qr img { border: 1px solid var(--line); }
.download-qr p { margin-top: 8px; font-size: 13px; color: var(--text-tert); font-weight: 300; }

/* ── Utility Classes ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-tert); }
.text-secondary { color: var(--text-sec); }
.text-primary { color: var(--accent); font-weight: 400; }
.text-accent { color: var(--accent); }
.hidden-xs { display: block; }
.visible-xs { display: none; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hidden-xs { display: none !important; }
  .visible-xs { display: block !important; }

  header { background: rgba(242,240,236,0.95); }
  header .logo .logo-text { color: var(--text); }
  header .head-tel a { color: var(--text-sec); }
  header .btn-apply { background: var(--accent); }
  header .hamburger span { background: var(--text); }
  header .head nav ul > li > a { color: var(--text-sec); }

  .head { height: auto; min-height: 60px; }
  .head .container { flex-wrap: nowrap; padding: 0 16px; gap: 8px; }
  .logo img { height: 30px; }
  .logo { flex-shrink: 0; }

  .hamburger { display: flex; }

  .head nav {
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: var(--bg-alt); z-index: 1000;
    display: none; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .menu-open .head nav { display: block; }

  .head nav ul {
    flex-direction: column; gap: 0; padding: 8px 0;
  }
  .head nav ul > li { width: 100%; border-bottom: 1px solid var(--line); }
  .head nav ul > li > a {
    padding: 14px 20px; font-size: 15px; font-weight: 300;
    display: flex; align-items: center; justify-content: space-between;
    border-radius: 0;
  }
  .head nav ul > li > a::after { display: none; }
  .head nav ul > li > a:hover { background: var(--accent-bg); }

  .dropdown {
    position: static; box-shadow: none; border: none;
    display: none; background: #F2F0EC; padding: 0; margin: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown.open > a { color: var(--accent); background: rgba(122,110,94,0.10); }

  .has-dropdown > a::after {
    content: " ▾"; font-size: 12px; opacity: .4;
    transition: transform .2s;
  }
  .has-dropdown.open > a::after { transform: rotate(180deg); opacity: .8; }
  .has-dropdown:hover > a::after { opacity: .4; }

  .dropdown li a {
    padding: 12px 20px 12px 36px; font-size: 14px;
    border-radius: 0; color: #3B4046 !important; font-weight: 500;
  }
  .dropdown li a:hover { background: rgba(122,110,94,0.10); color: #7A6E5E !important; padding-left: 40px; }

  .menu-open::before {
    content: ''; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.3); z-index: 999;
    pointer-events: auto;
  }

  .head-actions { gap: 6px; }
  .btn-apply { padding: 6px 16px; font-size: 13px; }
  .head-tel a { font-size: 13px; }

  .section { padding: var(--space-2xl) 0; }
  .section-alt { padding: var(--space-2xl) 0; }
  .hero { padding: 0; min-height: auto; }
  .carousel-slide { padding: 110px 0 56px; min-height: auto; }
  .carousel-slide h1 { font-size: 30px; }
  .carousel-dots { bottom: 16px; }
  .hero-sub { font-size: 19px; }
  .hero-desc { font-size: 15px; }
  .hero-stats { gap: 20px; }
  .stat strong { font-size: 30px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { padding: 10px 24px; font-size: 14px; }

  .products-overview { padding: var(--space-2xl) 0; }
  .solutions-preview { padding: var(--space-2xl) 0; }
  .case-highlight { padding: var(--space-2xl) 0; }
  .about-preview { padding: var(--space-2xl) 0; }
  .partners-section { padding: var(--space-2xl) 0; }
  .cta-section { padding: var(--space-2xl) 0; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .case-grid { grid-template-columns: 1fr; }
  .solution-list { gap: 12px; }

  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .section-title { margin-bottom: 32px; }
  .page-header { padding: 90px 0 36px; }
  .page-header h1 { font-size: 28px; }

  .content-area { padding: 28px 16px var(--space-2xl); }
  .partner-grid-page { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .partner-item-page { height: 72px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-main { padding: var(--space-xl) 0 var(--space-md); }
  .feature-grid { grid-template-columns: 1fr; }

  body { padding-bottom: 56px; }
  .diyos { right: 8px; bottom: 80px; }
  .diyos li a { padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid-page { grid-template-columns: repeat(2, 1fr); }
  .page-header h1 { font-size: 22px; }
}

/* ── Breadcrumb margin fix ────────────────────────────────── */
.breadcrumb + .content-area { padding-top: 32px; }

/* ── Mobile bottom fix ────────────────────────────────────── */
@media (max-width: 768px) {
  .content-area:last-child { padding-bottom: 64px; }
}
