/* ============================================================
   霸能科技 Power Balance - 主样式表
   现代化 H5 重构，保留原站配色与风格
   ============================================================ */

/* ---------- 基础重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --c-bg: #fefefe;
  --c-text: #333;
  --c-muted: #666;
  --c-link: #0b66a8;
  --c-link-hover: #fd8e03;
  --c-dark: #333333;
  --c-border: #dbdbdb;
  --c-accent: #0b66a8;
  --c-orange: #fd8e03;
  --c-light: #f5f5f5;
  --c-white: #fff;
  --radius: 6px;
  --max-width: 1000px;
  --font: "Microsoft YaHei", "微软雅黑", "SimHei", "黑体", Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  background-image: linear-gradient(180deg, #eef3f8 0, #fefefe 280px);
  min-height: 100%;
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--c-link-hover); }

img {
  max-width: 100%;
  border: none;
  vertical-align: middle;
}

ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
}

/* ---------- 页头 ---------- */
.site-header {
  background: linear-gradient(180deg, #1a3a5c 0, #0b66a8 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 52px;
  width: auto;
  background: #fff;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.2;
}
.brand-text .tagline {
  font-size: 11px;
  color: #b3d4f0;
  letter-spacing: .5px;
}

/* ---------- 导航栏 ---------- */
.navbar {
  background: #fff;
  border-bottom: 2px solid var(--c-accent);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
}

.nav-list li a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--c-muted);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
.nav-list li a:hover,
.nav-list li a.active {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  background: #f0f6fb;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--c-accent);
  cursor: pointer;
  padding: 8px;
}

