:root {
    --primary-red: #E93636;
    --primary-red-hover: #D62F2F;
    --wps-blue-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --wps-dark-blue: #1A237E; /* AI Section Background */
    --wps-dark-gradient: linear-gradient(135deg, #3B2667 0%, #BC78EC 100%);
    --wps-orange-gradient: linear-gradient(135deg, #FCCF31 0%, #F55555 100%);
    
    --text-main: #1F1F1F;
    --text-sub: #666666;
    --bg-white: #FFFFFF;
    --bg-gray: #F7F9FC;
    
    --radius-lg: 16px;
    --radius-pill: 50px;
    --shadow-card: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-float: 0 20px 40px rgba(0,0,0,0.1);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 按钮通用样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-red {
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 4px 12px rgba(233, 54, 54, 0.3);
}

.btn-red:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 54, 54, 0.4);
}

.btn-blue-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.8);
    color: #fff;
}

.btn-blue-outline:hover {
    background: rgba(255,255,255,0.1);
}

.btn-white {
    background: #fff;
    color: var(--text-main);
    border: 1px solid #eee;
}

.btn-white:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-sm {
    padding: 8px 24px;
    font-size: 0.9rem;
}

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

.btn-outline:hover {
    background: var(--primary-red);
    color: #fff;
}

/* 导航栏 - 极简风格 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo img {
    height: 32px;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

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

/* Hero 区域 */
.hero-section {
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
    background: var(--bg-white);
}

.hero-logo-large {
    width: 80px;
    margin: 0 auto 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-cta-btn {
    margin-bottom: 60px;
    padding: 14px 48px;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: #fff;
}

.hero-ui-preview {
    max-width: 1000px;
    height: 600px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow-float);
    overflow: hidden;
    border: 1px solid #eee;
    background-color: #f5f5f5;
}

.hero-ui-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* AI 版块 (深色) */
.ai-section {
    padding: 100px 0;
    background: #1e5cd8;
    background: linear-gradient(180deg, #1e5cd8 0%, #1448b3 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* AI 图片演示容器 */
.ai-showcase {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.ai-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.ai-btn-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* 智能文档版块 */
.smart-docs-section {
    padding: 100px 0;
    background: var(--bg-gray);
}

.docs-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.docs-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
}

.doc-icon-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.doc-icon-card:hover {
    transform: translateY(-5px);
}

.doc-icon-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.docs-preview {
    flex: 1.5;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* 设计版块 (暖色渐变) */
.design-section {
    padding: 100px 0;
    background: var(--wps-orange-gradient);
    color: #fff;
    text-align: center;
}

.design-carousel {
    margin-top: 60px;
    display: flex;
    gap: 30px;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 20px;
}

.design-card {
    min-width: 300px;
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 跨端版块 */
.cross-platform-section {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.features-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-box {
    background: var(--bg-gray);
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.feature-box:hover {
    background: #edf2f7;
    transform: scale(1.02);
}

.feature-icon-circle {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-red);
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
}

/* WPS 365 */
.wps-365-section {
    padding: 80px 0 120px;
    background: #fff;
    text-align: center;
}

.wps-365-banner {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f4f8;
    padding: 40px;
}

/* 全平台下载 (底部) */
.footer-download-section {
    padding: 80px 0 40px;
    background: #fff;
    text-align: center;
    border-top: 1px solid #eee;
}

.platform-icons-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.platform-icon {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.platform-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.download-btn-sm {
    padding: 6px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-sub);
    background: #fff;
    transition: var(--transition);
}

.download-btn-sm:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* 简易页脚 */
.simple-footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 0.8rem;
    border-top: 1px solid #f5f5f5;
}

/* ==========================================================================
   RESTORED STYLES FOR SUB-PAGES (Products, Solutions, News, Articles)
   ========================================================================== */

/* Page Header (二级页面通用头部) */
.page-header {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    margin-top: 70px; /* offset new navbar height */
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.header-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* 简单遮罩，保证文字可读性 */
    z-index: 1;
}

/* Products Page Styles */
.product-details {
    padding: 40px 0;
    background: var(--bg-white);
}

.product-block {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.product-block.bg-light {
    background-color: var(--bg-gray);
    border-bottom: none;
}

.product-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.product-flex.reverse {
    flex-direction: row-reverse;
}

.product-text {
    flex: 1;
}

.product-img {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: #fff;
}

.product-img img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.wps-blue { color: #4185f4; }
.wps-green { color: #34a853; }
.wps-orange { color: #fbbc05; }
.wps-red { color: var(--primary-red); }

.product-text h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.product-text h3 {
    font-size: 1.2rem;
    color: var(--text-sub);
    margin-bottom: 20px;
    font-weight: 500;
}

.product-text p {
    color: var(--text-sub);
    margin-bottom: 25px;
    line-height: 1.8;
}

.feature-list li {
    margin-bottom: 10px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: #34a853;
}

.cta-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--bg-gray);
}

.cta-section h2 {
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.cta-section p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-sub);
}

/* Solutions Page Styles */
.solutions-grid-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.industry-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid #eee;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
}

.card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.industry-card:hover .card-img img {
    transform: scale(1.05);
}

.industry-icon {
    position: absolute;
    bottom: -25px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-card);
    z-index: 2;
}

.card-content {
    padding: 35px 25px 25px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.2rem;
}

.card-content p {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 20px;
    height: 65px;
    overflow: hidden;
    line-height: 1.6;
}

.learn-more {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-section {
    padding: 80px 0;
    background: var(--bg-gray);
}

.contact-box {
    display: flex;
    box-shadow: var(--shadow-float);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
}

.contact-info {
    flex: 1;
    background: var(--text-main); /* Dark theme */
    color: #fff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 40px;
    opacity: 0.8;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form {
    flex: 1.5;
    padding: 50px;
    background: var(--bg-white);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg-gray);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-red);
    background: #fff;
}

/* News & Article Styles */
.news-section, .article-section {
    background-color: var(--bg-gray);
    padding: 80px 0;
}

.news-container {
    display: flex;
    gap: 40px;
}

.news-list {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid #eee;
}

.news-card:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-3px);
}

.news-img {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.news-meta .category {
    color: var(--primary-red);
    font-weight: 600;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.news-content p {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid #eee;
}

.widget h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-weight: 700;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags a {
    font-size: 0.85rem;
    color: var(--text-sub);
    background: var(--bg-gray);
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--transition);
}

.tags a:hover {
    background: var(--primary-red);
    color: #fff;
}

.recent-posts li {
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recent-posts a:hover {
    color: var(--primary-red);
}

.cta-widget {
    text-align: center;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF 100%);
    border: 1px solid #FFEDED;
}

.cta-widget p {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 15px;
}

/* Article Detail */
.article-content {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid #eee;
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.article-header .category {
    background: var(--primary-red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

.article-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.content-body h2 {
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-main);
    border-left: 4px solid var(--primary-red);
    padding-left: 15px;
}

.content-body h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-body p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
}

.cta-box {
    background: var(--bg-gray);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 60px;
}

/* 响应式 */
@media (max-width: 768px) {
    .docs-layout, .product-flex, .product-flex.reverse, .contact-box, .news-container, .news-card {
        flex-direction: column;
    }
    
    .features-grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .hero-title, .section-title, .header-content h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .news-img {
        height: 200px;
        flex: auto;
    }
    
    .article-content {
        padding: 20px;
    }
}
