/* Digital Canvas Theme for WPS Office */
/* @author: Cascade */

:root {
  --bg-base: #f4f5f7;
  --bg-surface: #ffffff;
  --primary: #0052cc; /* Modern Blue */
  --secondary: #00b894; /* Vibrant Green */
  --text-dark: #172b4d; /* Deep Charcoal */
  --text-light: #505f79;
  --border-color: #dfe1e6;
  --white: #ffffff;
  --red: #de350b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
}

a { 
  color: var(--primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.sec {
  padding: 80px 0;
}

.sec-head {
  text-align: center;
  margin-bottom: 60px;
}

.sec-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
}

.sec-sub {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #0041a3;
  border-color: #0041a3;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: #00a082;
  border-color: #00a082;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  text-decoration: none;
}

.btn-lg { padding: 16px 32px; font-size: 18px; }

/* --- Navbar --- */
.site-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.nav-brand svg {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-link a {
  display: block;
  padding: 8px 16px;
  color: var(--text-light);
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link a:hover {
  color: var(--text-dark);
  background-color: #e9ebf0;
  text-decoration: none;
}

.nav-link.active a {
  color: var(--primary);
  background-color: #e6f0ff;
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 100px 0;
  background-color: var(--bg-surface);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 30px;
}

.hero-positioning {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 40px;
}

.hero-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 60px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.feature-card {
  background-color: var(--bg-surface);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-desc { color: var(--text-light); }

.feature-deep-dive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.feature-deep-dive:last-child { margin-bottom: 0; }

.feature-deep-dive.reverse { grid-template-columns: 1fr 1fr; }
.feature-deep-dive.reverse .deep-dive-text { order: 2; }
.feature-deep-dive.reverse .deep-dive-img { order: 1; }

.deep-dive-img svg {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #e9ebf0;
  padding: 20px;
}

.deep-dive-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.deep-dive-text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

/* --- Platforms --- */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.platform-card {
  background-color: var(--bg-surface);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.platform-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.platform-name { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.platform-req { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-card {
  background-color: var(--bg-surface);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #ffab00;
}

.review-stars svg { width: 20px; height: 20px; }

.review-text { font-style: italic; margin-bottom: 20px; }

.review-author {
  display: flex;
  align-items: center;
}

.review-author-name { font-weight: 600; }

/* --- Security --- */
#security { background-color: var(--bg-surface); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.security-item {
  text-align: center;
}

.security-icon { width: 48px; height: 48px; color: var(--secondary); margin-bottom: 16px; }
.security-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.security-desc { color: var(--text-light); }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}

.comparison-table th, .comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th { background-color: #f4f5f7; font-weight: 600; }
.comparison-table td:not(:first-child) { text-align: center; }
.comparison-table .check-icon { color: var(--secondary); width: 24px; height: 24px; }
.comparison-table .cross-icon { color: var(--red); width: 24px; height: 24px; }

/* --- Versions --- */
.versions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: flex-start;
}

.version-card {
  background-color: var(--bg-surface);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.version-card.featured { border: 2px solid var(--primary); }

.version-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.version-name { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.version-price { font-size: 36px; font-weight: 700; margin-bottom: 20px; }
.version-price span { font-size: 16px; font-weight: 400; color: var(--text-light); }

.version-features {
  list-style: none;
  text-align: left;
  margin: 30px 0;
}

.version-features li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.version-features svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  margin-right: 10px;
}

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
}

.faq-chevron {
  width: 24px; height: 24px;
  transition: transform 0.2s ease;
}

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding: 0 0 20px; color: var(--text-light); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-answer { max-height: 200px; }

/* --- Footer --- */
.site-footer {
  background-color: var(--text-dark);
  color: #a5adba;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
}

/* --- Download Page --- */
.dl-main-area {
  background-color: var(--bg-surface);
  padding: 80px 0;
  text-align: center;
}

.dl-main-title { font-size: 42px; font-weight: 700; margin-bottom: 12px; }
.dl-main-sub { font-size: 18px; color: var(--text-light); margin-bottom: 30px; }
.dl-main-meta { font-size: 14px; color: var(--text-light); margin-bottom: 30px; }

.dl-platform-section { padding: 80px 0; }

.dl-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.dl-platform-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
}

.dl-platform-head { display: flex; align-items: center; margin-bottom: 20px; }
.dl-platform-icon { width: 40px; height: 40px; margin-right: 16px; }
.dl-platform-name { font-size: 24px; font-weight: 600; }
.dl-platform-meta { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.dl-install-steps { list-style: none; margin: 20px 0; }
.dl-install-steps li { margin-bottom: 10px; color: var(--text-light); }

.install-guide { background-color: var(--bg-surface); }

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.guide-col-title { font-size: 24px; font-weight: 600; margin-bottom: 30px; }

.guide-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.guide-step-icon { width: 24px; height: 24px; color: var(--primary); margin-right: 16px; flex-shrink: 0; margin-top: 4px; }
.guide-step-title { font-weight: 600; margin-bottom: 4px; }
.guide-step-desc { color: var(--text-light); }

.req-list { background-color: var(--bg-base); }
.req-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.req-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
}
.req-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.req-table { width: 100%; }
.req-table td { padding: 8px 0; border-bottom: 1px solid #eee; }
.req-table td:first-child { font-weight: 500; }

.version-log { background-color: var(--bg-surface); }
.log-item {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
    padding-bottom: 40px;
}
.log-item:last-child { border-left: 2px solid transparent; }
.log-dot {
    position: absolute;
    left: -9px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
}
.log-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.log-version { font-size: 18px; font-weight: 600; }
.log-date { font-size: 14px; color: var(--text-light); }
.log-notes { list-style-position: inside; padding-left: 0; color: var(--text-light); }

/* --- ZH-CN Page --- */
.zh-hero {
    background-color: var(--bg-surface);
    padding: 80px 0;
    text-align: center;
}
.zh-title { font-size: 42px; font-weight: 700; margin-bottom: 16px; }
.zh-sub { font-size: 18px; color: var(--text-light); max-width: 600px; margin: 0 auto 30px; }

.zh-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}
.advantage-icon { width: 40px; height: 40px; color: var(--primary); margin-bottom: 16px; }
.advantage-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.advantage-desc { color: var(--text-light); }

.zh-content-section { background-color: var(--bg-surface); }
.zh-content-block { max-width: 800px; margin: 0 auto 60px; }
.zh-content-block:last-child { margin-bottom: 0; }
.zh-content-title { font-size: 28px; font-weight: 600; margin-bottom: 20px; }
.zh-content-block p { margin-bottom: 16px; color: var(--text-light); }

.zh-cta-banner {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    border-radius: 8px;
}
.zh-cta-title { font-size: 32px; font-weight: 600; margin-bottom: 12px; }
.zh-cta-btn { margin-top: 24px; background: var(--white); color: var(--primary); }
.zh-cta-btn:hover { background: #f4f5f7; }

/* --- Utilities & Animations --- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid, .reviews-grid, .dl-platform-grid, .zh-advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .platforms-grid, .versions-grid { grid-template-columns: 1fr; }
    .feature-deep-dive, .feature-deep-dive.reverse { grid-template-columns: 1fr; }
    .feature-deep-dive .deep-dive-img { margin-bottom: 30px; }
    .feature-deep-dive.reverse .deep-dive-text { order: 1; }
    .feature-deep-dive.reverse .deep-dive-img { order: 2; }
    .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Basic mobile nav handling */
    .hero-title { font-size: 42px; }
    .sec-title { font-size: 32px; }
    .features-grid, .reviews-grid, .security-grid, .dl-platform-grid, .zh-advantages-grid, .req-grid { grid-template-columns: 1fr; }
}
