/* ==========================================================================
   上海梯藤机电有限公司 官网样式
   配色取自公司 LOGO：深蓝为主色，橙色为强调色
   ========================================================================== */

:root {
  --navy-900: #0a1f3d;
  --navy-800: #102c53;
  --navy-700: #16386a;
  --navy-600: #1f4a87;
  --navy-100: #e8eef7;
  --orange: #e8701f;
  --orange-dark: #c95c13;
  --orange-light: #fdf1e7;
  --text: #1c2531;
  --text-mid: #5a6676;
  --text-light: #8b96a5;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(16, 44, 83, 0.06);
  --shadow-md: 0 8px 28px rgba(16, 44, 83, 0.1);
  --shadow-lg: 0 18px 48px rgba(16, 44, 83, 0.14);
  --header-h: 72px;
  --max-w: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* grid 子项默认 min-width:auto，内容(如 canvas)较宽时会把整页撑出横向滚动 */
.tool-layout > *, .products-layout > *, .detail-layout > *,
.about-intro > *, .contact-layout > *, .case-strip > * { min-width: 0; }

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
/* 效果图页加宽，左右和下方才放得下选项栏，预览仍留在中间 */
body[data-page="configurator"] .section > .container { max-width: 1500px; }

/* ---------- 通用标题 ---------- */
.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 {
  font-size: 32px; font-weight: 700; color: var(--navy-900);
  letter-spacing: -0.3px; margin-bottom: 14px; position: relative; padding-bottom: 16px;
}
.section-head h2::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 46px; height: 3px; background: var(--orange); border-radius: 2px;
}
.section-head p { color: var(--text-mid); font-size: 15px; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--left h2::after { left: 0; transform: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 6px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: all .22s ease; white-space: nowrap;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232, 112, 31, .32); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 44, 83, .28); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn--outline { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-700); color: var(--navy-700); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line); height: var(--header-h);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark {
  width: 40px; height: 40px; flex-shrink: 0;
}
.logo__text { line-height: 1.25; display: block; }
.logo__name { display: block; font-size: 17px; font-weight: 700; color: var(--navy-900); letter-spacing: .3px; white-space: nowrap; }
.logo__sub { display: block; font-size: 10px; color: var(--text-light); letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block; padding: 9px 13px; border-radius: 6px; white-space: nowrap;
  font-size: 15px; color: var(--text); transition: all .2s; position: relative;
}
.main-nav a:hover { color: var(--navy-700); background: var(--navy-100); }
.main-nav a.is-active { color: var(--navy-800); font-weight: 600; }
.main-nav a.is-active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--orange); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang-switch button {
  padding: 6px 12px; background: #fff; border: none; cursor: pointer;
  font-size: 13px; color: var(--text-mid); transition: all .2s;
}
.lang-switch button:hover { background: var(--bg-soft); }
.lang-switch button.is-active { background: var(--navy-800); color: #fff; }

.header-phone {
  display: flex; align-items: center; gap: 7px; font-size: 15px;
  font-weight: 600; color: var(--navy-800); white-space: nowrap;
}
.header-phone svg { color: var(--orange); flex-shrink: 0; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; cursor: pointer; align-items: center; justify-content: center;
}

/* ==========================================================================
   首页
   ========================================================================== */
.hero { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 31, 61, .93) 0%, rgba(16, 44, 83, .8) 42%, rgba(16, 44, 83, .32) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 90px 0; max-width: 680px; }
.hero__tag {
  display: inline-block; padding: 6px 14px; margin-bottom: 20px;
  background: rgba(232, 112, 31, .18); border: 1px solid rgba(232, 112, 31, .45);
  border-radius: 100px; color: #ffb97a; font-size: 13px; letter-spacing: .5px;
}
.hero h1 { font-size: 46px; line-height: 1.25; color: #fff; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 20px; }
.hero p { font-size: 17px; color: rgba(255, 255, 255, .82); margin-bottom: 34px; }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }

