/* ========================================
   FUNGENE - 芳景生物 全新官网样式
   配色: 绿 #3AAA35 | 橙 #E87722 | 白背景
   ======================================== */

/* CSS Variables */
:root {
  --fg-green: #3AAA35;
  --fg-green-dark: #2E8B2B;
  --fg-green-light: #E8F5E9;
  --fg-green-glow: rgba(58, 170, 53, 0.15);
  
  --fg-orange: #E87722;
  --fg-orange-dark: #D46515;
  --fg-orange-light: #FFF3E0;
  --fg-orange-glow: rgba(232, 119, 34, 0.15);

  --primary: var(--fg-green);
  --primary-dark: var(--fg-green-dark);

  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-section: #F0F7F0;
  
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --text-light: #A0AEC0;
  
  --border-light: #E2E8F0;
  --border-green: rgba(58, 170, 53, 0.2);
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-glow-green: 0 0 40px rgba(58, 170, 53, 0.15);
  --shadow-glow-orange: 0 0 40px rgba(232, 119, 34, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  height: 64px;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  align-items: baseline;
}

.logo-text .fun {
  color: var(--fg-orange);
}

.logo-text .gene {
  color: var(--fg-green);
}

/* Desktop Nav */
.nav-links {
  display: none;
  align-items: center;
  gap: 6px;
}

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

.nav-link {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--fg-green);
  background: var(--fg-green-light);
}

.nav-link.active {
  color: var(--fg-green);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--fg-green);
  border-radius: 2px;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-light);
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.lang-btn {
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: var(--fg-green);
  color: white;
  box-shadow: 0 2px 8px rgba(58, 170, 53, 0.3);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--fg-green);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(58, 170, 53, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1001;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--fg-green);
}

.nav-dropdown:hover > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 20px;
  color: white;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.nav-dropdown-item:hover {
  background: rgba(255,255,255,0.15);
}

/* Third level submenu */
.nav-dropdown-submenu-wrap {
  position: relative;
}

.nav-dropdown-submenu-wrap > .nav-dropdown-item::after {
  content: '▸';
  position: absolute;
  right: 16px;
  font-size: 0.7rem;
  opacity: 0.8;
}

.nav-dropdown-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--fg-green);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 8px 30px rgba(58, 170, 53, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  margin-left: 4px;
}

.nav-dropdown-submenu-wrap:hover > .nav-dropdown-submenu {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

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

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .nav-dropdown {
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu .nav-link {
  font-size: 1.1rem;
  padding: 14px 20px;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu .nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.mobile-menu .nav-dropdown.open > .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.mobile-menu .nav-dropdown-menu {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  background: var(--fg-green-light);
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  display: none;
}

.mobile-menu .nav-dropdown.open > .nav-dropdown-menu {
  max-height: 600px;
  display: block;
}

.mobile-menu .nav-dropdown-menu::before {
  display: none;
}

.mobile-menu .nav-dropdown-item {
  color: var(--text-secondary);
  padding: 12px 20px 12px 36px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.mobile-menu .nav-dropdown-item:hover {
  background: rgba(58, 170, 53, 0.08);
}

/* Mobile submenu */
.mobile-menu .nav-dropdown-submenu-wrap > .nav-dropdown-item::after {
  content: '▾';
  right: 20px;
  font-size: 0.75rem;
}

.mobile-menu .nav-dropdown-submenu-wrap.open > .nav-dropdown-item::after {
  transform: rotate(180deg);
}

.mobile-menu .nav-dropdown-submenu {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  background: rgba(58, 170, 53, 0.06);
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-left: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  display: none;
}

.mobile-menu .nav-dropdown-submenu-wrap.open > .nav-dropdown-submenu {
  max-height: 200px;
  display: block;
}

.mobile-menu .nav-dropdown-submenu .nav-dropdown-item {
  padding-left: 52px;
  font-size: 0.9rem;
}

.mobile-menu .lang-switch {
  margin-top: 16px;
  align-self: center;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F7F0 50%, #FFF8F0 100%);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--fg-green-light);
  border: 1px solid var(--border-green);
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--fg-green-dark);
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--fg-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero-title .highlight-green {
  color: var(--fg-green);
  position: relative;
}

.hero-title .highlight-orange {
  color: var(--fg-orange);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fg-green) 0%, var(--fg-green-dark) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(58, 170, 53, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 170, 53, 0.45);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--fg-orange);
  color: var(--fg-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s ease;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: fadeInUp 1s ease 0.8s forwards;
  opacity: 0;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--fg-green);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  padding: 80px 0;
  background: var(--bg-white);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fg-green), var(--fg-orange));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-green);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--fg-green), var(--fg-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--fg-green-light);
  color: var(--fg-green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title span {
  color: var(--fg-green);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--fg-green-glow);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, transparent, var(--fg-green-light));
  transition: height 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-green);
  border-color: var(--border-green);
}

