:root {
  --blue: #208cf0;
  --green: #24b874;
  --gold: #b89558;
  --ink: #24313d;
  --text: #66717d;
  --muted: #929daa;
  --line: #e8edf2;
  --bg: #f7f9fb;
  --shadow: 0 18px 48px rgba(32, 49, 65, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#site {
  flex: 1;
}

button {
  font: inherit;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 86px;
  height: 46px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.site-header nav a {
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.site-footer {
  padding: 24px max(24px, calc((100vw - 1180px) / 2)) 30px;
  color: #8a95a1;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

.nav-admin {
  padding: 9px 14px;
  color: #fff !important;
  background: var(--blue);
  border-radius: 6px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 46px;
  align-items: center;
  width: min(1180px, calc(100vw - 48px));
  min-height: 620px;
  margin: 0 auto;
  padding: 54px 0;
}

.hero-copy p,
.section-head span,
.intro-section span,
.contact-section span {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 48px;
  line-height: 1.18;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions a,
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.hero-actions a:nth-child(2),
.contact-actions a:nth-child(2) {
  color: var(--ink);
  background: #edf3f8;
}

.hero-section > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center top;
  background: #f3f6f9;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-empty,
.image-placeholder,
.empty-card {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
  background: #f3f6f9;
  border: 1px dashed #cfd8e2;
  border-radius: 8px;
}

.hero-empty {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.intro-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 38px;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.intro-section h2,
.section-head h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.3;
}

.intro-section p {
  margin: 0;
  font-size: 18px;
  line-height: 1.85;
}

.section {
  padding: 62px max(24px, calc((100vw - 1180px) / 2));
}

.muted-section {
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.product-grid,
.color-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card,
.color-card,
.article-card {
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(32, 49, 65, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover,
.color-card:hover,
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(32, 49, 65, 0.12);
}

.product-card img,
.color-card img,
.article-card img,
.product-card .image-placeholder,
.color-card .image-placeholder,
.article-card .image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center top;
  background: #edf1f5;
}

.empty-card {
  grid-column: 1 / -1;
}

.product-card div,
.color-card div,
.article-card div {
  padding: 16px;
}

.product-card span,
.color-card span,
.article-card span {
  color: var(--muted);
  font-size: 14px;
}

.product-card h3,
.color-card h3,
.article-card h3 {
  margin: 6px 0 7px;
  color: var(--ink);
  font-size: 20px;
}

.product-card p,
.color-card p,
.article-card p,
.contact-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.contact-section {
  align-items: end;
}

.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.empty {
  padding: 80px 24px;
  color: var(--muted);
  text-align: center;
}

.detail-page {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 22px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
}

.detail-main-image {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #f3f6f9;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-copy > span {
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
}

.detail-copy h1 {
  margin: 12px 0 18px;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.tag-row em {
  padding: 7px 12px;
  color: var(--gold);
  background: #fff7ea;
  border-radius: 999px;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.detail-copy p,
.detail-section p {
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.detail-actions button,
.detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.detail-actions a {
  background: var(--green);
}

.detail-shop {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-shop img {
  width: 96px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.detail-shop h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.detail-shop p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.detail-section {
  margin-top: 34px;
}

.detail-section h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 28px;
}

.detail-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.detail-images img {
  width: 100%;
  object-fit: contain;
  background: #f3f6f9;
  border-radius: 8px;
}

.article-detail {
  width: min(920px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 34px 0 82px;
}

.article-cover {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: center top;
  background: #f3f6f9;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-body {
  margin-top: 28px;
}

.article-body > span {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.article-body h1 {
  margin: 12px 0 18px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.22;
}

.article-summary {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.8;
}

.video-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 24px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.article-content {
  color: var(--text);
  font-size: 17px;
  line-height: 1.95;
}

.site-carousel {
  display: grid;
  grid-auto-columns: 82%;
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 18px;
  background: #f3f6f9;
  border-radius: 8px;
  scroll-snap-type: x mandatory;
}

.site-carousel::-webkit-scrollbar {
  height: 8px;
}

.site-carousel img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 6px;
}

.color-showcase {
  min-height: calc(100vh - 72px);
  padding: 38px max(24px, calc((100vw - 1180px) / 2)) 80px;
  color: #fff;
  background: linear-gradient(180deg, #a8abb0 0%, #b8bbc0 62%, #9b9fa4 100%);
}

.showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 54px;
}

.showcase-header .brand {
  color: #fff;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}

.book-cover {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 4px 14px 14px 4px;
  box-shadow: -15px 0 22px -8px rgba(0, 0, 0, 0.18) inset, 12px 18px 34px rgba(0, 0, 0, 0.26);
}

.book-cover img,
.book-cover .image-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #eef1f4;
}

.showcase-info > span {
  font-size: 24px;
  opacity: 0.86;
}

.showcase-info h1 {
  margin: 12px 0 26px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.15;
  font-weight: 450;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.showcase-info .tag-row em {
  color: #333;
  background: rgba(255, 255, 255, 0.96);
}

.reflect-gallery {
  display: flex;
  gap: 18px;
  margin-top: 76px;
  padding-bottom: 64px;
  overflow-x: auto;
}

.reflect-gallery img {
  width: 180px;
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
  object-fit: contain;
  background: #eef1f4;
  border-radius: 5px;
  box-shadow: 5px 8px 16px rgba(0, 0, 0, 0.18);
  -webkit-box-reflect: below 2px linear-gradient(transparent 58%, rgba(255, 255, 255, 0.24));
}

@media (max-width: 900px) {
  .site-header,
  .site-header nav,
  .hero-actions,
  .contact-actions {
    flex-wrap: wrap;
  }

  .site-header {
    gap: 12px;
    padding: 14px 20px;
  }

  .hero-section,
  .detail-hero-grid,
  .showcase-layout,
  .intro-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .product-grid,
  .color-grid,
  .article-grid,
  .detail-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-copy h1 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .product-grid,
  .color-grid,
  .article-grid,
  .detail-images {
    grid-template-columns: 1fr;
  }
}