/* ---------- 通用标题栏 ---------- */
.page-title {
  background: linear-gradient(135deg, #0b66a8 0, #1559a0 100%);
  color: #fff;
  padding: 28px 0;
  text-align: center;
  margin-bottom: 24px;
}
.page-title h2 {
  font-size: 24px;
  font-weight: bold;
}
.page-title .crumb {
  font-size: 12px;
  color: #b3d4f0;
  margin-top: 6px;
}
.page-title .crumb a { color: #cfe4f5; }
.page-title .crumb a:hover { color: var(--c-orange); }

.section-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--c-muted);
  border-left: 4px solid var(--c-accent);
  padding-left: 10px;
  margin: 24px 0 14px;
  line-height: 1.4;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0b66a8 0%, #1a3a5c 50%, #0a4a80 100%);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.08) 0, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,.06) 0, transparent 40%);
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h2 { font-size: 30px; font-weight: bold; margin-bottom: 12px; }
.hero p { font-size: 15px; color: #cfe4f5; line-height: 1.8; margin-bottom: 22px; }
.hero .btn { margin: 0 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 9px 24px;
  font-size: 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover { background: #094f87; color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

.btn-orange {
  background: var(--c-orange);
  color: #fff;
}
.btn-orange:hover { background: #e07d00; color: #fff; }

/* ---------- 首页三栏简介 ---------- */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}
.feature-card {
  flex: 1;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: 0 4px 16px rgba(11,102,168,.12);
  transform: translateY(-2px);
}
.feature-card .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef5fb;
  border-radius: 50%;
  color: var(--c-accent);
}
.feature-card h3 { font-size: 15px; color: var(--c-muted); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: #888; line-height: 1.6; }

/* ---------- 首页两栏（新闻+防伪） ---------- */
.home-row {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.home-row > .col-main { flex: 1; min-width: 300px; }
.home-row > .col-side { width: 300px; min-width: 280px; }

.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed #e0e0e0;
}
.news-list li a {
  color: var(--c-muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 75%;
}
.news-list li a:hover { color: var(--c-accent); }
.news-list li .date { font-size: 12px; color: #999; flex-shrink: 0; }

/* 防伪查询卡片 */
.verify-box {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
}
.verify-box h3 {
  font-size: 15px;
  color: var(--c-accent);
  margin-bottom: 12px;
  text-align: center;
}
.verify-box .desc {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 14px;
}
.verify-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: var(--font);
}
.verify-input:focus {
  outline: none;
  border-color: var(--c-accent);
}
.verify-box .btn { width: 100%; }

.social-links {
  margin-top: 16px;
  text-align: center;
}
.social-links a {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 4px;
  background: #f0f6fb;
  color: var(--c-accent);
}
.social-links a:hover { background: var(--c-accent); color: #fff; }

/* ---------- 产品网格 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin: 16px 0;
}
.product-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.product-card a { display: block; }
.product-card .img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f9f9f9;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .name {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
  line-height: 1.4;
  border-top: 1px solid #f0f0f0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .name a { color: var(--c-muted); }
.product-card .name a:hover { color: var(--c-accent); }

/* ---------- 分类筛选 ---------- */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.category-bar a {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 20px;
  background: #f0f0f0;
  color: var(--c-muted);
  transition: all .2s;
}
.category-bar a:hover { background: #e0e8f0; color: var(--c-accent); }
.category-bar a.active {
  background: var(--c-accent);
  color: #fff;
}

/* ---------- 分页 ---------- */
.pagination {
  text-align: center;
  margin: 24px 0;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 2px;
  font-size: 13px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  color: var(--c-muted);
}
.pagination a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .current {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

/* ---------- 侧边栏（产品页） ---------- */
.layout-sidebar {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.layout-sidebar .sidebar {
  width: 220px;
  flex-shrink: 0;
}
.layout-sidebar .content {
  flex: 1;
  min-width: 300px;
}

.sidebar-box {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.sidebar-box .head {
  background: var(--c-accent);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
}
.sidebar-box .body { padding: 8px 0; }
.sidebar-box .body a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--c-muted);
  border-bottom: 1px solid #f5f5f5;
}
.sidebar-box .body a:hover {
  background: #f0f6fb;
  color: var(--c-accent);
  padding-left: 20px;
}
.sidebar-box .body a:last-child { border-bottom: none; }

.contact-box .body {
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--c-muted);
}
.contact-box .body strong { color: var(--c-accent); }

/* ---------- 产品详情 ---------- */
.detail-wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.detail-gallery {
  width: 380px;
  flex-shrink: 0;
}
.detail-gallery .main-img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f9f9f9;
  margin-bottom: 10px;
}
.detail-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-gallery .thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .2s;
}
.detail-gallery .thumbs img:hover { border-color: var(--c-accent); }

.detail-info { flex: 1; min-width: 280px; }
.detail-info h1 {
  font-size: 20px;
  color: var(--c-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-accent);
}
.detail-spec {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.detail-spec th, .detail-spec td {
  padding: 8px 12px;
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.detail-spec th {
  width: 90px;
  background: #f8f8f8;
  color: var(--c-muted);
  font-weight: normal;
}

.detail-desc {
  background: #f8fafd;
  border: 1px solid #e8eef5;
  border-radius: var(--radius);
  padding: 16px;
}
.detail-desc h3 {
  font-size: 14px;
  color: var(--c-accent);
  margin-bottom: 10px;
}
.detail-desc p { font-size: 13px; color: var(--c-muted); line-height: 1.8; }

/* ---------- 产品详情图 ---------- */
.detail-gallery-wrap {
  width: 100%;
  margin: 16px 0;
}
.detail-gallery-wrap .gallery-title {
  font-size: 15px;
  color: var(--c-accent);
  border-left: 4px solid var(--c-accent);
  padding-left: 10px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.detail-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.detail-gallery-list img {
  display: block;
  width: 100%;
  max-width: 760px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #f9f9f9;
}

/* ---------- 内容说明图 ---------- */
.content-illustration {
  margin: 18px 0;
  text-align: center;
}
.content-illustration img {
  max-width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}
.content-illustration .caption {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* ---------- 关于我们/内容页 ---------- */
.content-page {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
  min-height: 300px;
}
.content-page h2 {
  font-size: 18px;
  color: var(--c-accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.content-page h3 {
  font-size: 15px;
  color: var(--c-text);
  margin: 18px 0 10px;
}
.content-page p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.9;
  margin-bottom: 12px;
  text-indent: 2em;
}
.content-page .contact-info {
  line-height: 2;
  font-size: 14px;
}
.content-page .contact-info strong { color: var(--c-accent); }

/* 内容标签 */
.content-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.content-tabs a {
  padding: 6px 18px;
  font-size: 13px;
  border-radius: 4px;
  background: #f0f0f0;
  color: var(--c-muted);
}
.content-tabs a:hover { background: #e0e8f0; color: var(--c-accent); }
.content-tabs a.active { background: var(--c-accent); color: #fff; }

/* ---------- 表单 ---------- */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  font-family: var(--font);
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px rgba(11,102,168,.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.form-row .form-group { flex: 1; min-width: 200px; }

.form-note {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}
.form-success {
  display: none;
  padding: 12px 16px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 4px;
  color: #2e7d32;
  font-size: 13px;
  margin-bottom: 16px;
}
.form-success.show { display: block; }

/* ---------- 经销商 ---------- */
.dealer-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
  transition: box-shadow .2s;
}
.dealer-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.dealer-card h3 { font-size: 15px; color: var(--c-accent); margin-bottom: 6px; }
.dealer-card p { font-size: 13px; color: var(--c-muted); line-height: 1.8; }

.dealer-table-wrap {
  overflow-x: auto;
  margin: 12px 0 28px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.dealer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  min-width: 560px;
}
.dealer-table th,
.dealer-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.dealer-table thead th {
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.dealer-table tbody tr:last-child td { border-bottom: none; }
.dealer-table tbody tr:hover { background: #f7f9fc; }
.dealer-table td[rowspan] {
  font-weight: 600;
  color: var(--c-primary);
  background: #f0f5fb;
}
.dealer-table a { color: var(--c-accent); }
.dealer-table a:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #2a2a2a;
  color: #b0b0b0;
  padding: 30px 0 16px;
  margin-top: 40px;
}
.footer-nav {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #3a3a3a;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #b0b0b0;
  font-size: 13px;
  margin: 0 10px;
}
.footer-nav a:hover { color: var(--c-orange); }
.footer-info {
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #888;
}
.footer-info a { color: #888; }
.footer-info a:hover { color: var(--c-orange); }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
  }
  .nav-list.show { display: flex; }
  .nav-list li a { padding: 10px 14px; border-bottom: none; }

  .site-header .container { flex-direction: column; gap: 10px; text-align: center; }

  .hero h2 { font-size: 22px; }
  .hero p { font-size: 13px; }

  .home-row > .col-side { width: 100%; }

  .layout-sidebar .sidebar { width: 100%; }
  .detail-gallery { width: 100%; }

  .features { gap: 12px; }
  .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-text h1 { font-size: 16px; }
  .hero { padding: 30px 16px; }
  .hero h2 { font-size: 18px; }
}
