/* ============================================================
   統一運輸集團 - styles.css
   ============================================================ */

/* ---------- CSS 變數 ---------- */
:root {
  --primary: #1a365d;
  --secondary: #2c5282;
  --accent: #3182ce;
  --accent-light: #63b3ed;
  --accent-pale: #ebf8ff;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --success: #22c55e;
  --error: #ef4444;

  --nav-h: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.18);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- 通用容器 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(49,130,206,.35);
}
.btn-primary:hover {
  background: var(--secondary);
  box-shadow: 0 6px 24px rgba(49,130,206,.45);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,.5);
  color: var(--white);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.8);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ---------- 通用 Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header.left-align { text-align: left; }
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}
.section-header.left-align .section-desc { margin: 0; }

/* ---------- Scroll Reveal ---------- */
.reveal, .reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
}
.reveal          { transform: translateY(32px); }
.reveal-left     { transform: translateX(-48px); }
.reveal-right    { transform: translateX(48px); }
.reveal-up       { transform: translateY(40px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible {
  opacity: 1;
  transform: none;
  transition-delay: var(--delay, 0s);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.3);
  transform: translateY(0);
  transition:
    transform .45s cubic-bezier(.4,0,.2,1),
    height .35s cubic-bezier(.4,0,.2,1),
    background .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}
.navbar.scrolled {
  height: calc(var(--nav-h) - 12px);
  background: rgba(255,255,255,.92);
  border-bottom-color: rgba(0,0,0,.06);
  box-shadow: 0 2px 20px rgba(0,0,0,.08), 0 1px 0 rgba(255,255,255,.5);
}
.navbar.nav-hidden {
  transform: translateY(-110%);
}
/* 當 nav 收起時，nav-container 中的內容縮小 */
.navbar.scrolled .nav-logo {
  font-size: 15px;
}
.navbar.scrolled .logo-img {
  height: 30px;
}
.navbar.scrolled .nav-link {
  font-size: 14px;
  padding: 6px 12px;
}
.navbar.scrolled .nav-cta {
  padding: 7px 16px;
  font-size: 13px;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--primary);
}
.logo-img { height: 36px; width: auto; object-fit: contain; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-pale);
}
.nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 3px 12px rgba(49,130,206,.3);
}
.nav-cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(49,130,206,.4);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--gray-100); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 55%, #1e4a8a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--accent-light);
  top: -200px; right: -100px;
  animation: floatShape 8s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: #90cdf4;
  bottom: -100px; left: -80px;
  animation: floatShape 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 300px; height: 300px;
  background: var(--accent);
  top: 40%; right: 30%;
  animation: floatShape 12s ease-in-out infinite 2s;
}
@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(.95); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: .04em;
}
.hero-badge svg { flex-shrink: 0; }

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title .highlight {
  position: relative;
  color: var(--accent-light);
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: var(--accent-light);
  opacity: .5;
  border-radius: 2px;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 16px 24px;
  width: fit-content;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.25);
}
.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
}

/* Hero Visual */
.hero-visual { position: relative; z-index: 1; }
.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: default;
}
.hero-card:nth-child(2) { margin-top: 24px; }
.hero-card:nth-child(4) { margin-top: -24px; }
.hero-card:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.hero-card-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  letter-spacing: .06em;
}
.scroll-arrow { animation: bounceDown 1.8s ease-in-out infinite; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 112px 0;
  background: var(--white);
}
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about-svg { width: 100%; height: auto; border-radius: var(--radius-lg); }
.about-badge-float {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(49,130,206,.4);
  animation: floatBadge 3s ease-in-out infinite;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.about-paragraph {
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 36px;
}
.about-stat-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  transition: all var(--transition);
}
.about-stat-item:hover {
  border-color: var(--accent-light);
  background: var(--accent-pale);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}
