/* ============================================================
   wps - 独立样式表
   文件: css/style.css
   说明: 包含全局变量、布局、组件及响应式
   ============================================================ */

/* ===== 基础重置 & 字体 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease, background 0.25s ease;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== 颜色变量 (WPS 官方红) ===== */
:root {
    --wps-red: #e74c24;
    --wps-red-dark: #c0392b;
    --wps-red-light: #fde8e5;
    --wps-red-gradient: linear-gradient(135deg, #e74c24 0%, #c0392b 100%);
    --wps-dark: #1a1a2e;
    --wps-gray: #f5f6f8;
    --wps-gray-border: #e8eaed;
    --wps-text: #222222;
    --wps-text-light: #666666;
    --wps-white: #ffffff;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 顶部导航 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(231, 76, 36, 0.10);
    height: 68px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: var(--wps-dark);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.nav-logo .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--wps-red-gradient);
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0;
}

.nav-logo .logo-text {
    background: var(--wps-red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    font-weight: 500;
    color: var(--wps-text);
}

.nav-links a {
    position: relative;
    padding: 4px 0;
    color: #444;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--wps-red-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--wps-red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links .nav-download-btn {
    display: inline-block;
    padding: 8px 24px;
    background: var(--wps-red-gradient);
    color: #fff !important;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(231, 76, 36, 0.30);
}

.nav-links .nav-download-btn::after {
    display: none;
}

.nav-links .nav-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(231, 76, 36, 0.40);
    color: #fff !important;
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--wps-dark);
    border-radius: 4px;
    transition: 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero 区域 ===== */
.hero {
    padding: 140px 0 90px;
    background: linear-gradient(175deg, #fef6f4 0%, #ffffff 65%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(231, 76, 36, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--wps-dark);
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.hero-content h1 .highlight {
    background: var(--wps-red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 20px;
    color: var(--wps-text-light);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    background: var(--wps-red-gradient);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 24px rgba(231, 76, 36, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(231, 76, 36, 0.45);
    color: #fff !important;
}

.btn-primary .arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 34px;
    background: transparent;
    color: var(--wps-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--wps-gray-border);
    transition: border-color 0.3s, background 0.3s, transform 0.25s;
}

.btn-secondary:hover {
    border-color: var(--wps-red);
    background: rgba(231, 76, 36, 0.04);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--wps-gray-border);
}

.hero-stats .stat-item .number {
    font-size: 28px;
    font-weight: 800;
    color: var(--wps-dark);
}

.hero-stats .stat-item .label {
    font-size: 14px;
    color: var(--wps-text-light);
    margin-top: 2px;
}

/* Hero 右侧视觉 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual .visual-box {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, #ffffff, #f8f9fc);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(231, 76, 36, 0.06);
    position: relative;
    overflow: hidden;
}

.visual-box .visual-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.visual-box .visual-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--wps-dark);
}

.visual-box .visual-desc {
    font-size: 15px;
    color: var(--wps-text-light);
    margin-top: 6px;
}

.visual-box .visual-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.visual-box .visual-tags span {
    padding: 4px 16px;
    background: var(--wps-red-light);
    color: var(--wps-red);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.visual-box .deco-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(231, 76, 36, 0.06);
}
.visual-box .deco-dot.d1 {
    width: 120px;
    height: 120px;
    top: -30px;
    right: -30px;
}
.visual-box .deco-dot.d2 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: -20px;
}

/* ===== 产品特色 Section ===== */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .tag {
    display: inline-block;
    padding: 4px 18px;
    background: var(--wps-red-light);
    color: var(--wps-red);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--wps-dark);
    letter-spacing: -0.3px;
}

.section-header p {
    font-size: 18px;
    color: var(--wps-text-light);
    max-width: 600px;
    margin: 12px auto 0;
}

/* 产品卡片网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--wps-white);
    border-radius: var(--radius);
    padding: 36px 30px 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--wps-gray-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(231, 76, 36, 0.15);
}

.product-card .icon {
    font-size: 44px;
    margin-bottom: 16px;
    display: block;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--wps-dark);
    margin-bottom: 8px;
}

.product-card p {
    font-size: 15px;
    color: var(--wps-text-light);
    line-height: 1.7;
}

.product-card .learn-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--wps-red);
    font-weight: 600;
    font-size: 14px;
}

.product-card .learn-more:hover {
    color: var(--wps-red-dark);
}

/* ===== 功能特性 Section ===== */
.section-features {
    background: var(--wps-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 30px;
    background: var(--wps-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.feature-item:hover {
    border-color: rgba(231, 76, 36, 0.12);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-item .fi-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wps-red-light);
    border-radius: 12px;
    color: var(--wps-red);
}

.feature-item .fi-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--wps-dark);
    margin-bottom: 4px;
}

.feature-item .fi-content p {
    font-size: 14px;
    color: var(--wps-text-light);
    line-height: 1.6;
}

/* ===== 下载区域 (醒目的) ===== */
.section-download {
    background: var(--wps-red-gradient);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-download::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    border-radius: 50%;
}

.section-download .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.section-download .tag-white {
    display: inline-block;
    padding: 4px 22px;
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}

.section-download h2 {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}

.section-download .sub {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.btn-download-main {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 56px;
    background: #fff;
    color: var(--wps-red) !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.btn-download-main:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    color: var(--wps-red) !important;
}

.btn-download-main .dl-icon {
    font-size: 26px;
}

.btn-download-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    background: transparent;
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.40);
    transition: background 0.3s, border-color 0.3s, transform 0.25s;
}

