:root {
  --primary: #185FA5;
  --primary-dark: #0C447C;
  --primary-light: #E6F1FB;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --border: #e8e8e8;
  --bg: #f7f9fc;
  --success: #1d9e75;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: #fff; font-size: 14px; line-height: 1.7; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 6px rgba(0,21,41,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; color: var(--primary-dark); }
.logo img { height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 16px; border-radius: 6px; color: var(--text); font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-light); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--primary-dark); cursor: pointer; }

/* ===== 页脚 ===== */
.site-footer { background: #0c1f33; color: rgba(255,255,255,.72); margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px 20px; display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col p, .footer-col a { color: rgba(255,255,255,.6); font-size: 13px; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 16px; font-size: 12px; color: rgba(255,255,255,.45); }

/* ===== 页面横幅 ===== */
.page-banner { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, #2f6fed 100%); color: #fff; padding: 48px 0; }
.page-banner h1 { font-size: 26px; margin-bottom: 6px; font-weight: 600; }
.page-banner .crumbs { font-size: 13px; color: rgba(255,255,255,.72); }
.page-banner .crumbs a { color: rgba(255,255,255,.72); }
.page-banner .crumbs a:hover { color: #fff; }
.page-section { padding: 40px 0; }

/* ===== 首页 ===== */
.hero { position: relative; height: 460px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; text-align: center; background: rgba(8,30,54,.35); }
.hero-content h1 { font-size: 40px; font-weight: 600; margin-bottom: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero-content p { font-size: 17px; opacity: .9; margin-bottom: 26px; }
.hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots span.active { background: #fff; }
.btn-primary { display: inline-block; background: var(--primary); color: #fff !important; padding: 11px 30px; border-radius: 30px; font-size: 15px; transition: all .2s; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.home-title { text-align: center; font-size: 26px; font-weight: 600; color: var(--primary-dark); margin-bottom: 8px; }
.home-sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.home-title::after { content: ''; display: block; width: 46px; height: 3px; background: var(--primary); margin: 12px auto 0; border-radius: 2px; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: all .25s; }
.card:hover { box-shadow: 0 8px 24px rgba(24,95,165,.1); transform: translateY(-3px); }
.card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 16px; margin-bottom: 8px; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { color: var(--text-light); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--text-muted); font-size: 12px; margin-top: 10px; }

/* 首页图文区 */
.about-section { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: 10px; box-shadow: 0 8px 24px rgba(0,21,41,.1); }
.about-text h2 { font-size: 24px; color: var(--primary-dark); margin-bottom: 18px; }
.about-text p { color: var(--text-light); margin-bottom: 12px; }

/* 联系区 */
.contact-band { background: var(--primary); color: #fff; padding: 36px 0; }
.contact-band .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.contact-band h3 { font-size: 20px; margin-bottom: 4px; }
.contact-band p { opacity: .85; font-size: 13px; }
.contact-band .btn-light { background: #fff; color: var(--primary) !important; padding: 10px 26px; border-radius: 30px; font-weight: 500; }
.contact-band .btn-light:hover { transform: translateY(-1px); }

/* ===== 列表页 ===== */
.list-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.sidebar { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; position: sticky; top: 88px; }
.sidebar h3 { background: var(--primary); color: #fff; font-size: 15px; padding: 14px 18px; }
.sidebar ul { list-style: none; }
.sidebar a { display: block; padding: 12px 18px; color: var(--text-light); border-bottom: 1px solid var(--border); font-size: 14px; }
.sidebar a:hover, .sidebar a.active { color: var(--primary); background: var(--primary-light); padding-left: 22px; }
.list-main { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.list-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.list-head h2 { font-size: 18px; color: var(--primary-dark); }
.article-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--border); }
.article-item:last-child { border-bottom: none; }
.article-item img { width: 180px; height: 120px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.article-item .a-body { flex: 1; }
.article-item h3 { font-size: 16px; margin-bottom: 6px; }
.article-item h3 a { color: var(--text); }
.article-item h3 a:hover { color: var(--primary); }
.article-item p { color: var(--text-light); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item .a-meta { color: var(--text-muted); font-size: 12px; margin-top: 8px; }
.product-item { text-align: center; }
.product-item img { height: 200px; }
.product-item h3 { font-size: 15px; margin-top: 12px; }
.product-item h3 a { color: var(--text); }
.product-item h3 a:hover { color: var(--primary); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-light); font-size: 13px; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { opacity: .4; }

/* ===== 详情页 ===== */
.detail-main { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 32px; }
.detail-title { font-size: 24px; color: var(--text); text-align: center; margin-bottom: 14px; }
.detail-meta { text-align: center; color: var(--text-muted); font-size: 13px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.detail-content { color: #444; font-size: 15px; }
.detail-content h2 { font-size: 19px; color: var(--primary-dark); margin: 20px 0 10px; }
.detail-content p { margin: 10px 0; }
.detail-content img { border-radius: 8px; margin: 8px 0; }
.detail-content ul { padding-left: 22px; }
.article-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; }
.article-nav a { color: var(--text-light); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav a:hover { color: var(--primary); }
.article-nav .none { color: var(--text-muted); }
.related-title { font-size: 17px; color: var(--primary-dark); margin: 30px 0 14px; }
.related-list { list-style: none; }
.related-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.related-list li:last-child { border-bottom: none; }
.related-list a { color: var(--text); }
.related-list a:hover { color: var(--primary); }
.related-list .time { float: right; color: var(--text-muted); font-size: 12px; }

/* 产品参数表 */
.params-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.params-table th, .params-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.params-table th { background: var(--primary-light); color: var(--primary-dark); width: 160px; font-weight: 500; }

/* ===== 留言表单 ===== */
.form-card { max-width: 640px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-row input, .form-row textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; transition: border-color .2s; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== 404 ===== */
.not-found { text-align: center; padding: 100px 20px; }
.not-found h1 { font-size: 72px; color: var(--primary-light); font-weight: 600; }
.not-found p { color: var(--text-light); margin: 10px 0 24px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .list-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { height: 320px; }
  .hero-content h1 { font-size: 26px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 20px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .article-item { flex-direction: column; }
  .article-item img { width: 100%; height: 160px; }
  .form-grid { grid-template-columns: 1fr; }
}
