/* ============================================================
   Fastflo · 温州迅流流体科技有限公司官网
   全站样式 —— 工业蓝主导 × 橙黄撞色（60/30/10 法则），专业现代，响应式
   ============================================================ */
:root {
  --primary: #1265C4;        /* 品牌主蓝：标题 / 链接 / 图标 / 常规按钮 */
  --primary-dark: #0C3E7C;   /* 深蓝过渡层 */
  --primary-deep: #0A2E5C;   /* 深海军蓝：导航底 / 页脚 / Hero 基底 */
  --primary-bright: #3E8DE8; /* 亮蓝：悬停态 / 次级强调 */
  --accent: #FF7A1A;         /* 工业橙（撞色①）：CTA / 询价 / 数字高亮，一屏一个焦点 */
  --accent-deep: #ED6400;    /* 深橙：按钮渐变深端 / 悬停 */
  --accent-soft: #FFF1E4;    /* 浅橙底：橙色系淡背景 */
  --amber: #FFC233;          /* 琥珀黄（撞色②）：标签 / 角标 / 提示 */
  --blue-soft: #EAF2FC;      /* 浅蓝底：区块背景 / 选中态 / 标签底 */
  --dark: #0d1b2e;
  --text: #22303f;
  --muted: #64748b;
  --bg-light: #f4f7fb;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(13, 27, 46, .08);
  --shadow-lg: 0 10px 30px rgba(13, 27, 46, .14);
  --radius: 12px;
  --maxw: 1200px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部公告条 ---------- */
.topbar { background: var(--primary-deep); color: #cfe0f5; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #9ec5f2; }
.topbar a:hover { color: #fff; }

/* ---------- 导航 ---------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); transition: box-shadow .25s; }
.header.scrolled { box-shadow: var(--shadow); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 10px 18px; font-size: 15.5px; font-weight: 500; color: var(--text); border-radius: 8px; transition: .2s; }
.nav > li > a:hover, .nav > li > a.active { color: var(--primary); background: var(--blue-soft); }
.nav .dropdown { position: absolute; top: calc(100% + 6px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 110; }
.nav li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 14.5px; color: var(--text); }
.dropdown a:hover { background: var(--blue-soft); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang-toggle button { border: 0; background: transparent; padding: 5px 13px; color: var(--muted); }
.lang-toggle button.on { background: var(--primary); color: #fff; }
.btn-admin-link { font-size: 13.5px; color: var(--primary); border: 1.5px solid var(--primary); padding: 6px 16px; border-radius: 999px; font-weight: 600; transition: .2s; white-space: nowrap; }
.btn-admin-link:hover { background: var(--primary); color: #fff; }
.hamburger { display: none; border: 0; background: transparent; width: 42px; height: 42px; border-radius: 8px; }
.hamburger svg { width: 24px; height: 24px; stroke: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(115deg, rgba(8, 40, 82, .95) 0%, rgba(10, 46, 92, .88) 45%, rgba(18, 101, 196, .62) 100%), url("../img/site/hero-bg.jpg") center 35% / cover no-repeat; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(700px 300px at 85% 20%, rgba(62, 141, 232, .25), transparent 60%),
  radial-gradient(500px 260px at 10% 90%, rgba(62, 141, 232, .14), transparent 60%); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 70px; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 96px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 3px; color: var(--accent); border: 1px solid rgba(255, 122, 26, .5); padding: 6px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 16.5px; color: #dceaf8; max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 30px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 0; transition: .2s; }
.btn-primary { background: linear-gradient(100deg, #FF8A2A, var(--accent-deep)); color: #fff; box-shadow: 0 6px 20px rgba(237, 100, 0, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(237, 100, 0, .45); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.hero-figure { display: flex; justify-content: center; }
/* 与 .about-figure img 统一为 4:3 横构图、18px 圆角（竖版原图下移裁切，保住下方泵体主体） */
.hero-figure img { width: 100%; height: auto; max-width: 480px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 68%; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 24px 48px rgba(2, 12, 32, .45); }
.hero-stats { position: relative; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 26px; /* 底部预留 108px：为 70px 高的白色波浪 + 38px 安全间距，确保统计文字任何屏宽下都不被遮挡 */ padding-bottom: 108px; gap: 16px; position: relative; z-index: 1; }
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; color: var(--accent); font-weight: 700; }
.stat span { font-size: 13.5px; color: #b9cbe4; }

/* ---------- 通用 Section ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 3px; font-weight: 700; text-transform: uppercase; }
.section-head h2 { font-size: 32px; color: var(--dark); margin: 10px 0 14px; font-weight: 700; }
.section-head .bar { width: 56px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); margin: 0 auto 16px; }
.section-head p { color: var(--muted); font-size: 15px; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cat-card { position: relative; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); transition: .25s; display: block; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card .thumb { position: relative; background: linear-gradient(160deg, var(--blue-soft), #dce9f8); display: flex; justify-content: center; padding: 40px 30px; }
.cat-card .thumb img { width: 250px; transition: .3s; }
.cat-card:hover .thumb img { transform: scale(1.06); }
.cat-card .tag { position: absolute; top: 16px; left: 16px; background: var(--primary); color: #fff; font-size: 12.5px; padding: 5px 14px; border-radius: 999px; font-weight: 600; }
.cat-card .info { padding: 26px 30px 30px; }
.cat-card h3 { font-size: 21px; color: var(--dark); margin-bottom: 10px; }
.cat-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; min-height: 66px; }
.cat-card .more { color: var(--primary); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.cat-card .more::after { content: "→"; transition: .2s; }
.cat-card:hover .more::after { transform: translateX(4px); }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c9dcf2; }
.product-card .thumb { position: relative; background: #f0f5fb; display: flex; align-items: center; justify-content: center; padding: 26px; height: 220px; }
.product-card .thumb img { max-height: 100%; object-fit: contain; }
/* 标签浮于图片左上角，脱离正文流 → 所有卡片正文结构一致，标题/按钮严格对齐 */
.product-card .card-tips { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); z-index: 2; }
.product-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card .model { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.product-card h3 { font-size: 17px; color: var(--dark); line-height: 1.45; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card p { color: var(--muted); font-size: 13.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.product-card .go { color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.product-card .go::after { content: "→"; transition: .2s; }
.product-card:hover .go::after { transform: translateX(4px); }

/* ---------- 公司简介 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-figure { position: relative; }
/* 与 .hero-figure img 统一为 4:3 横构图、18px 圆角 */
.about-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: 18px; box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; right: -14px; bottom: -20px; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 14px; padding: 18px 24px; display: flex; gap: 14px; align-items: center; }
.about-badge b { font-size: 26px; color: var(--primary); }
.about-badge span { font-size: 13px; color: var(--muted); }
.about-text h2 { font-size: 30px; color: var(--dark); margin: 10px 0 18px; }
.about-text h2 em { font-style: normal; color: var(--primary); }
.about-text p { color: var(--muted); margin-bottom: 14px; font-size: 15px; max-width: 560px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-top: 22px; }
.about-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.about-points li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft); color: var(--primary); font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 2px; font-weight: 700; }

/* ---------- 行业应用 ---------- */
.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.app-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 12px; text-align: center; transition: .2s; }
.app-item:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.app-item .ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; background: linear-gradient(140deg, var(--primary), var(--primary-bright)); display: flex; align-items: center; justify-content: center; color: #fff; }
.app-item .ico svg { width: 26px; height: 26px; }
.app-item span { font-size: 14px; font-weight: 600; color: var(--text); }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; transition: .2s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card time { color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.news-card h3 { font-size: 16.5px; color: var(--dark); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card p { color: var(--muted); font-size: 13.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { text-align: center; margin-top: 40px; }

/* ---------- 页面横幅（与首页 .hero 统一：同款背景图 + 渐变叠加 + 底部白色波浪） ---------- */
.page-banner { background: linear-gradient(115deg, rgba(8, 40, 82, .95) 0%, rgba(10, 46, 92, .88) 45%, rgba(18, 101, 196, .62) 100%), url("../img/site/hero-bg.jpg") center 35% / cover no-repeat; color: #fff; padding: 64px 0 150px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 240px at 80% 30%, rgba(62, 141, 232, .22), transparent 60%); }
.page-banner .container { position: relative; }
.crumbs { font-size: 13.5px; color: #9ec5f2; margin-bottom: 14px; }
.crumbs a:hover { color: #fff; }
.page-banner h1 { font-size: 34px; font-weight: 700; }
.banner-sub { color: #c9d9ee; margin-top: 8px; }

/* ---------- 筛选标签 ---------- */
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn { border: 1.5px solid var(--border); background: var(--white); color: var(--text); padding: 9px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 600; transition: .2s; }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 产品详情 ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.detail-figure { background: linear-gradient(160deg, #f2f7fd, #e3edf9); border: 1px solid var(--border); border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 40px; position: sticky; top: 96px; }
.detail-figure img { max-height: 420px; object-fit: contain; }
.detail-info .cat-tag { display: inline-block; background: var(--blue-soft); color: var(--primary); font-size: 13px; font-weight: 700; padding: 5px 16px; border-radius: 999px; margin-bottom: 14px; }
.detail-info h1 { font-size: 30px; color: var(--dark); line-height: 1.3; margin-bottom: 10px; }
.detail-info .model-line { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.detail-info .model-line b { color: var(--primary); }
.detail-desc { color: var(--muted); margin-bottom: 24px; }
.spec-block { margin-top: 6px; }
.spec-block h3 { font-size: 18px; color: var(--dark); margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--accent); }
.spec-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); padding: 5px 0; }
.spec-list li::before { content: "•"; color: var(--accent); font-weight: 700; }

/* ---------- 表格 ---------- */
.table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { background: var(--blue-soft); color: var(--primary-dark); text-align: left; padding: 13px 20px; font-size: 14px; }
table.data td { padding: 12px 20px; border-top: 1px solid var(--border); color: var(--text); }
table.data tr:hover td { background: #f8fbff; }

/* ---------- 相关产品 ---------- */
.related { margin-top: 70px; }
.related h2 { font-size: 24px; color: var(--dark); margin-bottom: 26px; }

/* ---------- 新闻页 ---------- */
.news-list { display: grid; gap: 20px; max-width: 860px; margin: 0 auto; }
.news-list .news-card { flex-direction: row; gap: 24px; align-items: flex-start; }
.news-list .news-card .date { flex: none; width: 76px; text-align: center; background: var(--blue-soft); border-radius: 12px; padding: 12px 6px; }
.news-list .news-card .date b { display: block; font-size: 24px; color: var(--primary); }
.news-list .news-card .date span { font-size: 12.5px; color: var(--muted); }
.news-list .news-card h3 { font-size: 18px; }
.article { max-width: 820px; margin: 0 auto; }
.article h1 { font-size: 30px; color: var(--dark); line-height: 1.4; margin: 10px 0 18px; }
.article .meta { color: var(--muted); font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.article .content { font-size: 15.5px; color: var(--text); }
.article .content p { margin-bottom: 16px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; text-align: center; transition: .2s; }
.contact-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.contact-card .ico { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 16px; background: linear-gradient(140deg, var(--primary), var(--primary-bright)); color: #fff; display: flex; align-items: center; justify-content: center; }
.contact-card .ico svg { width: 28px; height: 28px; }
.contact-card h3 { font-size: 16px; color: var(--dark); margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA 横条 ---------- */
.cta-band { background: linear-gradient(100deg, rgba(10, 46, 92, .95) 0%, rgba(12, 62, 124, .88) 55%, rgba(62, 141, 232, .66) 100%), url("../img/site/cta-bg.jpg") center / cover no-repeat; border-radius: 20px; color: #fff; padding: 48px 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 90% 50%, rgba(62, 141, 232, .3), transparent 60%); }
.cta-band h2 { font-size: 26px; position: relative; }
.cta-band p { color: #c9d9ee; margin-top: 8px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- 页脚 ---------- */
.footer { background: var(--dark); color: #94a7bf; margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
.footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 18px; }
.footer img.flogo { height: 40px; margin-bottom: 16px; }
.footer p { font-size: 13.5px; line-height: 1.8; }
.footer li { font-size: 13.5px; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .contact-line { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 13.5px; }
.footer .contact-line svg { flex: none; width: 16px; height: 16px; margin-top: 3px; stroke: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 空状态 / 加载 ---------- */
.state-box { text-align: center; padding: 70px 20px; color: var(--muted); }
.state-box .big { font-size: 40px; margin-bottom: 12px; }

/* ============================================================
   管理后台
   ============================================================ */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }
.login-card { max-width: 430px; margin: 60px auto; background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 40px 38px; }
.login-card .brand { justify-content: center; margin-bottom: 26px; }
.login-card h2 { text-align: center; font-size: 20px; color: var(--dark); margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.form-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.form-tabs button { flex: 1; border: 0; background: transparent; padding: 11px; font-size: 14.5px; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; }
.form-tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field label .req { color: #e0455e; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 9px; padding: 10px 13px; font-size: 14.5px; font-family: inherit; color: var(--text); background: var(--white); transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 88px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; }
.btn-code { flex: none; border: 1.5px solid var(--primary); color: var(--primary); background: #fff; border-radius: 9px; padding: 0 18px; font-size: 13.5px; font-weight: 600; }
.btn-code:disabled { opacity: .5; cursor: not-allowed; }
.form-error { background: #fdeef1; color: #c03550; border: 1px solid #f6cdd6; border-radius: 9px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; display: none; }
.form-error.show { display: block; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-top h1 { font-size: 24px; color: var(--dark); }
.admin-top .who { color: var(--muted); font-size: 13.5px; }
.admin-nav { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.admin-nav button { border: 0; background: transparent; padding: 11px 20px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.admin-nav button.on { color: var(--primary); border-bottom-color: var(--primary); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-toolbar .count { color: var(--muted); font-size: 14px; }
.admin-table img.thumb { width: 74px; height: 56px; object-fit: contain; background: #f0f5fb; border-radius: 7px; padding: 4px; }
.admin-table td { vertical-align: middle; }
.admin-table .actions { display: flex; gap: 8px; }
.btn-sm { border: 1.5px solid var(--border); background: var(--white); border-radius: 8px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--text); }
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm.danger:hover { border-color: #e0455e; color: #e0455e; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.badge.pneumatic { background: var(--blue-soft); color: var(--primary); }
.badge.electric { background: #FFF4D1; color: #8A6400; }

.editor-panel { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 34px; margin-bottom: 30px; box-shadow: var(--shadow); }
.editor-panel h2 { font-size: 19px; color: var(--dark); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-grid .full { grid-column: 1 / -1; }
.editor-actions { display: flex; gap: 12px; margin-top: 8px; }
.img-pick { display: flex; gap: 18px; align-items: center; }
.img-pick .preview { width: 150px; height: 112px; border: 1.5px dashed var(--border); border-radius: 10px; background: #f8fafd; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.img-pick .preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-pick .upload-ui { display: flex; flex-direction: column; gap: 8px; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.params-editor .prow { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 36px; gap: 10px; margin-bottom: 10px; align-items: center; }
.params-editor .prow button { border: 0; background: #fdeef1; color: #c03550; border-radius: 8px; height: 38px; font-size: 16px; }
.params-editor .prow button:hover { background: #f9dbe1; }
.aid { color: var(--muted); font-size: 12px; }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px); background: var(--dark); color: #fff; padding: 12px 26px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 999; box-shadow: var(--shadow-lg); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: #c03550; }

/* ============================================================
   产品列表：搜索 / tips 过滤 / 分类树
   ============================================================ */
.list-toolbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.search-box { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 240px; max-width: 430px; border: 1.5px solid var(--border); border-radius: 999px; padding: 10px 20px; background: var(--white); transition: border-color .2s; }
.search-box:focus-within { border-color: var(--primary); }
.search-box svg { width: 18px; height: 18px; stroke: var(--muted); flex: none; fill: none; stroke-width: 2; }
.search-box input { border: 0; outline: none; flex: 1; font-size: 14.5px; font-family: inherit; color: var(--text); background: transparent; }
.tips-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tips-bar .tips-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.tips-chip { border: 1.5px solid var(--border); background: var(--white); color: var(--text); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: .2s; font-family: inherit; }
.tips-chip:hover { border-color: var(--accent); color: var(--accent); }
.tips-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* 排序控件 */
.sort-box { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sort-box label { white-space: nowrap; }
.sort-box select { border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 18px; font-size: 14px; font-family: inherit; color: var(--text); background: #fff; cursor: pointer; transition: border-color .2s; }
.sort-box select:focus { border-color: var(--primary); outline: none; }
.list-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.cat-sidebar { position: sticky; top: 96px; }
.cat-tree { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.cat-tree .cat-all { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 14.5px; font-weight: 700; color: var(--primary); border-left: 3px solid transparent; background: var(--blue-soft); }
.cat-tree .cat-all:hover, .cat-tree .cat-all.on { border-left-color: var(--accent); }
.cat-tree .tchildren { border-top: 1px solid var(--border); padding: 8px 0; }
.cat-node a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; font-size: 14px; color: var(--text); border-left: 3px solid transparent; }
.cat-node a:hover { background: var(--blue-soft); color: var(--primary); }
.cat-node a.on { background: var(--blue-soft); color: var(--primary); border-left-color: var(--accent); font-weight: 600; }
.cat-node .tcount { font-size: 12px; color: var(--muted); font-weight: 400; }
.tip-badge { display: inline-block; background: #FFF4D1; color: #8A6400; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
/* 分类树下方的选型帮助卡片：平衡左栏留白 */
.side-inquiry { margin-top: 18px; background: linear-gradient(150deg, var(--primary-deep), var(--primary)); color: #fff; border-radius: var(--radius); padding: 22px 20px; }
.side-inquiry h4 { font-size: 16px; margin-bottom: 8px; color: #fff; }
.side-inquiry p { font-size: 13px; color: #c9d9ee; margin-bottom: 14px; line-height: 1.6; }
.side-inquiry .btn-primary { width: 100%; }

/* ============================================================
   产品详情：性能图表 / 资料下载
   ============================================================ */
.detail-block { margin-top: 64px; }
.detail-block > h2 { font-size: 24px; color: var(--dark); margin-bottom: 26px; padding-left: 12px; border-left: 4px solid var(--accent); }
.download-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.dl-card { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.dl-card .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.dl-card .ico svg { width: 22px; height: 22px; }
.dl-card .ico.pdf { background: var(--blue-soft); color: var(--primary); }
.dl-card .ico.m3d { background: #FFF1E4; color: var(--accent); }
.dl-card .meta { flex: 1; min-width: 0; }
.dl-card .meta b { display: block; font-size: 14.5px; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-card .meta span { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   管理后台：分类管理 / 图表编辑 / 级联选择 / 设置
   ============================================================ */
.cat-admin-tree { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); padding: 14px; }
.cat-admin-node { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; }
.cat-admin-node:hover { background: var(--bg-light); }
.cat-admin-node .cname { flex: 1; min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-admin-node .lvl { flex: none; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.cat-admin-node .pcnt { flex: none; font-size: 12px; color: var(--muted); }
.cat-admin-children { margin-left: 26px; border-left: 1px dashed var(--border); padding-left: 6px; }
.cascading-sel { display: flex; flex-direction: column; gap: 8px; }
.cascading-sel select { width: 100%; border: 1.5px solid var(--border); border-radius: 9px; padding: 9px 12px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--white); }
.chart-edit-slot { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; background: var(--bg-light); }
.chart-edit-slot .crow { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.chart-edit-slot textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 9px; padding: 9px 12px; font-size: 13px; font-family: var(--font-mono, monospace); min-height: 110px; resize: vertical; color: var(--text); background: var(--white); }
.file-edit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-edit-row .finfo { font-size: 13px; color: var(--muted); }
.file-edit-row .finfo b { color: var(--text); }
.pw-panel { max-width: 480px; }

/* ---------- SEO / 可访问性补充 ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--primary-deep); color: #fff; padding: 10px 22px; border-radius: 0 0 10px 0; font-size: 14px; }
.skip-link:focus { left: 0; }
.detail-info .detail-title { font-size: 30px; color: var(--dark); line-height: 1.3; margin-bottom: 10px; font-weight: 700; }
.article .article-title { font-size: 30px; color: var(--dark); line-height: 1.4; margin: 10px 0 18px; font-weight: 700; }
.detail-figure img { max-height: 420px; object-fit: contain; aspect-ratio: 1 / 1; width: 100%; } /* 固定纵横比，避免图片加载造成布局偏移（CLS） */

@media (max-width: 1024px) {
  .download-cards { grid-template-columns: 1fr; }
  .list-layout { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; }
}
@media (max-width: 820px) {
  .list-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .tips-bar { justify-content: flex-start; }
}
@media (max-width: 1024px) {
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .topbar .container span:first-child { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .nav { position: fixed; top: 106px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 14px 20px 20px; gap: 4px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateY(-16px); opacity: 0; visibility: hidden; transition: .25s; z-index: 99; }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav > li > a { padding: 12px 14px; }
  .nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; }
  .nav li.open .dropdown { display: block; }
  .header-actions .btn-admin-link { display: none; }
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-figure { order: -1; }
  .hero-figure img { max-width: 300px; }
  .hero h1 { font-size: 30px; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-figure { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .admin-wrap { padding-top: 26px; }
  .news-list .news-card { flex-direction: column; }
  .params-editor .prow { grid-template-columns: 1fr 1fr; }
  .params-editor .prow .p-val-zh,
  .params-editor .prow .p-val-en { grid-column: 1 / -1; }
  .editor-panel { padding: 22px 18px; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .page-banner h1 { font-size: 26px; }
  .cta-band { padding: 34px 26px; }
  .admin-table .hide-sm { display: none; }
}
