/* ============================================================
   友立芯科技 · 官网样式（红白主题 v2）
   主色：白底 + 品牌红点缀（logo 红字呼应）
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #faf7f7;
  --card: #ffffff;
  --line: rgba(20, 20, 30, 0.09);
  --text: #1c1c24;
  --text-dim: #5c6070;
  --text-faint: #8a8fa0;
  --red: #d9261f;
  --red-bright: #ef3b32;
  --red-dark: #b01c17;
  --red-soft: #fdecea;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(30, 20, 20, 0.08);
  --maxw: 1200px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--red); background: var(--red-soft); }
.nav-links a.active { color: var(--red); font-weight: 700; position: relative; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: var(--red);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0; border-radius: 2px;
}

/* ---------- 语言切换按钮 ---------- */
.lang-host { margin-left: 10px; display: flex; align-items: center; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.2s;
  line-height: 1;
}
.lang-switch:hover { border-color: var(--red); color: var(--red); }
.lang-switch .ls-zh, .lang-switch .ls-en { transition: color 0.2s; }
.lang-switch .ls-zh.on, .lang-switch .ls-en.on { color: var(--red); }
.lang-switch .ls-sep { color: var(--text-faint); font-weight: 400; }
@media (max-width: 960px) {
  .lang-host { margin-left: 0; margin-right: 52px; }
}

/* ---------- 通用区块 ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
}
.section-title { font-size: 34px; font-weight: 800; line-height: 1.3; color: var(--text); }
.section-sub { color: var(--text-dim); margin-top: 14px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 420px at 85% -10%, rgba(217, 38, 31, 0.07), transparent 60%),
    linear-gradient(180deg, #fff8f7 0%, #ffffff 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 14px; font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: var(--text);
}
.hero h1 .hl { color: var(--red); }
.hero p.lead { margin-top: 22px; font-size: 18px; color: var(--text-dim); max-width: 560px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(217, 38, 31, 0.32);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.hero-stats { margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.stat .num { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.15; }
.stat .num em { font-style: normal; color: var(--red); font-size: 0.72em; margin-left: 2px; }
.stat .lbl { font-size: 13px; color: var(--text-faint); margin-top: 4px; }

/* Hero 右侧：干净的白卡 + 红色 logo 展示 */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 48px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
}
.hero-card .logo-big { height: 130px; width: auto; }
.hero-card .chip-line {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-faint);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
}
.hero-card .chip-line::before, .hero-card .chip-line::after {
  content: ""; height: 1px; width: 44px; background: var(--line);
}
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.badge {
  font-size: 13px; font-weight: 600;
  color: var(--red);
  background: var(--red-soft);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- 产品线 ---------- */
.products { background: var(--bg-soft); }
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.p-card:hover { transform: translateY(-5px); border-color: rgba(217, 38, 31, 0.4); box-shadow: var(--shadow); }
.p-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: var(--red-soft);
}
.p-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.p-card p { font-size: 14px; color: var(--text-dim); }
.p-card .models {
  display: inline-block; margin-top: 14px;
  font-size: 12px; color: var(--red);
  background: var(--red-soft);
  padding: 3px 10px; border-radius: 6px;
  letter-spacing: 0.3px;
}

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 20px; color: var(--text); }
.about-copy h2 .hl { color: var(--red); }
.about-copy p { color: var(--text-dim); margin-bottom: 16px; font-size: 15.5px; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.fact .k { font-size: 12px; color: var(--text-faint); letter-spacing: 1px; }
.fact .v { font-size: 17px; font-weight: 700; margin-top: 6px; color: var(--text); }
.fact-accent { background: var(--red); border-color: var(--red); }
.fact-accent .k { color: rgba(255,255,255,0.75); }
.fact-accent .v { color: #fff; }
.fact-accent p { color: rgba(255,255,255,0.85); }

/* ---------- 应用领域 ---------- */
.apps { background: #fff; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.app-item:hover {
  border-color: var(--red); background: var(--red-soft);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(217, 38, 31, .14);
}
.app-item .app-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; transition: transform 0.3s; }
.app-item:hover .app-thumb { transform: scale(1.08); }
.app-item span { font-size: 16px; font-weight: 600; color: var(--text); }

/* ---------- 联系 ---------- */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.contact-info > p { color: var(--text-dim); margin-bottom: 16px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.contact-card-img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ico {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft);
  font-size: 18px;
}
.contact-item .k { font-size: 13px; color: var(--text-faint); }
.contact-item .v { font-size: 15.5px; color: var(--text); font-weight: 600; }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; font-weight: 600; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-wechat-col h4 { margin-bottom: 16px; }
.footer-wechat { display: flex; gap: 14px; }
.footer-wechat figure { margin: 0; text-align: center; flex: 0 0 auto; }
.footer-wechat img { width: 140px; height: 140px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px; display: block; object-fit: contain; flex-shrink: 0; }
.footer-wechat figcaption { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.footer .brand { flex-direction: column; align-items: flex-start; }
.footer .brand img { height: 44px; margin-bottom: 14px; }
.footer .brand p { color: var(--text-dim); font-size: 14px; max-width: 340px; }
.footer h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-dim); font-size: 14px; transition: color 0.2s; }
.footer ul a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text-faint);
}