.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.stat-suffix {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.stat-text {
  font-size: 12px;
  color: var(--gray-600);
  white-space: nowrap;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 112px 0;
  background: var(--gray-50);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.services-grid-3 {
  max-width: 960px;
  margin: 0 auto;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}
.service-card:hover .card-glow {
  opacity: 1;
}
.card-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(49,130,206,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.service-icon-wrap {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent-pale) 0%, #bee3f8 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: all var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: var(--white);
  transform: scale(1.08);
}
.service-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.service-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 20px;
}
.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}
.service-features li svg {
  flex-shrink: 0;
  color: var(--success);
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: all var(--transition);
  margin-top: auto;
}
.service-link:hover { gap: 10px; color: var(--primary); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 112px 0;
  background: var(--white);
}
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info-title,
.contact-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.info-item:last-child { border-bottom: none; }
.info-icon-wrap {
  width: 44px; height: 44px;
  background: var(--accent-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.info-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.info-item p {
  font-size: 15px;
  color: var(--gray-800);
  font-weight: 500;
}

/* Form */
.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}
.required { color: var(--error); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(49,130,206,.12);
}
.form-group input.error,
.form-group textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.form-error {
  font-size: 12px;
  color: var(--error);
  min-height: 16px;
}
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
}
.form-success.show { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--primary); color: rgba(255,255,255,.75); }
.footer-top { padding: 72px 0 56px; }
.footer-top-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255,255,255,.55);
}
.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.social-link:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links li svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }
.footer-links a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 0;
  text-align: center;
}
.footer-disclaimer p {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.75); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Nav */
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu li { width: 100%; }
  .nav-link {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
  }
  .nav-cta {
    margin: 12px 24px 0;
    display: block;
    text-align: center;
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px;
    text-align: center;
  }
  .hero-badge { margin: 0 auto 24px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { margin: 0 auto; }
  .hero-scroll-hint { display: none; }

  /* About */
  .about { padding: 72px 0; }
  .about-container { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  /* Services */
  .services { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact { padding: 72px 0; }
  .contact-content { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }

  /* Footer */
  .footer-top { padding: 48px 0 40px; }
  .footer-top-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  /* Section */
  .section-header { margin-bottom: 36px; }
}

/* ============================================================
   SUBSIDIARIES
   ============================================================ */
.subsidiaries {
  padding: 112px 0;
  background: var(--gray-50);
}
.subsidiaries-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
.sub-table-header {
  display: grid;
  grid-template-columns: 60px 1.8fr 1.8fr 2.2fr 1.2fr;
  background: var(--primary);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sub-table-body { background: var(--white); }
.sub-row {
  display: grid;
  grid-template-columns: 60px 1.8fr 1.8fr 2.2fr 1.2fr;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
  align-items: center;
}
.sub-row:last-child { border-bottom: none; }
.sub-row:hover { background: var(--accent-pale); }
.sub-col {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--gray-800);
}
.col-no {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
}
/* 企業名稱欄 */
.company-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.company-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  padding: 4px;
}
.company-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.company-zh {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.company-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 3px;
}
/* 英文名稱欄 */
.col-en {
  font-size: 13px;
  color: var(--gray-600);
  font-style: italic;
}
/* 產品欄 */
.col-product {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  background: #ebf4ff;
  border: 1px solid #bee3f8;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.product-tag.merged {
  color: #276749;
  background: #f0fff4;
  border-color: #9ae6b4;
}
/* 備註欄 */
.note-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #744210;
  background: #fffbeb;
  border: 1px solid #fbd38d;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .subsidiaries { padding: 72px 0; }
  .sub-table-header { display: none; }
  .sub-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
  }
  .sub-col { padding: 0; }
  .col-no {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .1em;
  }
  .col-en { font-size: 12px; }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
  }
  .hero-stat-divider { width: 80%; height: 1px; }
  .hero-stat { padding: 12px 0; }
  .hero-card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-card:nth-child(2), .hero-card:nth-child(4) { margin-top: 0; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ANNOUNCEMENTS
   ============================================================ */
.announcements {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 36px 0;
}
.announce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.announce-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}
.announce-title-wrap svg {
  width: 22px;
  height: 22px;
}
.announce-label {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .04em;
}
.announce-body {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.announce-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 44px 0;
  color: var(--gray-400);
}
.announce-empty svg { opacity: .4; }
.announce-empty p {
  font-size: 16px;
  color: var(--gray-400);
}
.announce-item {
  padding: 28px 30px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.announce-item:last-child { border-bottom: none; }
.announce-item:hover { background: var(--gray-50); }
.announce-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.announce-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-pale);
  border: 1px solid #bee3f8;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: .04em;
}
.announce-date {
  font-size: 13px;
  color: var(--gray-400);
}
.announce-item-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
  line-height: 1.55;
}
.announce-item-sub {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}
.announce-item-sub a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announce-item-sub a:hover { color: var(--primary); }

/* ============================================================
   BANNER SLIDER
   ============================================================ */
