/* 首頁 */

/* 開場大 Logo 畫面（整個畫面都可以點） */
.splash { display: none; }
html.show-splash { overflow: hidden; }
html.show-splash .splash {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  width: 100%; padding: 24px; border: 0; cursor: pointer;
  background: var(--cream); color: var(--wood-dark); font: inherit;
  transition: opacity 0.45s ease;
}
html.show-splash .splash.leaving { opacity: 0; pointer-events: none; }
.splash img { width: min(70vw, 42vh, 300px); height: auto; animation: splash-in 0.8s ease both; -webkit-user-drag: none; }
.splash-name { font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 700; letter-spacing: 0.16em; padding-left: 0.16em; animation: splash-in 0.8s 0.15s ease both; }
.splash-enter { margin-top: 14px; padding: 11px 34px; border: 1px solid var(--wood); border-radius: 999px; color: var(--wood); font-size: 1rem; letter-spacing: 0.12em; animation: splash-in 0.8s 0.35s ease both; }
.splash:hover .splash-enter { background: var(--wood); color: var(--on-accent, #fff); }
@keyframes splash-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .splash img, .splash-name, .splash-enter { animation: none; } }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--wood-dark);
  color: var(--hero-ink, #fff);
  min-height: 300px;
  display: flex;
  align-items: center;
}
.hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 150%; z-index: -2; background: var(--hero-photo, none) center bottom / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--hero-a, rgba(44, 32, 24, 0.82)), var(--hero-b, rgba(44, 32, 24, 0.35))); }
.hero-inner { max-width: 1100px; width: 100%; margin: 0 auto; padding: 48px 20px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.25; letter-spacing: 0.02em; text-shadow: var(--hero-shadow, 0 2px 12px rgba(0, 0, 0, 0.35)); }
.hero-sub { margin: 0; max-width: 30em; font-size: clamp(1rem, 2.6vw, 1.2rem); line-height: 1.7; opacity: 0.95; text-shadow: var(--hero-shadow, 0 1px 8px rgba(0, 0, 0, 0.35)); }

.wrap.home { padding-top: 36px; padding-bottom: 56px; }
.section-title { font-size: 1.35rem; margin: 0 0 26px; color: var(--wood-dark); text-align: center; }
.section-title::after { content: ''; display: block; width: 44px; height: 3px; margin: 10px auto 0; background: var(--wood); border-radius: 2px; }

/* 依系列挑選：照片 + 名牌（名牌跟上面的方塊入口同一個顏色） */
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 20px; }
.series-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.series-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* 只露出照片下半部的木紋，避開上方的品名和 Logo */
.series-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 100%; transform: scale(1.4); transform-origin: 50% 100%; display: block; user-select: none; -webkit-user-drag: none; }
.series-noimg { width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--ph-a), var(--ph-b)); }
.series-label { position: relative; background: var(--wood); color: var(--on-accent); text-align: center; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.series-name { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.04em; }
.series-count { font-size: 0.8rem; opacity: 0.85; }

/* 最新上架 */
.latest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 700px) { .latest-grid { grid-template-columns: repeat(2, 1fr); } }
.latest-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.latest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.latest-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--cream); display: block; user-select: none; -webkit-user-drag: none; }
.latest-name { margin: 0; padding: 10px 14px 14px; font-weight: 700; font-size: 0.92rem; }
.more { margin: 18px 0 0; text-align: right; }
.more a { color: var(--wood); font-weight: 600; text-decoration: none; }
.more a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .hero { min-height: 240px; }
  .hero-inner { padding: 44px 20px; }
  .series-grid { grid-template-columns: 1fr; }
  .latest-grid { gap: 12px; }
}