/* ---------- 页面标题横幅（内页通用） ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  /* 主题色（红）向下渐变：顶部淡红，往下渐隐成白 */
  background: linear-gradient(180deg,
    #fdecea 0%,
    #fff1ef 28%,
    #fff6f4 55%,
    #ffffff 100%);
}
/* 粒子层一：较大较密的红色粒子，缓缓下落 */
.page-hero::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  opacity: .55;
  box-shadow:
    60px  30px  0 rgba(217,38,31,.5),
    160px 80px  0 rgba(239,59,50,.42),
    260px 20px  0 rgba(217,38,31,.35),
    380px 70px  0 rgba(239,59,50,.5),
    500px 40px  0 rgba(217,38,31,.3),
    640px 90px  0 rgba(239,59,50,.45),
    760px 25px  0 rgba(217,38,31,.38),
    900px 65px  0 rgba(239,59,50,.5),
    1040px 35px 0 rgba(217,38,31,.32),
    1180px 85px 0 rgba(239,59,50,.44),
    100px 110px 0 rgba(217,38,31,.3),
    300px 130px 0 rgba(239,59,50,.4),
    460px 105px 0 rgba(217,38,31,.28),
    620px 135px 0 rgba(239,59,50,.36),
    800px 115px 0 rgba(217,38,31,.3),
    980px 140px 0 rgba(239,59,50,.38),
    1140px 120px 0 rgba(217,38,31,.3);
  animation: heroFall 7s linear infinite;
}
/* 粒子层二：更小、更淡、速度更快的粒子，制造纵深 */
.page-hero::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  opacity: .4;
  box-shadow:
    40px  50px  0 rgba(239,59,50,.35),
    140px 100px 0 rgba(217,38,31,.3),
    240px 40px  0 rgba(239,59,50,.4),
    340px 120px 0 rgba(217,38,31,.28),
    440px 60px  0 rgba(239,59,50,.35),
    560px 110px 0 rgba(217,38,31,.3),
    680px 45px  0 rgba(239,59,50,.38),
    820px 100px 0 rgba(217,38,31,.3),
    940px 55px  0 rgba(239,59,50,.34),
    1080px 95px 0 rgba(217,38,31,.3),
    1200px 40px 0 rgba(239,59,50,.32),
    200px 150px 0 rgba(217,38,31,.26),
    520px 145px 0 rgba(239,59,50,.3),
    720px 155px 0 rgba(217,38,31,.26),
    1000px 150px 0 rgba(239,59,50,.28);
  animation: heroFall 5s linear infinite;
}
@keyframes heroFall {
  0%   { transform: translateY(0); }
  100% { transform: translateY(240px); }
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { position: relative; text-shadow: 0 2px 18px rgba(255,255,255,.85); }
.page-hero h1 { font-size: 40px; font-weight: 800; color: var(--text); }
.page-hero h1 .hl { color: var(--red); }
.page-hero .crumb { margin-top: 12px; font-size: 14px; color: var(--text-faint); }
.page-hero .crumb a { color: var(--text-dim); }
.page-hero .crumb a:hover { color: var(--red); }

/* 各内页背景分配已移除（2026-10-23）：用户要求内页横幅去掉底图，改为红色渐变 + 粒子下落 */

/* ---------- 产品中心 ---------- */
.catalog-wrap { padding: 48px 0 90px; }

/* 热销榜 */
.hot-bar {
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff5f4 0%, #fff 70%);
  border: 1px solid rgba(217,38,31,.15);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow);
}
.hot-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.hot-title { font-size: 18px; font-weight: 800; color: var(--red); }
.hot-sub { font-size: 13px; color: var(--text-faint); }
.hot-list {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox 隐藏滚动条 */
}
.hot-list::-webkit-scrollbar { display: none; }  /* Chrome/Safari 隐藏滚动条 */
.hot-item {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: default;
}
.hot-item .rk {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  background: var(--bg-soft); color: var(--text-faint);
}
.hot-item .rk.rk-top { background: var(--red); color: #fff; }
.hot-info { flex: 1; min-width: 0; }
.hot-model { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.hot-meta { font-size: 12px; color: var(--text-faint); margin-top: 2px; white-space: nowrap; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.search-box { position: relative; flex: 1 1 260px; min-width: 220px; }
.search-box .s-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); font-size: 16px; pointer-events: none;
}
.search-box input {
  width: 100%; padding: 11px 14px 11px 42px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 15px; color: var(--text);
  font-family: inherit; transition: border-color 0.2s;
}
.search-box input:focus { outline: none; border-color: var(--red); background: #fff; }
.toolbar select {
  padding: 11px 14px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); font-family: inherit; cursor: pointer;
  min-width: 140px;
}
.toolbar select:focus { outline: none; border-color: var(--red); }

.result-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.result-bar .cnt { font-size: 14px; color: var(--text-dim); }
.result-bar .cnt b { color: var(--red); }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.prod-card:hover { transform: translateY(-4px); border-color: rgba(217,38,31,0.4); box-shadow: var(--shadow); }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-icon { font-size: 18px; }
.pc-pkg {
  font-size: 11px; color: var(--red); background: var(--red-soft);
  padding: 2px 8px; border-radius: 5px; font-weight: 600;
}
.pc-code { font-size: 11px; color: var(--text-faint); margin-left: auto; }
.pc-model { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: 0.3px; word-break: break-all; }
.pc-name { font-size: 13px; color: var(--text-dim); min-height: 20px; }
.pc-specs { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.pc-specs .spec { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.pc-specs .sk { color: var(--text-faint); flex-shrink: 0; }
.pc-specs .sv { color: var(--text-dim); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-bot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.pc-bot .price { color: var(--red); font-weight: 700; font-size: 16px; }
.pc-bot .price small { font-size: 12px; font-weight: 500; }
.pc-bot .price.muted { color: var(--text-faint); font-weight: 500; font-size: 13px; }
.pc-bot .stock { font-size: 12px; color: var(--text-faint); }
.pc-bot .stock b { color: #1a9e4f; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty-state .es-ico { font-size: 44px; margin-bottom: 12px; }
.empty-state p { margin-bottom: 6px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 8px; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text-dim);
  transition: all 0.15s;
}
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager a.pg-nav { font-weight: 600; }
.pager span.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.pager span.gap { border: none; background: none; cursor: default; color: var(--text-faint); }

/* ---------- 参数选型 ---------- */
.selection-wrap { padding: 48px 0 90px; }
.sel-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.sel-toolbar select {
  padding: 11px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text);
  font-family: inherit; cursor: pointer; min-width: 260px;
}
.sel-toolbar select:focus { outline: none; border-color: var(--red); }
.sel-count { font-size: 14px; color: var(--text-dim); }
.sel-count b { color: var(--red); }
.sel-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
/* 让横向滚动条一眼可见 */
.sel-table-wrap::-webkit-scrollbar { height: 12px; }
.sel-table-wrap::-webkit-scrollbar-track { background: var(--bg-soft); border-radius: 6px; }
.sel-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(217,38,31,.45);
  border-radius: 6px;
  border: 2px solid var(--bg-soft);
}
.sel-table-wrap::-webkit-scrollbar-thumb:hover { background: var(--red); }
.sel-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.sel-table th, .sel-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sel-table thead th { background: var(--bg-soft); color: var(--text-dim); font-weight: 600; position: sticky; top: 0; z-index: 2; }
/* 首列（型号）与次列（封装）横向吸附，滚动时保持可见 */
.sel-table th:first-child, .sel-table td:first-child {
  position: sticky; left: 0; z-index: 1;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}
.sel-table thead th:first-child { z-index: 3; background: var(--bg-soft); box-shadow: 1px 0 0 var(--line); }
.sel-table td:first-child { font-weight: 700; color: var(--text); }
.sel-table tbody tr:hover { background: var(--red-soft); }
.sel-table tbody tr:hover td:first-child { background: var(--red-soft); }
.sel-table td.m { font-weight: 700; color: var(--text); }
/* 滚动提示文案 */
.sel-scroll-hint { font-size: 12.5px; color: var(--text-faint); margin-top: 10px; text-align: right; }

/* ---------- 通用内容页 ---------- */
.content-section { padding: 56px 0 90px; }
/* ---------- 企业文化栏目（关于我们底部） ---------- */
.culture-section { padding: 0 0 96px; }
.culture-head { display: flex; justify-content: flex-start; margin-bottom: 18px; }
.cu-arrow {
  width: 40px; height: 40px; margin-right: 10px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-dim);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: all .18s;
}
.cu-arrow:hover { border-color: var(--red); color: var(--red); }
.culture-track {
  display: flex; gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.culture-track::-webkit-scrollbar { display: none; }
.culture-card {
  flex: 0 0 calc((100% - 44px) / 3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 20px 24px;
  transition: border-color .18s, box-shadow .18s;
}
.culture-card:hover { border-color: rgba(217,38,31,.35); box-shadow: var(--shadow); }
.culture-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.culture-img { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; }
.culture-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.culture-card:hover .culture-img img { transform: scale(1.04); }
.culture-card p { margin-top: 14px; font-size: 14.5px; line-height: 1.7; color: var(--text-dim); }
@media (max-width: 900px) {
  .culture-card { flex: 0 0 calc((100% - 22px) / 2); }
}
@media (max-width: 600px) {
  .culture-card { flex: 0 0 86%; }
}
.content-section .prose { max-width: 820px; margin: 0 auto; }
.content-section .prose h2 { font-size: 24px; font-weight: 800; color: var(--text); margin: 36px 0 14px; }
.content-section .prose h2:first-child { margin-top: 0; }
.content-section .prose p { color: var(--text-dim); margin-bottom: 14px; font-size: 15.5px; }
.content-section .prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.content-section .prose ul li { color: var(--text-dim); margin-bottom: 8px; font-size: 15px; }

/* ---------- 关于我们 / 质量保证 高大上版式 ---------- */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.about-intro-txt h2 { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 18px; }
.about-intro-txt h2::before { content: ""; display: inline-block; width: 5px; height: 24px; background: var(--red); border-radius: 2px; margin-right: 12px; vertical-align: -4px; }
.about-intro-txt p { color: var(--text-dim); font-size: 15.5px; line-height: 1.85; margin-bottom: 14px; }
.about-intro-txt p strong { color: var(--text); }
.about-intro-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.about-intro-img img { width: 100%; height: 320px; object-fit: cover; display: block; transition: transform .4s; }
.about-intro-img:hover img { transform: scale(1.04); }

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.about-stats .stat { text-align: center; padding: 24px 18px; }
.about-stats .stat .num { font-size: 30px; }

.about-milestone .am-title, .about-products .ap-title { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 28px; }
.about-milestone .am-title::before, .about-products .ap-title::before { content: ""; display: inline-block; width: 5px; height: 20px; background: var(--red); border-radius: 2px; margin-right: 12px; vertical-align: -3px; }
.am-timeline { position: relative; padding-left: 8px; }
.am-item { position: relative; padding: 0 0 26px 28px; border-left: 2px solid var(--line); margin-left: 6px; }
.am-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.am-item .am-dot { position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.am-item .am-date { font-size: 15px; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.am-item .am-txt { font-size: 15px; color: var(--text-dim); line-height: 1.7; }

.about-two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; margin-bottom: 56px; }

.about-products .ap-sub { color: var(--text-dim); font-size: 15px; line-height: 1.8; margin-bottom: 28px; max-width: 820px; }
.ap-list { display: flex; flex-direction: column; gap: 14px; }
.ap-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: transform .22s, box-shadow .22s, border-color .22s; }
.ap-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 14px 30px rgba(217,38,31,.12); }
.ap-card .ap-ic { font-size: 30px; flex-shrink: 0; }
.ap-card .ap-txt h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.ap-card .ap-txt p { font-size: 13px; color: var(--text-faint); line-height: 1.6; margin: 0; }

.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qa-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s, border-color .22s; }
.qa-card:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 16px 34px rgba(217,38,31,.13); }
.qa-card .qa-ic { font-size: 34px; margin-bottom: 14px; }
.qa-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.qa-card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.8; }
.qa-card ul { list-style: none; padding: 0; }
.qa-card ul li { font-size: 14.5px; color: var(--text-dim); line-height: 1.7; margin-bottom: 10px; padding-left: 18px; position: relative; }
.qa-card ul li::before { content: "▸"; position: absolute; left: 0; color: var(--red); }

