/* ============================================================
   Doolike LFT — Main Stylesheet
   lftmolding.com | Modern Minimalist (Apple-inspired)
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  /* Brand accent — 只用在主 CTA / 关键数据 / 链接 hover */
  --brand:        #c8102e;           /* Doolike 品牌红,稍调整更 refined */
  --brand-dark:   #a00d25;
  --brand-light:  #e0142f;
  --brand-tint:   rgba(200,16,46,.08);

  /* Grayscale — Apple 官方配色精髓 */
  --bg:           #ffffff;           /* 主背景纯白 */
  --bg-soft:      #fbfbfd;           /* Apple 官网浅灰区块 */
  --bg-panel:     #f5f5f7;           /* 卡片/次级 section */
  --bg-dark:      #1d1d1f;           /* Apple 深色区块 */
  --bg-darker:    #000000;

  --surface:      #ffffff;           /* 卡片背景 */
  --surface-hover:#fafafa;

  --border:       rgba(0,0,0,.08);   /* 极淡分隔线 */
  --border-strong:rgba(0,0,0,.14);
  --border-dark:  rgba(255,255,255,.12);

  /* Text — Apple 四级灰 */
  --text:         #1d1d1f;           /* 主文字 */
  --text-2:       #424245;           /* 次级文字 */
  --text-muted:   #6e6e73;           /* 辅助文字 */
  --text-dim:     #86868b;           /* 最淡/时间戳等 */
  --text-inverse: #f5f5f7;

  /* Semantic */
  --success:      #34c759;           /* Apple green */
  --warning:      #ff9f0a;
  --danger:       #ff3b30;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --letter-tight: -0.015em;
  --letter-tighter: -0.022em;

  /* Shape */
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-pill:  980px;             /* Apple CTA 胶囊 */

  /* Shadow — 极柔和,靠多层次制造漂浮感 */
  --shadow-xs:    0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow:       0 4px 12px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg:    0 12px 32px rgba(0,0,0,.08), 0 24px 60px rgba(0,0,0,.08);

  --trans:        .25s cubic-bezier(.4,0,.2,1);
  --trans-slow:   .4s cubic-bezier(.4,0,.2,1);

  /* ── Legacy aliases — 保留旧变量名让内联样式继续工作,映射到新配色 ───── */
  --red:       var(--brand);
  --red-dark:  var(--brand-dark);
  --red-light: var(--brand-light);
  --bg2:       var(--bg-soft);
  --bg3:       var(--bg-panel);
  --surface2:  var(--bg-panel);
  --white:     #ffffff;
  --green:     #1d8a3a;
  /* Apple 风不用金色 — 老内联 "金色高亮数据" 自动变成深黑加粗醒目文字 */
  --gold:      var(--text);
  --gold-dim:  var(--text-muted);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  overflow-x: hidden;
  font-weight: 400;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--text); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--brand); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* 去掉原来的碳纤维纹理 — 彻底纯色 */
.carbon-bg { background: var(--bg-soft); }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: var(--letter-tight);
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: var(--letter-tighter);
  line-height: 1.07;
}
h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  letter-spacing: var(--letter-tighter);
  line-height: 1.1;
}
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.2; }
h4 { font-size: 1.125rem; font-weight: 600; }

p  { color: var(--text-2); }
.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--brand);
  margin-bottom: .75rem;
  text-transform: none;
}

