/* 
  WPS Office Download Landing Site 
  Theme: Ruby Spark / Modern Glass Mesh
  Colors: Ruby Red (#dc2626) to Orange (#ea580c), Slate Text, Clean White Surface
*/

:root {
  --primary: #ef4444; /* red-500 */
  --primary-dark: #dc2626; /* red-600 */
  --secondary: #ea580c; /* orange-600 */
  --bg-color: #fafaf9; /* stone-50 */
  --surface: #ffffff;
  --text-main: #1c1917; /* stone-900 */
  --text-mut: #57534e; /* stone-500 */
  --border: #e7e5e4; /* stone-200 */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-red: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes mesh-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.6; }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 导航栏 */
.header-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-red);
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-item {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mut);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(0,0,0,0.03);
}

.nav-item.active {
  color: var(--primary-dark);
  background: rgba(239, 68, 68, 0.1);
  font-weight: 600;
}

.nav-action {
  display: none;
}

@media (min-width: 768px) {
  .nav-action {
    display: block;
  }
}

/* 按钮通用样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 50px;
  white-space: nowrap;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-md {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

.btn-lg {
  height: 60px;
  padding: 0 36px;
  font-size: 18px;
  border-radius: 60px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, #f87171, #fb923c);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(239, 68, 68, 0.05);
}

.btn-white {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: #fdfdfd;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* 网格与布局 */
.section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.sec-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.sec-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sec-desc {
  font-size: 18px;
  color: var(--text-mut);
  max-width: 600px;
  margin: 0 auto;
}

/* Index Hero */
.hero-wrap {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  background: var(--bg-color);
}

.hero-mesh {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, rgba(234, 88, 12, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: mesh-pulse 10s ease-in-out infinite;
}

.hero-mesh-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.1) 0%, rgba(239, 68, 68, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: mesh-pulse 12s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-mut);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-mut);
  font-size: 14px;
  font-weight: 500;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  flex: 1;
  position: relative;
  height: 500px;
  display: none;
}

@media (min-width: 992px) {
  .hero-visual {
    display: block;
  }
}

.mockup-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
}

.mock-doc {
  width: 340px;
  height: 420px;
  top: 20px;
  right: 60px;
  z-index: 2;
}

.mock-chart {
  width: 280px;
  height: 200px;
  bottom: 40px;
  left: 0;
  z-index: 3;
  animation-delay: 1.5s;
}

.mock-header {
  height: 12px;
  width: 40%;
  background: var(--border);
  border-radius: 6px;
  margin-bottom: 20px;
}

.mock-line {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  margin-bottom: 12px;
}

.mock-line.w-full { width: 100%; }
.mock-line.w-3-4 { width: 75%; }
.mock-line.w-1-2 { width: 50%; }

.mock-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 100px;
  margin-top: 20px;
}

.mock-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(239, 68, 68, 0.2), var(--primary));
  border-radius: 4px 4px 0 0;
}

/* 特性 Bento 网格 */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(239, 68, 68, 0.3);
}

.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 12; }
.col-span-4 { grid-column: span 12; }
.col-span-6 { grid-column: span 12; }

@media (min-width: 768px) {
  .col-span-8 { grid-column: span 8; }
  .col-span-4 { grid-column: span 4; }
  .col-span-6 { grid-column: span 6; }
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--primary-dark);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.bento-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-desc {
  color: var(--text-mut);
  line-height: 1.6;
}

/* 平台入口 */
.platform-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
}
.platform-row::-webkit-scrollbar { display: none; }

.plat-box {
  min-width: 280px;
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.plat-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.plat-ico {
  width: 60px;
  height: 60px;
  background: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  margin-bottom: 20px;
}

.plat-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plat-ver {
  font-size: 13px;
  color: var(--text-mut);
  margin-bottom: 24px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 12px;
}

/* 用户评价 Masonry */
.review-masonry {
  columns: 1;
  column-gap: 24px;
}
@media (min-width: 768px) { .review-masonry { columns: 2; } }
@media (min-width: 1024px) { .review-masonry { columns: 3; } }

.rev-card {
  break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.rev-stars {
  color: #f59e0b;
  margin-bottom: 16px;
}

.rev-text {
  font-size: 15px;
  color: var(--text-mut);
  margin-bottom: 20px;
  font-style: italic;
}

.rev-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rev-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--border), #d6d3d1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-mut);
}

.rev-name { font-weight: 600; font-size: 14px; }
.rev-role { font-size: 12px; color: var(--text-mut); }

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-q:hover {
  color: var(--primary-dark);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--text-mut);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-mut);
  line-height: 1.6;
}

.faq-item.active .faq-a {
  padding: 0 24px 24px;
  max-height: 500px;
}

/* 下载页特定样式 */
.dl-hero {
  padding: 160px 0 80px;
  background: linear-gradient(to bottom, var(--bg-color), var(--surface));
  text-align: center;
}

.dl-main-box {
  max-width: 800px;
  margin: 0 auto 60px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  position: relative;
}

.dl-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.dl-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.dl-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 30px 0;
  text-align: left;
  background: var(--bg-color);
  padding: 24px;
  border-radius: var(--radius-md);
}

@media (min-width: 640px) {
  .dl-meta-grid { grid-template-columns: repeat(4, 1fr); }
}

.meta-box { display: flex; flex-direction: column; gap: 4px; }
.meta-lbl { font-size: 12px; color: var(--text-mut); text-transform: uppercase; font-weight: 600; }
.meta-val { font-size: 15px; font-weight: 700; color: var(--text-main); }

.timeline {
  max-width: 600px;
  margin: 40px auto;
  text-align: left;
}

.tl-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.tl-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(239, 68, 68, 0.1);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.tl-content h4 { font-size: 18px; margin-bottom: 8px; }
.tl-content p { color: var(--text-mut); font-size: 15px; }

/* SEO 中文版文章样式 */
.article-header {
  padding: 160px 0 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.article-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.cloud-tag {
  background: var(--bg-color);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-mut);
}

.article-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 60px 0;
}

@media (min-width: 992px) {
  .article-layout {
    flex-direction: row;
  }
}

.article-main {
  flex: 1;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-mut);
}

.article-main h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin: 40px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-color);
}

.article-main h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 30px 0 16px;
}

.article-main p { margin-bottom: 20px; }

.article-main ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.article-main li { margin-bottom: 10px; }

.highlight-box {
  background: rgba(239, 68, 68, 0.05);
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 30px 0;
}

.highlight-box p { margin: 0; color: var(--primary-dark); font-weight: 600; }

.article-sidebar {
  width: 100%;
}

@media (min-width: 992px) {
  .article-sidebar {
    width: 320px;
    flex-shrink: 0;
  }
}

.sticky-panel {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 12px; }
.toc-list a { color: var(--text-mut); font-size: 15px; }
.toc-list a:hover { color: var(--primary); padding-left: 4px; }

.cta-block {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--text-main), #334155);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: white;
}

.cta-block h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; color: white;}
.cta-block p { font-size: 18px; opacity: 0.8; margin-bottom: 30px; }

/* 页脚与安全横幅 */
.security-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #047857;
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 40px;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-mut);
  filter: grayscale(1);
  opacity: 0.6;
}

.footer-text {
  color: var(--text-mut);
  font-size: 14px;
  line-height: 1.8;
  max-width: 600px;
}

.footer-sec {
  color: #059669;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