@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-two-col { grid-template-columns: 1fr; gap: 40px; }
  .qa-grid { grid-template-columns: 1fr; }
}

/* ---------- 型号详情弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(20, 16, 16, 0.5);
  z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 640px; width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px; cursor: pointer;
  color: var(--text-dim);
  transition: all 0.15s;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal .md-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; padding-right: 40px; }
.modal .md-model { font-size: 24px; font-weight: 800; color: var(--text); word-break: break-all; }
.modal .md-cat { font-size: 13px; color: var(--red); font-weight: 600; margin-bottom: 14px; }
.modal .md-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.modal .md-tag {
  font-size: 12.5px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 7px;
  padding: 4px 10px; color: var(--text-dim);
}
.modal .md-tag.price { color: var(--red); font-weight: 700; border-color: rgba(217,38,31,0.35); background: var(--red-soft); }
.modal .md-tag.stock { color: #14803f; font-weight: 600; }
.modal h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.md-params { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.md-params td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-params tr:last-child td { border-bottom: none; }
.md-params td:first-child { color: var(--text-faint); width: 40%; }
.md-params td:last-child { color: var(--text); font-weight: 500; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 38px; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 32px; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.3s;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .hero { padding: 120px 0 80px; }
  .hero h1 { font-size: 30px; }
  .section-title { font-size: 26px; }
  .p-grid, .app-grid, .prod-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat .num { font-size: 22px; }
  .hero-card { padding: 36px 24px; }
  .hero-card .logo-big { height: 100px; }
}

/* ===== 首屏：全屏流动大屏（2026-10-17 新增） ===== */
html { scroll-behavior: smooth; }
#intro { scroll-margin-top: 76px; }

