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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --accent: #8b5cf6;
  --cyan: #06b6d4;
  --title: #1e293b;
  --text: #475569;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  color: var(--title);
}

.nav-logo img { height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--title);
  border-radius: 2px;
  transition: var(--transition);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.btn-login:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 160px 0 120px;
  background: linear-gradient(135deg, #dce4f8 0%, #e8e0f8 50%, #d8eef8 100%);
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(99,102,241,.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--title);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Section Common ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--title);
  margin-bottom: 12px;
  letter-spacing: -.5px;
}

.section-header p {
  font-size: 17px;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Features ===== */
.features {
  background: var(--bg);
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
  transform: scaleX(0);
  transition: transform .3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.feature-icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card:nth-child(1) .feature-icon { background: #fef3c7; }
.feature-card:nth-child(2) .feature-icon { background: #eef2ff; }
.feature-card:nth-child(3) .feature-icon { background: #fce7f3; }
.feature-card:nth-child(4) .feature-icon { background: #ecfeff; }
.feature-card:nth-child(5) .feature-icon { background: #f0fdf4; }
.feature-card:nth-child(6) .feature-icon { background: #fef2f2; }

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

/* ===== Showcase ===== */
.showcase {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.showcase-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.decor-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
}

.shape-1 {
  width: 400px; height: 400px;
  background: var(--primary);
  top: -100px; left: -120px;
}

.shape-2 {
  width: 300px; height: 300px;
  background: var(--accent);
  bottom: -60px; right: -80px;
}

.shape-3 {
  width: 200px; height: 200px;
  background: var(--cyan);
  top: 50%; right: 10%;
  transform: translateY(-50%);
}

.decor-line {
  position: absolute;
  border-radius: 2px;
  opacity: .05;
}

.line-1 {
  width: 2px; height: 60%;
  background: var(--primary);
  top: 20%; left: 15%;
}

.line-2 {
  width: 2px; height: 50%;
  background: var(--accent);
  top: 25%; right: 18%;
}

.showcase .container {
  position: relative;
  z-index: 1;
}

.showcase-frame {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
  border: 1px solid var(--border);
  background: #fff;
  transition: var(--transition);
}

.showcase-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 72px rgba(0,0,0,.15), 0 8px 24px rgba(0,0,0,.08);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.browser-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red    { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green  { background: #10b981; }

.browser-url {
  margin-left: 12px;
  font-size: 13px;
  color: var(--text-light);
  background: #fff;
  padding: 5px 16px;
  border-radius: 6px;
  flex: 1;
  max-width: 320px;
  border: 1px solid var(--border);
}

.showcase-img {
  overflow: hidden;
}

.showcase-img img {
  width: 100%;
  display: block;
  border-radius: 0 0 15px 15px;
}

/* ===== Stats ===== */
.stats {
  background: var(--bg-soft);
}

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

.stat-item {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.cta .container { position: relative; z-index: 1; }

.cta h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.cta p {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  margin-bottom: 40px;
}

.cta .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: var(--title);
  color: rgba(255,255,255,.7);
  padding: 24px 0;
  font-size: 14px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}

.footer a:hover { color: #fff; }

/* ===== Page Header (About & Contact) ===== */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f5ff 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--title);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 17px;
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== About Page ===== */
.about-intro {
  padding: 80px 0;
}

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

.about-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--title);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-illustration {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-light), #f5f3ff);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  position: relative;
  overflow: hidden;
}

.about-illustration::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(99,102,241,.08);
  top: -40px; right: -40px;
}

.about-advantages {
  padding: 80px 0;
  background: var(--bg-soft);
}

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

.advantage-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.advantage-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.advantage-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.about-cta {
  padding: 0 0 100px;
}

.about-cta .cta-card {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  color: #fff;
}

.about-cta .cta-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-cta .cta-card p {
  font-size: 16px;
  opacity: .9;
  margin-bottom: 28px;
}

/* ===== Contact Page ===== */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: flex;
  justify-content: center;
}

.contact-grid .contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 900px;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-form h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  color: var(--title);
  background: var(--bg-soft);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.info-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.info-card .info-icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 4px;
}

.info-card p {
  font-size: 14px;
  color: var(--text);
}

.qr-wrapper {
  margin-top: 12px;
}

.qr-code {
  width: 160px;
  height: 160px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 80px;
  right: 24px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  z-index: 2000;
  animation: slideIn .3s ease;
  box-shadow: var(--shadow-lg);
}

.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro .container { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid .contact-info { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .hero { padding: 120px 0 80px; }
  .hero h1 { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-header h2 { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .showcase-frame { border-radius: 10px; }
  .browser-bar { padding: 10px 14px; }
  .browser-url { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-number { font-size: 36px; }
  .cta h2 { font-size: 26px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 30px; }
  .contact-grid .contact-info { grid-template-columns: 1fr; }
  .footer .container { flex-direction: column; text-align: center; }
}