.btn-download-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.70);
    transform: translateY(-3px);
    color: #fff !important;
}

.download-platforms {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.download-platforms span {
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-platforms span .os-icon {
    font-size: 18px;
}

/* ===== 支持 Section ===== */
.section-support .support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.support-card {
    padding: 30px 28px;
    background: var(--wps-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--wps-gray-border);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.support-card .sc-icon {
    font-size: 34px;
    margin-bottom: 12px;
    display: block;
}

.support-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--wps-dark);
}

.support-card p {
    font-size: 14px;
    color: var(--wps-text-light);
    margin-top: 4px;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--wps-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 50px 0 28px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand .fb-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .fb-name .fb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--wps-red-gradient);
    border-radius: 6px;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 6px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-links .fl-col h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-links .fl-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    padding: 3px 0;
    transition: color 0.25s;
}

.footer-links .fl-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.40);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.50);
    transition: color 0.25s;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content .subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual .visual-box {
        max-width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-download h2 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 62px;
    }
    .nav-links {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(18px);
        flex-direction: column;
        padding: 24px 30px 32px;
        gap: 16px;
        font-size: 16px;
        border-bottom: 1px solid var(--wps-gray-border);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
        align-items: stretch;
        text-align: center;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }
    .nav-links .nav-download-btn {
        text-align: center;
        margin-top: 4px;
    }
    .nav-toggle {
        display: flex;
    }
    .hero {
        padding: 110px 0 60px;
        min-height: auto;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content .subtitle {
        font-size: 17px;
    }
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-stats .stat-item .number {
        font-size: 22px;
    }
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .support-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .section-download {
        padding: 70px 0;
    }
    .section-download h2 {
        font-size: 28px;
    }
    .btn-download-main {
        padding: 16px 36px;
        font-size: 17px;
    }
    .footer-top {
        flex-direction: column;
        gap: 24px;
    }
    .footer-links {
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .visual-box .visual-tags span {
        font-size: 12px;
        padding: 3px 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    .hero-content h1 {
        font-size: 26px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .download-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .download-buttons .btn-download-main,
    .download-buttons .btn-download-outline {
        width: 100%;
        justify-content: center;
    }
    .visual-box {
        padding: 20px !important;
    }
    .visual-box .visual-title {
        font-size: 18px;
    }
    .nav-logo {
        font-size: 18px;
    }
    .nav-logo .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}