.splash {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f7 60%, #fdeeea 100%);
  text-align: center;
}
.splash-bg { position: absolute; inset: 0; pointer-events: none; }
.splash-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
}
.splash-bg .b1 {
  width: 560px; height: 560px;
  left: -140px; top: -120px;
  background: radial-gradient(circle, #ef3b32 0%, transparent 70%);
  animation: drift1 16s ease-in-out infinite alternate;
}
.splash-bg .b2 {
  width: 640px; height: 640px;
  right: -180px; bottom: -160px;
  background: radial-gradient(circle, #ff8a80 0%, transparent 70%);
  animation: drift2 20s ease-in-out infinite alternate;
}
.splash-bg .b3 {
  width: 420px; height: 420px;
  left: 38%; top: 52%;
  background: radial-gradient(circle, #ffc7c2 0%, transparent 70%);
  animation: drift3 14s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1);} to { transform: translate(120px,80px) scale(1.15);} }
@keyframes drift2 { from { transform: translate(0,0) scale(1.1);} to { transform: translate(-140px,-90px) scale(.95);} }
@keyframes drift3 { from { transform: translate(0,0);} to { transform: translate(-90px,-60px);} }

.splash-bg .wave {
  position: absolute;
  left: 0; bottom: -4px;
  width: 250%;
  height: 34vh;
  opacity: .5;
}
.splash-bg .w1 { fill: rgba(217,38,31,.10); animation: waveMove 18s linear infinite; }
.splash-bg .w2 { fill: rgba(217,38,31,.16); animation: waveMove 26s linear infinite reverse; }
@keyframes waveMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-60%); }
}

