/* ============================================
   汉纳软件 - Hana Software
   企业官网样式表
   风格：简约大气 / 科技感
   ============================================ */

/* CSS Variables */
:root {
  --bg-primary: #0f0f12;
  --bg-secondary: #18181c;
  --bg-card: rgba(24, 24, 28, 0.7);
  --bg-primary-rgb: 15, 15, 18;
  --bg-secondary-rgb: 24, 24, 28;
  --accent-orange: #E85A13;
  --accent-amber: #FF8C42;
  --accent-gradient: linear-gradient(135deg, #E85A13 0%, #FF8C42 100%);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(148, 163, 184, 0.15);
  --glass-bg: rgba(20, 20, 24, 0.6);
  --glass-border: rgba(148, 163, 184, 0.1);
  --icon-bg: rgba(255, 255, 255, 0.06);
  --icon-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================
   Light Theme
   ============================================ */
[data-theme="light"] {
  --bg-primary: #f7f8fa;
  --bg-secondary: #eef0f4;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-primary-rgb: 247, 248, 250;
  --bg-secondary-rgb: 238, 240, 244;
  --accent-orange: #E85A13;
  --accent-amber: #FF8C42;
  --accent-gradient: linear-gradient(135deg, #E85A13 0%, #FF8C42 100%);
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-color: rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.05);
  --icon-bg: rgba(0, 0, 0, 0.04);
  --icon-border: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Tesseract Canvas Background */
#tesseract-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Grid Background Effect - subtle overlay */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(232, 90, 19, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 90, 19, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}

[data-theme="light"] .grid-bg {
  background-image:
    linear-gradient(rgba(232, 90, 19, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 90, 19, 0.025) 1px, transparent 1px);
}

/* Glow Orbs - ambient light */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(232, 90, 19, 0.1);
  top: -150px;
  right: -150px;
}

.glow-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 140, 66, 0.06);
  bottom: 5%;
  left: -150px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(var(--bg-primary-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-color);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.nav-links a i[data-lucide] {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: var(--transition);
}

.nav-links a:hover i[data-lucide],
.nav-links a.active i[data-lucide] {
  opacity: 1;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.5rem;
  background: var(--accent-gradient);
  border-radius: 8px;
  color: white !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-cta i[data-lucide] {
  opacity: 0.9;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 90, 19, 0.3);
}

.nav-cta::after {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-left: 1rem;
}

.theme-toggle:hover {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: var(--transition);
  width: 18px;
  height: 18px;
}

/* Default (dark) state: show moon icon */
.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Light theme state: show sun icon */
[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 90, 19, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-orange);
  background: rgba(232, 90, 19, 0.08);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(232, 90, 19, 0.06);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(232, 90, 19, 0.08);
  border: 1px solid rgba(232, 90, 19, 0.15);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent-orange);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-amber);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* Hero Visual */
.hero-visual {
  margin-top: 4rem;
  position: relative;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-visual-inner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-visual-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.visual-card {
  background: var(--icon-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  transition: var(--transition);
}

.visual-card:hover {
  border-color: rgba(232, 90, 19, 0.3);
  background: rgba(232, 90, 19, 0.05);
  transform: translateY(-4px);
}

.visual-card-icon {
  width: 44px;
  height: 44px;
  background: var(--icon-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--icon-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.visual-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.visual-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ============================================
   Section Base
   ============================================ */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   Features / Cards Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  border-color: rgba(232, 90, 19, 0.25);
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--icon-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--icon-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--icon-bg);
  border-color: var(--icon-border);
  transform: scale(1.1);
}

[data-theme="light"] .feature-card:hover .feature-icon {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
  background: transparent;
  padding: 4rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   About Page Specific
   ============================================ */
.about-hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
  text-align: center;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(232, 90, 19, 0.08) 0%, transparent 70%);
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-orange), var(--accent-amber));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-orange);
  border-radius: 50%;
  transform: translateX(-5px);
}

