/* ============================================================
   燦成通信 CCTel - 主樣式表
   科技藍 (#165DFF) 為主調，簡約專業風格
   ============================================================ */

/* ===== CSS 變數 ===== */
:root {
  --primary: #165DFF;
  --primary-dark: #0E42D2;
  --primary-light: #3C7EFF;
  --primary-bg: #E8F0FE;
  --primary-glow: rgba(22, 93, 255, 0.15);
  --dark: #0F172A;
  --dark-secondary: #1E293B;
  --gray-900: #1A1A2E;
  --gray-700: #334155;
  --gray-500: #64748B;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50: #F8FAFC;
  --white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-primary: 0 4px 20px rgba(22, 93, 255, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 基礎重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'PingFang HK', 'Microsoft JhengHei', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ===== 頂部導航 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 93, 255, 0.08);
  padding: 0;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* 導航連結 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

/* 語言切換 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 3px;
  margin-left: 12px;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-switch button.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.lang-switch button:hover:not(.active) {
  color: var(--primary);
}

/* 漢堡選單 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--dark);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: linear-gradient(160deg, #0F172A 0%, #1a2744 30%, #0d1b3e 60%, #0F172A 100%);
}

/* 科技背景動畫元素 */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(22, 93, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(60, 126, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(22, 93, 255, 0.05) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(2%, -2%) rotate(2deg); }
}

/* 網格線條 */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(22, 93, 255, 0.15);
  border: 1px solid rgba(22, 93, 255, 0.25);
  border-radius: 50px;
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary-light), #6DB3FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-highlight {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 32px;
  padding: 12px 24px;
  background: rgba(22, 93, 255, 0.12);
  border-left: 4px solid var(--primary-light);
  border-radius: 0 10px 10px 0;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(22, 93, 255, 0.35);
}

.btn-outline {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover { background: #DC2626; }

/* ===== 區塊通用 ===== */
.section {
  padding: 80px 24px;
}

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

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

#relatedProductsGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary), 0 0 40px var(--primary-glow);
}

.product-card-image {
  position: relative;
  min-height: 200px;
  height: 260px;
  background: linear-gradient(135deg, #E8F0FE, #F1F5F9);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image .placeholder-icon {
  font-size: 4rem;
  color: var(--gray-300);
  opacity: 0.5;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--white);
  padding: 16px;
  transition: transform 0.5s ease;
}

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

.product-card-image img[src=""],
.product-card-image img:not([src]),
.product-card-image img[src="undefined"] {
  display: none;
}

.product-card-image img.error {
  display: none;
}

/* 圖片載入失敗時的後備 */
.product-card-image .img-fallback {
  display: none;
  font-size: 4rem;
  color: var(--gray-300);
  opacity: 0.5;
}

.product-card-image img.error ~ .img-fallback,
.product-card-image:has(img[src=""]) .img-fallback {
  display: block;
}

/* 產品標籤 */
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card-body {
  padding: 22px;
}

.product-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card-body .summary {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.product-price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-detail:hover {
  background: var(--primary);
  color: white;
}

/* ===== 為什麼選擇我們 ===== */
.why-us {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.feature-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary-bg), rgba(22,93,255,0.05));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== 統計數字 ===== */
.stats-section {
  background: linear-gradient(135deg, var(--dark), var(--dark-secondary));
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), #6DB3FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ===== 頁面標題 ===== */
.page-header {
  background: linear-gradient(160deg, #0F172A, #1a2744);
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(22, 93, 255, 0.1) 0%, transparent 50%);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  position: relative;
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  position: relative;
}

/* ===== 關於我們頁面 ===== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 48px;
}

.about-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-bg);
}

.about-section p {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.value-card {
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== 產品中心頁面 ===== */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 4px;
}