.splash-bg .spark {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--red);
  opacity: 0;
  box-shadow: 0 0 14px rgba(217,38,31,.55);
  animation: floatUp 9s linear infinite;
}
.splash-bg .s1 { left: 12%; animation-delay: 0s; }
.splash-bg .s2 { left: 28%; animation-delay: 2.4s; }
.splash-bg .s3 { left: 52%; animation-delay: 1.2s; }
.splash-bg .s4 { left: 68%; animation-delay: 3.6s; }
.splash-bg .s5 { left: 82%; animation-delay: .8s; }
.splash-bg .s6 { left: 92%; animation-delay: 4.6s; }
@keyframes floatUp {
  0%   { transform: translateY(20vh) rotate(0deg); opacity: 0; }
  12%  { opacity: .8; }
  85%  { opacity: .5; }
  100% { transform: translateY(-72vh) rotate(300deg); opacity: 0; }
}

.splash-inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 120px; }
.splash-kicker {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  animation: rise .9s ease both;
}
.splash-title {
  margin: 26px 0 10px;
  font-size: clamp(56px, 9vw, 108px);
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--text);
  line-height: 1.05;
  animation: rise 1s .12s ease both;
}
.splash-title::after {
  content: "";
  display: block;
  width: 120px; height: 6px;
  margin: 22px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
}
.splash-sub {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--red);
  margin: 18px 0 8px;
  animation: rise 1s .24s ease both;
}
.splash-en {
  font-size: 13px;
  letter-spacing: .35em;
  color: var(--text-faint);
  text-transform: uppercase;
  animation: rise 1s .32s ease both;
}
.splash-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise 1s .42s ease both;
}
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 12px; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-faint);
  font-size: 12px;
  text-decoration: none;
  animation: rise 1s .6s ease both;
}
.scroll-cue .mouse {
  width: 26px; height: 42px;
  border: 2px solid var(--text-faint);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 7px;
}
.scroll-cue .dot {
  width: 4px; height: 9px;
  border-radius: 2px;
  background: var(--red);
  animation: cueDrop 1.6s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-bg .blob, .splash-bg .wave, .splash-bg .spark, .scroll-cue .dot,
  .page-hero::before, .page-hero::after { animation: none; }
}

