/* =============================================
   旭鴻資通 RaysTech — Industrial Dark Theme
   Primary: #ff6b35 (orange)  Accent: #4ecdc4 (teal)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --primary-color:   #1a1a1a;
  --secondary-color: #ff6b35;
  --accent-color:    #4ecdc4;
  --text-light:      #f8f9fa;
  --text-dark:       #2c3e50;
  --bg-dark:         #0d1117;
  --bg-medium:       #1a1f2e;
  --bg-light:        #2d3748;
  --border-color:    #374151;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Roboto', 'Noto Sans TC', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

::selection { background: rgba(255,107,53,0.3); color: var(--text-light); }
:focus-visible { outline: 2px solid var(--secondary-color); outline-offset: 3px; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar-industrial {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--secondary-color);
  transition: padding 0.3s ease, background 0.3s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.navbar-industrial.scrolled .navbar-inner { padding: 8px 0; }

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar-brand img,
.brand-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.navbar-brand img:hover,
.brand-logo-img:hover {
  filter: brightness(1.2) drop-shadow(0 0 6px rgba(255,107,53,0.5));
  transform: scale(1.04);
}

.navbar-brand .brand-fallback {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar-brand .brand-fallback svg {
  flex-shrink: 0;
  color: var(--secondary-color);
}

.navbar-brand .brand-text {
  line-height: 1.1;
}

.navbar-brand .brand-text .zh {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.navbar-brand .brand-text .en {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--secondary-color);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Desktop Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-menu li a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px;
  width: calc(100% - 24px);
  height: 2px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active { color: var(--secondary-color); }
.nav-menu li a:hover::after,
.nav-menu li a.active::after { transform: scaleX(1); }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255,107,53,0.1);
  border: 2px solid var(--secondary-color);
  border-radius: 6px;
  color: var(--secondary-color);
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.mobile-menu-toggle:hover { background: var(--secondary-color); color: white; }

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span + span { margin-top: 5px; }

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   HERO
   ============================================= */
.hero-section {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
}

/* Animated backgrounds */
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.tech-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(78, 205, 196, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

.tech-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(78, 205, 196, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(78, 205, 196, 0.06) 0%, transparent 50%);
  animation: techFloat 15s ease-in-out infinite;
}

.particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.5;
  animation: particleFloat 8s ease-in-out infinite;
}
.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { width: 3px; height: 3px; left: 25%; top: 60%; animation-delay: 1.2s; }
.particle:nth-child(3) { width: 5px; height: 5px; left: 45%; top: 30%; animation-delay: 2.4s; }
.particle:nth-child(4) { width: 2px; height: 2px; left: 65%; top: 70%; animation-delay: 3.6s; }
.particle:nth-child(5) { width: 6px; height: 6px; left: 80%; top: 40%; animation-delay: 4.8s; }
.particle:nth-child(6) { width: 3px; height: 3px; left: 15%; top: 80%; animation-delay: 6s; }

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

@keyframes techFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.5; }
  25% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
  50% { transform: translateY(10px) translateX(-10px); opacity: 0.3; }
  75% { transform: translateY(-30px) translateX(5px); opacity: 0.7; }
}

/* Slides */
.hero-slider { position: relative; width: 100%; height: 100%; z-index: 2; }

.hero-slide {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
  z-index: 3;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--accent-color);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.25s, transform 0.8s ease 0.25s;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.btn-industrial-wrap {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.55s, transform 0.8s ease 0.55s;
}

.hero-slide.active .hero-title,
.hero-slide.active .hero-subtitle,
.hero-slide.active .hero-description,
.hero-slide.active .btn-industrial-wrap {
  opacity: 1;
  transform: translateY(0);
}

/* Slide indicators */
.slide-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 4;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-dot.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: scale(1.3);
}

/* Buttons */
.btn-industrial {
  display: inline-block;
  padding: 14px 40px;
  background: var(--secondary-color);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-industrial::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent-color);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-industrial span { position: relative; z-index: 1; }

.btn-industrial:hover::before { left: 0; }
.btn-industrial:hover {
  color: var(--bg-dark);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,53,0.3);
}

.btn-outline-industrial {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline-industrial:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

/* =============================================
   FEATURES / SERVICES SECTION
   ============================================= */
.features-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-medium);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(78,205,196,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,205,196,0.015) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: gridMove 15s linear infinite;
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary-color);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 1.25rem;
  margin-bottom: 0;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 3px;
  background: var(--secondary-color);
}

