/* 威立科技官網 - 標準 HTML 版本 CSS 樣式 */

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

:root {
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #3b82f6;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--slate-900);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

ul {
  list-style: none;
}

/* ========== Container ========== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(to right, var(--orange-400), var(--orange-500));
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--orange-500), var(--orange-600));
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-600);
}

.btn-ghost:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.btn-ghost.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
}

/* ========== Header / Navbar ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-100);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 1024px) {
  .navbar {
    height: 13rem;
  }
}

.logo img {
  height: 3.5rem;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .logo img {
    height: 12rem;
    max-width: 840px;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--slate-600);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.nav-links a.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta {
    display: block;
  }
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-600);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--slate-100);
}

.mobile-menu.open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--slate-600);
  border-radius: var(--radius);
}

.mobile-menu a:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

/* ========== Hero Section ========== */
.hero {
  padding: 4rem 0;
  background: linear-gradient(to bottom right, var(--slate-50), var(--white));
}

@media (min-width: 1024px) {
  .hero {
    padding: 5rem 0;
  }
}

.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary-blue);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.25rem;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero h1 span {
  background: linear-gradient(to right, var(--primary-blue), var(--primary-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  font-family: 'Space Grotesk', sans-serif;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.hero-image {
  position: relative;
}

.hero-image-card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
}

.hero-award-badge {
  position: absolute;
  top: -0.75rem;
  right: 1rem;
  background: linear-gradient(to right, var(--orange-400), var(--orange-500));
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-image-card img {
  width: 100%;
  height: auto;
}

.hero-image-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
}

.hero-image-footer-icons {
  display: flex;
  gap: 0.25rem;
}

.hero-image-footer-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* ========== Section Common ========== */
.section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 5rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 48rem;
  margin: 0 auto;
}

/* ========== Cards Grid ========== */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ========== Product Tabs ========== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0.5rem;
  background: var(--slate-100);
  border-radius: 0.75rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--slate-900);
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.product-detail {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.product-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

.product-image img {
  width: 100%;
  height: auto;
}

.product-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-info h3 {
  font-size: 1.5rem;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.product-info h4 {
  font-size: 1.125rem;
  color: var(--primary-blue);
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-info p {
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}

.product-features {
  margin-bottom: 1.5rem;
}

.product-features h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.product-features ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.product-features li::before {
  content: '✓';
  color: var(--primary-blue);
  font-weight: 600;
}

/* ========== Stats Section ========== */
.stats-section {
  background: linear-gradient(to right, var(--primary-blue), var(--primary-blue-dark));
  color: var(--white);
}

.stats-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 1.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ========== CTA Section ========== */
.cta-section {
  background: linear-gradient(to right, var(--orange-500), var(--orange-600));
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-section h2 {
    font-size: 2.25rem;
  }
}

.cta-section p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-section .btn {
  background: var(--white);
  color: var(--orange-600);
}

.cta-section .btn:hover {
  background: var(--slate-100);
}

/* ========== Footer ========== */
.footer {
  background: var(--slate-900);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 3.5rem;
  width: auto;
  background: var(--white);
  border-radius: 0.5rem;
  padding: 0.25rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-bottom: 1rem;
  max-width: 20rem;
}

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

.footer-tag {
  padding: 0.25rem 0.75rem;
  background: var(--slate-800);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--slate-300);
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-800);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* ========== Page Header ========== */
.page-header {
  padding: 3rem 0;
  background: linear-gradient(to bottom right, var(--slate-50), var(--white));
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 48rem;
  margin: 0 auto;
}

/* ========== Timeline ========== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--slate-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--primary-blue);
  border-radius: 50%;
  transform: translateX(-50%);
}

.timeline-year {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.timeline-description {
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* ========== Contact Form ========== */
.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

/* ========== Comparison Table ========== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}

.comparison-table th {
  background: var(--slate-50);
  font-weight: 600;
  color: var(--slate-900);
}

.comparison-table td {
  color: var(--slate-600);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.highlight-cell {
  color: var(--primary-blue) !important;
  font-weight: 500;
}

/* ========== Utilities ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.bg-white { background-color: var(--white); }
.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-100 { background-color: var(--slate-100); }

.text-blue { color: var(--primary-blue); }
.text-orange { color: var(--orange-500); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-900 { color: var(--slate-900); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
