:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --ink: #0f1f33;
  --muted: #5b6b7d;
  --line: #e3eaf1;
  --primary: #0a6cff;
  --primary-dark: #0a4fd6;
  --accent: #00b3a4;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(15, 31, 51, 0.08);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.block { padding: 72px 0; }
.block.spacer { padding: 0; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.brand-mark { color: var(--primary); display: inline-flex; }
.brand-mark .ico { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-social { display: flex; gap: 12px; margin-left: 8px; }
.social-link { color: var(--primary); font-weight: 700; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { padding: 88px 0; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero.center .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero.right .hero-grid { grid-template-columns: .9fr 1.1fr; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.5px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; max-width: 620px; }
.hero.center .lead, .hero.center h1 { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #eaf2ff, #e6fbf7); min-height: 320px; display: flex; align-items: center; justify-content: center; }
.hero-img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.hero-placeholder .hero-ico { width: 120px; height: 120px; color: var(--primary); opacity: .35; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(10, 108, 255, .25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Section headings */
.section-title { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; letter-spacing: -.3px; }
.section-sub { color: var(--muted); margin: 0 0 32px; font-size: 17px; }
.text-block.center { text-align: center; }
.text-block.center .prose { margin: 0 auto; }

/* Cards */
.card-grid { display: grid; gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.card-ico { width: 46px; height: 46px; border-radius: 12px; background: #eaf2ff; color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card-ico .ico { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.card-link { color: var(--primary); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.card-link .ico { width: 16px; height: 16px; }

/* Products */
.product-grid, .post-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.product-card, .post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.product-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media, .post-media { background: linear-gradient(135deg, #eaf2ff, #e6fbf7); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.product-img, .post-img { width: 100%; height: 100%; object-fit: cover; }
.product-ico, .post-ico { width: 84px; height: 84px; color: var(--primary); opacity: .3; }
.product-body, .post-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat, .post-meta { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.product-body h3, .post-body h3 { margin: 2px 0 6px; font-size: 17px; }
.product-body p, .post-body p { color: var(--muted); font-size: 14px; margin: 0 0 10px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-weight: 800; color: var(--ink); }
.badge { background: #e6fbf7; color: #007a70; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.product-card.small .product-media, .post-card.small .post-media { aspect-ratio: 16/7; }

/* CTA */
.cta-block { background: linear-gradient(120deg, var(--primary), var(--accent)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); }
.cta-inner p { margin: 0; opacity: .92; max-width: 560px; }
.cta-block .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 6px 18px rgba(0,0,0,.15); }

/* Image / Gallery */
.image-block .block-img { width: 100%; border-radius: var(--radius); }
.image-block figure.rounded .block-img { border-radius: 24px; }
.image-block figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 10px; }
.gallery-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery-item img { width: 100%; border-radius: 12px; }
.gallery-item figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* Detail */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.detail-media { background: linear-gradient(135deg, #eaf2ff, #e6fbf7); border-radius: var(--radius); min-height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-img { width: 100%; height: 100%; object-fit: cover; }
.detail-ico { width: 120px; height: 120px; color: var(--primary); opacity: .3; }
.detail-copy h1 { font-size: clamp(26px, 3.4vw, 40px); margin: 8px 0 14px; }
.detail-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.product-price.big { font-size: 24px; font-weight: 800; margin: 10px 0; }
.post-detail .prose { margin-top: 18px; }

/* Prose */
.prose { color: #2a3a4d; font-size: 16px; }
.prose p { margin: 0 0 16px; }
.prose h2, .prose h3 { margin: 24px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--primary); text-decoration: underline; }

.empty { color: var(--muted); text-align: center; padding: 30px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Footer */
.site-footer { background: #0c1626; color: #c4d0de; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 54px 20px 30px; max-width: var(--maxw); margin: 0 auto; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-brand p { font-size: 14px; max-width: 420px; margin: 10px 0 0; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 14px; }
.footer-links a, .footer-contact a, .footer-contact span { display: block; color: #c4d0de; font-size: 14px; margin-bottom: 10px; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 2px; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: 8px; }
.footer-contact .ico { width: 16px; height: 16px; color: var(--accent); }
.footer-bottom { border-top: 1px solid #1c2a3e; padding: 18px 20px; font-size: 13px; color: #8aa0b8; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .detail-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .hero-media { min-height: 220px; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px 16px; display: none; box-shadow: var(--shadow);
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links .nav-link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-social { margin: 10px 0 0; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .block { padding: 52px 0; }
  .hero { padding: 56px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
