/* WPS Office 官方网站 - 样式表 */
/* 专为必应SEO优化设计 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00b53c;
    --primary-dark: #009933;
    --secondary: #1a73e8;
    --dark: #202124;
    --gray: #5f6368;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: var(--dark);
    background: var(--white);
}

/* 导航栏 */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #1557b0;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #bbdefb 100%);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero p {
    font-size: 1.3em;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 区块 */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--light-gray);
}

.section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.section .subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
    font-size: 1.1em;
}

/* 特性卡片 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* 平台支持 */
.platforms {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.platform-item {
    text-align: center;
}

.platform-item .icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.platform-item h4 {
    color: var(--dark);
    font-size: 1.2em;
}

.platform-item p {
    color: var(--gray);
    font-size: 0.9em;
}

/* 表格 */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

.pricing-card .price span {
    font-size: 0.5em;
    color: var(--gray);
    font-weight: normal;
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--gray);
}

.pricing-card li::before {
    content: "✓ ";
    color: var(--primary);
    font-weight: bold;
}

/* 安全功能 */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.security-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.security-card .icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.security-card h3 {
    margin-bottom: 15px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item h3 {
    padding: 20px 25px;
    background: var(--light-gray);
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3::after {
    content: "+";
    font-size: 1.5em;
    color: var(--primary);
}

.faq-item p {
    padding: 0 25px 20px;
    color: var(--gray);
    display: none;
}

.faq-item.active p {
    display: block;
}

.faq-item.active h3::after {
    content: "−";
}

/* 教程卡片 */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tutorial-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.tutorial-card:hover {
    transform: translateY(-5px);
}

.tutorial-card .tutorial-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: var(--white);
}

.tutorial-card .tutorial-content {
    padding: 25px;
}

.tutorial-card h3 {
    margin-bottom: 10px;
}

.tutorial-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

/* 用户评价 */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.testimonial .quote {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1.1em;
}

.testimonial .author {
    font-weight: 600;
    color: var(--dark);
}

.testimonial .role {
    color: var(--primary);
    font-size: 0.9em;
}

/* 表单 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* 下载页面 */
.download-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #bbdefb 100%);
    padding: 100px 0;
}

.download-box {
    background: var(--white);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.download-box h2 {
    margin-bottom: 20px;
}

.download-box .version-info {
    color: var(--gray);
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* 页脚 */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #888;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    background: var(--light-gray);
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--gray);
}

/* 页面标题区 */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* 内容区块 */
.content-block {
    padding: 60px 0;
}

.content-block h2 {
    margin-bottom: 30px;
}

.content-block p {
    margin-bottom: 20px;
    color: var(--gray);
}

/* 列表样式 */
.list-styled {
    list-style: none;
}

.list-styled li {
    padding: 15px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.list-styled li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .section h2 {
        font-size: 1.8em;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-box {
        padding: 30px 20px;
    }
}

/* 跳转链接 */
.download-link {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
}

.download-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 181, 60, 0.4);
}

.download-link small {
    display: block;
    font-size: 0.7em;
    font-weight: normal;
    margin-top: 5px;
    opacity: 0.9;
}