/* ── Layout helpers ──────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 72px; }
.section-title p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 1.125rem;
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.5;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.flex   { display: flex; align-items: center; }
.gap-sm { gap: 12px; }
.gap    { gap: 24px; }
.gap-lg { gap: 48px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-sm  { margin-top: 1rem; }
.mt     { margin-top: 2rem; }
.mt-lg  { margin-top: 3rem; }

/* ── Buttons — Apple-style pill ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: all var(--trans);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,16,46,.25);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--text);
  background: var(--text);
  color: #ffffff;
  transform: translateY(-1px);
}
/* 原 btn-gold 重定义为次级深色按钮 (去掉廉价金) */
.btn-gold {
  background: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
  font-weight: 500;
}
.btn-gold:hover {
  background: #2d2d2f;
  border-color: #2d2d2f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--trans);
  box-shadow: var(--shadow-xs);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-body { padding: 32px; }
.card-img img { width: 100%; height: 240px; object-fit: cover; }

/* ── Badges — 克制的浅色 pill ────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: var(--bg-panel);
  color: var(--text-2);
}
.badge-red  { background: var(--brand-tint); color: var(--brand); }
.badge-gold { background: var(--bg-panel); color: var(--text); }
.badge-green{ background: rgba(52,199,89,.1); color: #1d8a3a; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
}
.form-label .req { color: var(--brand); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  line-height: 1.4;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-error {
  color: var(--danger);
  font-size: .8rem;
  margin-top: 6px;
  display: none;
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid + .form-error { display: block; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  background: var(--surface);
}
.data-table th {
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-soft); }

/* ── Comparison table ────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 18px 22px;
  font-size: .92rem;
  font-weight: 500;
  text-align: left;
  letter-spacing: -0.01em;
}
.compare-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: .95rem;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .highlight { color: var(--text); font-weight: 600; }
.compare-table .highlight::before { content: '●'; color: var(--brand); margin-right: 6px; font-size: .7em; vertical-align: middle; }

/* ── Stat counters ───────────────────────────────────────────── */
.stat-bar {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: var(--letter-tighter);
}
.stat-label {
  font-size: .92rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 400;
}

/* ── Section divider ─────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── ─────────────────────────────────────────────────────────── */
/*  NAVIGATION — Apple-style blurred white                         */
/* ── ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--trans);
}
.site-header.scrolled {
  background: rgba(255,255,255,.88);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img { height: 34px; width: auto; }
.nav-logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.nav-logo-text span {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 400;
  color: var(--text-2);
  transition: color var(--trans);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: transparent;
}
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--trans);
  z-index: 200;
  padding: 6px;
}
.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-links .dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text-2);
  border: none;
}
.nav-links .dropdown-menu a:hover { background: var(--bg-panel); color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Multi-language Dropdown */
.lang-dropdown { position: relative; z-index: 200; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-panel);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
}
.lang-current:hover,
.lang-dropdown.open .lang-current {
  background: #e8e8ed;
  color: var(--text);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .2s var(--trans), transform .2s var(--trans);
}
.lang-dropdown.open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: .875rem;
  cursor: pointer;
  text-align: left;
  transition: background var(--trans);
}
.lang-option:hover { background: var(--bg-panel); color: var(--text); }
.lang-option.active { color: var(--brand); font-weight: 500; }
.lang-opt-flag { font-size: 1.1rem; line-height: 1; }
.lang-opt-name { flex: 1; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--trans);
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: var(--bg);
}
/* 去掉所有渐变和纹理 */
.hero-bg { display: none; }
.hero-grid-line { display: none; }
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-eyebrow {
  display: inline-block;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--brand);
  margin-bottom: 20px;
}
.hero-eyebrow::before { display: none; }
.hero h1 {
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--text);
}
.hero h1 .accent {
  color: var(--text-muted);
  font-weight: 600;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.5;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  max-width: 540px;
  z-index: 1;
  opacity: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  /* 左侧渐隐防止与文字硬碰 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
}
.hero-badges {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  font-size: .9rem;
  color: var(--text-muted);
}
.hero-badge strong {
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: var(--letter-tighter);
  line-height: 1;
}

/* ── PRODUCTS GRID ────────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--trans);
  position: relative;
  box-shadow: var(--shadow-xs);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
  z-index: 1;
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--bg-panel);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 32px; }
.product-card-body h3 { margin-bottom: 10px; font-size: 1.3rem; letter-spacing: -0.01em; }
.product-card-body p  { color: var(--text-muted); font-size: .95rem; margin-bottom: 20px; line-height: 1.5; }
.product-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }

/* ── ADVANTAGES ───────────────────────────────────────────────── */
.advantage-item {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--trans);
  box-shadow: var(--shadow-xs);
}
.advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.adv-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-panel);
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.advantage-item h3 { font-size: 1.125rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.advantage-item p  { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* ── INDUSTRIES GRID ──────────────────────────────────────────── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: .9rem;
  color: var(--text-2);
  font-weight: 500;
  transition: all var(--trans);
  cursor: default;
}
.industry-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: transparent;
  color: var(--text);
}
.industry-icon { font-size: 2rem; }

/* ── CERTIFICATIONS ───────────────────────────────────────────── */
.cert-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: .65;
  filter: grayscale(0.2);
  transition: all var(--trans);
}
.cert-item:hover { opacity: 1; filter: grayscale(0); }
.cert-item img { height: 56px; width: auto; object-fit: contain; }
.cert-item span { font-size: .78rem; color: var(--text-muted); font-weight: 500; }

