/* 变量及基础重置 */
:root {
    --wps-red: #D32029;
    --wps-red-hover: #b81b23;
    --wps-red-light: #fbe9ea;
    --text-main: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-main: #ffffff;
    --bg-light: #f7f8fa;
    --border-color: #ebebeb;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(211, 32, 41, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

a:hover {
    color: var(--wps-red);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.grid {
    display: grid;
    gap: 30px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--wps-red);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--wps-red-hover);
    color: #fff;
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--wps-red);
    color: var(--wps-red);
}

.btn-outline:hover {
    background-color: var(--wps-red);
    color: #fff;
}

.btn-sm {
    padding: 8px 24px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 20px;
}

/* 导航栏 */
.header {
    background-color: var(--bg-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 16px;
    font-weight: 500;
}

/* 首屏区域 */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fbe9ea 100%);
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-content .subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-features {
    margin-bottom: 40px;
}

.hero-features li {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.download-btn {
    display: flex;
    flex-direction: column;
    padding: 16px 32px;
    border-radius: 50px;
}

.download-btn .version-info {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
    font-weight: normal;
}

.other-versions {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: var(--wps-red);
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* 核心优势 */
.features {
    padding: 80px 0;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: var(--wps-red-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* 下载版本 */
.versions {
    padding: 80px 0;
}

.versions-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.version-card {
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.version-card:hover {
    border-color: var(--wps-red);
    box-shadow: var(--shadow);
}

.v-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.version-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.v-desc {
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 15px;
}

.v-detail {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.version-card .btn {
    width: 100%;
    padding: 10px 0;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* 使用心得 */
.reviews {
    padding: 80px 0;
}

.reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 50px;
}

.review-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #ffb400;
    font-size: 20px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 16px;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 30px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.r-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--wps-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.r-info {
    display: flex;
    flex-direction: column;
}

.r-name {
    font-weight: 600;
    font-size: 16px;
}

.r-title {
    color: var(--text-light);
    font-size: 12px;
}

/* 问答区 */
.faq {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--wps-red);
}

.faq-icon {
    font-size: 24px;
    font-style: normal;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* 足够高的高度 */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* 页脚 */
.footer {
    background-color: #2b2b2b;
    color: #b0b0b0;
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #b0b0b0;
}

.footer-col ul li a:hover {
    color: var(--wps-red);
}

.footer-bottom {
    background-color: #1f1f1f;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-features {
        display: inline-block;
        text-align: left;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