.service-card:hover::after {
  height: 120px;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-icon.green {
  background: var(--fg-green-light);
  color: var(--fg-green);
}

.service-icon.orange {
  background: var(--fg-orange-light);
  color: var(--fg-orange);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg-green);
  position: relative;
  z-index: 1;
}

.service-link:hover {
  gap: 10px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-visual {
  position: relative;
}

.about-visual .main-img {
  border-radius: var(--radius-xl);
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.about-visual .float-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.about-visual .float-card.top-right {
  top: -20px;
  right: -10px;
}

.about-visual .float-card.bottom-left {
  bottom: 20px;
  left: -20px;
  animation-delay: -2s;
}

.float-card .number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--fg-orange);
}

.float-card .label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.about-visual .glow-bg {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--fg-green-glow);
  border-radius: 50%;
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.about-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

.about-content h2 span {
  color: var(--fg-green);
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  margin: 24px 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--fg-green-light);
  color: var(--fg-green);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
  padding: 100px 0;
  background: var(--bg-section);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-orange);
  border-color: rgba(232, 119, 34, 0.2);
}

.product-img {
  height: 200px;
  background: linear-gradient(135deg, var(--fg-green-light), var(--fg-orange-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.product-img::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255,255,255,0.15) 50%,
    transparent 60%
  );
  animation: shimmer 4s infinite;
}

.product-info {
  padding: 24px;
}

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--fg-green-dark) 0%, var(--fg-green) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(232, 119, 34, 0.15);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: white;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: white;
  color: var(--fg-green-dark);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

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

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

.footer-brand .logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--fg-green);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-light);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: var(--fg-green);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

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

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer-icp-link {
  font-size: 0.82rem;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.footer-icp-link:hover {
  color: var(--fg-green);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

@keyframes scrollWheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(14px);
    opacity: 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ========================================
   PAGE HEADER (for sub-pages)
   ======================================== */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--fg-green-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--fg-orange-glow);
  border-radius: 50%;
  filter: blur(60px);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   CONTENT PAGES
   ======================================== */
.content-section {
  padding: 60px 0 100px;
  background: var(--bg-white);
}

.content-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  border: 1px solid var(--border-light);
}

.content-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-card h2 .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--fg-green-light);
  color: var(--fg-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.content-card p, .content-card li {
  color: var(--text-secondary);
  line-height: 1.75;
}

.content-card ul {
  margin: 16px 0 16px 20px;
}

.content-card li {
  margin-bottom: 8px;
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.process-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 20px 16px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.process-step .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fg-green), var(--fg-orange));
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.process-step .step-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  background: var(--fg-green-light);
  color: var(--fg-green-dark);
  font-weight: 600;
}

.data-table tr:hover td {
  background: var(--bg-light);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .stat-card {
    padding: 24px 16px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .content-card {
    padding: 24px;
  }
  
  .process-step {
    min-width: 100%;
  }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}


/* ========================================
   AUTHENTICATION STYLES
   ======================================== */

/* Auth container in navbar */
.auth-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.auth-login-btn {
  padding: 6px 16px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-login-btn:hover {
  background: var(--primary);
  color: white;
}

.auth-register-btn {
  padding: 6px 16px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-register-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* User menu */
.auth-user-menu {
  position: relative;
}

.auth-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: none;
  background: rgba(58, 170, 53, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-user-btn:hover {
  background: rgba(58, 170, 53, 0.2);
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.auth-username {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 1002;
}

.auth-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.auth-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  transition: background 0.15s;
}

.auth-dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Auth Modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-modal.show {
  opacity: 1;
  visibility: visible;
}

.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}

.auth-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  margin: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.auth-modal.show .auth-modal-content {
  transform: scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s;
}

.auth-modal-close:hover {
  background: var(--border-light);
  color: var(--text-dark);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.auth-modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
}

.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-medium);
}

.auth-form-group input {
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.2s;
  font-family: inherit;
}

.auth-form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 170, 53, 0.1);
}

