/* ================= ESL Tag Visual (product image placeholder) ================= */
.esl-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #2A2A2A;
  border-radius: 4px;
  padding: 12px;
  position: relative;
  font-family: 'Courier New', monospace;
  width: 180px;
  height: 130px;
  flex-direction: column;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.esl-tag.red { background: #E53935; color: #fff; }
.esl-tag.yellow { background: #FFC107; color: #1A1A1A; }
.esl-tag.white { background: #fff; color: #1A1A1A; }
.esl-tag.black { background: #1A1A1A; color: #fff; }
.esl-tag.blue { background: #1976D2; color: #fff; }
.esl-tag .tag-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  padding: 3px 6px;
  background: rgba(0,0,0,0.08);
  letter-spacing: 0.5px;
}
.esl-tag.red .tag-header, .esl-tag.black .tag-header, .esl-tag.blue .tag-header {
  background: rgba(0,0,0,0.18);
}
.esl-tag .name {
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}
.esl-tag .promo {
  font-size: 9px;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.esl-tag .price {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}
.esl-tag .price sup {
  font-size: 14px;
  vertical-align: top;
  margin-right: 1px;
}
.esl-tag .unit {
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 2px;
}
.esl-tag .footer-line {
  position: absolute;
  bottom: 4px; left: 6px; right: 6px;
  font-size: 7px;
  font-family: monospace;
  display: flex;
  justify-content: space-between;
  opacity: 0.7;
  letter-spacing: 0.5px;
}
.esl-tag .barcode {
  position: absolute;
  bottom: 14px; left: 6px;
  height: 10px;
  display: flex;
  gap: 1px;
}
.esl-tag .barcode i {
  display: block;
  width: 1px;
  background: currentColor;
}
.esl-tag .barcode i:nth-child(2n) { width: 2px; }
.esl-tag .barcode i:nth-child(3n) { width: 1px; }
.esl-tag .barcode i:nth-child(5n) { width: 2px; }
.esl-tag.lg { width: 280px; height: 200px; padding: 16px; }
.esl-tag.lg .name { font-size: 18px; }
.esl-tag.lg .price { font-size: 42px; }
.esl-tag.lg .tag-header { font-size: 11px; padding: 4px 8px; }
.esl-tag.lg .promo { font-size: 11px; }
.esl-tag.lg .unit { font-size: 11px; }
.esl-tag.lg .footer-line { font-size: 9px; bottom: 6px; }

/* ================= Product card ================= */
.product-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card .img-wrap {
  height: 200px;
  background: linear-gradient(180deg, #F1ECE0 0%, #EBE4D3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card .img-wrap img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform .3s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .img-wrap.img-fallback { background: linear-gradient(180deg, #F1ECE0 0%, #EBE4D3 100%); }
.pd-gallery .main-img { padding: 20px; }
.pd-gallery .main-img img { max-width: 100%; max-height: 380px; object-fit: contain; }
.product-card .info {
  padding: 16px 20px 20px;
}
.product-card .info .model {
  font-size: 11px;
  color: var(--c-primary);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.product-card .info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 6px;
}
.product-card .info p {
  font-size: 12.5px;
  color: var(--c-text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}

/* ================= Filter pills ================= */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-2);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.filter-pill.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* ================= Pagination ================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
}
.pagination button {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-2);
  font-size: 14px;
  transition: all .2s;
}
.pagination button:hover {
  background: var(--c-bg-2);
  color: var(--c-text);
}
.pagination button.active {
  background: var(--c-primary);
  color: #fff;
}
.pagination button.icon {
  background: transparent;
}

/* ================= Hero (dark gradient) ================= */
.hero {
  position: relative;
  padding: 60px 0 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(242, 183, 5, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #16130E 0%, #211D15 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  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: 40px 40px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 80%);
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 16px;
  color: #CFC7B6;
  margin-bottom: 32px;
}
.hero-image {
  position: relative;
  margin-top: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  padding-bottom: 0;
  min-height: 320px;
}
.hero-image .device {
  position: relative;
  display: inline-block;
}
.hero-image .device.monitor {
  width: 360px; height: 200px;
  background: linear-gradient(180deg, #2A251D 0%, #211D15 100%);
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.hero-image .device.monitor .screen {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 50%, #6BCB77 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 32px;
}
.hero-image .device.monitor .screen::after {
  content: "up to 46%";
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-image .device.tablet {
  width: 100px; height: 160px;
  background: #2A251D;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  align-self: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
}
.hero-image .device.tablet::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: linear-gradient(135deg, #FFB347, #FF6B6B);
  border-radius: 4px;
}
.hero-image .device.phonetag {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-image .device.phonetag .esl-tag.lg { transform: scale(0.7); }
.hero-image .device.base {
  width: 200px; height: 60px;
  background: #2A251D;
  border-radius: 0 0 8px 8px;
  position: relative;
  margin-top: -10px;
}
.hero-image .stage {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100px;
  background: linear-gradient(180deg, rgba(45,111,247,0.10), transparent);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}

/* ================= Section background variants ================= */
.section.bg-2 { background: var(--c-bg-2); }
.section.bg-3 { background: var(--c-bg-3); }

/* ================= Spec table ================= */
.spec-table {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--c-border);
}
.spec-row:last-child { border-bottom: none; }
.spec-row > div {
  padding: 16px 24px;
  font-size: 14px;
}
.spec-row > div:first-child {
  background: var(--c-bg-2);
  color: var(--c-text-2);
  border-right: 1px solid var(--c-border);
}

/* ================= Quote form ================= */
.quote-form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
}
.quote-form h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-form h3 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
}
.quote-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.quote-form .form-grid .full { grid-column: span 2; }

/* ================= Checkbox / Radio cards ================= */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.option-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  background: #fff;
}
.option-card:hover { border-color: var(--c-primary-light); }
.option-card input { display: none; }
.option-card.checked,
.option-card:has(input:checked) {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}
.option-card .check {
  width: 18px; height: 18px;
  border: 2px solid var(--c-border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}
.option-card:has(input:checked) .check {
  background: var(--c-primary);
  border-color: var(--c-primary);
}
.option-card:has(input:checked) .check::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.option-card .meta {
  flex: 1;
}
.option-card .meta .t {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-dark);
}
.option-card .meta .d {
  font-size: 11.5px;
  color: var(--c-text-2);
  margin-top: 2px;
  line-height: 1.5;
}

/* ================= Stats ================= */
.stats {
  display: flex;
  gap: 48px;
  margin-top: 32px;
}
.stat .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -0.5px;
}
.stat .label {
  font-size: 12px;
  color: var(--c-text-2);
  margin-top: 4px;
}

/* ================= News cards ================= */
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: all .25s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card .img {
  height: 200px;
  background: linear-gradient(135deg, #4F5D75 0%, #2C3E50 100%);
  position: relative;
  overflow: hidden;
}
.news-card .img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4));
}
.news-card .info {
  padding: 20px;
}
.news-card .info .date {
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: 8px;
}
.news-card .info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}
.news-card .info p {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.6;
}

/* ================= Partners ================= */
.partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.partner {
  height: 80px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--c-text-2);
  font-weight: 500;
  transition: all .2s;
  padding: 0 12px;
  text-align: center;
  line-height: 1.3;
}
.partner:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  transform: translateY(-2px);
}

