
/* ==========================================================================
   LeaderTek Classic Modernized Design System (Rock-Solid & Fully Responsive)
   ========================================================================== */
:root {
  --primary: #0b7a68;
  --primary-dark: #075e50;
  --primary-light: #edf4ee;
  --accent: #d9792b;
  --ink: #1a2e26;
  --ink-soft: #425950;
  --line: #d8e5dc;
  --bg-page: #f6faf7;
  --card-bg: #ffffff;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 122, 104, 0.06);
  --shadow-md: 0 6px 20px rgba(11, 122, 104, 0.08);
  --shadow-lg: 0 14px 36px rgba(11, 122, 104, 0.12);
}

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: "Noto Sans TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background-color: var(--bg-page);
  line-height: 1.7;
}

/* Top AI Edition Announcement Banner */
.ai-edition-banner {
  background: linear-gradient(90deg, #075e50 0%, #0b7a68 50%, #075e50 100%);
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(7, 94, 80, 0.15);
  letter-spacing: 0.01em;
}

.ai-edition-banner strong {
  font-weight: 700;
}

.ai-edition-link {
  color: #fde047;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
  transition: color 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.ai-edition-link:hover {
  color: #ffffff;
  opacity: 0.95;
}

.product-badge-classic {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: normal !important;
  word-break: break-word !important;
  max-width: 100%;
  line-height: 1.4;
}

span.badge, .badge.bg-success, .badge {
  white-space: normal !important;
  word-break: break-word !important;
  display: inline-block !important;
  max-width: 100% !important;
  line-height: 1.4 !important;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  background: #ffffff;
  border-bottom: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrap img {
  max-height: 48px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-link {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-soft) !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background-color: var(--primary-light);
}

.dropdown-menu {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  max-height: 520px;
  overflow-y: auto;
}

.dropdown-header {
  font-size: 0.82rem;
  padding: 8px 18px 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dropdown-item {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 20px;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding-left: 24px;
}

.media-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.media-links li {
  margin: 0;
  padding: 0;
}

.media-links img {
  width: 36px;
  height: 36px;
  transition: transform 0.2s ease;
}

.media-links img:hover {
  transform: scale(1.15);
}

/* ==========================================================================
   Classic Taiwan Slogan Banner
   ========================================================================== */
.iconslogan {
  background: linear-gradient(135deg, #0b7a68 0%, #075e50 100%);
  color: #ffffff;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.15);
}

.iconslogan .taiwan {
  max-height: 64px;
  width: auto;
}

.slogan .slogan-en {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.slogan .slogan-zh {
  display: block;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 600;
  color: #f5bc81;
  margin-top: 4px;
}

/* ==========================================================================
   Home Hero Showcase
   ========================================================================== */
.home-hero-wrap {
  position: relative;
  max-width: 1200px;
  margin: 25px auto;
  padding: 0 20px;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #000000;
}

.hero-banner-card img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  opacity: 0.92;
}

.hero-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 94, 80, 0.9) 100%);
  padding: 30px 35px 25px;
  color: #ffffff;
}

.hero-banner-overlay h1 {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 900;
  margin: 0 0 8px;
}

.hero-banner-overlay p {
  font-size: 1.05rem;
  margin: 0;
  color: #f0f7f3;
  max-width: 800px;
}

/* ==========================================================================
   Section Containers & Cards
   ========================================================================== */
.content-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.classic-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
  margin-bottom: 35px;
}

.section-heading {
  text-align: center;
  margin-bottom: 35px;
}

.section-heading h2 {
  color: var(--primary-dark);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.section-heading p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0;
}

/* 4 Core Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.pillar-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.pillar-item h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 8px;
}

.pillar-item p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Storytelling Showcase (Classic Theme)
   ========================================================================== */
.story-grid-classic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story-card-classic {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-card-classic:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.story-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #11221b;
  overflow: hidden;
}

.story-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.story-card-classic:hover .story-img-wrap img {
  transform: scale(1.06);
}

.story-domain-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 122, 104, 0.92);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.story-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.story-content h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.45;
}

.story-metric-badge {
  display: inline-block;
  background: #edf4ee;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 4px 10px;
  border-radius: 6px;
  border-left: 4px solid var(--primary);
  margin-bottom: 12px;
}

.story-content p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0 0 16px;
  flex-grow: 1;
}

.story-action {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.story-action a {
  font-weight: 700;
  font-size: 0.92rem;
}

/* ==========================================================================
   Product Detail & Table Styles
   ========================================================================== */
.spec-table-classic {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #ffffff;
}

.spec-table-classic th, .spec-table-classic td {
  padding: 12px 18px;
  border: 1px solid var(--line);
  font-size: 0.94rem;
}

.spec-table-classic th {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  width: 25%;
  font-weight: 700;
}

.case-box-classic {
  background: #f4f8f5;
  border-left: 5px solid var(--primary);
  padding: 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 25px 0;
}

.case-box-classic h4 {
  color: var(--primary-dark);
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.btn-official {
  display: inline-block;
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.btn-official:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   Footer (Standard Postal Code 40876)
   ========================================================================== */
footer {
  background-color: #12382e;
  color: #ffffff;
  text-align: center;
  padding: 35px 20px;
  margin-top: 60px;
  line-height: 1.8;
  font-size: 0.94rem;
}

footer a {
  color: #f5bc81;
}

footer p {
  margin: 5px 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story-grid-classic {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
  .media-links {
    margin-top: 8px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .classic-card {
    padding: 20px;
  }
  .hero-banner-overlay {
    padding: 16px;
  }
  .spec-table-classic th, .spec-table-classic td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}


/* Section Divider */
.section-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* Dual Heritage Images */
.dual-heritage-classic {
  display: flex;
  gap: 8px;
}
.dual-heritage-classic img {
  width: 50%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .dual-heritage-classic {
    flex-direction: column;
  }
  .dual-heritage-classic img {
    width: 100%;
    height: auto;
  }
}


/* Unified Case Image Container (No size fluctuations) */
.case-img-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* For transparent PNGs like 9020.png */
.case-img-frame img.contain-fit {
  object-fit: contain;
  padding: 8px;
}

/* Service scope list line spacing */
.service-scope-list {
  line-height: 2;
}

/* Product detail and catalog image/text utilities */
.product-intro-text {
  text-align: justify;
  font-size: 1.02rem;
  line-height: 1.85;
}

.product-detail-img {
  max-height: 420px;
  object-fit: contain;
}

.product-card-img {
  height: 200px;
  object-fit: contain;
}

.business-scope-img {
  max-height: 380px;
}

.classic-divider {
  border-color: var(--line);
}
