/* ============================================
   Shinda i-Shade - 遮日王 官方網站
   現代化智慧城市感 | Dynamic Skin 理念
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  /* 科技藍 */
  --primary: #1a73e8;
  --primary-dark: #0d47a1;
  --primary-light: #4fc3f7;
  --primary-bg: rgba(26, 115, 232, 0.08);
  
  /* 永續綠 */
  --green: #2e7d32;
  --green-light: #81c784;
  --green-bg: rgba(46, 125, 50, 0.08);
  
  /* 警示黃 */
  --yellow: #f9a825;
  --yellow-light: #fff8e1;
  
  /* 中性色 */
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --black: #000000;
  
  /* 字型 */
  --font-cn: 'Noto Sans TC', sans-serif;
  --font-en: 'Inter', sans-serif;
  
  /* 間距 */
  --section-padding: 100px 0;
  --container-max: 1200px;
  
  /* 陰影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  
  /* 圓角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* 過渡 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cn);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ===== Container ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-temp {
  color: var(--yellow);
  font-weight: 900;
  font-size: 1.2em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-sm { padding: 10px 24px; font-size: 0.9rem; }

/* ===== Section ===== */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  font-family: var(--font-en);
  letter-spacing: 1px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gray-900);
  font-family: var(--font-en);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--gray-600);
  letter-spacing: 2px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--gray-700);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--primary);
  background: var(--primary-bg);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f5e9 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(26,115,232,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(46,125,50,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(79,195,247,0.06) 0%, transparent 50%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  padding: 40px 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(26,115,232,0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-en);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 2rem;
  color: var(--gray-700);
  font-weight: 700;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual - Umbrella Animation */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.umbrella-animation {
  position: relative;
  width: 320px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.umbrella-dome {
  position: relative;
  width: 280px;
  height: 160px;
  animation: float 3s ease-in-out infinite;
}

.umbrella-arc {
  position: absolute;
  bottom: 0;
  width: 40px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  border-bottom: none;
  opacity: 0.6;
  transform-origin: bottom center;
}

.umbrella-arc:nth-child(1) { left: 0; transform: rotate(-45deg); }
.umbrella-arc:nth-child(2) { left: 20px; transform: rotate(-30deg); }
.umbrella-arc:nth-child(3) { left: 40px; transform: rotate(-15deg); }
.umbrella-arc:nth-child(4) { left: 60px; transform: rotate(0deg); }
.umbrella-arc:nth-child(5) { left: 80px; transform: rotate(15deg); }
.umbrella-arc:nth-child(6) { left: 100px; transform: rotate(30deg); }
.umbrella-arc:nth-child(7) { left: 120px; transform: rotate(45deg); }
.umbrella-arc:nth-child(8) { left: 140px; transform: rotate(60deg); }

.umbrella-pole {
  width: 4px;
  height: 120px;
  background: linear-gradient(to top, var(--gray-500), var(--gray-400));
  border-radius: 2px;
}

.umbrella-base {
  width: 80px;
  height: 20px;
  background: var(--gray-400);
  border-radius: 10px;
  margin-top: -5px;
}

.solar-panel {
  position: absolute;
  top: -10px;
  width: 60px;
  height: 30px;
  background: linear-gradient(135deg, #1a237e, #283593);
  border-radius: 4px;
  opacity: 0.8;
  box-shadow: 0 2px 10px rgba(26,35,126,0.3);
}

.temp-display {
  position: absolute;
  bottom: 40px;
  right: -60px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 0.9rem;
}

.temp-before {
  color: #e53935;
  text-decoration: line-through;
}

.temp-arrow {
  color: var(--gray-500);
}

.temp-after {
  color: var(--green);
  font-size: 1.1rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values-section {
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  transition: var(--transition);
  border: 1px solid transparent;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
  background: var(--white);
}

.value-icon {
  color: var(--primary);
  margin-bottom: 20px;
  display: inline-block;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  color: var(--white);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-en);
  line-height: 1;
}

.stat-unit {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.8;
  margin-left: 4px;
}

.stat-label {
  margin-top: 8px;
  font-size: 1rem;
  opacity: 0.85;
}

/* ============================================
   POSITIONING SECTION
   ============================================ */
.positioning-section {
  background: var(--gray-50);
}

.positioning-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.positioning-text p {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 24px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--gray-700);
}

.feature-list li svg {
  color: var(--green);
  flex-shrink: 0;
}

/* Dynamic Skin Demo */
.dynamic-skin-demo {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.skin-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff8e1, #fff3e0);
  margin-bottom: 24px;
  transition: var(--transition);
}

.skin-state .state-icon {
  font-size: 4rem;
}

.skin-state .state-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
}

.skin-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.skin-btn {
  padding: 10px 20px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  font-family: var(--font-cn);
}

.skin-btn:hover,
.skin-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--white);
}

