:root {
  --primary: #00479d;
  --primary-dark: #00316e;
  --accent: #ffb400;
  --dark: #0d1f3c;
  --gray: #5f6b7a;
  --light: #f4f7fb;
  --line: #e3e8ef;
  --ok: #12824c;
  --radius: 12px;
  --shadow: 0 6px 22px rgba(13, 31, 60, .10);
  --shadow-lg: 0 14px 40px rgba(13, 31, 60, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1d2939;
  background: #fff;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.section-title { font-size: 28px; margin: 0 0 28px; text-align: center; }
.lead { font-size: 18px; color: var(--gray); max-width: 900px; }
.muted { color: var(--gray); }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: 15px; border: 2px solid transparent; cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-secondary { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-secondary:hover { background: var(--primary); color: #fff; }

/* header */
.topbar { background: var(--dark); color: #cfd9e6; font-size: 13px; }
.topbar-inner { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 8px 20px; }
.topbar-item { color: #cfd9e6; }
.topbar a { color: #fff; }
.lang-switch { margin-left: auto; display: flex; gap: 6px; }
.lang-switch a { padding: 2px 8px; border-radius: 4px; color: #9fb2c8; }
.lang-switch a.active { background: var(--primary); color: #fff; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #0b6fda);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
}
.brand-text { font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: .5px; }
.brand-text small { display: block; font-size: 10px; letter-spacing: 3px; color: var(--primary); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav > a { color: var(--dark); font-weight: 600; font-size: 15px; }
.nav-drop { position: relative; }
.nav-drop-btn { background: none; border: none; font: inherit; font-weight: 600; font-size: 15px; color: var(--dark); cursor: pointer; padding: 6px 0; }
.nav-drop-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; min-width: 300px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; z-index: 40;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.drop-link { display: block; padding: 8px 12px; border-radius: 8px; color: var(--dark); font-size: 14px; }
.drop-link:hover { background: var(--light); text-decoration: none; }

/* hero */
.hero { background: linear-gradient(120deg, var(--dark), #123a75 60%, var(--primary)); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 64px 20px; }
.hero h1 { color: #fff; font-size: 40px; margin: 0 0 18px; }
.hero p { color: #d5e0ee; font-size: 18px; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-img { background: rgba(255,255,255,.08); border-radius: 18px; padding: 18px; }
.hero-img img { border-radius: 12px; box-shadow: var(--shadow-lg); height: 460px; width: 100%; object-fit: cover; background: #fff; }

/* stats */
.stats-band { background: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 20px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 30px; color: var(--dark); }
.stat span { color: #4a3c00; font-weight: 600; }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .22s ease; display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-card img { height: 160px; object-fit: cover; width: 100%; }
.cat-card h3 { font-size: 17px; margin: 16px 16px 6px; color: var(--dark); }
.cat-card p { margin: 0 16px 14px; color: var(--gray); font-size: 14px; flex: 1; }
.cat-more { margin: 0 16px 18px; color: var(--primary); font-weight: 700; font-size: 14px; }

/* why band */
.band-why { background: var(--light); padding: 56px 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.why-card h3 { margin: 0 0 10px; font-size: 17px; }
.why-card p { margin: 0; color: var(--gray); font-size: 14.5px; }

/* video */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.video-frame { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* cta band */
.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 48px 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #dbe6f5; margin: 0 0 20px; }

/* page head */
.page-head { background: var(--light); border-bottom: 1px solid var(--line); padding: 34px 0; }
.page-head h1 { margin: 8px 0 12px; font-size: 32px; }
.breadcrumb { font-size: 13.5px; color: var(--gray); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--gray); }

/* product grid */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.prod-grid.small { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .22s ease; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.prod-card > img { height: 200px; width: 100%; object-fit: cover; }
.prod-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.prod-card h3 { font-size: 16.5px; margin: 0 0 8px; color: var(--dark); }
.prod-card p { font-size: 14px; color: var(--gray); margin: 0 0 14px; flex: 1; }
.prod-more { color: var(--primary); font-weight: 700; font-size: 13.5px; }

/* product page */
.product-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; margin-top: 18px; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery-main img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs .thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; opacity: .75; }
.gallery-thumbs .thumb.active { border-color: var(--primary); opacity: 1; }
.product-info h1 { font-size: 28px; margin: 0 0 14px; }
.rating-line { color: var(--gray); margin: 12px 0 16px; font-size: 14.5px; }
.stars { color: var(--accent); letter-spacing: 2px; }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; }
.check-list li { padding: 6px 0 6px 26px; position: relative; color: #33404f; }
.check-list li::before { content: "✔"; color: var(--ok); position: absolute; left: 0; font-weight: 700; }
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* specs */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 34%; background: var(--light); color: var(--dark); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* faq */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq-item summary { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--dark); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; position: absolute; right: 18px; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--gray); }

/* reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.review { background: var(--light); border-radius: var(--radius); padding: 22px; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.review-head span { color: var(--gray); font-size: 13px; }
.review p { margin: 0; font-size: 14.5px; color: #33404f; }

/* comment section */
.comment-section { background: var(--light); }
.comment-form { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 860px; margin: 20px auto 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.comment-form input, .comment-form select, .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-bottom: 12px; background: #fff;
}
.comment-form textarea { resize: vertical; }
.comment-form .btn { border: none; }
.form-note { font-size: 12.5px; color: var(--gray); margin-top: 10px; }
.comment-list { max-width: 860px; margin: 18px auto 0; }
.comment-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 10px; }
.comment-item strong { color: var(--dark); }
.comment-item .c-date { color: var(--gray); font-size: 12.5px; margin-left: 10px; }
.comment-item p { margin: 6px 0 0; color: #33404f; font-size: 14.5px; }

/* content / footer */
.content-block p { max-width: 860px; color: #33404f; font-size: 16px; }
.contact-form-wrap { margin-top: 28px; max-width: 860px; }
.site-footer { background: var(--dark); color: #c6d2e1; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #c6d2e1; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-brand { margin-bottom: 14px; }
.footer-brand .brand-text { color: #fff; }
.footer-contact a { color: #ffd166; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; color: #8fa1b8; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 20px; }
  .hero h1 { font-size: 30px; }
  .product-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .header-main { flex-direction: column; align-items: flex-start; }
  .topbar-item:nth-child(2) { display: none; }
}

/* Xunruicms theme additions */
.brand-logo { height: 42px; width: auto; }
.main-nav > a { color: var(--dark); font-weight: 600; font-size: 15px; padding: 6px 0; }
.nav-drop-menu .drop-link { display: block; }
.content-block img { max-width: 100%; height: auto; }
.content-block table { max-width: 100%; }
.content-block iframe { max-width: 100%; }
.comment-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-bottom: 12px; background: #fff; }
.prevnext { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.prevnext p { margin: 0; }
.faq-item summary { cursor: pointer; }
.hero { background: linear-gradient(120deg, var(--dark), #123a75 60%, var(--primary)); color: #fff; }
.footer-brand .brand-logo { height: 36px; }