.auth-error {
  color: #e53935;
  font-size: 0.8rem;
  padding: 8px 12px;
  background: rgba(229, 57, 53, 0.06);
  border-radius: 8px;
  display: none;
}

.auth-submit-btn {
  padding: 14px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.auth-submit-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-spinner {
  animation: auth-spin 1s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-modal-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-medium);
}

.auth-switch-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

.auth-switch-btn:hover {
  text-decoration: underline;
}

.auth-forgot-btn {
  background: none;
  border: none;
  color: var(--text-medium);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.auth-forgot-btn:hover {
  color: var(--primary);
}

/* Toast */
.auth-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 14px 22px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10001;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--primary);
}

.auth-toast.show {
  transform: translateX(0);
}

.auth-toast-success {
  border-left-color: var(--primary);
  color: var(--primary-dark);
}

.auth-toast-error {
  border-left-color: #e53935;
  color: #c62828;
}

/* ===== Auth Modal New Styles ===== */

/* Required field mark */
.required-mark {
  color: #E87722;
  margin-right: 2px;
}

/* Tab bar */
.auth-tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-light);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.auth-tab:hover:not(.active) {
  color: var(--text-medium);
}

/* Login methods switcher */
.auth-login-methods {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-login-method {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--border-light);
  background: white;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.auth-login-method.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--fg-green-light);
}

.auth-login-method:hover:not(.active) {
  border-color: var(--text-light);
}

/* Auth sections */
.auth-section {
  display: none;
}

.auth-section.active {
  display: block;
}

/* Auth forms within sections */
.auth-section .auth-form {
  display: none;
}

.auth-section .auth-form.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Code input group (input + button side by side) */
.auth-code-input-wrap {
  display: flex;
  gap: 8px;
}

.auth-code-input-wrap input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s;
}

.auth-code-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 170, 53, 0.1);
}

.auth-send-code-btn {
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  min-width: 100px;
}

.auth-send-code-btn:hover:not(:disabled) {
  background: var(--primary-dark);
}

.auth-send-code-btn:disabled {
  background: var(--text-light);
  cursor: not-allowed;
}

/* Region selection group (province + city + district) */
.auth-region-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.auth-region-group select {
  padding: 10px 12px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.85rem;
  font-family: inherit;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.auth-region-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 170, 53, 0.1);
}

/* WeChat login placeholder */
.auth-wechat-section {
  text-align: center;
  padding: 32px 0;
}

.auth-wechat-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-wechat-icon {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: var(--fg-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wechat-text {
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* Auth modal adjustments */
.auth-modal-content {
  max-width: 460px;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal-content::-webkit-scrollbar {
  width: 6px;
}

.auth-modal-content::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

/* Form inputs in sections */
.auth-section input[type="text"],
.auth-section input[type="email"],
.auth-section input[type="tel"],
.auth-section input[type="password"] {
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
}

.auth-section input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 170, 53, 0.1);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fg-green);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(58, 170, 53, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--fg-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58, 170, 53, 0.5);
}

/* ========================================
   FLOATING SIDEBAR (Right side)
   ======================================== */
.floating-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.floating-sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1px;
}

.floating-sidebar-btn {
  width: 56px;
  height: 56px;
  background: var(--fg-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.floating-sidebar-item:first-child .floating-sidebar-btn {
  border-radius: 8px 0 0 0;
}

.floating-sidebar-item:last-child .floating-sidebar-btn {
  border-radius: 0 0 0 8px;
}

.floating-sidebar-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: all 0.3s ease;
}

.floating-sidebar-btn:hover {
  background: var(--fg-green-dark);
}

.floating-sidebar-panel {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: white;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  border: 1px solid rgba(0,0,0,0.06);
  min-width: 180px;
  text-align: center;
}

.floating-sidebar-panel::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 2px -2px 4px rgba(0,0,0,0.04);
  pointer-events: none;
}

.floating-sidebar-item:hover .floating-sidebar-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.floating-sidebar-panel .panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.floating-sidebar-panel .panel-content {
  font-size: 1.05rem;
  color: var(--fg-green);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.floating-sidebar-panel .panel-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.floating-sidebar-panel .panel-title svg {
  width: 18px;
  height: 18px;
  fill: var(--fg-green);
}

.floating-sidebar-panel .panel-content {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.floating-sidebar-panel .panel-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.floating-sidebar-panel .qr-placeholder {
  width: 140px;
  height: 140px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 2rem;
  overflow: hidden;
}

.floating-sidebar-panel .qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.floating-sidebar-panel a.leave-msg-link,
.floating-sidebar-panel button.leave-msg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--fg-green) 0%, var(--fg-green-dark) 100%);
  color: white;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(58, 170, 53, 0.3);
}