.cta-card {
  text-align: center;
  padding: 80px 60px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.cta-card h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 36px;
}

.cta-card .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.cta-card .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f5e9 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  font-family: var(--font-en);
  letter-spacing: 1px;
}

.error-page h1 {
  font-size: 8rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page p {
  margin-bottom: 24px;
  color: var(--gray-600);
}

/* ============================================
   TECHNOLOGY PAGE
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tech-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.tech-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tech-icon-wrapper {
  color: var(--primary);
  margin-bottom: 20px;
}

.tech-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.tech-spec {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
}

.tech-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
}

.tech-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.tech-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Specs Table */
.specs-section {
  background: var(--gray-50);
}

.specs-table-wrapper {
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.specs-table th {
  background: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.specs-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background: var(--gray-50);
}

/* Sensor Architecture */
.sensor-architecture {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.sensor-node {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 140px;
  transition: var(--transition);
}

.sensor-node:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.sensor-icon {
  color: var(--primary);
  margin-bottom: 12px;
}

.sensor-node h4 {
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.sensor-node p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.sensor-connector {
  width: 40px;
  height: 2px;
  background: var(--gray-300);
  position: relative;
}

.sensor-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.5;
}

/* ============================================
   SOLUTION PAGE
   ============================================ */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.problem-card,
.solution-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.problem-card {
  background: #fff5f5;
  border: 1px solid #ffcdd2;
}

.solution-card {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
}

.card-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.problem-label {
  background: #ffcdd2;
  color: #c62828;
}

.solution-label {
  background: #c8e6c9;
  color: #2e7d32;
}

.problem-card h3,
.solution-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.problem-data,
.solution-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.data-item {
  text-align: center;
  padding: 16px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
}

.data-number {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-en);
  color: var(--gray-900);
}

.data-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
}

.data-item p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 4px;
}

/* Shade Ratio */
.shade-ratio-section {
  background: var(--gray-50);
}

.shade-ratio-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.shade-ratio-text p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 24px;
}

.shade-bar-wrapper {
  margin-bottom: 16px;
}

.shade-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.shade-bar {
  height: 24px;
  background: var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.shade-bar-fill {
  height: 100%;
  background: var(--gray-400);
  border-radius: 12px;
  transition: width 1.5s ease;
}

.shade-bar-fill.active {
  background: linear-gradient(90deg, var(--green), var(--green-light));
}

.shade-improvement {
  font-size: 1.1rem;
  color: var(--green);
  font-weight: 600;
}

.shade-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.compare-before,
.compare-after {
  text-align: center;
}

.compare-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-700);
}

.sun-icons {
  font-size: 2rem;
  display: flex;
  gap: 8px;
}

.compare-arrow {
  font-size: 2rem;
  color: var(--green);
  font-weight: 700;
}

/* Safety Section */
.safety-section {
  background: var(--white);
}

.safety-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.safety-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.safety-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.safety-icon {
  color: var(--primary);
  margin-bottom: 16px;
}