/* ── CTA SECTION ──────────────────────────────────────────────── */
.cta-section {
  background: var(--bg-dark);
  border: none;
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--text-inverse);
}
.cta-section::before { display: none; }
.cta-section h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-weight: 600;
}
.cta-section p  {
  color: rgba(255,255,255,.72);
  margin-bottom: 36px;
  max-width: 540px;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.5;
}
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,.3);
}
.cta-section .btn-outline:hover {
  background: #ffffff;
  color: var(--bg-dark);
  border-color: #ffffff;
}

/* ── APPLICATION CASES ────────────────────────────────────────── */
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--trans);
  box-shadow: var(--shadow-xs);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.case-card-img { height: 200px; overflow: hidden; background: var(--bg-panel); }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--trans-slow); }
.case-card:hover .case-card-img img { transform: scale(1.04); }
.case-card-body { padding: 24px; }
.case-card-body h4 { font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.case-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.case-meta span { font-size: .82rem; color: var(--text-muted); }
.case-meta span strong { color: var(--text); font-weight: 500; }

/* ── TECH / SPECS ─────────────────────────────────────────────── */
.spec-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xs);
}
.spec-block h3 {
  font-size: 1.125rem;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-muted); }
.spec-val   { font-weight: 500; color: var(--text); }
.spec-val.good { color: var(--brand); font-weight: 600; }

/* ── ABOUT PAGE ───────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-strong);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.timeline-item h4 { color: var(--brand); font-size: .85rem; margin-bottom: 6px; font-weight: 500; letter-spacing: 0; }
.timeline-item p  { color: var(--text-muted); font-size: .95rem; }

/* ── PRODUCT DETAIL ───────────────────────────────────────────── */
.product-hero {
  background: var(--bg-soft);
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text-dim); }
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--text-2);
}
.feature-item::before {
  content: '✓';
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 600;
}

/* ── CONTACT PAGE ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-panel);
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.contact-item h4  {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.contact-item p, .contact-item a {
  font-size: .98rem;
  color: var(--text);
  font-weight: 400;
}
.inquiry-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
.inquiry-form h2, .inquiry-form h3 { margin-bottom: 8px; }
.inquiry-form .lead { margin-bottom: 32px; font-size: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
}
.form-note {
  font-size: .8rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.form-note a { color: var(--text-muted); text-decoration: underline; }
.form-note a:hover { color: var(--text); }
#form-success, #form-error {
  display: none;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: .92rem;
  margin-top: 16px;
  text-align: center;
}
#form-success { background: rgba(52,199,89,.08); border: 1px solid rgba(52,199,89,.2); color: #1d8a3a; }
#form-error   { background: rgba(255,59,48,.08); border: 1px solid rgba(255,59,48,.2); color: var(--danger); }

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand img { height: 38px; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; color: var(--text-muted); line-height: 1.6; }
.footer-col h4 {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color var(--trans);
}
.footer-col ul a:hover { color: var(--text); }
.footer-col address {
  font-style: normal;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.footer-col address a { color: var(--text-muted); }
.footer-col address a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

/* ── WHATSAPP BUTTON ──────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 8px 24px rgba(37,211,102,.32);
  transition: all var(--trans);
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37,211,102,.45);
}
.whatsapp-btn svg { width: 28px; height: 28px; fill: white; }
.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.28);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(.85); opacity: 1; }
  80%  { transform: scale(1.2);  opacity: 0; }
  100% { transform: scale(1.2);  opacity: 0; }
}

/* ── ADMIN ────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg-soft); }
.admin-sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}
.admin-sidebar-header h3 { font-size: .95rem; color: var(--text); }
.admin-sidebar-header span { font-size: .75rem; color: var(--text-muted); }
.admin-nav { padding: 16px 12px; flex: 1; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text-2);
  margin-bottom: 2px;
  transition: all var(--trans);
}
.admin-nav a:hover { background: var(--bg-panel); color: var(--text); }
.admin-nav a.active {
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 500;
}
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-topbar {
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}
.admin-topbar h1 { font-size: 1.25rem; }
.admin-content { padding: 32px; flex: 1; overflow-y: auto; }
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}
.stat-card-num {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: var(--letter-tighter);
  line-height: 1;
}
.stat-card-label {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.stat-card.accent .stat-card-num { color: var(--brand); }

/* Admin form / filters */
.admin-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-filters input,
.admin-filters select {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
}
.admin-filters input:focus,
.admin-filters select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