/* ===== 首屏轮播大图 ===== */
.slide-bg { position: absolute; inset: 0; overflow: hidden; }
.slide-bg .slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s ease;
}
.slide-bg .slide.active { opacity: 1; transform: scale(1); }
.slide-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,.88) 0%,
    rgba(255,255,255,.78) 34%,
    rgba(255,248,247,.82) 68%,
    rgba(253,238,234,.9) 100%);
}
.slide-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(217,38,31,.22);
  background: rgba(255,255,255,.75);
  color: var(--red);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s, box-shadow .25s;
  backdrop-filter: blur(6px);
}
.slide-arrow:hover { background: #fff; box-shadow: 0 8px 24px rgba(217,38,31,.18); transform: translateY(-50%) scale(1.06); }
.slide-arrow.prev { left: 28px; }
.slide-arrow.next { right: 28px; }
.slide-dots {
  position: absolute; left: 50%; bottom: 82px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 10px;
}
.slide-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(217,38,31,.25);
  cursor: pointer;
  padding: 0;
  transition: width .3s, background .3s;
}
.slide-dots .dot.on { width: 28px; border-radius: 6px; background: var(--red); }

@media (max-width: 768px) {
  .slide-arrow { width: 40px; height: 40px; font-size: 22px; }
  .slide-arrow.prev { left: 12px; }
  .slide-arrow.next { right: 12px; }
  .slide-dots { bottom: 74px; }
}

/* ============================================================
   ✨ 复杂化视觉增强层 v1（2026-10-23）
   追加式覆盖，不破坏原有规则；如需回滚删除本段即可
   ============================================================ */

/* ---------- 全局：科技网格纹理背景 + 细颗粒噪点 ---------- */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(217,38,31,.045), transparent 34%),
    radial-gradient(circle at 88% 92%, rgba(217,38,31,.04), transparent 40%),
    var(--bg);
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(217,38,31,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,38,31,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 80%);
  opacity: .55;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(217,38,31,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, #000 20%, transparent 75%);
  opacity: .5;
}
main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- 自定义滚动条 ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #faf6f6; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ef7a72, #d9261f);
  border-radius: 8px;
  border: 3px solid #faf6f6;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #f28a82, #b01c17); }

