/* ===================================================================
   Pearl Waterless International (Taiwan Edition)
   珍珠環保免水洗車 官方網站 核心樣式表
   配色系統：環保綠 (#10B981 / #059669)、英倫海軍藍 (#0B2038)、板岩深灰 (#1E293B)
   =================================================================== */

:root {
  --primary-navy: #0B2038;
  --primary-navy-dark: #061322;
  --primary-navy-light: #162E4A;
  --accent-emerald: #10B981;
  --accent-emerald-dark: #059669;
  --accent-emerald-light: #D1FAE5;
  --accent-cyan: #00A3E0;
  --accent-gold: #F59E0B;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --max-width: 1240px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 頂部通知公告列 */
.top-bar {
  background: linear-gradient(90deg, #061322 0%, var(--primary-navy) 50%, #0F2D4E 100%);
  color: #E2E8F0;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-badge {
  background: var(--accent-emerald);
  color: #FFFFFF;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.top-bar a {
  color: #67E8F9;
  font-weight: 600;
  transition: var(--transition);
}

.top-bar a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* 主導航列 */
.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(11, 32, 56, 0.06);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-text-en {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 1.2px;
  line-height: 1.1;
}

.brand-text-zh {
  font-size: 12px;
  color: var(--accent-emerald-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links li a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 4px;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-emerald);
  transition: width 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-emerald-dark);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 22px;
  color: var(--primary-navy);
  cursor: pointer;
}

/* 導覽下拉選單 */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-caret {
  font-size: 11px;
  opacity: 0.7;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 1200;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald-dark);
}

.nav-item-dropdown:hover > .dropdown-menu,
.nav-item-dropdown.open > .dropdown-menu {
  display: block;
}

/* 使用步驟 */
.howto-steps {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.howto-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.howto-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.howto-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.howto-step-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-top: 4px;
}

.howto-steps-img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #fff;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.product-detail-block {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
}

.product-detail-block:last-of-type {
  border-bottom: none;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.product-detail-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-light);
  object-fit: contain;
}

.pro-cloth-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.pro-cloth-gallery img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #fff;
}

/* 新聞／知識文章 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 185, 129, 0.35);
}

.article-card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-emerald-dark);
  letter-spacing: 0.4px;
}

.article-card h3 {
  font-size: 18px;
  color: var(--primary-navy);
  line-height: 1.4;
}

.article-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.article-card a {
  color: var(--accent-emerald-dark);
  font-weight: 700;
  font-size: 14px;
}

.article-body {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.article-body h2 {
  font-size: 26px;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.article-body .article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-body p {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.article-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.article-toggle h3 {
  font-size: 18px;
  color: var(--primary-navy);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.article-expand {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.article-card.open .article-expand {
  display: block;
}

/* 按鈕系統 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-emerald);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
  background-color: var(--accent-emerald-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35);
}

.btn-navy {
  background-color: var(--primary-navy);
  color: #FFFFFF;
}

.btn-navy:hover {
  background-color: #061322;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary-navy);
  border-color: var(--border-color);
}

.btn-outline-dark:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald-dark);
  background: var(--bg-light);
}

.btn-accent {
  background: linear-gradient(135deg, #00A3E0 0%, #0284C7 100%);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* 互動式輪播橫幅 (Banner Slider) */
.slider-container {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--primary-navy-dark);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(6, 19, 34, 0.88) 0%, rgba(11, 32, 56, 0.72) 48%, rgba(6, 19, 34, 0.45) 100%);
  display: flex;
  align-items: center;
}

.slide-content {
  max-width: 680px;
  color: #FFFFFF;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #34D399;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.slide-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.slide-title span {
  color: #34D399;
  display: block;
}

.slide-desc {
  font-size: 17px;
  color: #E2E8F0;
  line-height: 1.65;
  margin-bottom: 28px;
}

.slide-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background: rgba(11, 32, 56, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  transform: translateY(-50%) scale(1.08);
}

.slider-prev {
  left: 24px;
}

.slider-next {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--accent-emerald);
  width: 36px;
  border-radius: 8px;
}

/* 國際認證橫條 */
.accreditations {
  background: #FFFFFF;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.accreditations-title {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
}

.accreditations-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
}

.accreditation-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.accreditation-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-sm);
}

