/* 
   WPS Office Landing Page - Grand Corporate Style 
   All CSS is localized. No external fonts or CDNs.
*/

:root {
    --primary-color: #E84138; /* WPS Red */
    --primary-hover: #D32F2F;
    --secondary-color: #0F172A; /* Deep Navy */
    --text-main: #1E293B;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.btn-nav-download {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(232, 65, 56, 0.3);
}

.btn-nav-download:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(232, 65, 56, 0.4);
}

/* Hero Section (Grand Style) */
.hero-section {
    position: relative;
    background: var(--secondary-color);
    background-image: radial-gradient(circle at top right, #1E293B, #0F172A);
    padding: 100px 0 120px;
    overflow: hidden;
    color: white;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,65,56,0.15) 0%, rgba(15,23,42,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary-color);
    background: linear-gradient(120deg, #FF6B6B, #E84138);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: #94A3B8;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(232, 65, 56, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(232, 65, 56, 0.5);
}

.btn-secondary {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.version-info {
    font-size: 14px;
    color: #64748B;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg) translateY(10px);
    transition: transform 0.5s ease;
}

.hero-image:hover .hero-img {
    transform: perspective(1000px) rotateY(0deg) translateY(0);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: inline-block;
    background: var(--bg-light);
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

/* Enterprise Section */
.enterprise-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
    color: white;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%231e293b" fill-opacity="0.4"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.enterprise-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.enterprise-content {
    flex: 1;
    max-width: 600px;
}

.enterprise-content h2 {
    font-size: 40px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.enterprise-content p {
    font-size: 18px;
    color: #94A3B8;
    margin-bottom: 40px;
    line-height: 1.7;
}

.enterprise-list {
    list-style: none;
    margin-bottom: 40px;
}

.enterprise-list li {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.btn-outline-white {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid white;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: white;
    color: var(--secondary-color);
}

.enterprise-stats {
    flex: 1;
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    width: 220px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #94A3B8;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover h3 {
    color: var(--primary-color);
}

.faq-question h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.faq-icon {
    font-size: 24px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
}

.faq-item.active .faq-answer {
    margin-top: 16px;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.download-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.download-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.os-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.os-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.os-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-download {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-download:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(232, 65, 56, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
.site-footer {
    background-color: #0F172A;
    color: white;
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-desc {
    color: #94A3B8;
    font-size: 15px;
    line-height: 1.8;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 24px;
    color: white;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul a {
    color: #94A3B8;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748B;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .enterprise-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .enterprise-stats {
        justify-content: center;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 40px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .main-nav {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
