/*
 * 馥儷生技 Fully Biotech — Main Stylesheet
 * 設計靈感：高端醫美品牌（冷色調、乾淨、科研感）
 */

/* ===== Base ===== */
:root {
  --primary: #1a3a5c;
  --primary-light: #2d5f8a;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --bg-dark: #0f1f33;
  --bg-gradient: linear-gradient(135deg, #0f1f33 0%, #1a3a5c 50%, #2d5f8a 100%);
  --bg-light: #f0f4f8;
  --white: #ffffff;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --text-dark: #1e293b;
  --text-light: #94a3b8;
  --section-pad: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}
.btn-hero {
  background: var(--white);
  color: var(--primary);
}
.btn-hero:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-link {
  background: none;
  color: var(--accent);
  padding: 8px 0;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
}
.btn-link:hover { color: var(--primary); border-color: var(--primary); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== Section Common ===== */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 600px;
}
.section-desc {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-gradient);
  padding: 16px 0;
  transition: all 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link {
  display: flex;
  flex-direction: column;
  color: var(--white);
}
.logo-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-tagline {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent-light);
  text-transform: uppercase;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}
.nav-menu li a {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-menu li a:hover { color: var(--white); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
}
.lang-switch {
  font-size: 13px;
  cursor: pointer;
}
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* ===== HERO ===== */
.hero-section {
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-slide-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
.hero-slide-indicator .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
.hero-slide-indicator .dot.active {
  width: auto; height: auto;
  border-radius: 0;
  background: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.hero-visual {
  position: relative;
  min-height: 500px;
}
.hero-model {
  width: 320px;
  height: 420px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 200px 200px 0 0;
  margin: 0 auto;
  position: relative;
}
.hero-product-card {
  position: absolute;
  bottom: 20px;
  right: 0;
  display: flex;
  gap: 12px;
}
.product-box {
  width: 80px; height: 140px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}
.product-vial {
  width: 40px; height: 100px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  margin-top: 20px;
}

/* ===== ABOUT ===== */
.about-section {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.feature-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  background: var(--bg-light);
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 20px;
  opacity: 0.15;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== SOLUTION ===== */
.solution-section {
  padding: var(--section-pad) 0;
  background: var(--bg-light);
}
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.solution-visual {
  min-height: 400px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(26,58,92,0.12) 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-vials {
  width: 120px; height: 200px;
  background: var(--accent);
  opacity: 0.1;
  border-radius: 40px;
}

/* ===== CLINICAL RESULTS ===== */
.clinical-section {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.results-carousel {
  margin-top: 40px;
}
.result-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.result-before, .result-after {
  text-align: center;
}
.result-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.result-image {
  width: 100%;
  height: 300px;
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
}
.before-img { background: var(--gray-200); }
.after-img { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.carousel-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-arrow:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== TECHNOLOGY ===== */
.tech-section {
  padding: var(--section-pad) 0;
  background: var(--bg-light);
}
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.tech-visual {
  min-height: 400px;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5f8a 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-dna {
  width: 200px; height: 200px;
  border: 3px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  position: relative;
}
.tech-dna::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}
.tech-list {
  list-style: none;
  margin: 20px 0;
}
.tech-list li {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 0;
}

/* ===== PARTNERS ===== */
.partners-section {
  padding: var(--section-pad) 0;
  background: var(--white);
  text-align: center;
}
.partners-count {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 40px;
}
.partners-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}
.partner-logo {
  width: 180px;
  height: 80px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== INSTAGRAM ===== */
.instagram-section {
  padding: var(--section-pad) 0;
  background: var(--bg-light);
  text-align: center;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 32px 0;
}
.insta-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.insta-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-400));
}
.insta-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s;
}
.insta-item:hover .insta-overlay { opacity: 1; }
.insta-item:hover .insta-placeholder { filter: brightness(0.7); }

/* ===== FOOTER ===== */
.footer-cta {
  background: var(--bg-gradient);
  padding: 80px 0;
  color: var(--white);
}
.footer-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.footer-cta-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-cta-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.footer-cta-product {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-cta-product .product-box-icon {
  width: 80px; height: 140px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}
.footer-cta-product .product-vial-icon {
  width: 40px; height: 100px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  margin-top: 20px;
}
.footer-bottom {
  background: var(--bg-dark);
  padding: 24px 0;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-nav {
  display: flex;
  list-style: none;
  gap: 20px;
}
.footer-nav li a {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-nav li a:hover { color: var(--white); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid,
  .solution-grid,
  .tech-grid,
  .footer-cta-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .hero-title { font-size: 40px; }
  .insta-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .menu-toggle { display: block; }
  .hero-title { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .result-pair { grid-template-columns: 1fr; }
  .partners-logos { flex-direction: column; align-items: center; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 28px; }
  :root { --section-pad: 60px; }
}