/* Burks 水泵产品中心 · 全站样式 */
:root {
  --primary: #0b5cad;
  --primary-dark: #084a8c;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #cf222e;
  --ok: #1a7f37;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
a { color: var(--primary); }

/* 顶栏 */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
/* v20261019: 页头长网站名条已删除，header 只剩搜索+语言切换，整体靠下贴近导航上方 */
.header-inner { display: flex; align-items: flex-end; gap: 16px; padding: 26px 16px 12px; flex-wrap: wrap; min-height: 78px; }
.search { margin-left: auto; display: flex; gap: 0; }
.search input { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px 0 0 8px; width: 240px; font-size: 14px; }
.search button { padding: 9px 18px; border: none; background: var(--primary); color: #fff; border-radius: 0 8px 8px 0; cursor: pointer; font-size: 14px; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 13px; }
.lang-switch a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 横幅 */
.hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 44px 0; margin-bottom: 24px; }
.hero h1 { margin: 0 0 8px; font-size: 30px; }
.hero p { margin: 0; opacity: .85; }

/* 筛选 */
.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.filters select, .filters input[type=text] { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: #fff; }
.filters button { padding: 9px 20px; background: var(--primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.result-count { color: var(--muted); font-size: 14px; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border-radius: 12px; }

/* 产品卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 24px; }
.grid.mini { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 6px 20px rgba(11,92,173,.12); }
.card-img { display: block; position: relative; aspect-ratio: 400/260; background: #eef3f9; overflow: hidden; }
.card-img svg, .card-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.badge { position: absolute; top: 8px; right: 8px; background: #f59e0b; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 20px; }
.badge-series { background: #0b5cad; right: auto; left: 8px; }
.variant-table tr.current td { background: #e8f1fc; font-weight: 600; }
.card-body { padding: 14px; }
.card-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--primary); }
.card-model { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* 按钮 */
.btn, .btn-ghost { display: inline-block; padding: 9px 18px; border-radius: 8px; font-size: 14px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn { background: var(--primary); color: #fff; border: none; }
.btn:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--border); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost.danger, .link.danger { color: var(--danger); }
.link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 14px; padding: 0 4px; }

/* 分页 */
.pager { display: flex; gap: 8px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); background: #fff; font-size: 14px; }
.pager span.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager select.page-jump { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 14px; color: var(--text); cursor: pointer; }

/* 详情页 */
.crumbs { color: var(--muted); font-size: 14px; margin: 20px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.detail-img { position: relative; }
.detail-img svg, .detail-img img { width: 100%; border-radius: 8px; display: block; }
.detail-gallery { margin: 16px 0 24px; }
.detail-gallery #mainImg { max-width: 100%; border-radius: 8px; display: block; }
.detail-gallery .thumb-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; flex: none; }
.detail-gallery .thumb-row img.active { border-color: var(--primary); }
.spec-table td.spec-img { text-align: center; padding: 12px; }
.spec-table td.spec-img img { max-width: 100%; border-radius: 8px; }
/* 多图缩略图 */
.thumb-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.detail-img .thumb-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; flex: none; }
.detail-img .thumb-row img.active { border-color: var(--primary); }
/* 技术曲线图 */
.curve-img { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 24px; }
.curve-img img { width: 100%; max-width: 720px; display: block; margin: 0 auto; }
.detail-info h1 { margin: 0 0 6px; font-size: 24px; }
.detail-model { color: var(--muted); font-size: 15px; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-size: 14px; }
.spec-table th { background: #f8fafc; width: 30%; font-weight: 600; }

/* 页脚 */
.site-footer { background: #1f2937; color: #9ca3af; padding: 24px 0; margin-top: 40px; font-size: 13px; text-align: center; }

/* 后台 */
body.admin { background: #eef1f6; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 210px; background: #111c2e; color: #cbd5e1; padding: 20px 0; flex-shrink: 0; }
.admin-logo { padding: 0 20px 20px; font-size: 20px; font-weight: 800; color: #fff; }
.admin-logo small { font-weight: 400; font-size: 12px; color: #94a3b8; }
.admin-side nav a { display: block; padding: 11px 20px; color: #cbd5e1; text-decoration: none; font-size: 14px; }
.admin-side nav a:hover, .admin-side nav a.active { background: #1e2f4d; color: #fff; }
.admin-main { flex: 1; padding: 28px; max-width: 1100px; }
.admin-title { margin: 0 0 20px; font-size: 22px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.stat-card b { display: block; font-size: 26px; color: var(--primary); }
.stat-card span { font-size: 13px; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 20px; font-size: 14px; }
.tbl th, .tbl td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.tbl th { background: #f8fafc; font-weight: 600; white-space: nowrap; }
.tbl .actions { white-space: nowrap; }
.flash { background: #dcfce7; border: 1px solid #86efac; color: #166534; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.form { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 24px; max-width: 860px; }
.form label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.form input[type=text], .form input[type=url], .form input[type=number], .form input[type=password], .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 400; font-family: inherit; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-err { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; padding: 10px 14px; border-radius: 8px; }
.hint { color: var(--muted); font-size: 13px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; }
.pill-done { background: #dcfce7; color: #166534; }
.pill-failed { background: #fee2e2; color: #991b1b; }
.pill-running { background: #fef3c7; color: #92400e; }
.log { background: #111c2e; color: #d1fae5; padding: 16px; border-radius: 10px; font-size: 13px; white-space: pre-wrap; max-height: 500px; overflow: auto; }

/* 登录页 */
.login-page { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { background: #fff; border-radius: 14px; padding: 32px; width: 100%; max-width: 420px; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.login-box h1 { margin: 0 0 20px; font-size: 20px; }
.login-box label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.login-box input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 400; }
.login-box button { width: 100%; padding: 11px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; }

@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .search input { width: 150px; }
  .admin-side { width: 150px; }
  .admin-main { padding: 16px; }
}

/* 顶部导航（自定义页面） */
.main-nav { background: var(--primary-dark); }
.main-nav .wrap { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: #dbeafe; text-decoration: none; padding: 10px 16px; font-size: 14px; }
.main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* 自定义单页面 */
.page-content { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin: 20px 0 32px; }
.page-content h1 { margin-top: 0; }
.page-body { font-size: 15px; }
.page-body img { max-width: 100%; }

/* 页脚联系方式 */
.footer-contact { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }

/* ---- 轮播图 ---- */
.banner-slider { position: relative; overflow: hidden; background: #0f2a44; }
.banner-track { position: relative; }
.banner-slide { display: none; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; height: 380px; object-fit: cover; display: block; }
.banner-caption { position: absolute; bottom: 36px; left: 0; right: 0; text-align: center; color: #fff; font-size: 22px; text-shadow: 0 2px 8px rgba(0,0,0,.5); margin: 0; }
.banner-prev, .banner-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 24px; cursor: pointer; z-index: 2; }
.banner-prev { left: 16px; } .banner-next { right: 16px; }
.banner-prev:hover, .banner-next:hover { background: rgba(0,0,0,.6); }
.banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; z-index: 2; }
.banner-dots span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); margin: 0 4px; cursor: pointer; }
.banner-dots span.active { background: #fff; }
@media (max-width: 768px) { .banner-slide img { height: 200px; } .banner-caption { font-size: 16px; bottom: 30px; } }

/* ---- 首页新闻 ---- */
.home-news { margin: 32px 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 20px; }
.sec-head a { font-size: 14px; color: var(--primary); text-decoration: none; }
.home-news-list { list-style: none; margin: 0; padding: 0; }
.home-news-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.home-news-list li:last-child { border-bottom: none; }
.home-news-list a { color: var(--text); text-decoration: none; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-news-list a:hover { color: var(--primary); }
.home-news-list span { color: #8b949e; font-size: 13px; margin-left: 12px; flex: none; }

/* ---- 新闻列表/详情 ---- */
.page-title { font-size: 26px; margin: 16px 0; }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-decoration: none; color: inherit; }
.news-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.news-thumb { flex: none; width: 180px; }
.news-thumb img { width: 180px; height: 120px; object-fit: cover; border-radius: 8px; }
.news-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.news-title { font-size: 18px; font-weight: 600; color: var(--text); }
.news-summary { font-size: 14px; color: #57606a; line-height: 1.6; }
.news-meta { font-size: 13px; color: #8b949e; }
.news-detail { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.news-detail h1 { font-size: 24px; margin: 0 0 12px; }
.news-cover img { max-width: 100%; border-radius: 8px; }
.rich-content { font-size: 15px; line-height: 1.8; }
.rich-content img { max-width: 100%; border-radius: 8px; }
.news-pn { display: flex; justify-content: space-between; gap: 16px; margin: 20px 0; flex-wrap: wrap; }
.news-pn a { color: var(--primary); text-decoration: none; font-size: 14px; }
.empty { text-align: center; color: #8b949e; padding: 40px 0; }
@media (max-width: 640px) { .news-thumb { width: 110px; } .news-thumb img { width: 110px; height: 80px; } }

/* ---- 留言表单 ---- */
.msg-form { max-width: 640px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.flash-ok { background: #dafbe1; border: 1px solid #4ac26b; color: #1a7f37; padding: 12px 16px; border-radius: 8px; }
.flash-err { background: #ffebe9; border: 1px solid #ff8182; color: #cf222e; padding: 12px 16px; border-radius: 8px; }
.row-unread { background: #fff8e6; }
.reply { color: #0969da; font-size: 13px; }

/* ---- 页脚友情链接（点击展开） ---- */
.footer-links { font-size: 13px; color: #8b949e; }
.footer-links a { color: #8b949e; text-decoration: none; cursor: pointer; }
.footer-links a:hover { color: #fff; }
.footer-links .fl-arrow { display: inline-block; transition: transform .2s; font-size: 11px; }
.footer-links a.open .fl-arrow { transform: rotate(180deg); }
#flinks a { margin: 0 2px; }

/* ---- 在线客服浮窗 ---- */
.service-float { position: fixed; right: 16px; bottom: 80px; z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sf-title { font-size: 12px; color: #fff; background: var(--primary); border-radius: 6px; padding: 4px 8px; writing-mode: vertical-rl; letter-spacing: 2px; }
.sf-item { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--primary); cursor: pointer; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); position: relative; font-weight: 600; }
.sf-item:hover { background: var(--primary); color: #fff; }
.sf-tip { display: none; position: absolute; right: 52px; top: 50%; transform: translateY(-50%); background: #333; color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; font-weight: normal; }
.sf-wechat:hover .sf-tip { display: block; }
