*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #4C36F3;
    --primary-dark: #3A24D9;
    --primary-light: #6B5BF5;
    --bg-dark: #0D0B21;
    --bg-section: #F7F8FC;
    --text-primary: #1A1A2E;
    --text-secondary: #6B7280;
    --white: #FFFFFF;
    --gradient-btn: linear-gradient(135deg, #3B28CC, #5B4AE8);
    --shadow-card: 0 4px 24px rgba(76, 54, 243, 0.08);
    --shadow-hover: 0 8px 40px rgba(76, 54, 243, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary); line-height: 1.6;
    overflow-x: hidden; background: var(--white);
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* HEADER */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: #fff; backdrop-filter: blur(20px);
    border-bottom: 1px solid #EAEDF3; transition: all 0.3s;
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.header-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 4px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-item {
    position: relative; padding: 8px 16px;
    color: #333; font-size: 15px; font-weight: 500;
    cursor: pointer; border-radius: 8px; transition: all 0.2s;
}
.nav-item:hover { color: var(--primary); background: #F5F3FF; }
.nav-item .dropdown-arrow {
    display: inline-block; margin-left: 4px; font-size: 10px;
    transition: transform 0.2s;
}
.nav-item:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: var(--white); border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
    padding: 12px 0; min-width: 220px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all 0.25s ease;
}
.nav-item:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
    display: block; padding: 10px 20px; color: var(--text-primary);
    font-size: 14px; transition: all 0.15s;
}
.dropdown-menu a:hover { background: var(--bg-section); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-login {
    padding: 8px 20px; color: #333; font-size: 14px;
    font-weight: 500; border-radius: 8px; transition: all 0.2s;
}
.btn-login:hover { color: var(--primary); background: #F5F3FF; }
.btn-register {
    padding: 8px 24px; background: var(--gradient-btn); color: #fff;
    font-size: 14px; font-weight: 600; border-radius: 8px;
    border: none; cursor: pointer; transition: all 0.2s; display: inline-block;
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(76,54,243,0.4); }
.mobile-toggle {
    display: none; background: none; border: none;
    color: #333; font-size: 24px; cursor: pointer; padding: 8px;
}

/* PAGE HERO BANNER */
.page-hero {
    padding: 140px 32px 80px;
    text-align: center; position: relative;
    background: linear-gradient(180deg, #F0EEFF 0%, #F7F5FF 40%, #fff 100%);
}
.page-hero h1 {
    font-size: 42px; font-weight: 900; color: #1a1a2e;
    line-height: 1.3; margin-bottom: 20px;
}
.page-hero h1 .highlight {
    background: linear-gradient(135deg, #3B28CC, #6C5CE7);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero p {
    font-size: 17px; color: var(--text-secondary);
    max-width: 640px; margin: 0 auto 32px; line-height: 1.8;
}
.page-hero .btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 40px; background: var(--gradient-btn); color: #fff;
    font-size: 16px; font-weight: 600; border-radius: 50px;
    border: none; cursor: pointer; transition: all 0.3s;
}
.page-hero .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,40,204,0.4); }

/* SECTION */
.section { padding: 80px 32px; }
.section-alt { background: var(--bg-section); }
.container { max-width: 1100px; margin: 0 auto; }
.section-header {
    text-align: center; max-width: 700px; margin: 0 auto 56px;
}
.section-header h2 {
    font-size: 32px; font-weight: 800; margin-bottom: 14px;
    color: var(--text-primary); line-height: 1.3;
}
.section-header p {
    font-size: 16px; color: var(--text-secondary); line-height: 1.8;
}

/* FEATURE GRID */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 36px; border: 1px solid #E5E7EB;
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
}
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* CONTENT BLOCK (text + visual side by side) */
.content-block {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center; margin-bottom: 64px;
}
.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }
.content-block h3 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.content-block p {
    font-size: 15px; color: var(--text-secondary); line-height: 1.8;
    margin-bottom: 20px;
}
.content-visual {
    background: linear-gradient(135deg, #F0EEFF, #E8E4FF);
    border-radius: var(--radius-lg); min-height: 280px;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, #0D0B21, #1a1145, #2d1b69);
    padding: 80px 32px; text-align: center;
    position: relative; overflow: hidden;
}
.cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(76,54,243,0.2), transparent 70%);
}
.cta-content { position: relative; z-index: 1; }
.cta h2 { font-size: 36px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.cta p { font-size: 17px; color: rgba(255,255,255,0.6); margin-bottom: 32px; }
.cta .btn-primary {
    display: inline-flex; padding: 14px 40px;
    background: var(--gradient-btn); color: #fff;
    font-size: 16px; font-weight: 600; border-radius: 50px;
    border: none; cursor: pointer; transition: all 0.3s;
}
.cta .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,40,204,0.5); }