.accreditation-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.accreditation-card-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.25;
}

.accreditation-card-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* 通用區塊 */
.section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--bg-light);
}

.section-dark {
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 100%);
  color: #FFFFFF;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-emerald-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-dark .section-eyebrow {
  color: #34D399;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-dark .section-title {
  color: #FFFFFF;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: #CBD5E1;
}

/* 產品卡片 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-emerald);
  box-shadow: 0 16px 32px -8px rgba(11, 32, 56, 0.12);
}

.product-card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-card-tag.tag-hot {
  background: #FEF3C7;
  color: #92400E;
}

.product-card-tag.tag-emerald {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald-dark);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-en-name {
  font-size: 13px;
  color: var(--accent-emerald-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.product-specs {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border-light);
}

.product-specs span {
  display: flex;
  justify-content: space-between;
}

.product-specs b {
  color: var(--primary-navy);
  font-weight: 600;
}

/* 奈米陶瓷展示 */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.showcase-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.showcase-img-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.showcase-img-frame:hover img {
  transform: scale(1.03);
}

.showcase-feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.showcase-feature-item {
  display: flex;
  gap: 16px;
  background: var(--bg-white);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.showcase-feature-item:hover {
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.showcase-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-emerald-light);
  color: var(--accent-emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.showcase-feature-item h4 {
  font-size: 16px;
  color: var(--primary-navy);
  margin-bottom: 4px;
  font-weight: 700;
}

.showcase-feature-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 節水計算機 */
.calc-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 980px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-control {
  margin-bottom: 24px;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.calc-value-badge {
  color: var(--accent-emerald-dark);
  font-size: 18px;
  font-weight: 800;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #E2E8F0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-emerald);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.calc-result-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 16px;
}

.calc-result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.calc-result-label {
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 4px;
}

.calc-result-num {
  font-size: 32px;
  font-weight: 800;
  color: #34D399;
  line-height: 1.1;
}

.calc-result-unit {
  font-size: 14px;
  color: #E2E8F0;
  font-weight: 500;
  margin-left: 6px;
}

/* FAQ 手風琴 */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-emerald-dark);
}

.faq-icon {
  font-size: 20px;
  color: var(--accent-emerald);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: var(--bg-light);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 18px 24px 22px 24px;
  border-top: 1px solid var(--border-light);
}

.faq-answer p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 全幅 CTA 橫幅 */
.full-banner-cta {
  position: relative;
  background-size: cover;
  background-position: center center;
  padding: 80px 0;
  color: #FFFFFF;
}

.full-banner-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(6, 19, 34, 0.92) 0%, rgba(11, 32, 56, 0.82) 100%);
}

.full-banner-cta .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

.full-banner-cta h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
}

.full-banner-cta p {
  font-size: 16px;
  color: #CBD5E1;
  margin-bottom: 30px;
}

/* 產品分類過濾 */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-emerald);
  color: #FFFFFF;
  border-color: var(--accent-emerald);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

/* 表單樣式 */
.contact-form {
  background: var(--bg-white);
  padding: 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  color: var(--text-primary);
  background: #FFFFFF;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* 頁腳 Footer */
.footer {
  background-color: var(--primary-navy-dark);
  color: #94A3B8;
  padding-top: 64px;
  padding-bottom: 32px;
  border-top: 4px solid var(--accent-emerald);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: #94A3B8;
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-emerald);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.product-jump {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-jump .btn {
  padding: 8px 14px;
  font-size: 13px;
}
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--bg-light);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 32px;
}

.contact-guarantee-card {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #173B63 100%);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
}