/* ---------- 文字选区 ---------- */
::selection { background: rgba(217,38,31,.16); color: #a00; }

/* ---------- 导航栏：玻璃态 + 底部发光 + 顶部渐变条 ---------- */
.nav {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 1px 0 rgba(217,38,31,.06), 0 8px 30px rgba(30,20,20,.06);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-bright) 30%, var(--red) 50%, var(--red-bright) 70%, transparent);
  background-size: 200% 100%;
  animation: navShine 4s linear infinite;
}
@keyframes navShine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.nav-links a { position: relative; overflow: hidden; }
.nav-links a::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red-bright), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:hover::before { transform: scaleX(1); }
.nav-links a.active::before { transform: scaleX(1); }
.brand { position: relative; }
.brand img { transition: transform .35s ease, filter .35s ease; filter: drop-shadow(0 2px 6px rgba(217,38,31,.12)); }
.brand:hover img { transform: scale(1.04) rotate(-1deg); filter: drop-shadow(0 6px 14px rgba(217,38,31,.28)); }

/* ---------- 通用按钮：光泽扫过 + 渐变 ---------- */
.btn { position: relative; overflow: hidden; }
.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red) 55%, var(--red-dark));
  background-size: 160% 160%;
  transition: transform .18s, box-shadow .25s, background-position .4s;
}
.btn-primary:hover { background-position: 100% 50%; box-shadow: 0 12px 30px rgba(217,38,31,.42); }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost:hover { background: var(--red-soft); border-color: var(--red); }

/* ---------- 区块标题：渐变描边 tag ---------- */
.section-tag {
  background: linear-gradient(90deg, var(--red-soft), transparent);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(217,38,31,.12);
  box-shadow: 0 2px 10px rgba(217,38,31,.08);
}
.section-title { position: relative; display: inline-block; }
.section-head .section-title::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: -14px;
  width: 60px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
}

