/* ===== CSS Variables ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0ea5e9;
  --accent: #10b981;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --text-inverse: #ffffff;
  --border: #e2e8f0;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ===== Header / Nav ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: all var(--transition);
}
.header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); }
.logo-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 18px;
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 500;
  color: var(--text); font-size: 15px; transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--primary-light); color: var(--primary); }
.nav-cta { background: var(--primary) !important; color: white !important; }
.nav-cta:hover { background: var(--primary-dark) !important; color: white !important; }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); transition: all var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero Section ===== */
.hero {
  position: relative; padding: 160px 0 100px; text-align: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(37,99,235,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(14,165,233,0.08) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-2%, -2%); } }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: white; border-radius: 50px;
  font-size: 13px; font-weight: 500; color: var(--primary);
  box-shadow: var(--shadow-md); margin-bottom: 24px;
}
.badge-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.2;
  margin-bottom: 20px; background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: clamp(16px, 2vw, 18px); color: var(--text-light); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md); font-weight: 600; font-size: 15px;
  transition: all var(--transition); cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: white; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); color: var(--primary); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

/* ===== Hero Stats ===== */
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 6px; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-inverse); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block; padding: 6px 14px; background: var(--primary-light); color: var(--primary);
  border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.section-dark .section-label { background: rgba(37,99,235,0.2); color: #60a5fa; }
.section-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; margin-bottom: 14px; line-height: 1.3; }
.section-dark .section-title { color: white; }
.section-desc { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-dark .section-desc { color: #94a3b8; }

/* ===== Features Grid ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
  background: white; padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--primary); }
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  font-size: 28px;
}
.feature-icon.blue { background: #dbeafe; color: #2563eb; }
.feature-icon.green { background: #dcfce7; color: #16a34a; }
.feature-icon.orange { background: #ffedd5; color: #ea580c; }
.feature-icon.purple { background: #ede9fe; color: #7c3aed; }
.feature-icon.pink { background: #fce7f3; color: #db2777; }
.feature-icon.cyan { background: #cffafe; color: #0891b2; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* ===== Showcase ===== */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }
.showcase-text h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 16px; }
.showcase-text p { color: var(--text-light); margin-bottom: 24px; }
.showcase-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-weight: 500; color: var(--text);
}
.showcase-list li::before {
  content: '✓'; width: 22px; height: 22px; border-radius: 50%;
  background: var(--success); color: white; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.showcase-image {
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0fdf4 100%);
  border-radius: var(--radius-xl); padding: 40px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.showcase-image::before {
  content: ''; position: absolute; inset: 20px; border-radius: var(--radius-lg);
  background: white; box-shadow: var(--shadow-lg);
}
.showcase-image::after {
  content: ''; position: absolute; inset: 35px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.mock-chart {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px;
}
.mock-bar {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

/* ===== Tabs ===== */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 24px; border-radius: 50px; font-weight: 500; font-size: 14px;
  color: var(--text-light); background: transparent; border: 1px solid var(--border);
  transition: all var(--transition);
}
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Cards (for download/about) ===== */
.card {
  background: white; border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border); transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }

/* ===== Pricing / Plan ===== */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.plan {
  background: white; border: 2px solid var(--border); border-radius: var(--radius-xl);
  padding: 40px 32px; text-align: center; transition: all var(--transition);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.plan.featured { border-color: var(--primary); position: relative; }
.plan.featured::before {
  content: '推荐'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 600;
}
.plan h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.plan-desc { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.plan-price { font-size: 44px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.plan-price .currency { font-size: 20px; font-weight: 600; color: var(--text-light); }
.plan-price .suffix { font-size: 14px; font-weight: 500; color: var(--text-light); }
.plan-features { text-align: left; margin: 24px 0; }
.plan-features li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '✓'; color: var(--success); font-weight: 700;
}
.plan .btn { width: 100%; justify-content: center; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl); padding: 60px; text-align: center; color: white;
}
.cta-section h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 12px; }
.cta-section p { opacity: 0.9; margin-bottom: 28px; }
.cta-section .btn-primary { background: white; color: var(--primary); }
.cta-section .btn-primary:hover { background: var(--primary-light); color: var(--primary-dark); }

/* ===== Footer ===== */
.footer { background: var(--bg-dark); color: #94a3b8; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; max-width: 320px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-size: 18px;
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-col h4 { color: white; font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #94a3b8; font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px;
}
.footer-bottom .copyright { opacity: 0.8; }
.footer-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom .links a { color: #94a3b8; }
.footer-bottom .links a:hover { color: white; }

/* ===== Reveal Animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Page Banner (sub-pages) ===== */
.page-banner {
  padding: 160px 0 80px; background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  text-align: center; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 200%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 60%);
}
.page-banner h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; position: relative; }
.page-banner p { color: var(--text-light); font-size: 16px; max-width: 600px; margin: 0 auto; position: relative; }

/* ===== Download Page ===== */
.download-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.download-card {
  background: white; border-radius: var(--radius-lg); padding: 36px;
  border: 1px solid var(--border); transition: all var(--transition);
  text-align: center;
}
.download-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); border-color: var(--primary); }
.download-icon {
  width: 72px; height: 72px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white; font-size: 32px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.download-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.download-card .version { color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.download-card .size { color: var(--text-light); font-size: 13px; margin-bottom: 20px; }
.download-card .btn { width: 100%; justify-content: center; }

/* ===== About Page ===== */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 120px 0; }
.about-hero h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 20px; line-height: 1.3; }
.about-hero p { color: var(--text-light); margin-bottom: 16px; font-size: 16px; line-height: 1.8; }
.about-image {
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0fdf4 100%);
  border-radius: var(--radius-xl); aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 120px;
}
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.team-card { text-align: center; }
.team-avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0fdf4 100%);
  display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.team-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.team-card .role { color: var(--text-light); font-size: 14px; }

/* ===== Contact Form ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; border-radius: var(--radius-xl); padding: 40px; }
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .icon { font-size: 20px; flex-shrink: 0; }
.contact-item .label { font-size: 13px; opacity: 0.8; margin-bottom: 2px; }
.contact-item .value { font-weight: 500; font-size: 16px; }
.contact-form { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: inherit; font-size: 14px; transition: all var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .showcase, .about-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .showcase.reverse { direction: ltr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: white; flex-direction: column; padding: 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav-links.active { display: flex; }
  .nav-links a { width: 100%; padding: 14px; }
  .menu-toggle { display: flex; }
  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 28px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-section { padding: 40px 24px; }
  .page-banner { padding: 130px 0 60px; }
}
@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero-stats { flex-direction: column; gap: 20px; }
}