.stats { background: var(--navy-800); padding: 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { padding: 34px 20px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .1); }
.stats__item:last-child { border-right: none; }
.stats__num { font-size: 38px; font-weight: 700; color: #fff; line-height: 1.1; }
.stats__num span { color: var(--orange); }
.stats__label { font-size: 13px; color: rgba(255, 255, 255, .62); margin-top: 6px; }

/* 产品分类卡片 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .26s ease; display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-card__img { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.cat-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s ease; }
.cat-card:hover .cat-card__img img { transform: scale(1.06); }
.cat-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.cat-card__body h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 8px; font-weight: 600; }
.cat-card__body p { font-size: 13.5px; color: var(--text-mid); line-height: 1.65; flex: 1; }
.cat-card__link { margin-top: 14px; color: var(--orange); font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.cat-card:hover .cat-card__link { gap: 9px; }

/* 效果图工具入口 */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; transition: all .26s;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.tool-card__icon {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 14px;
  background: var(--orange-light); display: flex; align-items: center; justify-content: center; color: var(--orange);
}
.tool-card h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 10px; font-weight: 600; }
.tool-card p { font-size: 13.5px; color: var(--text-mid); margin-bottom: 20px; min-height: 46px; }

/* 优势 */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-item__icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  background: var(--navy-100); color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
}
.why-item h3 { font-size: 16.5px; color: var(--navy-900); margin-bottom: 9px; font-weight: 600; }
.why-item p { font-size: 13.5px; color: var(--text-mid); }

/* 案例条 */
.case-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.case-strip__img { border-radius: var(--radius); overflow: hidden; min-height: 280px; }
.case-strip__img img { width: 100%; height: 100%; object-fit: cover; }
.case-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; align-content: center; }
.case-list li {
  font-size: 14px; color: var(--text); padding-left: 20px; position: relative; line-height: 2.05;
}
.case-list li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}

/* CTA */
.cta {
  background: linear-gradient(118deg, var(--navy-900), var(--navy-600));
  padding: 64px 0; text-align: center; color: #fff;
}
.cta h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .78); margin-bottom: 28px; font-size: 15.5px; }

/* ==========================================================================
   内页通用
   ========================================================================== */
.page-hero {
  background: linear-gradient(118deg, var(--navy-900), var(--navy-600));
  padding: 62px 0 54px; color: #fff;
}
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, .76); font-size: 15.5px; }

.breadcrumb { font-size: 13px; color: var(--text-light); padding: 16px 0; border-bottom: 1px solid var(--line); }
.breadcrumb a:hover { color: var(--navy-700); }
.breadcrumb span { margin: 0 7px; }

/* ==========================================================================
   关于我们
   ========================================================================== */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-intro__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-intro__text h2 { font-size: 28px; color: var(--navy-900); margin-bottom: 20px; font-weight: 700; }
.about-intro__text p { color: var(--text-mid); margin-bottom: 16px; font-size: 14.5px; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; transition: all .25s;
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.value-card__char {
  font-size: 26px; font-weight: 700; color: var(--orange);
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--orange-light); display: flex; align-items: center; justify-content: center;
}
.value-card h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: var(--text-mid); }

.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cap-item {
  display: flex; gap: 16px; padding: 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.cap-item__no {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px;
  background: var(--navy-800); color: #fff; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.cap-item h3 { font-size: 16px; color: var(--navy-900); margin-bottom: 6px; }
.cap-item p { font-size: 13.5px; color: var(--text-mid); }

/* ==========================================================================
   产品中心
   ========================================================================== */
.products-layout { display: grid; grid-template-columns: 236px 1fr; gap: 34px; align-items: start; }

.filter-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: sticky; top: calc(var(--header-h) + 20px);
}
.filter-panel h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-light); margin-bottom: 12px; font-weight: 600;
}
.filter-panel h3:not(:first-child) { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.filter-list li { margin-bottom: 2px; }
.filter-list button {
  width: 100%; text-align: left; padding: 8px 11px; border: none; background: none;
  border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--text-mid);
  transition: all .18s; display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.filter-list button:hover { background: var(--bg-soft); color: var(--navy-800); }
.filter-list button.is-active { background: var(--navy-800); color: #fff; font-weight: 500; }
.filter-list button span { font-size: 11.5px; opacity: .7; }

.search-box { position: relative; margin-bottom: 20px; }
.search-box input {
  width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--line);
  border-radius: 7px; outline: none; transition: border-color .2s;
}
.search-box input:focus { border-color: var(--navy-600); }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-light); }