/* ---------- 产品线卡片：3D 倾斜 + 玻璃反光 + 渐变描边 ---------- */
.p-card {
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
  background: linear-gradient(160deg, #fff 0%, #fffdfd 100%);
}
.p-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(217,38,31,.5), transparent 40%, transparent 60%, rgba(217,38,31,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
}
.p-card::after {
  content: "";
  position: absolute;
  top: -60%; left: -60%;
  width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: rotate(25deg);
  transition: left .6s ease;
  pointer-events: none;
}
.p-card:hover { transform: translateY(-8px); box-shadow: 0 22px 46px rgba(217,38,31,.16); }
.p-card:hover::before { opacity: 1; }
.p-card:hover::after { left: 130%; }
.p-icon {
  background: linear-gradient(135deg, var(--red-soft), #fff0ee);
  box-shadow: inset 0 0 0 1px rgba(217,38,31,.1), 0 6px 16px rgba(217,38,31,.12);
  transition: transform .3s;
}
.p-card:hover .p-icon { transform: scale(1.12) rotate(-6deg); }

/* ---------- 统计数字：加粗渐变 + 顶部高光 ---------- */
.stat { position: relative; overflow: hidden; transition: transform .28s, box-shadow .28s; }
.stat:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30,20,20,.12); }
.stat .num {
  background: linear-gradient(120deg, var(--red-bright), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  opacity: 0; transition: opacity .3s;
}
.stat:hover::before { opacity: 1; }

/* ---------- 应用领域小卡：玻璃 + 描边 ---------- */
.app-item { position: relative; overflow: hidden; }
.app-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(217,38,31,.35), transparent 45%, transparent 65%, rgba(217,38,31,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.app-item:hover::after { opacity: 1; }
.app-thumb { box-shadow: 0 4px 12px rgba(30,20,20,.12); }

/* ---------- 首屏：科技网格 + 光斑扫过 ---------- */
.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image:
    linear-gradient(rgba(217,38,31,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,38,31,.16) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 25%, transparent 82%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 25%, transparent 82%);
  animation: gridPulse 6s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: .9; }
  50% { opacity: .55; }
}
.splash::after {
  content: "";
  position: absolute;
  top: -30%; left: -30%;
  width: 60%; height: 160%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(18deg);
  animation: splashSweep 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes splashSweep {
  0% { left: -40%; }
  55% { left: 130%; }
  100% { left: 130%; }
}
.splash-title {
  background: linear-gradient(120deg, #1c1c24 20%, var(--red-dark) 60%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.splash-kicker { box-shadow: 0 4px 16px rgba(217,38,31,.14); }
.slide-arrow { box-shadow: 0 6px 18px rgba(30,20,20,.08); }

/* ---------- 内页横幅：科技网格 + 旋转光斑 ---------- */
.page-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(217,38,31,.12), transparent 42%),
    radial-gradient(circle at 80% 10%, rgba(239,59,50,.10), transparent 38%),
    linear-gradient(180deg, #fdecea 0%, #fff1ef 30%, #fff6f4 58%, #ffffff 100%);
}
.page-hero .container { position: relative; z-index: 2; }
/* 内页横幅加科技网格 */
.page-hero::marker { display: none; }
.page-hero .crumb a { position: relative; }
.page-hero .crumb a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.page-hero h1 { animation: heroTitleIn .7s ease both; }
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 关于/质量：玻璃卡 + 渐变描边 ---------- */
.about-intro-img { position: relative; box-shadow: 0 20px 50px rgba(30,20,20,.16); }
.about-intro-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  pointer-events: none;
}
/* 时间轴连线加强（原本过浅） */
.am-timeline .am-item { border-left: 3px solid rgba(217,38,31,.5); }
.am-timeline .am-item:last-child { border-left-color: transparent; }
.am-timeline .am-item .am-dot { background: #fff; box-shadow: 0 0 0 4px rgba(217,38,31,.18), 0 0 14px rgba(217,38,31,.5); }
.am-timeline .am-item:hover .am-dot { box-shadow: 0 0 0 7px rgba(217,38,31,.24), 0 0 22px rgba(217,38,31,.6); }
.am-timeline .am-item .am-date { letter-spacing: .3px; font-weight: 800; }
.qa-card, .ap-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #fff 0%, #fffafa 100%);
}
.qa-card::before, .ap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(217,38,31,.4), transparent 45%, transparent 65%, rgba(217,38,31,.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.qa-card:hover::before, .ap-card:hover::before { opacity: 1; }
.qa-card .qa-ic { transition: transform .3s; }
.qa-card:hover .qa-ic { transform: scale(1.14) rotate(-4deg); }
.ap-card .ap-ic { transition: transform .3s; }
.ap-card:hover .ap-ic { transform: scale(1.16); }

/* ---------- 产品中心 / 选型卡片与表格 ---------- */
.prod-card {
  position: relative;
  overflow: hidden;
  transition: transform .24s cubic-bezier(.2,.7,.3,1), box-shadow .24s, border-color .24s;
}
.prod-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red-bright), var(--red));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.prod-card:hover::before { transform: scaleX(1); }
.prod-card:hover { box-shadow: 0 18px 40px rgba(217,38,31,.14); }
.prod-card .pc-model { transition: color .2s; }
.prod-card:hover .pc-model { color: var(--red); }
.toolbar, .hot-bar {
  background: linear-gradient(160deg, #fff 0%, #fff7f6 100%);
  box-shadow: 0 10px 30px rgba(30,20,20,.07);
}
.toolbar select:hover, .search-box input:hover { border-color: rgba(217,38,31,.4); }
.hot-title {
  background: linear-gradient(120deg, var(--red-bright), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sel-table thead th {
  background: linear-gradient(180deg, #fff5f4, #fdecea);
  color: var(--red-dark);
}
.sel-table tbody tr { transition: background .2s, transform .2s; }
.sel-table tbody tr:hover { background: var(--red-soft); }

/* ---------- 新闻列表项 ---------- */
.news-item { transition: padding .25s, background .25s; border-radius: 10px; }
.news-item:hover { background: linear-gradient(90deg, #fff6f5, transparent); padding-left: 12px; }
.ni-thumb { transition: transform .3s, box-shadow .3s; }
.news-item:hover .ni-thumb { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(30,20,20,.14); }

/* ---------- 页脚 ---------- */
.footer {
  background:
    radial-gradient(circle at 50% 0%, rgba(217,38,31,.05), transparent 50%),
    #fff;
}
.footer h4 { position: relative; padding-bottom: 8px; }
.footer h4::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 26px; height: 2px; border-radius: 2px;
  background: var(--red);
}
.footer-wechat img { transition: transform .3s, box-shadow .3s; }
.footer-wechat figure:hover img { transform: translateY(-4px) scale(1.04); box-shadow: 0 12px 26px rgba(217,38,31,.18); }

/* ---------- 滚动入场动画（配合 app.js 添加 .in-view） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .splash::after, .nav::after { animation: none; }
}