/* FOOTER */
.footer {
    background: #080618; color: rgba(255,255,255,0.6);
    padding: 80px 32px 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
    display: grid; grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 48px; margin-bottom: 60px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { height: 34px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.footer-col a {
    display: block; padding: 5px 0; font-size: 14px;
    color: rgba(255,255,255,0.5); transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 32px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* PRICING TABLE */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.pricing-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 36px; border: 1px solid #E5E7EB; text-align: center;
    transition: all 0.3s; position: relative;
}
.pricing-card.popular {
    border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary);
}
.pricing-card.popular::after {
    content: '最受欢迎'; position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%); background: var(--gradient-btn);
    color: #fff; font-size: 12px; font-weight: 600;
    padding: 4px 16px; border-radius: 20px;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pricing-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pricing-price {
    font-size: 42px; font-weight: 900; color: var(--primary);
    margin: 16px 0;
}
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-secondary); }
.pricing-features { text-align: left; margin: 24px 0; }
.pricing-features li {
    padding: 8px 0; font-size: 14px; color: var(--text-secondary);
    border-bottom: 1px solid #f5f5f5;
    display: flex; align-items: center; gap: 8px;
}
.pricing-features li::before {
    content: '✓'; color: #10B981; font-weight: 700;
}
.pricing-card .btn-primary {
    display: inline-block; width: 100%; padding: 12px;
    background: var(--gradient-btn); color: #fff;
    font-size: 15px; font-weight: 600; border-radius: 50px;
    border: none; cursor: pointer; transition: all 0.3s; text-align: center;
}
.pricing-card .btn-outline {
    display: inline-block; width: 100%; padding: 12px;
    background: #fff; color: var(--primary);
    border: 2px solid var(--primary);
    font-size: 15px; font-weight: 600; border-radius: 50px;
    cursor: pointer; transition: all 0.3s; text-align: center;
}
.pricing-card .btn-outline:hover { background: #F5F3FF; }

/* BLOG LIST */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.blog-card {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid #E5E7EB; overflow: hidden;
    transition: all 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-thumb {
    height: 180px; background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
}
.blog-body { padding: 24px; }
.blog-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.blog-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.blog-meta { font-size: 12px; color: #aaa; margin-top: 12px; }

/* DOWNLOAD */
.download-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px; max-width: 800px; margin: 0 auto;
}
.download-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 40px 32px; border: 1px solid #E5E7EB;
    text-align: center; transition: all 0.3s;
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.download-card .dl-icon { font-size: 48px; margin-bottom: 16px; }
.download-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.download-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.download-card .btn-primary {
    display: inline-block; padding: 10px 32px;
    background: var(--gradient-btn); color: #fff;
    font-size: 14px; font-weight: 600; border-radius: 50px;
    border: none; cursor: pointer; transition: all 0.3s;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .content-block { grid-template-columns: 1fr; }
    .content-block.reverse { direction: ltr; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-toggle { display: block; }
    .page-hero h1 { font-size: 28px; }
    .page-hero { padding: 120px 20px 60px; }
    .section { padding: 50px 20px; }
    .section-header h2 { font-size: 24px; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .feature-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
}