.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--gray-800);
  line-height: 0;
  aspect-ratio: 16 / 9;
}
.banner-track {
  display: flex;
  height: 100%;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.banner-slide {
  min-width: 100%;
  flex-shrink: 0;
  height: 100%;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
}
.banner-btn:hover {
  background: rgba(255,255,255,.35);
  transform: translateY(-50%) scale(1.08);
}
.banner-prev { left: 20px; }
.banner-next { right: 20px; }
.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  padding: 0;
}
.banner-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .banner-slider { aspect-ratio: 16 / 9; }
  .banner-btn { width: 36px; height: 36px; }
  .banner-prev { left: 10px; }
  .banner-next { right: 10px; }
}

/* ============================================================
   BANNER COUNTDOWN
   ============================================================ */
.banner-countdown {
  position: absolute;
  bottom: 52px;
  right: 32px;
  z-index: 10;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
  text-align: center;
}
.countdown-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 12px;
  white-space: nowrap;
  letter-spacing: .03em;
}
.countdown-units {
  display: flex;
  align-items: center;
  gap: 6px;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}
.countdown-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-text {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
  letter-spacing: .06em;
}
.countdown-sep {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  padding-bottom: 16px;
  line-height: 1;
}
@media (max-width: 768px) {
  .banner-countdown {
    right: 10px;
    bottom: 36px;
    padding: 12px 16px;
  }
  .countdown-num { font-size: 22px; }
  .countdown-unit { min-width: 36px; }
  .countdown-sep { font-size: 18px; }
  .countdown-label { font-size: 12px; }
}

/* ============================================================
   PAGE ENTRANCE LOADER
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity .6s cubic-bezier(.4,0,.2,1), visibility .6s;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: loaderFadeUp .7s cubic-bezier(.16,1,.3,1) both;
}
.loader-logo img { height: 44px; filter: brightness(0) invert(1); }
.loader-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .02em;
}
.loader-bar-wrap {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  overflow: hidden;
  animation: loaderFadeUp .7s .15s cubic-bezier(.16,1,.3,1) both;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  border-radius: 99px;
  animation: loaderProgress .9s .2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes loaderProgress {
  to { width: 100%; }
}
@keyframes loaderFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO ENTRANCE (triggered after loader)
   ============================================================ */
.hero-badge,
.hero-title,
.hero-desc,
.hero-actions,
.hero-stats,
.hero-visual {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.hero-loaded .hero-badge  { opacity:1; transform:none; transition-delay:.05s; }
.hero-loaded .hero-title  { opacity:1; transform:none; transition-delay:.15s; }
.hero-loaded .hero-desc   { opacity:1; transform:none; transition-delay:.25s; }
.hero-loaded .hero-actions{ opacity:1; transform:none; transition-delay:.35s; }
.hero-loaded .hero-stats  { opacity:1; transform:none; transition-delay:.45s; }
.hero-loaded .hero-visual { opacity:1; transform:none; transition-delay:.55s; }

/* ============================================================
   UPGRADED SCROLL REVEAL
   ============================================================ */
.reveal, .reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal       { transform: translateY(36px); }
.reveal-left  { transform: translateX(-52px); }
.reveal-right { transform: translateX(52px); }
.reveal-up    { transform: translateY(44px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible {
  opacity: 1;
  transform: none;
  transition-delay: var(--delay, 0s);
}

/* ============================================================
   PREMIUM HOVER & MICRO-INTERACTIONS
   ============================================================ */
/* Navbar link underline slide */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Button ripple shimmer */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.btn-primary:hover::after { transform: translateX(100%); }

/* Service card border shimmer on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(49,130,206,.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }

/* About badge pulse ring */
.about-badge-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(49,130,206,.35);
  animation: pulsRing 2.4s ease-in-out infinite;
}
@keyframes pulsRing {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

/* Hero card stagger float */
.hero-card:nth-child(1) { animation: heroCardFloat 5s ease-in-out infinite 0s; }
.hero-card:nth-child(2) { animation: heroCardFloat 5s ease-in-out infinite .8s; }
.hero-card:nth-child(3) { animation: heroCardFloat 5s ease-in-out infinite 1.6s; }
.hero-card:nth-child(4) { animation: heroCardFloat 5s ease-in-out infinite 2.4s; }
@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
/* override nth offsets while floating */
.hero-card:nth-child(2) { margin-top: 24px; }
.hero-card:nth-child(4) { margin-top: -24px; }