.floating-sidebar-panel a.leave-msg-link:hover,
.floating-sidebar-panel button.leave-msg-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(58, 170, 53, 0.4);
}

.floating-sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.25);
  width: 36px;
  margin: 0 auto;
}

/* ========================================
   MESSAGE PANEL (Slide-out form)
   ======================================== */
.message-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.message-panel-overlay.show {
  opacity: 1;
  visibility: visible;
}

.message-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.message-panel.show {
  transform: translateX(0);
}

.message-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--fg-green-light) 0%, #fff 100%);
}
.message-panel-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg-green-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.message-panel-header h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--fg-green);
  border-radius: 2px;
}
.message-panel-close {
  background: rgba(0,0,0,0.04);
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}
.message-panel-close:hover {
  background: rgba(0,0,0,0.08);
  color: #333;
}

.message-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.message-panel-body .form-group {
  margin-bottom: 16px;
}
.message-panel-body label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.message-panel-body .required {
  color: #e53e3e;
}
.message-panel-body input,
.message-panel-body select,
.message-panel-body textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  transition: all 0.2s ease;
}
.message-panel-body input:focus,
.message-panel-body select:focus,
.message-panel-body textarea:focus {
  outline: none;
  border-color: var(--fg-green);
  box-shadow: 0 0 0 4px rgba(58, 170, 53, 0.08);
}
.message-panel-body input::placeholder,
.message-panel-body textarea::placeholder {
  color: #b0b8c4;
}
.message-panel-body textarea {
  resize: vertical;
  min-height: 100px;
}
.message-panel-body .char-count {
  text-align: right;
  font-size: 0.75rem;
  color: #999;
  margin-top: 4px;
}

.message-submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--fg-green) 0%, var(--fg-green-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(58, 170, 53, 0.3);
  margin-top: 4px;
}
.message-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(58, 170, 53, 0.4);
}
.message-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message-success {
  text-align: center;
  padding: 48px 24px;
}
.message-success .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 16px rgba(58, 170, 53, 0.15);
}
.message-success h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-green-dark);
  margin: 0 0 10px;
}
.message-success p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0 0 6px;
  line-height: 1.6;
}
.message-success .success-tip {
  font-size: 0.82rem;
  color: #90a4ae;
  margin-bottom: 28px;
}

.message-panel-body .form-error {
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .message-panel {
    width: 100vw;
  }
}

