:root {
  --bg: #ffffff;
  --panel: #f7f8fa;
  --text: #1a1d23;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #1f6feb;
  --card: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #eef3fb 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 0%, #f3f6fb 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-notice {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.9rem;
  cursor: pointer;
}
.site-notice-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.25rem;
}
.site-notice-label {
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-notice-track {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 1.4rem;
  line-height: 1.4rem;
}
.site-notice-scroll {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: site-notice-marquee 28s linear infinite;
}
html[dir="rtl"] .site-notice-scroll {
  animation-name: site-notice-marquee-rtl;
}
.site-notice-track.is-paused .site-notice-scroll {
  animation-play-state: paused;
}
.site-notice-text { display: inline-block; }
.site-notice-gap { display: inline-block; width: 3rem; }
.site-notice-popup {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 50;
  width: min(52rem, 96vw);
  max-height: min(28rem, 70vh);
  overflow: auto;
  padding: 1.15rem 1.25rem;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 1rem;
  cursor: default;
}
html[dir="rtl"] .site-notice-popup { left: auto; right: 0; }
@keyframes site-notice-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes site-notice-marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 64px;
}
.brand { font-weight: 700; letter-spacing: 0.04em; font-size: 1.1rem; }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a.active, .nav a:hover { color: var(--text); }
.lang-switch { display: flex; align-items: center; }
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
  background: var(--panel)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 0.7rem center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  min-width: 7.5rem;
}
.lang-select:focus {
  outline: none;
  border-color: var(--accent);
}
html[dir="rtl"] .lang-select {
  background-position: left 0.7rem center;
  padding: 0.4rem 0.75rem 0.4rem 2rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hero-banner {
  position: relative;
  height: min(78vh, 720px);
  min-height: 460px;
  overflow: hidden;
  background: #111418;
}
.hero-banner.is-plain {
  background:
    radial-gradient(1200px 600px at 10% -10%, #eef3fb 0%, transparent 55%),
    #ffffff;
  border-bottom: 1px solid var(--line);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45));
}
.hero-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  pointer-events: none;
}
.hero-caption h1 {
  margin: 0;
  max-width: 14em;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-banner.is-plain .hero-caption h1 {
  color: var(--text);
  text-shadow: none;
}
.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #111;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.hero-nav.prev { left: 1rem; }
.hero-nav.next { right: 1rem; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}
.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.hero-dot.is-active { background: #fff; width: 1.35rem; }

.section { padding: 3rem 0; }
.section h2 { margin: 0 0 1.25rem; font-size: 1.4rem; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.category-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.2rem;
  border-radius: 10px;
  transition: border-color .2s ease, transform .2s ease;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.product-card:hover { border-color: #9ca3af; transform: translateY(-3px); }
.product-card h3 { margin: 0.9rem 1rem 0.35rem; font-size: 1.05rem; }
.product-card p {
  margin: 0 1rem 1rem; color: var(--muted); font-size: 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.thumb { aspect-ratio: 4/3; background: #f3f4f6; position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb img.thumb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}
.thumb img.thumb-slide.is-active { opacity: 1; }
.thumb-placeholder {
  height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 0.85rem;
}
.thumb-placeholder.large { min-height: 360px; }

.product-page { padding-top: 2rem; }
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem;
  color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: #9ca3af; user-select: none; }
.breadcrumb-current { color: var(--text); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.detail-media {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  height: min(70vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-media.has-gallery {
  display: block;
}
.detail-gallery {
  position: relative;
  height: 100%;
  background: #f8fafc;
}
.gallery-slide {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gallery-slide.is-active { display: flex; }
.gallery-slide img,
.detail-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #111;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.gallery-nav.prev { left: 0.75rem; }
.gallery-nav.next { right: 0.75rem; }
.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.gallery-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17,24,39,.28);
  cursor: pointer;
}
.gallery-dot.is-active { background: #1f6feb; width: 1.25rem; }
.detail-copy {
  padding: 0.5rem 0;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe7ff;
  background: rgba(31, 111, 235, 0.06);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
  transition: border-color .2s ease, background .2s ease;
}
.category-chip:hover {
  border-color: var(--accent);
  background: rgba(31, 111, 235, 0.1);
  color: #1e40af;
}
.detail-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.detail-summary {
  margin: 0 0 1.5rem;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.65;
}
.detail-description-block {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
}
.detail-description-block h2 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.description {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  font-size: 0.98rem;
}
.description p,
.description div {
  margin: 0 0 0.75rem;
}
.description p:last-child,
.description div:last-child {
  margin-bottom: 0;
}
.description ul,
.description ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}
.description blockquote {
  margin: 0 0 0.75rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--line);
}
.description a {
  text-decoration: underline;
}
.detail-description-block .description h2,
.detail-description-block .description h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  font-weight: 650;
}
.related-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.related-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.related-more {
  color: var(--accent);
  font-size: 0.92rem;
}
.related-more:hover { text-decoration: underline; }
.btn {
  display: inline-block; background: var(--accent); color: white;
  padding: 0.7rem 1rem; border-radius: 8px;
}
.empty { color: var(--muted); }
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.footer-about {
  margin-bottom: 1.15rem;
}
.footer-about h2 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.05rem;
}
.footer-about p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-contact {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}
.footer-contact p { margin: 0; }
.footer-copy { margin: 0; }
.footer-contact a { color: var(--accent); }

@media (max-width: 800px) {
  .hero-banner { height: 68vh; min-height: 320px; }
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .detail-media { height: min(56vh, 420px); }
  .detail-copy { padding: 0; }
  .header-inner { flex-wrap: wrap; padding: 0.75rem 0; }
}
