/* ============================================================
   官網前端基礎樣式（header / nav / banner / footer / 響應式）
   ============================================================ */
:root {
  --accent: #2563eb;
  --dark: #1f2937;
  --text: #111827;
  --muted: #6b7280;
  --light: #f9fafb;
  --border: #e5e7eb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }

.ws-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.ws-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
}
.ws-header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.ws-logo { font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; }
.ws-logo img { height: 40px; display: block; }
.ws-nav { flex: 1; }
.ws-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ws-menu li { position: relative; }
.ws-menu a {
  display: block; padding: 8px 14px; color: var(--text); text-decoration: none;
  font-size: 15px; border-radius: 8px;
}
.ws-menu a:hover { background: var(--light); color: var(--accent); }
.ws-submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 160px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  list-style: none; margin: 0; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.ws-menu li:hover > .ws-submenu { display: block; }
.ws-submenu a { font-size: 14px; padding: 8px 12px; }
.ws-langs { display: flex; gap: 6px; }
.ws-langs a {
  padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); text-decoration: none; font-size: 13px;
}
.ws-langs a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ws-menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto; padding: 10px;
  background: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.ws-menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Banner 輪播 ---------- */
.ws-banner { position: relative; overflow: hidden; min-height: 420px; }
.ws-slides { position: absolute; inset: 0; }
.ws-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.ws-slide.active { opacity: 1; pointer-events: auto; }
.ws-slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.ws-slide-bg.ws-bg-mb { display: none; }
.ws-slide-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.ws-overlay {
  position: absolute; transform: translate(-50%, -50%);
  text-align: center; white-space: nowrap; text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.ws-ov-btn { display: inline-block; padding: 12px 28px; border-radius: 8px; text-decoration: none; }
.ws-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ws-arrow:hover { background: rgba(0,0,0,.55); }
.ws-prev { left: 18px; }
.ws-next { right: 18px; }
.ws-dots { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; z-index: 6; }
.ws-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5); margin: 0 5px; cursor: pointer; transition: background .2s;
}
.ws-dot.active { background: #fff; }

/* ---------- 頁面內容 ---------- */
.ws-page { min-height: 50vh; }
.ws-page section { padding: 48px 0; }

/* ---------- Footer ---------- */
.ws-footer { background: var(--dark); color: #d1d5db; margin-top: 60px; padding: 40px 0; }
.ws-footer a { color: #d1d5db; }

/* ---------- 響應式 ---------- */
@media (max-width: 768px) {
  .ws-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; padding: 0 12px; gap: 8px; }
  .ws-menu-toggle { display: flex; grid-column: 1; grid-row: 1; justify-self: start; margin-left: 0; }
  .ws-logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .ws-langs { grid-column: 3; grid-row: 1; justify-self: end; }
  .ws-nav {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0,0,0,.14);
    padding: 8px 16px 20px;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .ws-header.open .ws-nav { display: flex; }
  .ws-menu { flex-direction: column; gap: 2px; width: 100%; }
  .ws-menu a { padding: 12px 14px; font-size: 16px; }
  .ws-submenu { position: static; display: block; border: none; box-shadow: none; padding: 0 0 0 14px; }
  .ws-submenu a { font-size: 15px; color: var(--muted); }
  .ws-banner { min-height: 260px; }
  .ws-slide { min-height: 260px; }
  .ws-slide-bg.ws-bg-pc { display: none; }
  .ws-slide-bg.ws-bg-mb { display: block; }
  .ws-overlay { white-space: normal; width: 92%; }
  .ws-ov-title { font-size: 24px !important; }
  .ws-ov-sub { font-size: 14px !important; }
  .ws-ov-btn { font-size: 13px !important; padding: 10px 22px !important; }
}

/* ---------- 產品中心 ---------- */
.ws-products { padding: 40px 0; }
.ws-products h1 { font-size: 30px; margin-bottom: 24px; }
.ws-series { margin-bottom: 40px; }
.ws-series h2 { font-size: 22px; margin: 0 0 16px; }
.ws-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.ws-product-card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.ws-product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.ws-product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.ws-product-card-info { padding: 14px 16px; }
.ws-product-card-info h3 { margin: 0 0 6px; font-size: 17px; }
.ws-product-card-info p { margin: 0; color: var(--muted); font-size: 14px; }
.ws-product-card-price { margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--accent); }

/* 產品詳情 */
.ws-product-hero { background: var(--light); padding: 48px 0; }
.ws-product-hero-inner { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.ws-product-media { flex: 1 1 380px; }
.ws-product-media img { width: 100%; border-radius: 14px; }
.ws-product-info { flex: 1 1 380px; }
.ws-product-info h1 { font-size: 34px; margin: 0 0 12px; }
.ws-product-tagline { font-size: 16px; color: var(--muted); margin: 0 0 16px; }
.ws-product-price { font-size: 26px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.ws-product-colors { display: flex; gap: 8px; margin-bottom: 20px; }
.ws-color-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.ws-product-buy { display: flex; gap: 12px; flex-wrap: wrap; }
.ws-buy-btn { display: inline-block; padding: 13px 30px; background: var(--accent); color: #fff; border-radius: 10px; text-decoration: none; font-size: 16px; font-weight: 600; }
.ws-buy-btn:hover { opacity: .92; }

.ws-feature { padding: 48px 0; }
.ws-feature.reverse { background: var(--light); }
.ws-feature-inner { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.ws-feature-img { flex: 1 1 380px; }
.ws-feature-img img { width: 100%; border-radius: 14px; }
.ws-feature-text { flex: 1 1 380px; }
.ws-feature-text h2 { font-size: 24px; margin: 0 0 12px; }
.ws-feature-text p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }
.ws-feature.reverse .ws-feature-inner { flex-direction: row-reverse; }

.ws-product-specs { padding: 48px 0; }
.ws-product-specs h2 { font-size: 24px; margin: 0 0 20px; }
.ws-specs-table { width: 100%; border-collapse: collapse; }
.ws-specs-table th, .ws-specs-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.ws-specs-table th { width: 200px; color: var(--muted); font-weight: 600; }

@media (max-width: 768px) {
  .ws-product-hero-inner, .ws-feature-inner { flex-direction: column; }
  .ws-feature.reverse .ws-feature-inner { flex-direction: column; }
  .ws-specs-table th { width: 120px; }
}
.ws-slogan { color: #9ca3af; font-size: 13px; margin: 0 0 8px; }

/* ---------- 產品對比 ---------- */
.ws-compare { padding: 40px 0; }
.ws-compare h1 { font-size: 30px; margin-bottom: 20px; }
.ws-compare-scroll { overflow-x: auto; }
.ws-compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ws-compare-table th, .ws-compare-table td {
  text-align: center; padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 14px; vertical-align: top;
}
.ws-compare-table thead th { background: var(--light); font-size: 16px; font-weight: 700; }
.ws-compare-table tbody th {
  text-align: left; color: var(--muted); font-weight: 600; background: #fafafa; width: 120px;
}
.ws-compare-table img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.ws-compare-table .ws-buy-btn { display: inline-block; margin: 2px; padding: 8px 14px; font-size: 13px; }

/* ============================================================
   首頁模板（韶音風格）：產品聚焦 / 三大理念 / 品牌口號
   ============================================================ */
.ws-spotlight { display: flex; align-items: stretch; min-height: 460px; background: #fff; }
.ws-spotlight + .ws-spotlight { border-top: 1px solid var(--border); }
.ws-spotlight.rev { flex-direction: row-reverse; }
.ws-spot-media { position: relative; flex: 1 1 56%; min-height: 420px; overflow: hidden; }
.ws-spot-media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-media-mb { display: none; }
.ws-media-mb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-spot-body {
  flex: 1 1 44%; display: flex; flex-direction: column; justify-content: center;
  padding: 56px 64px;
}
.ws-spot-product { max-height: 230px; width: auto; max-width: 80%; object-fit: contain; margin-bottom: 18px; align-self: flex-start; }
.ws-spot-body h2 { font-size: 32px; margin: 0 0 6px; letter-spacing: .5px; }
.ws-spot-cat { color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin: 0 0 12px; }
.ws-spot-desc { color: #374151; font-size: 16px; line-height: 1.8; margin: 0 0 28px; max-width: 380px; }
.ws-spot-btn {
  display: inline-block; align-self: flex-start; padding: 12px 32px;
  background: #111827; color: #fff; border-radius: 999px; text-decoration: none;
  font-size: 14px; letter-spacing: 1px; transition: background .2s;
}
.ws-spot-btn:hover { background: var(--accent); }

/* 三大理念 */
.ws-pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.ws-pillar { position: relative; display: block; min-height: 360px; overflow: hidden; }
.ws-pillar img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.ws-pillar:hover img { transform: scale(1.05); }
.ws-pillar-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 24px;
  color: #fff; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.68));
}
.ws-pillar-label strong { display: block; font-size: 22px; letter-spacing: 3px; }
.ws-pillar-label span { font-size: 13px; opacity: .85; }

/* BE OPEN 品牌口號 */
.ws-slogan-band { text-align: center; padding: 110px 20px; }
.ws-slogan-band .ws-kicker { color: var(--muted); letter-spacing: 6px; font-size: 13px; margin: 0 0 10px; text-transform: uppercase; }
.ws-slogan-band h2 { font-size: 68px; font-weight: 800; letter-spacing: 10px; margin: 0; color: var(--text); }

@media (max-width: 768px) {
  .ws-spotlight, .ws-spotlight.rev { flex-direction: column; min-height: 0; }
  .ws-spotlight + .ws-spotlight { border-top: none; }
  .ws-spot-media { flex: none; width: 100%; min-height: 0; aspect-ratio: 375 / 600; }
  .ws-media-pc { display: none; }
  .ws-media-mb { display: block; position: absolute; inset: 0; }
  .ws-spot-body { display: none; }
  .ws-pillars { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .ws-pillar { flex: 0 0 86%; min-height: 260px; scroll-snap-align: center; }
  .ws-slogan-band { padding: 72px 20px; }
  .ws-slogan-band h2 { font-size: 40px; letter-spacing: 5px; }
}

/* ============================================================
   通用頁面模板：頁首大圖 / 圖文分欄 / 卡片 / 文本 / CTA
   ============================================================ */
.ws-hero {
  position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.ws-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.ws-hero-inner { position: relative; z-index: 2; padding: 0 20px; }
.ws-hero-inner h1 { font-size: 44px; margin: 0 0 12px; letter-spacing: 4px; }
.ws-hero-inner p { font-size: 16px; margin: 0; opacity: .9; letter-spacing: 1px; }

.ws-split { display: flex; align-items: center; gap: 48px; padding: 72px 0; }
.ws-split .ws-container { display: flex; align-items: center; gap: 48px; }
.ws-split.rev .ws-container { flex-direction: row-reverse; }
.ws-split-media { flex: 1 1 50%; }
.ws-split-media img { width: 100%; border-radius: 14px; display: block; }
.ws-split-body { flex: 1 1 50%; }
.ws-split-body h2 { font-size: 30px; margin: 0 0 16px; }
.ws-split-body p { color: var(--muted); font-size: 16px; line-height: 1.9; margin: 0 0 20px; }

.ws-cards { padding: 64px 0; }
.ws-cards-head { text-align: center; margin-bottom: 40px; }
.ws-cards-head h2 { font-size: 30px; margin: 0 0 8px; }
.ws-cards-head p { color: var(--muted); margin: 0; }
.ws-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ws-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px; }
.ws-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.ws-card h3 { margin: 0 0 8px; font-size: 19px; }
.ws-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.ws-text { padding: 48px 0; }
.ws-text .ws-container { max-width: 820px; }
.ws-text h1 { font-size: 32px; margin: 0 0 20px; }
.ws-text h2 { font-size: 22px; margin: 28px 0 12px; }
.ws-text p { color: #374151; font-size: 15px; line-height: 1.9; margin: 0 0 14px; }

.ws-cta { text-align: center; padding: 72px 20px; background: var(--light); }
.ws-cta h2 { font-size: 30px; margin: 0 0 12px; }
.ws-cta p { color: var(--muted); margin: 0 0 28px; }

@media (max-width: 768px) {
  .ws-hero { min-height: 260px; }
  .ws-hero-inner h1 { font-size: 30px; }
  .ws-split, .ws-split.rev { padding: 40px 0; }
  .ws-split .ws-container, .ws-split.rev .ws-container { flex-direction: column; gap: 24px; }
  .ws-cards { padding: 40px 0; }
}