.timeline-year {
  font-size: 0.875rem;
  color: var(--accent-orange);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.value-card:hover {
  border-color: rgba(232, 90, 19, 0.2);
  transform: translateY(-4px);
}

.value-icon {
  width: 64px;
  height: 64px;
  background: var(--icon-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--icon-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   Products Page Specific
   ============================================ */
.product-hero {
  padding-top: 10rem;
  padding-bottom: 3rem;
  text-align: center;
}

.product-section {
  padding: 4rem 0;
}

.product-section:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.product-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 2rem;
}

.product-header-icon {
  width: 56px;
  height: 56px;
  background: var(--icon-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--icon-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.product-header h2 {
  font-size: 1.75rem;
}

.product-header p {
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
}

.product-feature-item:hover {
  border-color: rgba(232, 90, 19, 0.2);
}

.product-feature-item .icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--icon-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--icon-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.product-feature-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.product-feature-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Use Cases */
.usecase-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.usecase-tab {
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.usecase-tab:hover,
.usecase-tab.active {
  background: rgba(232, 90, 19, 0.08);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

[data-theme="light"] .usecase-tab:hover,
[data-theme="light"] .usecase-tab.active {
  background: rgba(232, 90, 19, 0.06);
}

.usecase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.usecase-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.usecase-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(232, 90, 19, 0.1) 0%, transparent 60%);
}

.usecase-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.usecase-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.usecase-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.usecase-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.usecase-list .check {
  width: 20px;
  height: 20px;
  background: var(--icon-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--icon-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ============================================
   Contact Page Specific
   ============================================ */
.contact-hero {
  padding-top: 10rem;
  padding-bottom: 3rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: var(--icon-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--icon-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--icon-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

/* 下拉选项默认浅灰色（未选中时） */
.form-group select:invalid,
.form-group select option[value=""] {
  color: var(--text-muted);
}

/* 下拉框已选中的选项保持主文字色 */
.form-group select option {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

[data-theme="light"] .form-group select option {
  background: #ffffff;
}

/* Detail-item select options (contact form) */
.detail-item select option,
.filter-bar select option,
.detail-value option {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

[data-theme="light"] .detail-item select option,
[data-theme="light"] .filter-bar select option,
[data-theme="light"] .detail-value option {
  background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: rgba(232, 90, 19, 0.05);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
  background: rgba(232, 90, 19, 0.04);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

/* Form Section */
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(232, 90, 19, 0.2);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--icon-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-label:hover {
  border-color: rgba(232, 90, 19, 0.3);
  background: rgba(232, 90, 19, 0.05);
}

[data-theme="light"] .checkbox-label:hover {
  background: rgba(232, 90, 19, 0.04);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-orange);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + span {
  color: var(--text-primary);
}

.agree-label {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.agree-label:hover {
  background: transparent;
  border-color: transparent;
}

/* Map Card */
.map-card {
  position: relative;
  overflow: hidden;
}

.map-card .map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.map-card .map-overlay.dark {
  background: linear-gradient(180deg, rgba(15,15,18,0.7) 0%, rgba(15,15,18,0.5) 40%, rgba(15,15,18,0.7) 100%);
}

[data-theme="light"] .map-card .map-overlay.dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.5) 40%, rgba(255,255,255,0.7) 100%);
}

.map-card .map-overlay.accent {
  background: radial-gradient(circle at 50% 50%, rgba(232, 90, 19, 0.08) 0%, transparent 60%);
}

.map-card:hover {
  border-color: rgba(232, 90, 19, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.map-card:hover img[src*="map-bg"] {
  opacity: 0.25 !important;
}

[data-theme="light"] .map-card:hover img[src*="map-bg"] {
  opacity: 0.2 !important;
}

/* Admin Link */
.admin-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
  display: inline-block;
}

.admin-link:hover {
  color: var(--accent-orange);
  background: rgba(232, 90, 19, 0.08);
}

[data-theme="light"] .admin-link:hover {
  background: rgba(232, 90, 19, 0.06);
}

/* Admin Page Styles */
.admin-container {
  padding-top: 8rem;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.admin-stat-card h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.admin-stat-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.data-table {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: rgba(232, 90, 19, 0.08);
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:hover {
  background: rgba(232, 90, 19, 0.03);
}

[data-theme="light"] .data-table th {
  background: rgba(232, 90, 19, 0.06);
}

[data-theme="light"] .data-table tr:hover {
  background: rgba(232, 90, 19, 0.02);
}

.data-table td {
  color: var(--text-secondary);
}

.data-table .status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-new {
  background: rgba(232, 90, 19, 0.15);
  color: var(--accent-orange);
}

.status-processed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.btn-small {
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Login Form */
.login-box {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(232, 90, 19, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--icon-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: rgba(232, 90, 19, 0.15);
  color: var(--accent-orange);
  transform: translateY(-2px);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ============================================
   Product Page Components
   ============================================ */
.usecase-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 0.5rem;
}

.use-case-card.grid-full {
  grid-column: 1 / -1;
}

.use-case-header .use-case-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.use-case-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.use-case-item span {
  font-size: 0.9rem;
}

.product-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================
   Contact Form Components
   ============================================ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-item label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-item input,
.detail-item select,
.detail-item textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--icon-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.detail-item input:focus,
.detail-item select:focus,
.detail-item textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(232, 90, 19, 0.15);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .usecase-panel {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: var(--transition);
    border-left: 1px solid var(--border-color);
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .section-title {
    font-size: 2rem;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .usecase-panel {
    grid-template-columns: 1fr !important;
  }

  .contact-form-card {
    padding: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(232, 90, 19, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 90, 19, 0.5);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(232, 90, 19, 0.25);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 90, 19, 0.45);
}

/* ============================================
   QR Code Cards
   ============================================ */
.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.qr-card:hover {
  border-color: rgba(232, 90, 19, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.qr-image-wrapper {
  background: white;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.qr-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.qr-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .qr-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Lucide Icons
   ============================================ */
.lucide, [data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ============================================
   Skeleton Loading
   ============================================ */
@keyframes skeleton-pulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

.skeleton {
  background: var(--border-color);
  border-radius: 6px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-card);
}

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  width: 100%;
}

.skeleton-line:last-child {
  width: 60%;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }

.skeleton-block {
  height: 200px;
  margin-bottom: 1rem;
}

.skeleton-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skeleton-product-header {
  text-align: center;
  margin-bottom: 2rem;
}

.skeleton-product-header .skeleton {
  margin: 0 auto 1rem;
}

.loading-container {
  padding: 4rem 0;
}

.error-message {
  text-align: center;
  padding: 4rem 2rem;
}

.error-message .error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ef4444;
}

.error-message h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.error-message p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .skeleton-grid {
    grid-template-columns: 1fr;
  }
}
