/* WPS Office 2026 Official Style - Business Blue Edition */
:root {
  --wps-blue: #0052cc;
  --wps-blue-deep: #003d99;
  --wps-blue-light: #e6f0ff;
  --wps-text-main: #1d1d1f;
  --wps-text-desc: #424245;
  --wps-text-grey: #86868b;
  --wps-white: #ffffff;
  --wps-bg-light: #f5f5f7;
  --wps-border: rgba(0, 0, 0, 0.08);
  --wps-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  --wps-radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  color: var(--wps-text-main);
  background: var(--wps-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography & SEO Hierarchy */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.1; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.2; }

/* Layout Grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.official-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--wps-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--wps-blue);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--wps-text-main);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--wps-blue); }

.nav-btn {
  background: var(--wps-blue);
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
}

/* Sections */
section { padding: 100px 0; }
.section-grey { background: var(--wps-bg-light); }

/* Common Cards */
.official-card {
  background: var(--wps-white);
  border-radius: var(--wps-radius);
  padding: 40px;
  border: 1px solid var(--wps-border);
  transition: all 0.3s ease;
}

.official-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--wps-shadow);
  border-color: var(--wps-blue-light);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--wps-blue);
  color: white;
  padding: 16px 40px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--wps-blue-deep);
  transform: scale(1.02);
}

/* Responsive Footer */
.official-footer {
  padding: 80px 0 40px;
  background: var(--wps-bg-light);
  border-top: 1px solid var(--wps-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 { margin-bottom: 20px; font-size: 16px; }
.footer-col a {
  display: block;
  color: var(--wps-text-grey);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Detailed Interactive Modules */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.detail-module {
  background: var(--wps-white);
  border-radius: 24px;
  padding: 40px 30px;
  border: 1px solid var(--wps-border);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.detail-module:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--wps-blue);
  box-shadow: 0 30px 60px rgba(0, 82, 204, 0.12);
}

.detail-module::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--wps-blue);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.detail-module:hover::after {
  transform: scaleX(1);
}

.detail-icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
  transition: transform 0.4s ease;
}

.detail-module:hover .detail-icon {
  transform: scale(1.2) rotate(5deg);
}

.detail-module h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--wps-text-main);
}

.detail-module p {
  font-size: 14px;
  color: var(--wps-text-grey);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
}
