:root {
  --ink: #152033;
  --muted: #657084;
  --line: #e7eaf0;
  --brand: #df2435;
  --blue: #1769ff;
  --green: #00a86b;
  --soft: #f7f8fb;
  --max: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, "Microsoft JhengHei", "PingFang TC", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: #111827;
  color: #dce3ef;
  font-size: 13px;
}
.topbar .container {
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar i { color: #ff4a5a; margin-right: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(231,234,240,.9);
  backdrop-filter: blur(12px);
}
.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 260px; height: auto; }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  padding: 26px 15px;
  font-weight: 700;
  color: #243044;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.hero-slider {
  position: relative;
  height: min(620px, 48vw);
  min-height: 430px;
  overflow: hidden;
  background: #111827;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,16,29,.78), rgba(10,16,29,.34) 42%, rgba(10,16,29,.03) 74%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  color: #fff;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffbac1;
  font-weight: 700;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}
.hero-copy p {
  margin: 20px 0 28px;
  font-size: 18px;
  color: #edf2fa;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.hero-dot.active {
  width: 30px;
  border-radius: 999px;
  background: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 12px 22px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border: 1px solid var(--brand);
}
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.section { padding: 78px 0; }
.section.soft { background: var(--soft); }
.section-title {
  text-align: center;
  margin: 0 auto 34px;
}
.section-title h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0;
}
.section-title span {
  display: block;
  width: 58px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--blue), var(--green));
  margin: 14px auto 0;
}
.section-title p {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(21,32,51,.11);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.product-card h3 {
  margin: 14px 16px 6px;
  font-size: 17px;
  line-height: 1.35;
}
.product-card p {
  margin: 0 16px 18px;
  color: var(--muted);
  font-size: 14px;
}
.about-band {
  background:
    linear-gradient(90deg, rgba(17,24,39,.92), rgba(17,24,39,.72)),
    url("../img/page-bg.jpg") center/cover no-repeat;
  color: #fff;
}
.about-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: center;
}
.about-layout img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-layout h2 { margin: 0 0 14px; font-size: 31px; }
.about-layout p { color: #edf2fa; margin: 0 0 16px; }

.contact-strip {
  background: #111827;
  color: #fff;
  padding: 60px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.contact-item i {
  font-size: 34px;
  color: #ff4a5a;
  margin-bottom: 14px;
}
.contact-item h3 { margin: 0 0 8px; }
.contact-item p { margin: 0; color: #dce3ef; }

.page-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17,24,39,.86), rgba(17,24,39,.44)),
    url("../img/page-bg.jpg") center/cover no-repeat;
}
.page-hero h1 {
  margin: 0;
  font-size: 42px;
}
.page-hero p { margin: 10px 0 0; color: #edf2fa; }

.two-col {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 34px;
}
.side-box {
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 22px;
}
.side-box h2 {
  margin: 0;
  padding: 14px 18px;
  background: #111827;
  color: #fff;
  font-size: 18px;
}
.category-filter { padding: 10px; display: grid; gap: 8px; }
.product-search {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.product-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.product-search .search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #fff;
}
.product-search i { color: var(--brand); }
.product-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  min-height: 42px;
  font: inherit;
  color: var(--ink);
}
.category-filter button,
.category-filter a {
  display: block;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
.category-filter button.active, .category-filter button:hover,
.category-filter a.active, .category-filter a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.side-contact { padding: 16px 18px; color: var(--muted); font-size: 14px; }

.detail-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 42px;
  align-items: start;
}
.detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px;
}
.detail-meta {
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 10px;
}
.detail-title {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.2;
}
.detail-summary { color: var(--muted); font-size: 17px; }
.detail-copy {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.detail-section-title {
  margin: 0 0 14px;
  font-size: 22px;
}
.detail-gallery {
  margin-top: 24px;
}
.detail-gallery img {
  width: 100%;
  height: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.feedback-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: start;
}
.feedback-info {
  background: #111827;
  color: #fff;
  padding: 30px;
}
.feedback-info h2 { margin: 0 0 12px; }
.feedback-info p { color: #dce3ef; }
.feedback-form {
  display: grid;
  gap: 14px;
}
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.feedback-form textarea {
  min-height: 150px;
  resize: vertical;
}
.feedback-note {
  display: none;
  color: var(--green);
  font-weight: 700;
}
.feedback-note.show { display: block; }

footer {
  background: #0c111d;
  color: #c9d2df;
  padding: 30px 0 88px;
  text-align: center;
  font-size: 14px;
}
footer strong { color: #fff; }
.mobile-actions {
  display: none;
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.mobile-actions a {
  flex: 1;
  text-align: center;
  padding: 9px 4px;
  color: var(--ink);
  font-size: 12px;
}
.mobile-actions i { display: block; font-size: 18px; color: var(--brand); }

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .detail-layout, .about-layout, .contact-grid, .feedback-panel { grid-template-columns: 1fr; }
  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 13px 24px; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-grid; place-items: center; }
}

@media (max-width: 620px) {
  .topbar .container { justify-content: center; text-align: center; }
  .brand img { width: 216px; }
  .hero-slider { height: 560px; min-height: 560px; }
  .hero-copy { justify-content: flex-end; padding-bottom: 46px; }
  .hero-slide::after { background: linear-gradient(180deg, rgba(10,16,29,.18), rgba(10,16,29,.88)); }
  .product-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .mobile-actions { display: flex; }
  footer { padding-bottom: 88px; }
}