.section-subtitle {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0.7;
  max-width: 60ch;
  margin-inline: auto;
  line-height: 1.7;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--bg-light);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--secondary-color);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.feature-card:hover::before { transform: scaleY(1); }
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,107,53,0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-icon { color: var(--accent-color); }

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-light);
  opacity: 0.8;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  padding-top: calc(80px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--bg-medium);
  border-bottom: 2px solid var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(78,205,196,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,205,196,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 100% at 0% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 0% 0%, black 0%, transparent 70%);
}

.page-hero-inner { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.page-hero h1 span { color: var(--secondary-color); }
.page-hero p { font-size: 1rem; color: var(--text-light); opacity: 0.75; max-width: 58ch; }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.about-text h2 em {
  font-style: normal;
  color: var(--secondary-color);
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.about-image-wrap {
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.about-image-wrap img { width: 100%; height: 340px; object-fit: cover; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.value-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-4px);
}

.value-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--secondary-color);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.value-title { font-size: 1rem; font-weight: 700; color: var(--text-light); margin-bottom: 0.5rem; }
.value-desc { font-size: 0.9rem; color: var(--text-light); opacity: 0.7; line-height: 1.6; }

/* Tech badges */
.tech-expertise {
  background: var(--bg-medium);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.tech-group {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  margin-bottom: 1rem;
}

.tech-group h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tech-tag {
  padding: 6px 14px;
  background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.25);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.tech-tag:hover { border-color: var(--secondary-color); color: var(--secondary-color); }

/* =============================================
   SERVICES PAGE
   ============================================= */
.services-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-dark);
}

.service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: flex-start;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.service-detail::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--secondary-color);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.service-detail:hover { border-color: var(--secondary-color); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.service-detail:hover::before { transform: scaleY(1); }

.service-detail-icon {
  width: 60px; height: 60px;
  background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.service-detail h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.service-detail p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  padding: 4px 12px;
  background: rgba(78,205,196,0.1);
  border: 1px solid rgba(78,205,196,0.25);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-color);
}

/* Vendors */
.vendors-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg-medium);
  border-top: 1px solid var(--border-color);
}

.vendor-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

.vendor-badge {
  padding: 10px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.vendor-badge:hover { border-color: var(--secondary-color); color: var(--secondary-color); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.contact-info > p {
  font-size: 0.95rem;
  color: var(--text-light);
  opacity: 0.75;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; }

.contact-item-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--secondary-color);
}

.contact-item-content label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.contact-item-content a,
.contact-item-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.5;
  max-width: none;
  transition: color 0.3s ease;
}

.contact-item-content a:hover { color: var(--secondary-color); }

/* Form */
.contact-form-wrap {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  position: relative;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.contact-form-wrap h2 {
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.form-group select option { background: var(--bg-medium); }
.form-group textarea { resize: vertical; min-height: 120px; }

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

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
}

/* FAQ */
.faq-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg-medium);
  border-top: 1px solid var(--border-color);
}

.faq-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
  transition: border-color 0.3s ease;
}

.faq-item:hover { border-color: rgba(255,107,53,0.4); }

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--secondary-color);
  font-weight: 300;
  line-height: 1;
}

.faq-item[open] summary::after { content: '−'; }
.faq-item[open] { border-color: var(--secondary-color); }

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-light);
  opacity: 0.75;
}

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band-text h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.cta-band-text p { font-size: 0.95rem; color: var(--text-light); opacity: 0.7; }

/* =============================================
   FOOTER
   ============================================= */
.footer-industrial {
  background: var(--bg-dark);
  padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
  border-top: 2px solid var(--secondary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-section p,
.footer-section li {
  font-size: 0.875rem;
  color: var(--text-light);
  opacity: 0.75;
  line-height: 1.6;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.footer-section li a,
.footer-section p a {
  color: var(--text-light);
  opacity: 1;
  transition: color 0.3s ease;
}

.footer-section li a:hover,
.footer-section p a:hover { color: var(--secondary-color); }

.footer-section i {
  color: var(--secondary-color);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Security policy badge */
.security-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  background: rgba(255,107,53,0.08);
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color) !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.security-policy-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 100%;
  background: var(--secondary-color);
  transition: width 0.3s ease;
  z-index: 0;
}

.security-policy-link span { position: relative; z-index: 1; }
.security-policy-link i { position: relative; z-index: 1; font-size: 0.85rem !important; }

.security-policy-link:hover::before { width: 100%; }
.security-policy-link:hover { color: white !important; }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0.5;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 999;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.back-to-top:hover { background: var(--accent-color); transform: translateY(-4px); }
.back-to-top.visible { display: flex; }

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid .about-image-wrap { order: -1; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .mobile-menu-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 80vw);
    height: 100dvh;
    background: var(--bg-medium);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.35s cubic-bezier(0.16,1,0.3,1);
    z-index: 999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.4);
    overflow-y: auto;
  }

  .nav-menu.active { right: 0; }

  .nav-menu li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu li a {
    display: block;
    padding: 14px 8px;
    font-size: 1rem;
  }

  .navbar-inner { flex-wrap: nowrap; }

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

  .service-detail { grid-template-columns: 1fr; gap: 1rem; }

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

  .footer-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-section p, .footer-section li { justify-content: center; }

  .cta-band-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: 0; }
}

