/* ===== WPS 风格全局样式 ===== */
:root {
  --wps-blue: #2b5ec9;
  --wps-blue-dark: #1a3d8a;
  --wps-blue-light: #e8f0fe;
  --wps-green: #00a65c;
  --wps-orange: #f7941e;
  --wps-gray: #f5f5f5;
  --wps-dark: #333;
  --wps-text: #555;
  --wps-border: #e0e0e0;
  --wps-white: #fff;
  --header-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: var(--wps-dark);
  background: var(--wps-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--wps-blue); transition: color 0.2s; }
a:hover { color: var(--wps-blue-dark); }

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--wps-border);
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 36px; }
.logo span { font-size: 20px; font-weight: 700; color: var(--wps-dark); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--wps-text);
  border-radius: 6px;
  transition: all 0.2s;
}
.nav a:hover, .nav a.active {
  background: var(--wps-blue-light);
  color: var(--wps-blue);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .lang-switch {
  position: relative;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--wps-text);
  border: 1px solid var(--wps-border);
  border-radius: 6px;
  background: var(--wps-white);
  transition: all 0.2s;
}
.header-actions .lang-switch:hover { border-color: var(--wps-blue); color: var(--wps-blue); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--wps-white);
  border: 1px solid var(--wps-border);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 160px;
  z-index: 1001;
  margin-top: 4px;
}
.lang-dropdown.show { display: block; }
.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--wps-text);
  transition: background 0.2s;
}
.lang-dropdown a:hover { background: var(--wps-blue-light); color: var(--wps-blue); }
.lang-dropdown a:first-child { border-radius: 8px 8px 0 0; }
.lang-dropdown a:last-child { border-radius: 0 0 8px 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--wps-blue), #3b6fd4);
  color: var(--wps-white);
  box-shadow: 0 4px 15px rgba(43,94,201,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43,94,201,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--wps-blue);
  border: 1.5px solid var(--wps-blue);
}
.btn-outline:hover { background: var(--wps-blue-light); }
.btn-green {
  background: linear-gradient(135deg, var(--wps-green), #00c76a);
  color: var(--wps-white);
  box-shadow: 0 4px 15px rgba(0,166,92,0.3);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,166,92,0.4); }
.btn-download {
  background: linear-gradient(135deg, var(--wps-orange), #ffa940);
  color: var(--wps-white);
  box-shadow: 0 4px 15px rgba(247,148,30,0.3);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(247,148,30,0.4); }

/* ===== Hero Section ===== */
.hero {
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 50%, #dce8ff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(43,94,201,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(0,166,92,0.05) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(2%, 1%); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--wps-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 span { background: linear-gradient(135deg, var(--wps-blue), var(--wps-green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p {
  font-size: 18px;
  color: var(--wps-text);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-image { margin-top: 60px; position: relative; z-index: 1; }
.hero-image img { border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); max-width: 80%; margin: 0 auto; }

/* ===== Sections ===== */
.section { padding: 80px 20px; }
.section-alt { background: var(--wps-gray); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--wps-dark);
}
.section-subtitle {
  font-size: 16px;
  color: var(--wps-text);
  text-align: center;
  margin-bottom: 48px;
}

/* ===== Feature Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--wps-white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--wps-border);
  transition: all 0.3s;
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--wps-blue);
}
.feature-card .icon { font-size: 48px; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--wps-text); line-height: 1.6; }

/* ===== Product Cards ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--wps-white);
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid var(--wps-border);
  transition: all 0.3s;
  text-align: center;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.product-card .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
}
.product-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.product-card p { font-size: 13px; color: var(--wps-text); margin-bottom: 16px; line-height: 1.6; }
.product-card .learn-more { font-size: 13px; color: var(--wps-blue); font-weight: 500; }

/* ===== Download Page ===== */
.download-hero {
  padding: 120px 20px 60px;
  background: linear-gradient(135deg, #fff7e6, #fff2e0);
  text-align: center;
}
.download-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 60px 20px 80px;
}
.download-card {
  background: var(--wps-white);
  border-radius: 12px;
  padding: 32px 24px;
  border: 1px solid var(--wps-border);
  text-align: center;
  transition: all 0.3s;
}
.download-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.download-card .os-icon { font-size: 48px; margin-bottom: 12px; display: block; }
.download-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.download-card .version-info { font-size: 12px; color: #999; margin-bottom: 16px; }
.download-card .btn { width: 100%; justify-content: center; }

/* ===== About Page ===== */
.about-hero {
  padding: 120px 20px 60px;
  background: linear-gradient(135deg, var(--wps-blue-light), var(--wps-gray));
  text-align: center;
}
.milestone { padding: 60px 20px; }
.milestone-list {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.milestone-list::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--wps-border);
}
.milestone-item {
  padding: 0 0 32px 52px;
  position: relative;
}
.milestone-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wps-blue);
  border: 3px solid var(--wps-white);
  box-shadow: 0 0 0 2px var(--wps-blue);
}
.milestone-item .year { font-weight: 700; color: var(--wps-blue); font-size: 16px; }
.milestone-item .desc { color: var(--wps-text); font-size: 14px; margin-top: 4px; }

/* ===== Footer ===== */
.footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 60px 20px 30px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--wps-white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: #888;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--wps-blue-light); }
.footer-col p { font-size: 13px; line-height: 1.8; color: #888; }
.footer-col .logo-text { font-size: 22px; font-weight: 700; color: var(--wps-white); margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid #2a2a3e;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #888; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--wps-blue-light); }
.footer .lang-selector {
  position: relative;
  display: inline-block;
}
.footer .lang-selector select {
  padding: 6px 12px;
  border: 1px solid #3a3a4e;
  border-radius: 6px;
  background: #2a2a3e;
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

/* ===== Page Content ===== */
.page-content { min-height: 400px; padding: 100px 20px 60px; }
.page-banner {
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, var(--wps-blue-light), var(--wps-gray));
  text-align: center;
}
.page-banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.page-banner p { color: var(--wps-text); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 40px auto; }
.faq-item {
  border: 1px solid var(--wps-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--wps-white);
  transition: background 0.2s;
}
.faq-q:hover { background: var(--wps-blue-light); }
.faq-q .arrow { transition: transform 0.3s; font-size: 12px; }
.faq-q.active .arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  color: var(--wps-text);
  font-size: 14px;
  line-height: 1.8;
}
.faq-a.show { padding: 16px 20px; max-height: 500px; }

/* ===== Language Page ===== */
.lang-page {
  padding: 100px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
}
.lang-page h1 { font-size: 32px; margin-bottom: 24px; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.lang-card {
  padding: 20px;
  border: 1px solid var(--wps-border);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}
.lang-card:hover {
  border-color: var(--wps-blue);
  box-shadow: 0 4px 20px rgba(43,94,201,0.1);
}
.lang-card .lang-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.lang-card .lang-native { font-size: 14px; color: var(--wps-text); }

/* ===== Responsive ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--wps-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--wps-white);
    border-bottom: 1px solid var(--wps-border);
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .download-grid { grid-template-columns: 1fr 1fr; }
  .header-actions .lang-switch span { display: none; }
  .header-actions .btn span { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .hero h1 { font-size: 26px; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ===== Animations ===== */
.fade-in { animation: fadeIn 0.8s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-up { animation: slideUp 0.6s ease forwards; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
