/*
Theme Name: DS Solar Mobility
Theme URI: https://ds.hinext.cc/
Author: HiNext
Description: Premium WooCommerce storefront for solar electric tricycles.
Version: 1.0.0
Text Domain: ds-solar-mobility
*/

:root {
  --ink: #071a2b;
  --ink-soft: #43566a;
  --navy: #08243a;
  --ocean: #006c78;
  --aqua: #37b8b0;
  --sun: #f3bd38;
  --paper: #ffffff;
  --mist: #f3f7f7;
  --line: #dce6e7;
  --max: 1180px;
  --shadow: 0 18px 45px rgba(7, 26, 43, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topline { background: var(--navy); color: rgba(255,255,255,.82); font-size: 13px; }
.topline .container { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topline strong { color: var(--sun); font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ocean); color: #fff; border-radius: 4px; font-weight: 900; font-size: 17px; box-shadow: inset 0 -6px 0 rgba(243,189,56,.9); }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 19px; }
.brand-copy span { color: var(--ink-soft); font-size: 11px; margin-top: 5px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font-size: 15px; font-weight: 700; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--ocean); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { min-width: 44px; height: 42px; padding: 0 13px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 4px; font-weight: 700; }
.cart-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: 11px; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }

.button, button.button, input.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--sun); border-radius: 4px; background: var(--sun); color: var(--ink); font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { transform: translateY(-2px); background: #ffd15a; border-color: #ffd15a; color: var(--ink); }
.button-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.52); }
.button-secondary:hover { background: #fff; color: var(--ink); border-color: #fff; }
.text-link { color: var(--ocean); font-weight: 800; }

.hero { position: relative; min-height: 610px; overflow: hidden; background: var(--navy); color: #fff; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(4,22,36,.53); }
.hero .container { position: relative; z-index: 2; min-height: 610px; display: flex; align-items: center; }
.hero-copy { width: min(680px, 100%); padding: 78px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--sun); font-size: 13px; font-weight: 900; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero h1 { max-width: 660px; margin: 0; font-size: 60px; line-height: 1.12; letter-spacing: 0; }
.hero p { max-width: 620px; margin: 24px 0 32px; color: rgba(255,255,255,.84); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 38px; color: rgba(255,255,255,.9); font-size: 14px; font-weight: 700; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(55,184,176,.18); }

.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { min-height: 96px; display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 20px 34px; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-number { color: var(--ocean); font-size: 28px; font-weight: 900; }
.trust-copy strong, .trust-copy span { display: block; }
.trust-copy strong { font-size: 15px; }
.trust-copy span { color: var(--ink-soft); font-size: 12px; }

.section { padding: 96px 0; }
.section-muted { background: var(--mist); }
.section-dark { background: var(--navy); color: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 42px; }
.section-heading-copy { max-width: 720px; }
.section-kicker { margin: 0 0 12px; color: var(--ocean); font-size: 13px; font-weight: 900; }
.section-dark .section-kicker { color: var(--sun); }
.section h2, .page-hero h1 { margin: 0; font-size: 40px; line-height: 1.25; letter-spacing: 0; }
.section-heading p { margin: 14px 0 0; color: var(--ink-soft); }
.section-dark .section-heading p { color: rgba(255,255,255,.68); }

.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-card { position: relative; min-height: 410px; overflow: hidden; background: var(--navy); color: #fff; border-radius: 6px; }
.solution-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.solution-card::after { content: ""; position: absolute; inset: 0; background: rgba(3,22,36,.58); }
.solution-card:hover img { transform: scale(1.035); }
.solution-content { position: absolute; z-index: 2; inset: auto 0 0; padding: 30px; }
.solution-content span { color: var(--sun); font-size: 12px; font-weight: 900; }
.solution-content h3 { margin: 7px 0 10px; font-size: 25px; line-height: 1.35; }
.solution-content p { margin: 0 0 20px; color: rgba(255,255,255,.76); font-size: 14px; }
.solution-content a { font-weight: 800; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value-item { min-height: 225px; padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.value-index { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 24px; background: var(--navy); color: var(--sun); border-radius: 3px; font-size: 12px; font-weight: 900; }
.value-item h3 { margin: 0 0 9px; font-size: 20px; }
.value-item p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.feature-band { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 510px; }
.feature-media { position: relative; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { display: flex; align-items: center; background: var(--navy); color: #fff; }
.feature-copy-inner { max-width: 590px; padding: 70px 70px; }
.feature-copy h2 { margin: 0 0 20px; font-size: 40px; line-height: 1.25; }
.feature-copy > div > p { color: rgba(255,255,255,.72); }
.feature-list { display: grid; gap: 16px; margin: 30px 0; }
.feature-list div { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.feature-list strong { display: block; margin-bottom: 3px; }
.feature-list span { color: rgba(255,255,255,.65); font-size: 13px; }
.check { color: var(--sun); font-weight: 900; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.product-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe9ea; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover img { transform: scale(1.035); }
.product-card-body { padding: 26px; }
.product-card-body small { color: var(--ocean); font-weight: 900; }
.product-card h3 { margin: 8px 0 10px; font-size: 21px; line-height: 1.4; }
.product-card p { margin: 0 0 17px; color: var(--ink-soft); font-size: 14px; }
.product-price { display: block; margin-bottom: 15px; color: var(--ink); font-weight: 900; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.process-item { min-height: 210px; padding: 32px 28px; border-right: 1px solid rgba(255,255,255,.18); }
.process-item:last-child { border-right: 0; }
.process-item b { display: block; color: var(--sun); font-size: 13px; }
.process-item h3 { margin: 18px 0 8px; font-size: 20px; }
.process-item p { margin: 0; color: rgba(255,255,255,.66); font-size: 14px; }

.page-hero { padding: 72px 0 64px; background: var(--navy); color: #fff; }
.page-hero p { max-width: 720px; margin: 14px 0 0; color: rgba(255,255,255,.68); }
.content-shell { width: min(calc(100% - 40px), 900px); margin: 0 auto; padding: 72px 0 96px; }
.entry-content h2 { margin: 44px 0 14px; font-size: 30px; }
.entry-content h3 { margin: 32px 0 10px; font-size: 22px; }
.entry-content p, .entry-content li { color: var(--ink-soft); }
.entry-content img { border-radius: 6px; }

.inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
.field-full { grid-column: 1 / -1; }
.inquiry-form label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 800; }
.inquiry-form input, .inquiry-form textarea, .inquiry-form select { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid #cbd9da; border-radius: 4px; background: #fff; color: var(--ink); }
.inquiry-form textarea { min-height: 145px; resize: vertical; }
.form-notice { margin: 20px 0; padding: 14px 16px; border-left: 4px solid var(--aqua); background: #eaf7f5; color: #145b57; }
.privacy-row { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 13px; }
.privacy-row input { width: 17px; min-height: 17px; margin-top: 4px; }

.woocommerce .woocommerce-breadcrumb { margin: 0 0 24px; color: var(--ink-soft); font-size: 13px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 28px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; padding: 0 0 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.woocommerce ul.products li.product a img { aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 22px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price, .woocommerce ul.products li.product .button { margin-left: 22px; margin-right: 22px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 19px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; }
.woocommerce div.product .woocommerce-product-gallery, .woocommerce div.product .summary { float: none; width: auto; }
.woocommerce div.product .product_title { font-size: 36px; line-height: 1.3; }
.woocommerce .price { color: var(--ocean) !important; font-weight: 900; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ocean); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ocean); }

.cta-band { background: var(--sun); }
.cta-inner { min-height: 170px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { margin: 0; font-size: 32px; }
.cta-inner p { margin: 8px 0 0; color: rgba(7,26,43,.68); }
.cta-band .button { background: var(--navy); border-color: var(--navy); color: #fff; }
.site-footer { background: #051521; color: rgba(255,255,255,.72); }
.footer-main { padding: 68px 0; display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 70px; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy span { color: rgba(255,255,255,.52); }
.footer-brand p { max-width: 430px; margin: 22px 0 0; font-size: 14px; }
.footer-main h3 { margin: 0 0 16px; color: #fff; font-size: 15px; }
.footer-links { display: grid; gap: 9px; font-size: 14px; }
.footer-links a:hover { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }

@media (max-width: 980px) {
  .primary-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 22px 20px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { width: min(100%, var(--max)); margin: auto; display: grid; gap: 0; }
  .primary-nav a { display: block; padding: 11px 0; }
  .menu-toggle { display: block; }
  .solution-grid, .products-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-band { grid-template-columns: 1fr; }
  .feature-media { min-height: 440px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-item { border-bottom: 1px solid rgba(255,255,255,.18); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .topline .container { justify-content: center; text-align: center; }
  .topline span:last-child { display: none; }
  .header-inner { height: 68px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy span { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .primary-nav { top: 68px; }
  .cart-link { display: none; }
  .hero, .hero .container { min-height: 560px; }
  .hero-media { object-position: 62% center; }
  .hero-copy { padding: 62px 0; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-points { gap: 13px; margin-top: 28px; }
  .trust-grid { grid-template-columns: 1fr; padding: 10px 0; }
  .trust-item, .trust-item:first-child { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 68px 0; }
  .section h2, .page-hero h1 { font-size: 31px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading .text-link { display: inline-block; margin-top: 16px; }
  .solution-grid, .products-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .solution-card { min-height: 380px; }
  .value-grid, .process-grid { grid-template-columns: 1fr; }
  .value-item { min-height: 0; }
  .feature-media { min-height: 300px; }
  .feature-copy-inner { padding: 52px 22px; }
  .feature-copy h2 { font-size: 31px; }
  .inquiry-form { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
  .woocommerce div.product .product_title { font-size: 30px; }
  .cta-inner { min-height: 220px; display: block; padding: 38px 0; }
  .cta-inner .button { margin-top: 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; padding: 52px 0; }
  .footer-brand { grid-column: auto; }
  .footer-bottom .container { min-height: 78px; display: block; padding: 18px 0; }
}
