:root {
  --green: #1f9d45;
  --green-d: #157a34;
  --green-deep: #0e5c28;
  --ink: #17211b;
  --muted: #5d6b63;
  --line: #e6eee8;
  --bg: #f5f8f6;
  --card: #fff;
  --shadow: 0 12px 32px rgba(18, 48, 28, .08);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.6 "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-d); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.skip {
  position: absolute; left: 12px; top: -40px; background: #fff; padding: 8px 12px; z-index: 20;
}
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.topbar { background: #f3faf5; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar-inner, .header-inner, .strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-inner { min-height: 38px; }
.welcome { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.top-tools a { color: var(--muted); }
.langs { display: flex; gap: 4px; }
.langs a { padding: 2px 8px; border-radius: 999px; }
.langs a.on, .langs span.on { background: var(--green); color: #fff; }
.langs span.on { padding: 2px 8px; border-radius: 999px; }
.currencies { margin-left: 2px; }
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid transparent; }
.site-header.stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(16, 40, 24, .05); }
.header-inner { min-height: 84px; }
.logo img { height: 54px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a, .drop > a { color: var(--ink); font-weight: 600; padding: 8px 10px; border-radius: 999px; }
.site-nav > a.on, .drop > a.on { color: var(--green-d); }
.drop { position: relative; }
.drop-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px; border: 1px solid var(--line);
}
.drop:hover .drop-menu, .drop:focus-within .drop-menu { display: block; }
.drop-menu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); }
.drop-menu a:hover { background: #f3faf5; color: var(--green-d); }
.nav-quote { margin-left: 6px; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.head-search { display: flex; align-items: center; background: #f4f7f5; border-radius: 999px; padding: 4px 4px 4px 12px; }
.head-search input { border: 0; background: transparent; width: 140px; outline: none; }
.head-search button, .tool {
  width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink); position: relative; cursor: pointer;
}
.ico { width: 20px; height: 20px; fill: currentColor; }
.cart-tool span {
  position: absolute; top: 0; right: 0; background: var(--green); color: #fff; border-radius: 99px;
  font-size: 11px; min-width: 16px; height: 16px; line-height: 16px; text-align: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px; border: 1px solid transparent; font-weight: 700; cursor: pointer;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); color: #fff; }
.btn-dark { background: #17211b; color: #fff; width: 100%; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: #fff; border-color: #cfe0d4; color: var(--ink); }
.btn-outline:hover { border-color: var(--green); color: var(--green-d); }
.flash { width: min(var(--max), calc(100% - 32px)); margin: 16px auto 0; padding: 12px 16px; border-radius: 12px; background: #e9f8ee; color: var(--green-deep); }
.flash.err { background: #fff1f0; color: #9f2d22; }
.hero { position: relative; margin: 18px auto 8px; }
.hero-slide { display: none; position: relative; min-height: 420px; border-radius: 28px; overflow: hidden; align-items: center; justify-content: center; }
.hero-slide.on { display: flex; }
.hero-slide.graphic {
  background: #7adf62 url("../images/hero.svg") center/cover no-repeat;
  text-align: center; color: #102114;
}
.hero-slide.graphic:before, .hero-slide.graphic:after {
  content: ""; position: absolute; top: 50%; width: 120px; height: 180px; background: url("../images/bolt.svg") center/contain no-repeat;
  transform: translateY(-50%); opacity: .95;
}
.hero-slide.graphic:before { left: 7%; }
.hero-slide.graphic:after { right: 7%; transform: translateY(-50%) scaleX(-1); }
.hero-copy { position: relative; z-index: 1; max-width: 760px; padding: 48px 24px; }
.hero-copy h1, .hero-copy .hero-title { margin: 0 0 12px; font-size: 46px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; }
.hero-copy p { margin: 0 0 18px; font-size: 18px; }
.hero-slide.has-image { background: #eef6f0 center/cover no-repeat; }
.hero-slide.has-image img.bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.has-image > a.fill { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.hero-slide.has-image .hero-copy { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-slide.has-image .scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(8,40,20,.45), rgba(8,40,20,.12)); }
.hero-nav, .hero-dots { position: absolute; z-index: 2; }
.hero-nav {
  top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.86); cursor: pointer; font-size: 24px;
}
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots { left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.7); cursor: pointer; }
.hero-dots button.on { background: var(--green-deep); }
.hero.single .hero-nav, .hero.single .hero-dots { display: none; }
.hot-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 8px; color: var(--muted); font-size: 14px; }
.hot-search a { background: #f3faf5; color: var(--green-deep); border-radius: 999px; padding: 4px 10px; }
.section { padding: 34px 0; }
.section h2 { margin: 0 0 18px; font-size: 32px; letter-spacing: -0.03em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.cat-grid, .feature-grid, .product-grid, .news-grid, .video-grid { display: grid; gap: 18px; }
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.product-grid { grid-template-columns: repeat(4, 1fr); }
.news-grid, .video-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #f0f4f1; overflow: hidden;
}
.cat-card { padding: 18px 18px 20px; text-align: center; color: var(--ink); display: block; transition: transform .2s ease; }
.cat-card:hover { transform: translateY(-4px); color: var(--ink); }
.cat-card img, .thumb { width: 100%; height: 180px; object-fit: contain; background: #f7fbf8; border-radius: 16px; }
.cat-card h3, .product-card h3 { margin: 12px 0 4px; font-size: 18px; }
.cat-card p, .muted { color: var(--muted); margin: 0; }
.feature { padding: 22px; }
.feature .bubble {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #e8f8ee; color: var(--green); margin-bottom: 10px;
}
.feature .bubble .ico { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.product-card { color: var(--ink); display: flex; flex-direction: column; }
.product-card .thumb-wrap { background: #f7fbf8; }
.product-card .thumb { display: block; width: 100%; }
.product-card .pad { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat { color: var(--green-d); font-size: 13px; font-weight: 700; }
.price-block { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-top: auto; }
.price-now { font-size: 20px; font-weight: 800; }
.price-old { color: #98a29c; text-decoration: line-through; }
.member-link { color: var(--green-d); font-weight: 700; font-size: 14px; }
.member-link.on { color: var(--green-d); }
.oem {
  margin: 10px 0 20px; border-radius: 28px; padding: 42px; color: #fff;
  background: linear-gradient(100deg, #128a3e, #39b85a 60%, #8ee07a);
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
}
.oem h2 { margin: 6px 0; font-size: 34px; }
.kicker { letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 800; }
.news-card { display: block; color: var(--ink); }
.news-card .pic, .video-card .pic { height: 180px; background: linear-gradient(135deg, #e7f8ec, #c6efd2); object-fit: cover; width: 100%; display: block; }
.news-card .pad, .video-card .pad { padding: 16px; }
.news-card time { color: var(--muted); font-size: 13px; }
.page-hero { padding: 28px 0 8px; }
.page-hero h1 { margin: 0 0 8px; font-size: 40px; letter-spacing: -0.03em; }
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.gallery { position: sticky; top: 96px; }
.gallery .main-img { width: 100%; height: 460px; object-fit: contain; background: #f6faf7; border-radius: 24px; border: 1px solid var(--line); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 4px; cursor: pointer; }
.thumbs img { width: 72px; height: 72px; object-fit: contain; display: block; }
.thumbs button.on { border-color: var(--green); }
.buybox h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.25; }
.sku-line { color: var(--muted); margin-bottom: 8px; }
.stars { color: #d0d5d2; letter-spacing: 2px; }
.stars .on { color: #f5b400; }
.stars em { letter-spacing: 0; color: var(--muted); font-style: normal; margin-left: 6px; font-size: 14px; }
.buy-price { margin: 14px 0; }
.buy-price .price-now { font-size: 36px; }
.member-box { margin-top: 12px; border: 1px dashed var(--green); background: #f3fbf6; border-radius: 16px; padding: 12px 14px; }
.member-box .tag { display: inline-block; background: var(--green); color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 8px; font-weight: 800; }
.member-box strong { display: block; font-size: 28px; color: var(--green-d); }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.variant-btn { border: 1px solid #d5e0d8; background: #fff; border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.variant-btn.on { border-color: var(--green); background: #f3faf5; color: var(--green-deep); font-weight: 700; }
.qty-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; }
.qty-row button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.qty-row input { width: 72px; height: 36px; text-align: center; border: 1px solid var(--line); border-radius: 10px; }
.buy-actions { display: grid; gap: 10px; }
.note {
  margin-top: 14px; background: #f7fbf8; border-radius: 14px; padding: 12px 14px; color: var(--muted); font-size: 14px;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 12px; }
.tabs button { border: 0; background: #f3f6f4; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.tabs button.on { background: var(--green); color: #fff; }
.tab-panel { display: none; }
.tab-panel.on { display: block; }
.rich h2, .rich h3 { margin: 0 0 8px; }
.rich p { margin: 0 0 10px; }
.rich ul { margin: 0 0 12px; padding-left: 18px; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--line); text-align: left; padding: 12px 10px; vertical-align: top; }
.spec-table th { width: 34%; color: var(--muted); font-weight: 600; }
.faq-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 4px; font-size: 18px; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
select, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], textarea {
  width: 100%; border: 1px solid #d7e2db; border-radius: 12px; padding: 12px 14px; background: #fff;
}
textarea { min-height: 120px; }
label { display: block; font-weight: 700; margin: 12px 0 6px; }
.form-card, .auth-card, .summary-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.auth-card { max-width: 460px; margin: 28px auto 48px; }
.auth-card h1, .page-block h1 { margin-top: 0; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: middle; }
.cart-table img { width: 72px; height: 72px; object-fit: contain; background: #f7fbf8; border-radius: 10px; }
.success-box { max-width: 760px; margin: 28px auto 50px; padding: 32px; border-radius: 24px; background: #f3faf5; border: 1px solid #d7f0df; }
.success-box h1 { margin-top: 0; }
.order-no { font-size: 28px; font-weight: 800; color: var(--green-deep); }
.pager { display: flex; gap: 6px; margin: 20px 0; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); }
.pager .on { background: var(--green); color: #fff; border-color: var(--green); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.site-footer { margin-top: 20px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .9fr 1.1fr; gap: 24px; padding: 36px 0; }
.footer-grid h3 { margin: 0 0 10px; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); margin: 0 0 6px; }
.footer-logo img { height: 46px; margin-bottom: 8px; }
.contact-strip { background: var(--green); color: #fff; }
.strip-inner { min-height: 64px; font-weight: 700; }
.contact-strip a { color: #fff; }
.copyright { background: var(--green-deep); color: rgba(255,255,255,.86); font-size: 13px; padding: 10px 0; }
.icp { margin-left: 10px; }
.account-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.video-frame iframe, .video-frame video { width: 100%; aspect-ratio: 16/9; border: 0; background: #111; border-radius: 16px; }
.empty { padding: 28px; background: #f7fbf8; border-radius: 16px; }
@media (max-width: 1020px) {
  .cat-grid, .feature-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .video-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout, .split, .account-grid { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .hero-copy h1, .hero-copy .hero-title { font-size: 34px; }
  .header-inner { flex-wrap: wrap; }
  .head-search input { width: 90px; }
}
@media (max-width: 760px) {
  .welcome { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .drop-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 10px; }
  .header-tools { margin-left: auto; }
  .head-search { display: none; }
  .cat-grid, .feature-grid, .product-grid, .news-grid, .video-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-slide { min-height: 300px; }
  .hero-slide.graphic:before, .hero-slide.graphic:after { width: 54px; height: 90px; }
  .hero-copy h1, .hero-copy .hero-title { font-size: 28px; }
  .oem { flex-direction: column; align-items: flex-start; padding: 24px; }
  .strip-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .gallery .main-img { height: 280px; }
  .buy-price .price-now { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