/* Status badges */
.status-new     { color: #0071e3; font-weight: 500; }
.status-read    { color: var(--text-muted); }
.status-replied { color: #1d8a3a; font-weight: 500; }
.status-closed  { color: var(--text-dim); }

/* Admin login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}
.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo img { height: 44px; margin: 0 auto 14px; }
.login-logo p { font-size: .9rem; color: var(--text-muted); }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 20px;
}
.alert-danger  { background: rgba(255,59,48,.08); border: 1px solid rgba(255,59,48,.2); color: var(--danger); }
.alert-success { background: rgba(52,199,89,.08); border: 1px solid rgba(52,199,89,.2); color: #1d8a3a; }
.alert-info    { background: rgba(0,113,227,.08); border: 1px solid rgba(0,113,227,.2); color: #0071e3; }

/* ── PAGE HEADER (inner pages) ────────────────────────────────── */
.page-header {
  padding: 140px 0 80px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-header::after { display: none; }

/* ── IMAGE CARDS ──────────────────────────────────────────────── */
.img-caption {
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}
.img-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-xs);
}
.img-block img { width: 100%; display: block; }

/* ── UTILITIES ────────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-red    { color: var(--brand); }
.text-gold   { color: var(--text); font-weight: 600; }
.text-muted  { color: var(--text-muted); }
.text-green  { color: #1d8a3a; }
.fw-bold     { font-weight: 600; }
.mb-0        { margin-bottom: 0; }
.lazy-img    { opacity: 0; transition: opacity .4s ease; }
.lazy-img.loaded { opacity: 1; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .section { padding: 96px 0; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { opacity: .22; width: 60%; }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-title { margin-bottom: 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 24px;
    gap: 2px;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open a {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-links.open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border-strong);
    margin-left: 16px;
    padding: 8px 0;
    background: transparent;
  }
  .nav-right { gap: 8px; }
  .lang-current { padding: 6px 10px; font-size: .78rem; }
  .cta-section { padding: 56px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .inquiry-form { padding: 28px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { display: none; }
  .hero { min-height: auto; padding: 120px 0 72px; }
  .hero-img { display: none; }
  .cert-grid { gap: 32px; }
  .hero-badges { gap: 28px; }
  .hero-badge strong { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  :root { font-size: 14px; }
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { padding: 14px 24px; font-size: .98rem; }
  .whatsapp-btn { bottom: 20px; right: 20px; }
  .lang-menu { min-width: 170px; }
  .section { padding: 56px 0; }
}

/* ── RTL Language Support (Arabic, etc.) ───────────────────────── */
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .nav-right { flex-direction: row-reverse; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .card,
html[dir="rtl"] .section { direction: rtl; }
html[dir="rtl"] .hero-content { text-align: right; }
html[dir="rtl"] .footer-grid { direction: rtl; }
html[dir="rtl"] .feature-item::before,
html[dir="rtl"] .compare-table .highlight::before { margin-left: 6px; margin-right: 0; }

/* ── i18n translate-in-progress overlay (optional UX) ──────────── */
.i18n-loading::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: i18n-spin .6s linear infinite;
  margin-left: 6px;
  vertical-align: middle;
}
@keyframes i18n-spin { to { transform: rotate(360deg); } }

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: all var(--trans);
}
.faq-item:hover .faq-q { color: var(--text); }
.faq-item.open {
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-bottom-color: transparent;
  box-shadow: var(--shadow-xs);
  margin: 4px 0;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  padding: 24px 56px 24px 24px;
  position: relative;
  line-height: 1.45;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: color var(--trans);
}
html[dir="rtl"] .faq-q { text-align: right; padding: 24px 24px 24px 56px; }
.faq-q::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  transition: transform var(--trans);
}
html[dir="rtl"] .faq-q::after { right: auto; left: 24px; }
.faq-item.open .faq-q::after {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h12' stroke='%23c8102e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 24px 24px;
}
.faq-a p + p { margin-top: 10px; }
.faq-a strong { color: var(--text); font-weight: 500; }

/* ── Product spec dl (semantic, LLM 友好) ───────────────────── */
.product-spec-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 32px;
  margin-top: 16px;
  padding: 28px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.product-spec-dl dt {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 400;
}
.product-spec-dl dd {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
}
@media (max-width: 640px) {
  .product-spec-dl { grid-template-columns: 1fr; gap: 4px 0; padding: 20px 24px; }
  .product-spec-dl dd { margin-bottom: 12px; }
}