.filter-tab {
  padding: 8px 20px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  width: 260px;
  background: var(--white);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ===== 產品詳情頁面 ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #E8F0FE, #F1F5F9);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-detail-image .placeholder-icon {
  font-size: 5rem;
  color: var(--gray-300);
  opacity: 0.4;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  padding: 24px;
  background: var(--white);
  display: block;
}

.product-detail-info h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-detail-info .price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 16px 0;
}

.product-detail-info .price small {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 500;
}

.product-detail-info .retail-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 2px;
  font-weight: 500;
}

.product-detail-info .description {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ====== 變體選擇器 ====== */
.variant-selector {
  margin: 12px 0 20px;
}
.variant-selector-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-option {
  padding: 6px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  user-select: none;
}
.variant-option:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.variant-option.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* ====== 產品詳情全寬區域 ====== */
.product-desc-fullwidth {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--gray-100);
}
.product-desc-fullwidth .product-desc-html .fee-section {
  margin-bottom: 40px;
}
.product-desc-fullwidth .product-desc-html .fee-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.product-desc-fullwidth .product-desc-html .fee-table {
  max-width: 100%;
}
.product-desc-fullwidth .product-desc-html .fee-table thead th {
  padding: 14px 18px;
  font-size: 0.95rem;
}
.product-desc-fullwidth .product-desc-html .fee-table tbody td {
  padding: 12px 18px;
}
.product-desc-fullwidth .product-desc-html .fee-notes {
  padding: 0 4px;
  line-height: 1.9;
}
.product-desc-fullwidth .product-desc-html .fee-warning {
  margin-top: 8px;
}
.product-desc-fullwidth .product-desc-html .section-divider {
  display: none;
}
.product-desc-fullwidth:empty {
  display: none;
}

/* ====== 產品詳情 CMHK 格式 ====== */
.product-desc-html .desc-section {
  margin-bottom: 32px;
}
.product-desc-html .desc-section img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.product-desc-html .feature-list {
  list-style: none;
  margin: 16px 0 0 0;
  padding: 0;
}
.product-desc-html .feature-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.product-desc-html .feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* 收費區塊 */
.product-desc-html .fee-section {
  margin-bottom: 28px;
}
.product-desc-html .section-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 28px 0;
}
.product-desc-html .fee-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* 收費表格 */
.product-desc-html .fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.product-desc-html .fee-table thead th {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 16px;
  text-align: center;
  border: 1px solid #d0ddf7;
  font-size: 0.9rem;
}
.product-desc-html .fee-table tbody td {
  padding: 14px 16px;
  text-align: center;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  vertical-align: middle;
}
.product-desc-html .fee-table tbody tr:nth-child(even) td {
  background: #fafbfd;
}
.product-desc-html .fee-table sup {
  font-size: 0.7rem;
  color: var(--gray-400);
}

/* ====== CUniq 產品詳情格式 ====== */
.product-desc-html .tt-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
}
.product-desc-html .detail--item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.product-desc-html .detail--item:last-child {
  border-bottom: none;
}
.product-desc-html .detail--item span:first-child,
.product-desc-html .detail--item .title_ {
  flex-shrink: 0;
  width: 110px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
}
.product-desc-html .detail--item .value {
  flex: 1;
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
.product-desc-html .detail--item .value a {
  color: var(--primary);
  text-decoration: underline;
}

/* 條款列表 */
.product-desc-html .fee-notes {
  margin: 12px 0 0 0;
  padding-left: 24px;
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.8;
}
.product-desc-html .fee-notes li {
  margin-bottom: 6px;
}

/* 紅色警告 */
.product-desc-html .fee-warning {
  color: #e8302a;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 24px;
  padding: 12px 16px;
  background: #fff5f5;
  border-left: 3px solid #e8302a;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.product-meta {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-500);
}

.product-meta-item .meta-icon {
  color: var(--primary);
}

/* ===== 聯繫頁面 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-list {
  list-style: none;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
}

.contact-info-item h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 0.88rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-form-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.contact-form-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--white);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== 頁腳 ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links a:hover { color: white; }

/* ===== 管理後台頁面 ===== */
.admin-body {
  background: var(--gray-50);
  min-height: 100vh;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0F172A, #1a2744);
}

.login-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 380px;
  max-width: 90%;
}

