/* WPS Office Original Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --wps-red: #ea3447;
    --wps-red-hover: #d12f40;
    --wps-dark: #1e1e1e;
    --wps-gray: #FFF5F0; /* Warm gray/carrot tint */
    --wps-bg-carrot: #FFF0E5; /* Warm carrot background */
    --wps-text-main: #333;
    --wps-text-light: #666;
    --wps-blue: #2b7de2; /* Writer */
    --wps-green: #21a45d; /* Spreadsheet */
    --wps-orange: #fd8e25; /* Presentation */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--wps-text-main);
    background: var(--wps-bg-carrot);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 72px;
    background: var(--wps-bg-carrot);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(234, 52, 71, 0.05);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--wps-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img { height: 32px; }

.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 500;
    font-size: 15px;
}

.nav-link:hover { color: var(--wps-red); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--wps-text-main);
}

.btn-outline:hover {
    border-color: var(--wps-red);
    color: var(--wps-red);
}

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

.btn-primary:hover {
    background: var(--wps-red-hover);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.hero-content {
    flex: 1;
    padding-right: 60px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-desc {
    font-size: 20px;
    color: var(--wps-text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-img {
    flex: 1;
    text-align: right;
}

.hero-img img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Features */
.features-section {
    background: var(--wps-gray);
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--wps-text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* AI Section */
.ai-section {
    padding: 100px 20px;
    background: #000;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ai-badge {
    background: linear-gradient(90deg, #ff00cc, #3333ff);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

/* Templates Section */
.templates-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.template-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.template-card:hover {
    transform: scale(1.02);
}

.template-img {
    height: 200px;
    background: #eee;
    background-size: cover;
    background-position: center;
}

.template-info {
    padding: 20px;
}

.tag {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
}

/* Download Page */
.download-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--wps-bg-carrot) 0%, #FFF5F0 100%);
}

.platform-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.platform-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 12px;
    width: 160px;
    cursor: pointer;
    transition: all 0.2s;
}

.platform-card:hover, .platform-card.active {
    border-color: var(--wps-red);
    box-shadow: 0 4px 12px rgba(234, 52, 71, 0.1);
}

.platform-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--wps-text-main);
}

/* Creative Layouts */

/* Overlapping Cards - Collaboration */
.collab-section {
    padding: 120px 20px;
    background: var(--wps-bg-carrot);
    overflow: hidden;
}

.collab-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.collab-visual {
    flex: 1;
    position: relative;
    height: 400px;
}

.collab-card {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    padding: 20px;
    width: 280px;
    transition: all 0.5s ease;
}

.card-1 {
    top: 0;
    left: 0;
    z-index: 3;
    transform: rotate(-5deg);
}

.card-2 {
    top: 60px;
    left: 120px;
    z-index: 2;
    transform: rotate(3deg);
    background: #f8f9fa;
}

.card-3 {
    top: 150px;
    left: 40px;
    z-index: 1;
    transform: rotate(-2deg);
    opacity: 0.8;
}

.collab-visual:hover .card-1 { transform: rotate(0deg) translateY(-20px); }
.collab-visual:hover .card-2 { transform: rotate(0deg) translateX(20px); }
.collab-visual:hover .card-3 { transform: rotate(0deg) translateY(20px); }

/* Floating Elements - Cloud Sync */
.cloud-section {
    padding: 120px 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
    text-align: center;
    position: relative;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(43, 125, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--wps-blue);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Glassmorphism - Security */
.security-section {
    padding: 100px 20px;
    background: url('https://static.wps.cn/assets/img/2019/home/bg_security.jpg') center/cover no-repeat fixed;
    color: #fff;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* AI Magic Hover */
.magic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.magic-card {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #333;
}

.magic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.magic-card:hover::before { opacity: 0.1; }
.magic-card:hover { border-color: #555; transform: scale(1.02); transition: 0.3s; }

/* Timeline Section */
.timeline-section {
    padding: 100px 20px;
    background: var(--wps-bg-carrot);
    overflow-x: auto;
}

.timeline-container {
    display: flex;
    gap: 0;
    width: max-content;
    padding: 40px 0;
    margin: 0 auto;
}

.timeline-item {
    width: 200px;
    position: relative;
    text-align: center;
    padding-top: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #eee;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--wps-red);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #eee;
}

.timeline-year {
    font-size: 24px;
    font-weight: 800;
    color: var(--wps-red);
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--wps-text-light);
    padding: 0 10px;
}

/* Compatibility Section */
.compat-section {
    padding: 100px 20px;
    background: var(--wps-gray);
    text-align: center;
    perspective: 1000px;
}

.file-stack {
    position: relative;
    width: 200px;
    height: 260px;
    margin: 60px auto;
    transform-style: preserve-3d;
    cursor: pointer;
}

.file-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 1px solid #eee;
    transition: all 0.5s ease;
}

.file-1 { transform: translateZ(0px) translateY(0px); z-index: 4; }
.file-2 { transform: translateZ(-20px) translateY(-10px) translateX(10px); z-index: 3; background: #fafafa; }
.file-3 { transform: translateZ(-40px) translateY(-20px) translateX(20px); z-index: 2; background: #f5f5f5; }
.file-4 { transform: translateZ(-60px) translateY(-30px) translateX(30px); z-index: 1; background: #f0f0f0; }

.file-stack:hover .file-1 { transform: translateZ(0px) translateY(0px) rotate(-10deg); }
.file-stack:hover .file-2 { transform: translateZ(0px) translateY(0px) translateX(120px) rotate(5deg); }
.file-stack:hover .file-3 { transform: translateZ(0px) translateY(0px) translateX(-120px) rotate(-5deg); }
.file-stack:hover .file-4 { transform: translateZ(0px) translateY(-140px) rotate(0deg); }

/* Review Masonry */
.review-section {
    padding: 100px 20px;
    background: var(--wps-bg-carrot);
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    break-inside: avoid;
    background: #fff; /* Keep cards white for contrast */
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: #e0e0e0;
    font-family: serif;
    line-height: 1;
}

.review-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
}

/* Map Viz */
.map-section {
    background: var(--wps-gray);
    padding: 100px 20px;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--wps-gray);
    padding: 80px 40px 40px;
    border-top: 1px solid #eee;
}


.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer li {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--wps-text-light);
}

.footer li a:hover {
    color: var(--wps-red);
}