/* 響應式佈局：平板 */
@media (max-width: 992px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-wrap {
    height: 68px;
  }

  .brand-logo-img {
    height: 40px;
  }

  .brand-text-en {
    font-size: 15px;
  }

  .brand-text-zh {
    font-size: 11px;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links > li > a {
    display: block;
    padding: 14px 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links > li > a::after {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-item-dropdown > .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 8px 8px;
    min-width: 0;
    display: none;
    background: var(--bg-light);
    margin: 0 0 8px;
  }

  .nav-item-dropdown.open > .dropdown-menu {
    display: block;
  }

  .nav-item-dropdown:hover > .dropdown-menu {
    display: none;
  }

  .nav-item-dropdown.open:hover > .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    white-space: normal;
    padding: 12px 12px;
    font-size: 14px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 26px;
  }

  .product-detail-grid,
  .howto-steps,
  .pro-cloth-gallery,
  .contact-layout,
  .showcase-grid,
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .howto-steps {
    padding: 18px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .slider-container {
    height: 520px;
  }

  .slide-overlay {
    background: linear-gradient(180deg, rgba(6, 19, 34, 0.55) 0%, rgba(6, 19, 34, 0.88) 55%, rgba(6, 19, 34, 0.94) 100%);
    align-items: flex-end;
    padding-bottom: 52px;
  }

  .slide-title {
    font-size: 28px;
  }

  .slide-desc {
    font-size: 15px;
  }

  .accreditations-grid {
    gap: 14px;
  }

  .accreditation-card {
    flex: 1 1 calc(50% - 14px);
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .filter-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 28px;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* 響應式佈局：手機 */
@media (max-width: 640px) {
  .top-bar {
    font-size: 12px;
    padding: 7px 0;
  }

  .top-bar-right {
    display: none;
  }

  .top-bar-left {
    gap: 8px;
    flex-wrap: wrap;
  }

  .top-bar-left > span:not(.top-bar-badge) {
    font-size: 11px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .nav-wrap {
    height: 60px;
  }

  .nav-links {
    top: 60px;
    max-height: calc(100vh - 60px);
  }

  .brand-logo {
    gap: 10px;
    min-width: 0;
  }

  .brand-logo-img {
    height: 34px;
  }

  .brand-text-zh {
    display: none;
  }

  .brand-text-en {
    font-size: 14px;
    letter-spacing: 0.8px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 14.5px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .slider-container {
    height: 480px;
  }

  .slide-content {
    max-width: 100%;
    padding-right: 4px;
  }

  .slide-tag {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 10px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  .slide-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .slide-desc {
    font-size: 13.5px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-buttons {
    gap: 10px;
  }

  .slide-buttons .btn {
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
    padding: 11px 16px !important;
    font-size: 14px !important;
    white-space: normal;
  }

  .slider-arrow {
    display: none;
  }

  .slider-dots {
    bottom: 14px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    padding: 18px;
  }

  .product-detail-block {
    margin-bottom: 40px;
  }

  .product-detail-img {
    max-height: 280px;
    width: 100%;
    object-fit: contain;
  }

  .howto-steps-img {
    width: 100%;
    max-height: none;
  }

  .howto-step-text {
    font-size: 14px;
  }

  .accreditation-card {
    flex: 1 1 100%;
    padding: 10px 14px;
  }

  .accreditation-img {
    height: 40px;
  }

  .calc-card {
    padding: 20px 16px;
  }

  .calc-results {
    padding: 22px 18px;
  }

  .calc-result-num {
    font-size: 26px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 14.5px;
    gap: 12px;
    align-items: flex-start;
  }

  .faq-question span:first-child {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
  }

  .faq-answer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .faq-answer p {
    font-size: 14px;
  }

  .contact-form,
  .contact-info-card,
  .contact-guarantee-card {
    padding: 22px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }

  .full-banner-cta {
    padding: 48px 0;
    text-align: center;
  }

  .full-banner-cta h2 {
    font-size: 22px;
  }

  .full-banner-cta p {
    font-size: 14.5px;
  }

  .article-body {
    padding: 18px;
  }

  .article-card h3 {
    font-size: 18px;
  }

  /* 壓制常見 inline 大標題／雙欄在手機撐破 */
  .section-dark[style*="padding: 60px"],
  section[style*="padding: 60px"] {
    padding: 40px 0 !important;
  }

  h2[style*="font-size: 32px"],
  h2[style*="font-size: 28px"] {
    font-size: 22px !important;
  }

  .product-jump {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .product-jump .btn {
    padding: 8px 12px !important;
    font-size: 12.5px !important;
    white-space: nowrap;
  }

  a[href^="mailto:"] {
    word-break: break-all;
  }

  div[style*="minmax(320px"],
  div[style*="minmax(240px"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 400px) {
  .slide-title {
    font-size: 20px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .btn {
    font-size: 13.5px;
  }
}