.safety-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.safety-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Data Section */
.data-section {
  background: var(--gray-50);
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.data-chart-card,
.data-info-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.data-chart-card h4,
.data-info-card h4 {
  font-size: 1.15rem;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.chart-bars {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 200px;
  gap: 24px;
}

.chart-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.chart-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
  order: 2;
}

.chart-bar-wrapper {
  width: 60px;
  height: 160px;
  display: flex;
  align-items: flex-end;
  order: 1;
}

.chart-bar {
  width: 100%;
  border-radius: 8px 8px 0 0;
  position: relative;
  transition: height 1.5s ease;
  min-height: 20px;
}

.bar-red { background: linear-gradient(to top, #e53935, #ff7043); }
.bar-orange { background: linear-gradient(to top, #fb8c00, #ffb74d); }
.bar-green { background: linear-gradient(to top, var(--green), var(--green-light)); }

.chart-value {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
}

.data-info-card ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.data-info-card li {
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.data-info-card li strong {
  display: block;
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.data-info-card li p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ============================================
   APPLICATIONS PAGE
   ============================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.app-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.app-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.app-illustration {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.app-content {
  flex: 1;
}

.app-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.app-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.app-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-features li {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
}

/* Cases Section */
.cases-section {
  background: var(--gray-50);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.case-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-flag {
  font-size: 3rem;
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--gray-900);
}

.case-location {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-family: var(--font-en);
  margin-bottom: 16px;
}

.case-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.case-stats {
  display: flex;
  gap: 24px;
}

.case-stat {
  text-align: center;
}

.case-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-en);
}

.case-stat span:last-child {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Simulator */
.simulator-section {
  background: var(--white);
}

.simulator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.simulator-map {
  position: relative;
  width: 100%;
  height: 350px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.sim-road {
  position: absolute;
  background: var(--gray-300);
}

.sim-road.horizontal {
  top: 50%;
  left: 0;
  right: 0;
  height: 60px;
  transform: translateY(-50%);
}

.sim-road.vertical {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 60px;
  transform: translateX(-50%);
}

.sim-intersection {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
}

.sim-umbrella {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  transition: var(--transition);
}

.sim-shade-area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(26,115,232,0.2) 0%, transparent 70%);
  border-radius: 50%;
  transition: var(--transition);
}

.sim-person {
  position: absolute;
  bottom: -20px;
  right: -30px;
  font-size: 1.5rem;
  animation: walk 3s ease-in-out infinite;
}

@keyframes walk {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

.sim-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--gray-600);
  background: var(--white);
  padding: 4px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.simulator-controls {
  padding: 32px;
}

.simulator-controls h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.sim-slider-wrapper {
  margin-bottom: 32px;
}

.sim-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--gray-200);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.sim-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.sim-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sim-info-item {
  text-align: center;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.sim-info-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.sim-info-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-en);
}

.sim-info-unit {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
  font-size: 1.4rem;
  color: var(--white);
  font-family: var(--font-en);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 1rem;
  color: var(--primary-light);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-company {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.footer-company-en {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-family: var(--font-en);
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.footer-contact li svg {
  flex-shrink: 0;
  color: var(--primary-light);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--gray-400);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ============================================
   MODAL - 索取技術規格
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 40px 40px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Form Styles */
.spec-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}

.required {
  color: #e53935;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-cn);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input.error {
  border-color: #e53935;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.btn-submit {
  width: 100%;
  margin-top: 4px;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-container {
    padding: 36px 24px 32px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto 36px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .positioning-content {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .problem-solution {
    grid-template-columns: 1fr;
  }
  
  .shade-ratio-content {
    grid-template-columns: 1fr;
  }
  
  .safety-content {
    grid-template-columns: 1fr;
  }
  
  .data-grid {
    grid-template-columns: 1fr;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .simulator-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .sensor-architecture {
    flex-direction: column;
    gap: 16px;
  }
  
  .sensor-connector {
    width: 2px;
    height: 20px;
  }
  
  .temp-display {
    right: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .navbar-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  
  .navbar-nav.open {
    display: flex;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .app-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .cta-card {
    padding: 40px 24px;
  }
  
  .cta-card h2 {
    font-size: 1.6rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-contact li {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .umbrella-animation {
    transform: scale(0.8);
  }
  
  .hero-scroll-indicator {
    display: none;
  }
  
  .case-card {
    padding: 24px;
  }
  
  .simulator-map {
    height: 280px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-lg {
    width: 100%;
    padding: 14px 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .specs-table {
    font-size: 0.85rem;
  }
  
  .specs-table th,
  .specs-table td {
    padding: 10px 12px;
  }
  
  .chart-bars {
    height: 150px;
  }
  
  .chart-bar-wrapper {
    width: 40px;
    height: 120px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-content {
  animation: fadeInUp 1s ease;
}

.hero-visual {
  animation: fadeIn 1.5s ease;
}

.value-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }

/* Scroll Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .scroll-to-top,
  .hero-scroll-indicator {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  
  .section {
    padding: 40px 0;
    page-break-inside: avoid;
  }
}