/* ================= Back link ================= */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-2);
  font-size: 14px;
  margin: 32px 0 24px;
  padding: 8px 0;
}
.back-link:hover { color: var(--c-primary); }
.back-link .chev {
  width: 28px; height: 28px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ================= Product detail ================= */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
}
.pd-gallery .main-img {
  background: linear-gradient(180deg, #F1ECE0, #EBE4D3);
  border-radius: var(--radius);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-gallery .thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.pd-gallery .thumbs .thumb {
  width: 80px; height: 80px;
  background: var(--c-bg-2);
  border: 2px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.pd-gallery .thumbs .thumb.active,
.pd-gallery .thumbs .thumb:hover {
  border-color: var(--c-primary);
  background: #fff;
}
.pd-info .tag {
  margin-bottom: 12px;
}
.pd-info h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.pd-info .desc {
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.pd-info .specs {
  background: var(--c-bg-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.pd-info .specs dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 16px;
  font-size: 13.5px;
}
.pd-info .specs dt { color: var(--c-text-2); }
.pd-info .specs dd { color: var(--c-text); font-weight: 500; }

/* ================= Page header (small hero) ================= */
.page-hero {
  position: relative;
  padding: 72px 0 54px;
  background: #F2B705;
  border-bottom: 3px solid #16130E;
  color: #16130E;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, #16130E 0 2px, transparent 2px 6px, #16130E 2px 3px, transparent 3px 9px, #16130E 0 4px, transparent 4px 7px);
  inset: 20px 0 auto 0; height: 16px; background-repeat: repeat-x; mask-image: none; -webkit-mask-image: none; opacity: .8;
}
.page-hero > * { position: relative; }
.page-hero h1 {
  font-family: "Big Shoulders Display","Noto Sans TC",sans-serif;
  font-size: clamp(34px,4.5vw,50px);
  font-weight: 800;
  margin: 26px 0 12px;
  letter-spacing: .01em;
}
.page-hero p {
  color: rgba(22,19,14,.72);
  font-family: "Azeret Mono",ui-monospace,monospace;
  font-size: 13.5px;
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
}

/* ================= About two-col ================= */
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-text h3::before {
  content: "";
  width: 3px; height: 18px;
  background: var(--c-primary);
  border-radius: 2px;
}
.about-text p {
  color: var(--c-text-2);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-map {
  height: 380px;
  background: linear-gradient(135deg, #E5E8EE, #C9D2E2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.about-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, transparent 49%, rgba(0,0,0,0.06) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(0,0,0,0.06) 50%, transparent 51%);
  background-size: 40px 40px;
}
.about-map .pin {
  position: absolute;
  top: 45%; left: 60%;
  width: 32px; height: 32px;
  background: #E53935;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
  z-index: 2;
}
.about-map .pin::after {
  content: "";
  position: absolute;
  top: 8px; left: 8px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
}
.about-map .label {
  position: absolute;
  top: 60%; left: 55%;
  background: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 3;
}

/* ================= Contact two-col ================= */
.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info h3::before {
  content: "";
  width: 3px; height: 18px;
  background: var(--c-primary);
  border-radius: 2px;
}
.contact-info p {
  color: var(--c-text-2);
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.7;
}
.contact-info p strong { color: var(--c-text); margin-right: 8px; }
.qr-row {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}
.qr-box {
  text-align: center;
}
.qr-box .qr {
  width: 80px; height: 80px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  margin: 0 auto 6px;
  position: relative;
  overflow: hidden;
}
.qr-box .qr::before {
  content: ""; position: absolute; inset: 6px;
  background:
    linear-gradient(#000 1px, transparent 1px) 0 0/8px 8px,
    linear-gradient(90deg, #000 1px, transparent 1px) 0 0/8px 8px;
  opacity: 0.85;
}
.qr-box span { font-size: 11px; color: var(--c-text-2); }

/* ================= Knowledge base ================= */
.kb-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}
.kb-side {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px 0;
  height: fit-content;
  position: sticky;
  top: 96px;
}
.kb-side h4 {
  padding: 8px 20px;
  font-size: 13px;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}
.kb-side a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--c-text-2);
  border-left: 3px solid transparent;
  transition: all .2s;
}
.kb-side a:hover { color: var(--c-text); background: var(--c-bg-2); }
.kb-side a.active {
  background: var(--c-primary-light);
  color: var(--c-primary);
  border-left-color: var(--c-primary);
  font-weight: 500;
}
.kb-articles { display: flex; flex-direction: column; gap: 32px; }
.kb-block h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}
.kb-block .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kb-block .cards.two { grid-template-columns: repeat(2, 1fr); }
.kb-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s;
}
.kb-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
}
.kb-card .img {
  height: 140px;
  background: linear-gradient(135deg, #4F5D75, #2C3E50);
  position: relative;
}
.kb-card .body { padding: 14px 16px; }
.kb-card .body h5 {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-dark);
  line-height: 1.5;
  margin-bottom: 6px;
}
.kb-card .body p {
  font-size: 12px;
  color: var(--c-text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kb-table {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
}
.kb-table > div {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
}
.kb-table > div:nth-child(3n) { border-right: none; }
.kb-table > div.head {
  background: var(--c-bg-2);
  font-weight: 600;
  color: var(--c-text);
}

/* ================= Solution page ================= */
.solution-hero {
  position: relative;
  height: 360px;
  background: linear-gradient(135deg, #16130E 0%, #2A251D 50%, #2C3E50 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.solution-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
}
.solution-hero h1 {
  position: relative;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}
.solution-hero p {
  position: relative;
  color: #CFC7B6;
  font-size: 15px;
}
.arch-diagram {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
}
.arch-svg {
  width: 100%;
  height: 360px;
}
.advantage-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  align-items: center;
}
.advantage-img {
  height: 240px;
  background: linear-gradient(135deg, #EBE4D3, #C9D2E2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--c-text-2);
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.case-card {
  height: 200px;
  background: linear-gradient(135deg, #4F5D75, #2C3E50);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
}
.case-card .body { position: relative; z-index: 2; }
.case-card .body h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.case-card .body p { font-size: 11px; opacity: 0.9; }

/* ================= Grid helpers ================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (max-width: 960px) {
  .pd-grid, .about-cols, .contact-cols { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .advantage-row { grid-template-columns: 1fr; }
  .grid-3, .case-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .kb-layout { grid-template-columns: 1fr; }
  .kb-side { position: static; }
  .kb-block .cards, .kb-block .cards.two { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .option-grid { grid-template-columns: 1fr; }
  .quote-form .form-grid { grid-template-columns: 1fr; }
  .quote-form .form-grid .full { grid-column: span 1; }
  .hero-content h1 { font-size: 28px; }
  .hero-image { flex-wrap: wrap; }
  .page-hero h1 { font-size: 26px; }
  .solution-hero h1 { font-size: 24px; }
  .stats { gap: 24px; }
  .stat .num { font-size: 24px; }
}

/* ================= 產品卡片 - 迷你規格 ================= */
.mini-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 12px 0 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-border);
}
.mini-spec {
  font-size: 11px;
  line-height: 1.4;
}
.mini-spec span {
  display: block;
  color: var(--c-text-3);
  font-size: 10px;
  margin-bottom: 1px;
}
.mini-spec strong {
  color: var(--c-text);
  font-weight: 500;
  font-size: 11px;
}
.view-detail {
  display: inline-block;
  font-size: 12.5px;
  color: var(--c-primary);
  font-weight: 500;
}
.product-card:hover .view-detail {
  text-decoration: underline;
}

/* ================= 裝置圖塊（DS / 網路設備） ================= */
.img-wrap-device {
  background: linear-gradient(180deg, #16130E 0%, #2A251D 100%);
}
.device-tile {
  width: 150px;
  height: 110px;
  background: linear-gradient(135deg, #2A251D, #211D15);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  position: relative;
}
.device-tile::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 5px;
}
.device-ds { background: linear-gradient(135deg, #2A251D 0%, #D99F00 130%); }
.device-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #F2B705;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.device-model {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.device-tagline {
  font-size: 9.5px;
  color: #8A93A6;
  margin-top: 6px;
}

/* ================= 產品詳情 - 強化 ================= */
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.pd-model {
  font-size: 12px;
  color: var(--c-primary);
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.pd-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.35;
  margin-bottom: 6px;
}
.pd-subtitle {
  font-size: 14px;
  color: var(--c-text-3);
  margin-bottom: 14px;
}
.pd-desc {
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.pd-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  background: var(--c-bg-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.pd-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  border-bottom: 1px dashed var(--c-border);
  padding-bottom: 6px;
}
.pd-spec-item:last-child, .pd-spec-item:nth-last-child(2) { border-bottom: none; }
.pd-spec-item dt { color: var(--c-text-2); white-space: nowrap; }
.pd-spec-item dd { color: var(--c-text); font-weight: 500; text-align: right; }

/* 完整規格表（兩欄式） */
.spec-section {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
}
.spec-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.spec-section h2::before {
  content: "";
  width: 3px;
  height: 18px;
  background: var(--c-primary);
  border-radius: 2px;
}
.spec-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-cell {
  border-bottom: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
  padding: 14px 18px;
}
.spec-cell:nth-child(3n) { border-right: none; }
.spec-cell:nth-last-child(-n+3) { border-bottom: none; }
.spec-cell .k {
  font-size: 11px;
  color: var(--c-text-3);
  margin-bottom: 3px;
}
.spec-cell .v {
  font-size: 13px;
  color: var(--c-text);
  font-weight: 500;
  line-height: 1.5;
}

/* 頁籤 */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 10px 22px;
  font-size: 14px;
  color: var(--c-text-2);
  border-bottom: 2px solid transparent;
  transition: all .2s;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--c-text); }
.tab-btn.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  font-weight: 600;
}

@media (max-width: 960px) {
  .spec-grid-full { grid-template-columns: repeat(2, 1fr); }
  .spec-cell:nth-child(3n) { border-right: 1px solid var(--c-border); }
  .spec-cell:nth-child(2n) { border-right: none; }
  .spec-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--c-border); }
  .spec-cell:nth-last-child(-n+2) { border-bottom: none; }
  .pd-title { font-size: 22px; }
}

/* 產品網格響應式 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr !important; }
}

/* ================= 知識庫：長文指南排版 ================= */
.kb-guide { grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.kb-toc {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.kb-toc .toc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kb-toc .toc-title::before {
  content: "";
  width: 3px; height: 16px;
  background: var(--c-primary);
  border-radius: 2px;
}
.kb-toc a {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--c-text-2);
  transition: all .15s;
  line-height: 1.45;
}
.kb-toc a .num {
  color: var(--c-text-3);
  font-size: 12px;
  min-width: 16px;
  flex-shrink: 0;
}
.kb-toc a:hover {
  background: var(--c-bg-2);
  color: var(--c-primary);
}
.kb-toc a.active {
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-weight: 600;
}
.kb-article { max-width: 860px; }
.kb-section { scroll-margin-top: 100px; margin-bottom: 56px; }
.kb-section:last-child { margin-bottom: 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-label::before {
  content: "";
  width: 18px; height: 3px;
  background: var(--c-primary);
  border-radius: 2px;
}
.kb-h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-dark);
  letter-spacing: -0.5px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.kb-p {
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}
.kb-p strong { color: var(--c-text); }

/* 高亮提示框 */
.kb-highlight {
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
}
.kb-highlight .h-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kb-highlight .h-body {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.8;
}

/* 橘色重點區塊 */
.kb-banner {
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  border: 1px solid #FFE4C7;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0;
}
.kb-banner .kb-h2 { color: #9A3412; }

/* 卡片組（圖文） */
.kb-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 16px 0;
}
.kb-card-img {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #EBE4D3, #DDE3EC);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-3);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 10px;
  position: relative;
  overflow: hidden;
}
.kb-card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 24px 24px;
}
.kb-card-img span { position: relative; z-index: 1; }
.kb-card .card-tag {
  font-size: 11.5px;
  color: var(--c-primary);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.kb-card .card-h3 {
  font-size: 15.5px;
  color: var(--c-dark);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}
.kb-card .card-p {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 10px;
  text-align: justify;
}
/* 展開完整內容 */
.kb-card .body p.expanded {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
  margin-bottom: 4px;
}
.kb-expand {
  background: none;
  border: none;
  padding: 0;
  margin: -4px 0 10px;
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kb-expand::after {
  content: "▾";
  transition: transform .2s;
}
.kb-card.expanded .kb-expand::after {
  transform: rotate(180deg);
}
.kb-card .card-link {
  color: var(--c-primary);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.kb-card .card-link:hover { text-decoration: underline; }

/* 響應式表格 */
.kb-table-wrap {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
}
.kb-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.kb-table-wrap th {
  background: var(--c-bg-2);
  color: var(--c-dark);
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid var(--c-border);
}
.kb-table-wrap td {
  padding: 14px 18px;
  border-bottom: 1px solid #F1F4F8;
  color: var(--c-text-2);
  vertical-align: top;
  line-height: 1.7;
}
.kb-table-wrap tr:last-child td { border-bottom: none; }
.kb-table-wrap td strong { color: var(--c-text); }

/* 要點清單 */
.kb-list { list-style: none; margin-top: 8px; }
.kb-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--c-text-2);
  line-height: 1.7;
}
.kb-list li::before {
  content: "•";
  color: var(--c-primary);
  font-weight: 700;
  font-size: 18px;
  position: absolute;
  left: 0;
  top: -3px;
}

/* FAQ 區塊 */
.kb-faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.kb-faq-item .q {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.kb-faq-item .q::before {
  content: "Q";
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--c-primary);
  color: #fff;
  font-size: 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.kb-faq-item .a {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.8;
  padding-left: 34px;
}
.kb-faq-item .a strong { color: var(--c-text); }

@media (max-width: 960px) {
  .kb-guide { grid-template-columns: 1fr; gap: 24px; }
  .kb-toc {
    position: static;
    max-height: none;
  }
  .kb-h2 { font-size: 21px; }
}

/* 配件視覺 tile */
.acc-tile {
  display: flex;
  align-items: center;
  justify-content: center;
}
.acc-tile svg {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

/* 語言切換器 */
.lang-switch a {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-text-2);
  transition: all .2s;
}
.lang-switch a:hover { color: var(--c-primary); }
.lang-switch a.active { background: var(--c-primary); color: #fff; }