/* Contact cards on About page */
.contact-cards-grid {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.contact-card-item {
  flex: 1;
  min-width: 0;
  padding: 24px 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card-item:hover {
  border-color: var(--fg-green);
  box-shadow: 0 4px 16px rgba(58, 170, 53, 0.1);
  transform: translateY(-2px);
}

.contact-card-item .card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.contact-card-item .card-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.contact-card-item .card-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-card-item .card-qr {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.contact-card-item .card-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1024px) {
  .contact-cards-grid {
    flex-wrap: wrap;
  }
  .contact-card-item {
    flex: 1 1 calc(33.33% - 14px);
  }
}

@media (max-width: 768px) {
  .floating-sidebar {
    display: none;
  }
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .auth-modal-content {
    margin: 10px;
    padding: 24px 20px;
    border-radius: 12px;
  }

  .auth-login-methods {
    gap: 6px;
  }

  .auth-login-method {
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .auth-region-group {
    grid-template-columns: 1fr;
  }

  .auth-code-input-wrap {
    flex-direction: column;
  }

  .auth-send-code-btn {
    width: 100%;
    padding: 10px;
  }
}

/* ========================================
   PRODUCT CATALOG PAGE
   ======================================== */

.product-page-layout {
  display: flex;
  gap: 32px;
  padding: 100px 0 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .product-page-layout {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1024px) {
  .product-page-layout {
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* Left Sidebar */
.product-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.product-sidebar-header {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-sidebar-header .arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.product-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-sidebar-item {
  display: block;
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-light);
  transition: all 0.2s ease;
  cursor: pointer;
}

.product-sidebar-item:last-child {
  border-bottom: none;
}

.product-sidebar-item:hover {
  color: var(--fg-green);
  background: var(--fg-green-light);
}

.product-sidebar-item.active {
  color: var(--fg-green);
  font-weight: 600;
  background: var(--fg-green-light);
}

/* Main Content Area */
.product-main {
  flex: 1;
  min-width: 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--fg-green);
}

.breadcrumb .current {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb .sep {
  margin: 0 6px;
  color: var(--text-light);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

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

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

/* Product Card */
.product-card-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  text-align: center;
}

.product-card-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--bg-light);
}

.product-card-info {
  padding: 20px;
}

.product-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-card-code {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-buy {
  display: inline-block;
  padding: 10px 32px;
  background: var(--fg-green);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-buy:hover {
  background: var(--fg-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58, 170, 53, 0.35);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
}

.pagination-btn {
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.pagination-btn:hover {
  color: var(--fg-green);
}

.pagination-btn:disabled {
  color: var(--text-light);
  cursor: not-allowed;
}

.pagination-current {
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-green);
  border: 1px solid var(--fg-green);
  border-radius: 4px;
}

/* Mobile: hide sidebar */
@media (max-width: 767px) {
  .product-page-layout {
    flex-direction: column;
  }
  .product-sidebar {
    width: 100%;
  }
  .product-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  .product-sidebar-item {
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px 16px;
    border-bottom-style: solid;
  }
  .product-sidebar-item:last-child {
    border-bottom: 1px solid var(--border-light);
  }
}

/* Profile Page */
.profile-page {
  padding-top: 100px;
  min-height: 100vh;
  background: var(--bg-light);
}

.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.profile-header {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-info h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.profile-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.profile-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.profile-card h2 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-form .form-group.full-width {
  grid-column: 1 / -1;
}

.profile-form label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-medium);
}

.profile-form input {
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s;
}

.profile-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 170, 53, 0.1);
}

.profile-form input:disabled {
  background: var(--bg-light);
  color: var(--text-light);
}

.profile-save-btn {
  padding: 12px 28px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.profile-save-btn:hover {
  background: var(--primary-dark);
}

@media (max-width: 640px) {
  .profile-form {
    grid-template-columns: 1fr;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .auth-modal-content {
    padding: 28px 20px;
    margin: 16px;
  }

  .auth-username {
    display: none;
  }
}

/* ========================================
   SERVICE CATEGORY PAGE STYLES
   ======================================== */

/* Service Category Introduction */
.service-category-intro {
  margin-bottom: 32px;
  padding: 32px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.service-category-intro h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-category-intro p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Service Grid - extends product-grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

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

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

/* Service Card Item */
.service-card-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Service Card Image - gradient background with text */
.service-card-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.service-card-img-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  word-break: break-word;
}

/* Service Card Info */
.service-card-info {
  padding: 20px;
}

.service-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.service-card-code {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Detail block - for service-detail page */
.detail-block {
  display: none;
}

/* Back button hover enhancement */
.btn-outline:hover {
  background: var(--fg-green);
  color: white !important;
}

/* ========================================
   FAQ Sidebar Layout
   ======================================== */

.faq-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: 24px;
}

.faq-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.faq-sidebar-header {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg-green);
  padding: 16px 20px;
  border-bottom: 2px solid var(--fg-green-light);
}

.faq-sidebar-nav {
  padding: 8px 0;
}

.faq-sidebar-item {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  line-height: 1.4;
}

.faq-sidebar-item:hover {
  color: var(--fg-green);
  background: var(--fg-green-light);
  border-left-color: var(--fg-green);
}

.faq-sidebar-item.active {
  color: var(--fg-green);
  background: var(--fg-green-light);
  border-left-color: var(--fg-green);
  font-weight: 600;
}

.faq-main {
  flex: 1;
  min-width: 0;
  min-height: 600px;
}

.faq-panel {
  display: none;
}

.faq-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* FAQ Mobile Responsive */
@media (max-width: 768px) {
  .faq-layout {
    flex-direction: column;
    gap: 16px;
  }

  .faq-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .faq-sidebar-header {
    display: none;
  }

  .faq-sidebar-nav {
    display: flex;
    gap: 8px;
    padding: 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .faq-sidebar-item {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    border-left: none;
    background: var(--fg-green-light);
    color: var(--fg-green-dark);
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .faq-sidebar-item:hover {
    border-left-color: transparent;
  }

  .faq-sidebar-item.active {
    background: var(--fg-green);
    color: white;
    border-left-color: transparent;
  }
}