.login-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  text-align: center;
}

.login-error {
  background: #FEF2F2;
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

/* 管理導航 */
.admin-nav {
  background: var(--dark);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-nav-brand {
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
}

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

.admin-nav-links a,
.admin-nav-links button {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.admin-nav-links a:hover,
.admin-nav-links button:hover,
.admin-nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

/* 儀表板 */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}

/* 產品列表（後台） */
.admin-table {
  width: 100%;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.admin-table td {
  padding: 14px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

.product-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.current-image-preview {
  max-width: 300px;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  margin-bottom: 8px;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-active {
  background: #D1FAE5;
  color: #065F46;
}

.status-inactive {
  background: #FEE2E2;
  color: #991B1B;
}

.status-featured {
  background: var(--primary-bg);
  color: var(--primary);
}

.action-btns {
  display: flex;
  gap: 8px;
}

.action-btns button {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edit {
  background: var(--primary-bg);
  color: var(--primary);
}

.btn-edit:hover { background: var(--primary); color: white; }

.btn-delete {
  background: #FEE2E2;
  color: var(--danger);
}

.btn-delete:hover { background: var(--danger); color: white; }

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-500);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* 產品表單頁 */
.product-form-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  padding: 36px;
  max-width: 800px;
}

.product-form-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

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

.form-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.form-check label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

.current-image-preview {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--gray-100);
  margin-bottom: 8px;
}

/* 訊息提示 */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 14px 24px;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 9999;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 合作夥伴輪播 ===== */
.partners-section {
  background: var(--white);
  padding: 80px 24px;
}

.partners-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.partners-carousel-clip {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.partners-track {
  display: flex;
  gap: 15px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px 0;
}

.partner-card {
  min-width: calc((100% - 60px) / 4);
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(22, 93, 255, 0.12);
  transform: translateY(-2px);
}

.partner-img-wrap {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.partner-logo-img {
  max-width: 95%;
  max-height: 95px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo-img {
  transform: scale(1.06);
}

.partner-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.partners-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.partners-arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.partners-arrow:active {
  transform: scale(0.95);
}

.partners-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.partners-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.partners-dot.active {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ===== 品牌首頁升級 ===== */
.brand-hero {
  min-height: 700px;
  text-align: left;
  justify-content: center;
  background-image:
    linear-gradient(110deg, rgba(7, 18, 43, 0.96) 0%, rgba(12, 31, 68, 0.93) 46%, rgba(8, 22, 48, 0.78) 100%),
    url('/static/picture/mobile-duck-mainland-18gb-365.jpg');
  background-size: cover;
  background-position: center right;
}

.brand-hero::before {
  background:
    radial-gradient(circle at 12% 22%, rgba(66, 153, 225, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 84% 72%, rgba(16, 185, 129, 0.12) 0%, transparent 46%);
}

.brand-hero .hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.brand-hero .hero-badge {
  color: #A9C8FF;
  background: rgba(22, 93, 255, 0.18);
  border-color: rgba(169, 200, 255, 0.28);
}

.brand-hero h1 {
  font-size: 3.45rem;
  letter-spacing: 0;
  max-width: 760px;
}

.brand-hero p {
  max-width: 760px;
}

.brand-hero .hero-highlight {
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.08);
  border-left-color: #6DB3FF;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.hero-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.hero-proof-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-showcase {
  position: relative;
  z-index: 2;
}

.showcase-panel {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
}

.showcase-label {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.showcase-title {
  color: var(--dark);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 8px;
}

.showcase-desc {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.brand-hero .showcase-desc {
  color: var(--gray-500);
}

.showcase-products {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.showcase-products img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.showcase-products .showcase-main-product {
  grid-row: span 2;
  height: 334px;
}

.showcase-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.showcase-logos img {
  height: 38px;
  width: 100%;
  object-fit: contain;
  filter: saturate(0.9);
}

.brand-stats {
  margin-top: 0;
  padding: 46px 24px;
}

.brand-stats .stat-item {
  padding: 22px 18px;
}

.brand-stats .stat-number {
  font-size: 2.35rem;
  letter-spacing: 0;
}

.brand-stats .stat-label {
  max-width: 210px;
  margin: 0 auto;
  line-height: 1.55;
}

.capabilities-section .feature-card {
  text-align: left;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.capabilities-section .feature-icon {
  margin: 0 0 18px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.featured-products-section {
  background: var(--gray-50);
}

/* ===== CCTel 品牌級首頁方向 ===== */
.cx-hero {
  position: relative;
  min-height: 680px;
  padding: 128px 24px 90px;
  overflow: hidden;
  background: #06111f;
  color: #fff;
}

.cx-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(6,17,31,0.98) 0%, rgba(7,30,57,0.94) 48%, rgba(4,28,50,0.8) 100%),
    radial-gradient(circle at 18% 20%, rgba(0, 174, 255, 0.28), transparent 34%),
    radial-gradient(circle at 88% 42%, rgba(45, 212, 191, 0.16), transparent 38%),
    url('/static/picture/mobile-duck-mainland-18gb-365.jpg');
  background-size: cover;
  background-position: center right;
}

.cx-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.cx-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 70px;
  align-items: center;
}

.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 174, 255, 0.48);
  color: #9BDFFF;
  background: rgba(12, 47, 87, 0.52);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cx-hero h1 {
  max-width: 720px;
  margin: 28px 0 22px;
  color: #fff;
  font-size: 4.15rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.cx-hero p {
  max-width: 680px;
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  line-height: 1.9;
}

.cx-hero-line {
  width: min(360px, 70%);
  height: 2px;
  margin: 34px 0;
  background: linear-gradient(90deg, #00B8FF, rgba(0,184,255,0));
}

.cx-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cx-network-visual {
  position: relative;
  min-height: 460px;
  border-radius: 4px;
}

.cx-orbit {
  position: absolute;
  border: 1px solid rgba(0,184,255,0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(0,184,255,0.08);
}

.cx-orbit-a {
  width: 420px;
  height: 420px;
  right: 80px;
  top: 18px;
}

.cx-orbit-b {
  width: 300px;
  height: 300px;
  right: 140px;
  top: 78px;
  border-color: rgba(91, 221, 255, 0.36);
}

.cx-core {
  position: absolute;
  right: 180px;
  top: 160px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.98), rgba(223,242,255,0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.38), 0 0 80px rgba(0,184,255,0.25);
}

.cx-core img {
  width: 122px;
  margin-bottom: 8px;
}

.cx-core span {
  color: var(--dark);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cx-node {
  position: absolute;
  min-width: 116px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,184,255,0.42);
  color: #DDF7FF;
  background: rgba(3, 22, 39, 0.78);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
  text-align: center;
  font-weight: 800;
}

.node-cmhk { right: 340px; top: 62px; }
.node-retail { right: 24px; top: 132px; }
.node-ecom { right: 388px; bottom: 88px; }
.node-global {
  right: 26px;
  bottom: 96px;
  color: #06111f;
  background: linear-gradient(135deg, #67E8F9, #0EA5E9);
}

.cx-flow {
  position: absolute;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,184,255,0), rgba(0,184,255,0.95), rgba(255,255,255,0.85));
  filter: blur(0.1px);
  opacity: 0.78;
}

.flow-one {
  width: 430px;
  right: 42px;
  top: 236px;
  transform: rotate(-9deg);
}

.flow-two {
  width: 330px;
  right: 168px;
  top: 310px;
  transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(45,212,191,0), rgba(45,212,191,0.9), rgba(255,255,255,0.8));
}

.cx-proof {
  background: linear-gradient(180deg, #071625 0%, #0E1B2D 100%);
  padding: 54px 24px 64px;
  color: #fff;
}

.cx-proof-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cx-proof h2 {
  margin-bottom: 34px;
  color: rgba(255,255,255,0.95);
  font-size: 2.35rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0;
}

.cx-proof h2::after {
  content: '';
  display: block;
  width: 220px;
  height: 2px;
  margin-top: 20px;
  background: linear-gradient(90deg, #00B8FF, transparent);
}

.cx-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cx-proof-item {
  padding: 24px 22px;
  min-height: 146px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
}

.cx-proof-item span {
  display: block;
  margin-bottom: 18px;
  color: #5BD7FF;
  font-size: 2rem;
  line-height: 1;
  font-weight: 850;
}

.cx-proof-item p {
  color: rgba(255,255,255,0.72);
  font-size: 0.94rem;
  line-height: 1.65;
}

.cx-foundation {
  background: #F5F8FB;
}

.cx-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 56px;
  align-items: center;
}

.cx-product-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.82fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.cx-product-copy span {
  display: block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cx-product-copy h3 {
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 1.6rem;
  line-height: 1.35;
  font-weight: 800;
}

.cx-product-copy p {
  color: var(--gray-500);
  line-height: 1.75;
}

.cx-foundation-stack {
  display: grid;
  gap: 12px;
}

.cx-foundation-stack > div {
  padding: 18px 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #F8FAFC, #FFFFFF);
  border: 1px solid var(--gray-200);
}

.cx-foundation-stack strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 850;
}

.cx-foundation-stack span {
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cx-capabilities .feature-card {
  border-radius: 4px;
  text-align: left;
  background: #fff;
}

.cx-capabilities .feature-icon {
  margin: 0 0 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #EAF6FF;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.cx-capabilities .feature-card:hover {
  transform: translateY(-4px);
}

/* ===== CCTel clean enterprise homepage revision ===== */
.cx-hero-light {
  min-height: 720px;
  padding: 126px 24px 92px;
  background:
    radial-gradient(circle at 72% 22%, rgba(22, 93, 255, 0.13), transparent 34%),
    radial-gradient(circle at 18% 72%, rgba(236, 72, 153, 0.08), transparent 28%),
    linear-gradient(180deg, #F7FAFD 0%, #EDF3F8 100%);
  color: var(--dark);
}

.cx-hero-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

.cx-hero-light .cx-hero-inner {
  display: block;
  max-width: 1080px;
}

.cx-hero-light .cx-eyebrow {
  color: var(--primary);
  background: #fff;
  border-color: rgba(22, 93, 255, 0.16);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.cx-hero-light h1 {
  max-width: 800px;
  color: var(--dark);
  font-size: 4.35rem;
  line-height: 1.08;
}

.cx-hero-light h1::first-letter {
  color: var(--primary);
}

.cx-hero-light p {
  max-width: 760px;
  color: var(--gray-700);
}

.cx-hero-light .cx-hero-line {
  background: linear-gradient(90deg, #165DFF, #EC4899, rgba(236,72,153,0));
}

.cx-hero-light .btn-outline {
  color: var(--dark);
  background: #fff;
  border-color: var(--gray-200);
}

.cx-service-panel {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
}

.cx-service-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(22,93,255,0.36), rgba(236,72,153,0.18), rgba(22,93,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cx-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.cx-panel-top span,
.cx-panel-product span {
  display: block;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cx-panel-top h2 {
  color: var(--dark);
  font-size: 1.55rem;
  line-height: 1.35;
  font-weight: 800;
}

.cx-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #EEF6FF;
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.cx-panel-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.12);
}

.cx-panel-status strong {
  font-weight: 850;
}

.cx-panel-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0F172A, #1E3A8A);
  color: #fff;
  margin-bottom: 16px;
}

.cx-panel-metric strong {
  font-size: 2rem;
  color: #67E8F9;
}

.cx-panel-metric span {
  max-width: 260px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  font-size: 0.92rem;
}

.cx-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.cx-panel-grid > div {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #F8FAFC;
}

.cx-panel-grid strong {
  display: block;
  color: var(--dark);
  font-size: 1.45rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.cx-panel-grid span {
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cx-panel-product {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
}

.cx-panel-product img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  border-radius: 10px;
  background: #F8FAFC;
}

.cx-panel-product p {
  color: var(--dark);
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.45;
}

.cx-hero-light + .cx-proof {
  background: #fff;
  color: var(--dark);
  border-top: 1px solid var(--gray-200);
}

.cx-hero-light + .cx-proof h2 {
  color: var(--dark);
}

.cx-hero-light + .cx-proof .cx-proof-item {
  background: #fff;
  border-color: var(--gray-200);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.06);
}

.cx-hero-light + .cx-proof .cx-proof-item span {
  color: var(--primary);
}

.cx-hero-light + .cx-proof .cx-proof-item p {
  color: var(--gray-500);
}

/* ===== 響應式設計 ===== */
@media (max-width: 1024px) {
  .cx-hero-light .cx-hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .cx-service-panel {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }

  .cx-hero {
    padding: 112px 24px 72px;
  }

  .cx-hero-inner,
  .cx-split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .cx-network-visual {
    min-height: 420px;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }

  .cx-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-hero .hero-content {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .brand-hero {
    min-height: auto;
    padding-top: 110px;
  }

  .hero-showcase {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }

  .features-grid,
  .stats-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #relatedProductsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    display: none;
    z-index: 999;
  }

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

  .menu-toggle { display: block; }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.95rem; }
  .hero { min-height: 480px; }
  .cx-hero {
    min-height: auto;
    padding: 98px 20px 56px;
  }
  .cx-hero h1 {
    font-size: 2.55rem;
  }
  .cx-hero-light h1 {
    font-size: 2.75rem;
  }
  .cx-hero p {
    font-size: 1rem;
    line-height: 1.75;
  }
  .cx-service-panel {
    padding: 22px;
  }
  .cx-panel-top {
    flex-direction: column;
  }
  .cx-panel-metric {
    align-items: flex-start;
    flex-direction: column;
  }
  .cx-panel-metric span {
    max-width: none;
  }
  .cx-hero-actions .btn {
    min-width: 0;
  }
  .cx-network-visual {
    min-height: 360px;
  }
  .cx-orbit-a {
    width: 320px;
    height: 320px;
    right: 48px;
    top: 20px;
  }
  .cx-orbit-b {
    width: 230px;
    height: 230px;
    right: 92px;
    top: 66px;
  }
  .cx-core {
    width: 142px;
    height: 142px;
    right: 126px;
    top: 112px;
  }
  .cx-core img {
    width: 92px;
  }
  .cx-node {
    min-width: 94px;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .node-cmhk { right: 232px; top: 42px; }
  .node-retail { right: 8px; top: 100px; }
  .node-ecom { right: 236px; bottom: 78px; }
  .node-global { right: 14px; bottom: 80px; }
  .flow-one {
    width: 300px;
    right: 20px;
    top: 182px;
  }
  .flow-two {
    width: 240px;
    right: 86px;
    top: 238px;
  }
  .cx-proof h2 {
    font-size: 1.75rem;
  }
  .cx-product-spotlight {
    grid-template-columns: 1fr;
  }
  .brand-hero {
    padding: 100px 20px 56px;
    text-align: left;
  }
  .brand-hero h1 { font-size: 2.2rem; }
  .brand-hero .hero-content { gap: 30px; }
  .showcase-panel { padding: 20px; }
  .showcase-products { grid-template-columns: 1fr 1fr; }
  .showcase-products img,
  .showcase-products .showcase-main-product {
    grid-row: auto;
    height: 190px;
  }
  .showcase-products .showcase-main-product {
    grid-column: 1 / -1;
    height: 260px;
  }
  .products-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
  .section-title { font-size: 1.6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-desc-html .fee-table { font-size: 0.8rem; }
  .product-desc-html .fee-table thead th,
  .product-desc-html .fee-table tbody td { padding: 10px 8px; }
  .product-desc-fullwidth { margin-top: 28px; padding-top: 24px; }
  .product-desc-fullwidth .product-desc-html .fee-title { font-size: 1.15rem; }
  .product-desc-fullwidth .product-desc-html .fee-table thead th,
  .product-desc-fullwidth .product-desc-html .fee-table tbody td { padding: 10px 10px; font-size: 0.82rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .admin-header { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .admin-table { overflow-x: auto; }
  .admin-table table { min-width: 700px; }
  .partner-card { min-width: calc((100% - 30px) / 3); padding: 14px 10px; }
  .partner-img-wrap { height: 75px; }
  .partner-logo-img { max-height: 70px; }
  .partners-arrow { width: 36px; height: 36px; font-size: 1.1rem; }
}

@media (max-width: 640px) {
  #relatedProductsGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .cx-hero h1 {
    font-size: 2rem;
  }
  .cx-hero-light {
    padding-top: 98px;
  }
  .cx-hero-light h1 {
    font-size: 2.15rem;
  }
  .cx-panel-grid {
    grid-template-columns: 1fr;
  }
  .cx-panel-product {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .cx-panel-product img {
    width: 86px;
    height: 86px;
  }
  .cx-eyebrow {
    font-size: 0.76rem;
  }
  .cx-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cx-network-visual {
    min-height: 300px;
  }
  .cx-orbit-a {
    width: 260px;
    height: 260px;
    right: 30px;
  }
  .cx-orbit-b {
    width: 190px;
    height: 190px;
    right: 65px;
  }
  .cx-core {
    width: 118px;
    height: 118px;
    right: 98px;
    top: 102px;
  }
  .cx-core img {
    width: 76px;
  }
  .cx-core span {
    font-size: 0.75rem;
  }
  .cx-node {
    min-width: 74px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }
  .node-cmhk { right: 178px; top: 44px; }
  .node-retail { right: 0; top: 90px; }
  .node-ecom { right: 174px; bottom: 56px; }
  .node-global { right: 0; bottom: 58px; }
  .flow-one {
    width: 234px;
    top: 164px;
  }
  .flow-two {
    width: 188px;
    right: 72px;
    top: 210px;
  }
  .cx-proof {
    padding: 42px 20px 48px;
  }
  .cx-proof-grid {
    grid-template-columns: 1fr;
  }
  .cx-proof-item {
    min-height: auto;
  }
  .cx-product-spotlight {
    padding: 22px;
  }
  .cx-product-copy h3 {
    font-size: 1.25rem;
  }
  .brand-hero h1 { font-size: 1.85rem; }
  .hero-proof-list span { width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .showcase-products {
    grid-template-columns: 1fr;
  }
  .showcase-products img,
  .showcase-products .showcase-main-product {
    grid-column: auto;
    height: 220px;
  }
  .showcase-logos {
    grid-template-columns: 1fr;
  }
  .brand-stats .stat-number { font-size: 1.65rem; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 1.8rem; }
  .login-card { padding: 24px; }
  .features-grid,
  .stats-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  .products-toolbar { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .contact-form-card { padding: 24px; }
  .partner-card { min-width: calc((100% - 15px) / 2); padding: 12px 8px; }
  .partner-img-wrap { height: 65px; }
  .partner-logo-img { max-height: 60px; }
  .partners-arrow { width: 30px; height: 30px; }
  .partners-carousel-wrapper { gap: 6px; }
}