.result-count { font-size: 13.5px; color: var(--text-mid); margin-bottom: 16px; }
.result-count b { color: var(--navy-800); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .25s; display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-card__img { aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .35s; }
.product-card:hover .product-card__img img { transform: scale(1.07); }
.product-card__body { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.product-card__model { font-size: 14.5px; font-weight: 600; color: var(--navy-900); margin-bottom: 3px; }
.product-card__series { font-size: 12.5px; color: var(--text-light); }
.product-card__badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 4px; letter-spacing: .5px;
}
.empty-state { padding: 70px 20px; text-align: center; color: var(--text-light); grid-column: 1 / -1; }

/* ==========================================================================
   产品详情
   ========================================================================== */
.detail-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.detail-gallery__main {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.detail-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.detail-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-gallery__thumbs button {
  width: 68px; height: 68px; border: 1px solid var(--line); border-radius: 7px;
  overflow: hidden; background: var(--bg-soft); cursor: pointer; padding: 4px; transition: border-color .2s;
}
.detail-gallery__thumbs button.is-active { border-color: var(--orange); border-width: 2px; }
.detail-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.detail-info__cat { font-size: 13px; color: var(--orange); font-weight: 500; margin-bottom: 8px; letter-spacing: .4px; }
.detail-info h1 { font-size: 28px; color: var(--navy-900); font-weight: 700; margin-bottom: 12px; line-height: 1.35; }
.detail-info__desc { color: var(--text-mid); font-size: 14.5px; margin-bottom: 24px; }

.spec-table { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th {
  text-align: left; padding: 11px 16px; background: var(--bg-soft);
  font-weight: 500; color: var(--text-mid); font-size: 13.5px; width: 116px;
}
.spec-table td { padding: 11px 16px; font-size: 14px; color: var(--text); }

.feature-list { margin-bottom: 24px; }
.feature-list h3 { font-size: 16px; color: var(--navy-900); margin-bottom: 12px; }
.feature-list li { padding-left: 24px; position: relative; font-size: 14px; color: var(--text-mid); margin-bottom: 8px; }
.feature-list li::before {
  content: ''; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--orange); transform: rotate(45deg);
}

.detail-note {
  background: var(--orange-light); border-left: 3px solid var(--orange);
  padding: 13px 16px; border-radius: 0 6px 6px 0; font-size: 13.5px; color: var(--text-mid); margin-bottom: 24px;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   效果图工具
   ========================================================================== */
.tool-tabs { display: flex; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.tool-tabs button {
  padding: 13px 26px; background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; font-size: 15.5px; color: var(--text-mid); transition: all .2s; margin-bottom: -1px;
}
.tool-tabs button:hover { color: var(--navy-700); }
.tool-tabs button.is-active { color: var(--navy-800); border-bottom-color: var(--orange); font-weight: 600; }

/* 选项分成左右两列，预览夹在中间 */
.tool-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(380px, 1fr) minmax(240px, 300px);
  gap: 30px; align-items: start;
}
/* 翻选项时效果图停在屏幕上 */
.tool-layout .tool-stage { position: sticky; top: calc(var(--header-h) + 16px); }

.tool-controls {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.control-group { margin-bottom: 22px; }
.control-group:last-child { margin-bottom: 0; }
.control-group__title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .9px; color: var(--text-light);
  font-weight: 600; padding-bottom: 9px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.control { margin-bottom: 15px; }
.control:last-child { margin-bottom: 0; }
.control__label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--text); margin-bottom: 7px;
}
.control__label b { color: var(--navy-700); font-weight: 600; font-size: 13px; }
.control select, .control input[type="text"] {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; outline: none; cursor: pointer; transition: border-color .2s; font-size: 14px;
}
.control select:focus, .control input[type="text"]:focus { border-color: var(--navy-600); }
.control input[type="range"] { width: 100%; accent-color: var(--orange); cursor: pointer; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 34px; height: 34px; border-radius: 7px; border: 2px solid transparent;
  cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  transition: transform .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { border-color: var(--navy-800); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px #fff inset; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 100px;
  background: #fff; cursor: pointer; font-size: 13px; color: var(--text-mid); transition: all .18s;
}
.chip:hover { border-color: var(--navy-600); color: var(--navy-700); }
.chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.tool-stage {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; align-items: center;
}
.tool-stage__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap;
}
.tool-stage__head h3 { font-size: 16px; color: var(--navy-900); font-weight: 600; }
.tool-stage__actions { display: flex; gap: 10px; }
.tool-canvas-wrap {
  width: 100%; min-height: 600px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f2f5f9, #e6ebf2); border-radius: 8px; padding: 20px;
}
.tool-canvas-wrap canvas { max-width: 100%; height: auto; }
.tool-tip { font-size: 12.5px; color: var(--text-light); margin-top: 16px; text-align: center; }

/* ==========================================================================
   案例 / 下载 / 联系
   ========================================================================== */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 44px; }
.case-grid img { border-radius: var(--radius); width: 100%; height: 340px; object-fit: cover; box-shadow: var(--shadow-sm); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-item {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 18px; font-size: 14.5px; color: var(--text);
  display: flex; align-items: center; gap: 11px; transition: all .22s;
}
.project-item:hover { border-color: var(--navy-600); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.project-item svg { color: var(--orange); flex-shrink: 0; }

.download-card {
  display: flex; align-items: center; gap: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; flex-wrap: wrap;
}
.download-card__icon {
  width: 64px; height: 64px; border-radius: 13px; background: var(--orange-light);
  color: var(--orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
/* 多张资料卡片之间留出间距 */
#download-extra .download-card { margin-bottom: 22px; }
.download-card__text { flex: 1; min-width: 220px; }
.download-card__text h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 6px; }
.download-card__text p { font-size: 13.5px; color: var(--text-mid); }

.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-info__row { display: flex; gap: 15px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.contact-info__row:last-child { border-bottom: none; }
.contact-info__icon {
  width: 38px; height: 38px; border-radius: 9px; background: var(--navy-100);
  color: var(--navy-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info__label { font-size: 12.5px; color: var(--text-light); margin-bottom: 2px; }
.contact-info__value { font-size: 14.5px; color: var(--text); word-break: break-all; }
.contact-info__value a:hover { color: var(--navy-700); }

.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.inquiry-form h3 { font-size: 19px; color: var(--navy-900); margin-bottom: 8px; }
.inquiry-form > p { font-size: 13.5px; color: var(--text-mid); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-field label { display: block; font-size: 13px; color: var(--text-mid); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 6px;
  outline: none; transition: border-color .2s; font-size: 14px;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--navy-600); }
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field--full { grid-column: 1 / -1; }
.inquiry-output {
  margin-top: 18px; padding: 16px; background: var(--bg-soft);
  border: 1px dashed var(--line); border-radius: 7px; font-size: 13.5px;
  white-space: pre-wrap; color: var(--text); display: none; line-height: 1.8;
}
.inquiry-output.is-visible { display: block; }
.form-hint { font-size: 12.5px; color: var(--text-light); margin-top: 12px; }
.form-error { color: #d14343; font-size: 13px; margin-top: 10px; display: none; }
.form-error.is-visible { display: block; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .68); padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo__name { color: #fff; }
.footer-brand .logo__sub { color: rgba(255, 255, 255, .45); }
.footer-brand p { font-size: 13.5px; margin-top: 16px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer-col li { margin-bottom: 9px; font-size: 13.5px; }
.footer-col a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 9px; margin-bottom: 11px; font-size: 13.5px; line-height: 1.6; }
.footer-contact svg { flex-shrink: 0; margin-top: 4px; color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0;
  font-size: 13px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ==========================================================================
   响应式
   ========================================================================== */
/* 导航挤不下时先收起电话 */
@media (max-width: 1240px) {
  .header-phone { display: none; }
}

@media (max-width: 1100px) {
  .cat-grid, .why-grid, .value-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-layout { grid-template-columns: minmax(210px, 260px) minmax(320px, 1fr) minmax(210px, 260px); gap: 18px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1040px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 12px 24px 20px; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a.is-active::after { display: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 15.5px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item:nth-child(1), .stats__item:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .tool-grid { grid-template-columns: 1fr; }
  .about-intro, .case-strip, .contact-layout, .detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .products-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-layout .tool-stage { position: static; order: 1; }
  .tool-layout #tool-controls,
  .tool-layout #tool-controls-side { order: 2; }
  .case-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .tool-canvas-wrap { min-height: 380px; padding: 14px; }
  .section { padding: 52px 0; }
}

@media (max-width: 640px) {
  .cat-grid, .why-grid, .value-grid, .product-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 27px; }
  .section-head h2 { font-size: 25px; }
  .page-hero h1 { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .case-list { grid-template-columns: 1fr; }
  .logo__sub { display: none; }
  .logo__name { font-size: 15px; }
  .stats__num { font-size: 30px; }
}

@media (max-width: 420px) {
  .product-grid, .cat-grid, .why-grid, .value-grid, .project-grid { grid-template-columns: 1fr; }
}