/* LINE QR Code */
.line-qr-wrap {
  margin-top: 12px;
  display: inline-block;
}
.line-qr-img {
  width: 140px;
  height: 140px;
  border: 3px solid #06C755;
  border-radius: 8px;
  display: block;
}
.line-qr-caption {
  text-align: center;
  font-size: 0.78rem;
  color: #06C755;
  margin-top: 6px;
  margin-bottom: 0;
}

/* Footer LINE QR */
.footer-line-section { text-align: center; }
.footer-line-qr {
  width: 120px;
  height: 120px;
  border: 2px solid #06C755;
  border-radius: 8px;
  margin: 8px auto 0;
  display: block;
  transition: transform 0.2s;
}
.footer-line-qr:hover { transform: scale(1.05); }
.footer-line-caption {
  font-size: 0.78rem;
  color: #06C755;
  margin: 6px auto 0;
  display: block !important;
  text-align: center !important;
  justify-content: center;
  width: 100%;
}

/* =============================================
   供應商產品區塊 — Supplier Cards
   ============================================= */

.suppliers-section {
  padding: 100px 0;
  background: var(--bg-dark);
}

/* Supplier grid */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 36px;
  margin-top: 56px;
}

/* Card */
.supplier-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.supplier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.supplier-card:hover::before { transform: scaleY(1); }

.supplier-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-color);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

/* Card header */
.supplier-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.supplier-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(255,107,53,0.15) 0%, rgba(78,205,196,0.15) 100%);
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.supplier-card:hover .supplier-icon {
  background: linear-gradient(135deg, rgba(255,107,53,0.3) 0%, rgba(78,205,196,0.3) 100%);
  box-shadow: 0 0 20px rgba(255,107,53,0.4);
}

.supplier-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.supplier-name-zh {
  font-size: 1rem;
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 6px;
}

.supplier-title {
  font-size: 0.85rem;
  color: rgba(248,249,250,0.65);
  letter-spacing: 0.5px;
}

/* Description */
.supplier-description {
  color: rgba(248,249,250,0.85);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

/* Product list */
.supplier-product-list {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.supplier-product-item {
  background: rgba(255,255,255,0.04);
  padding: 14px 16px;
  border-left: 3px solid var(--accent-color);
  position: relative;
  transition: background 0.25s ease, transform 0.25s ease;
}

.supplier-product-item:hover {
  background: rgba(255,255,255,0.09);
  transform: translateX(4px);
}

.supplier-product-item.featured {
  background: linear-gradient(135deg, rgba(255,107,53,0.12) 0%, rgba(78,205,196,0.08) 100%);
  border-left-color: var(--secondary-color);
  border-left-width: 4px;
  box-shadow: 0 4px 12px rgba(255,107,53,0.15);
}

.supplier-product-item.featured:hover {
  background: linear-gradient(135deg, rgba(255,107,53,0.18) 0%, rgba(78,205,196,0.12) 100%);
  transform: translateX(6px) scale(1.01);
}

.featured-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,107,53,0.7); }
  70%  { box-shadow: 0 0 0 6px rgba(255,107,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); }
}

.supplier-product-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 3px;
}

.supplier-product-desc {
  font-size: 0.82rem;
  color: rgba(248,249,250,0.7);
  line-height: 1.6;
}

/* Link button */
.supplier-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.supplier-link::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--secondary-color);
  transition: left 0.3s ease;
  z-index: 0;
}

.supplier-link:hover::before { left: 0; }

.supplier-link span, .supplier-link i {
  position: relative;
  z-index: 1;
}

.supplier-link:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,107,53,0.35);
}

@media (max-width: 768px) {
  .supplier-grid { grid-template-columns: 1fr; gap: 24px; }
  .suppliers-section { padding: 64px 0; }
}
