/* 
   WPS Office Landing Page - Corporate Style 
   All CSS is localized. No external fonts or CDNs.
*/

:root {
    --primary-color: #E84138; /* WPS Red */
    --primary-hover: #C9332B;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #F7F9FC;
    --bg-white: #FFFFFF;
    --border-color: #EAEAEA;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --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: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-main);
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-size: 16px;
    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: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-nav-download:hover {
    background-color: var(--primary-hover);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #F0F4F8 0%, #FFFFFF 100%);
    padding: 80px 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1A1A1A;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(232, 65, 56, 0.4);
    transition: transform 0.2s, background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.version-info {
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Mockup Window */
.mockup-window {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.mockup-header {
    background: #F5F5F5;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-body {
    height: 300px;
    background: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-content {
    color: #CCC;
    font-size: 20px;
    font-weight: bold;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: #1A1A1A;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    padding: 30px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Enterprise Section */
.enterprise-section {
    padding: 80px 0;
    background-color: #1A2233; /* Corporate Dark Blue */
    color: white;
}

.enterprise-content {
    max-width: 600px;
}

.enterprise-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.enterprise-content p {
    font-size: 16px;
    color: #A0AABF;
    margin-bottom: 30px;
}

.enterprise-list {
    list-style: none;
}

.enterprise-list li {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Download Section */
.download-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.download-card {
    background: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.os-name {
    font-size: 22px;
    margin-bottom: 10px;
}

.os-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.btn-download {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-download:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
.site-footer {
    background-color: #FAFAFA;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #1A1A1A;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #999;
    font-size: 13px;
}

.seo-text {
    margin-top: 10px;
    font-size: 12px;
    color: #BBB;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px;
    }
    
    .main-nav {
        display: none; /* Can be expanded to hamburger menu in JS */
    }
}
