:root {
    /* WPS Brand Colors */
    --wps-red: #FF4222;
    --wps-red-light: #FF6B4E;
    --wps-red-dark: #D32F1F;
    --wps-orange: #FF8F1F;
    --wps-writer: #2B78F5;
    --wps-spreadsheet: #107C41;
    --wps-presentation: #D83B01;
    --wps-pdf: #E02020;
    --wps-ai: #8A2BE2; /* Purple for AI */
    
    /* Neutral Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F0F2F5;
    --text-primary: #1D1D1F;
    --text-secondary: #424245;
    --text-tertiary: #86868B;
    --border-color: #E5E5E7;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px-40px rgba(0,0,0,0.12);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-primary: #0A0A0A;
    --bg-secondary: #1C1C1E;
    --bg-tertiary: #2C2C2E;
    --text-primary: #F5F5F7;
    --text-secondary: #A1A1A6;
    --text-tertiary: #6E6E73;
    --border-color: #333336;
    --glass-bg: rgba(28, 28, 30, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-ai {
    0% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(138, 43, 226, 0); }
    100% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 64px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--wps-red);
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--wps-red);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--wps-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 66, 34, 0.3);
}

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

.btn-outline:hover {
    background: var(--bg-tertiary);
}

/* Hero Section */
.hero {
    padding: 160px 5% 100px;
    display: flex;
    align-items: center;
    gap: 60px;
    background: radial-gradient(circle at 80% 20%, rgba(255, 66, 34, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(43, 120, 245, 0.05) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 66, 34, 0.1);
    color: var(--wps-red);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    position: relative;
}

.main-mockup {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

/* Stats Section */
.stats-section {
    padding: 80px 5%;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--wps-red);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 16px;
}

/* AI Section */
.ai-section {
    padding: 120px 5%;
    display: flex;
    align-items: center;
    gap: 80px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #fef4f2 100%);
}

/* Enhanced Visuals (CSS Art) */
.main-mockup {
    width: 100%;
    height: 400px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.mockup-header {
    height: 32px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
}

.mockup-sidebar {
    background: var(--bg-tertiary);
    border-radius: 8px;
    height: 300px;
    padding: 16px;
}

.mockup-line {
    height: 8px;
    background: #e5e5e7;
    border-radius: 4px;
    margin-bottom: 12px;
}

.mockup-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mockup-card {
    height: 120px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px dashed #ccc;
}

/* AI Visual FX */
.ai-orb {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--wps-ai) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ai 4s ease-in-out infinite;
}

.ai-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.05) 0%, transparent 60%);
}

/* Template Previews */
.template-preview-card {
    width: 100%;
    height: 100%;
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-title { height: 16px; background: #eee; width: 60%; border-radius: 4px; }
.preview-text { height: 8px; background: #f5f5f7; width: 100%; border-radius: 2px; }
.preview-image { height: 140px; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 8px; margin: 10px 0; }

@keyframes pulse-ai {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

/* App Suite Grid */
.ai-section {
    padding: 120px 5%;
    display: flex;
    align-items: center;
    gap: 80px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #fef4f2 100%);
}

.ai-visual {
    flex: 1;
    position: relative;
}

.ai-chat-preview {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.ai-content {
    flex: 1;
}

.ai-content h2 {
    font-size: 42px;
    margin-bottom: 24px;
}

.ai-features {
    margin-top: 40px;
}

.ai-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.ai-icon {
    width: 48px;
    height: 48px;
    background: rgba(138, 43, 226, 0.1);
    color: var(--wps-ai);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* App Suite Grid */
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 5% 120px;
}

.app-card {
    padding: 48px 32px;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.app-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.app-card:hover::after {
    transform: scaleX(1);
}

.app-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.app-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.app-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Collaboration Section */
.collab-section {
    padding: 100px 5%;
    background: var(--text-primary);
    color: white;
    text-align: center;
}

.collab-visual {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: -20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -15px;
    background: #ddd;
}

/* Template Gallery */
.template-section {
    padding: 120px 5%;
}

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

.template-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.template-img {
    width: 100%;
    height: 300px;
    background: var(--bg-tertiary);
    object-fit: cover;
    transition: var(--transition);
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.template-item:hover .template-overlay {
    opacity: 1;
}

/* Footer */
footer {
    background: var(--bg-tertiary);
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 16px;
}

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

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--wps-red);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    color: var(--text-tertiary);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 42px; }
    .hero { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-btns { justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-section { flex-direction: column-reverse; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 32px; }
    .stats-grid { grid-template-columns: 1fr; }
    .template-grid { grid-template-columns: 1fr; }
}
