﻿/* ==========================================================
   上线性能与顺滑度增强引擎 (Smoothness & Performance Optimization)
   ========================================================== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* 硬件加速与流畅悬停 */
a, button, .media-news-card, .btn-media-primary, .btn-media-secondary, .faq-card, .intro-panel {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 移动端平滑滚动与防抖 */
.table-wrapper, .table-container, .code-box, pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* 媒体图片防溢出与自适应 */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 消除点击高亮延迟 */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   办公效率风，文档、表格、邮件场景 - Office Productivity & Workspace Theme
   ========================================================== */

:root {
  --bg-main: #0b1324;
  --bg-surface: #111c35;
  --bg-card: #172646;
  --bg-card-hover: #1e3158;
  --bg-workspace: #0d162a;
  --primary: #2563eb;
  --primary-hover: #3b82f6;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-indigo: #6366f1;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-color: #223559;
  --border-glow: rgba(37, 99, 235, 0.4);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: Consolas, Monaco, "Courier New", monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 55%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #0b1324 0%, #0d172c 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-base);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

/* 顶部声明条 */
.top-declaration-bar {
  background: #070d1a;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 12.5px;
}

.dec-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dec-badge {
  background: rgba(37, 99, 235, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}

.dec-text {
  color: var(--text-muted);
  flex: 1;
  margin: 0;
}

/* Header */
.site-header {
  background: rgba(11, 19, 36, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.logo-icon {
  font-size: 22px;
}

.hub-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.accent-text {
  background: linear-gradient(90deg, #38bdf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  gap: 22px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.btn-header-action {
  background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-header-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

/* 首页 Hero 区域 */
.office-hero-section {
  padding: 44px 0 32px;
  text-align: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 5px 14px;
  border-radius: 20px;
  color: #60a5fa;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero-h1 .highlight {
  background: linear-gradient(90deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 840px;
  margin: 0 auto 26px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn-cta-blue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-weight: 800;
  font-size: 15.5px;
  padding: 13px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
}

.btn-cta-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.55);
}

.btn-cta-dark {
  background: var(--bg-card);
  color: #f1f5f9;
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 30px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.btn-cta-dark:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* 办公效率风核心特色：四大办公高频场景工作台 (Office Scenarios Hub) */
.office-scenarios-section {
  padding: 10px 0 40px;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.scenario-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.scenario-card:hover {
  border-color: var(--primary-hover);
  transform: translateY(-4px);
  background: var(--bg-card);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.card-icon-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.scenario-icon {
  font-size: 28px;
}

.scenario-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.status-doc { background: rgba(37, 99, 235, 0.15); color: #60a5fa; border: 1px solid rgba(37, 99, 235, 0.3); }
.status-sheet { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-mail { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-meeting { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }

.scenario-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.scenario-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.scenario-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.s-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-scenario-action {
  display: block;
  text-align: center;
  background: #19243c;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.scenario-card:hover .btn-scenario-action {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* 六宫格/功能模块区 */
.section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 34px;
}

.section-tag {
  color: #60a5fa;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 8px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

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

.module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  position: relative;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-hover);
  background: var(--bg-card);
}

.card-top-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.module-icon {
  font-size: 30px;
  margin-bottom: 12px;
  display: inline-block;
}

.module-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.module-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.module-link {
  color: #60a5fa;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.module-link:hover {
  text-decoration: underline;
  color: #93c5fd;
}

/* 正文介绍区：“教程中心”与“我们提供什么” */
.intro-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.intro-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
}

.panel-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-list {
  list-style: none;
}

.intro-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.intro-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-size: 12px;
  top: 3px;
}

.intro-list strong {
  color: #fff;
}

/* 热门教程表格 */
.table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.toolbox-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.toolbox-table th {
  background: #0e172a;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 13.5px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.toolbox-table td {
  padding: 15px 18px;
  color: var(--text-muted);
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toolbox-table tr:hover td {
  background: rgba(37, 99, 235, 0.05);
  color: var(--text-main);
}

.badge-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-easy {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-hard {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tbl-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

.tbl-link:hover {
  text-decoration: underline;
  color: #93c5fd;
}

/* FAQ 常见问答模块 */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-hover);
}

.faq-q {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-q-icon {
  color: #38bdf8;
  font-weight: 800;
}

.faq-a {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* 延伸阅读与免责入口卡片 */
.extended-reading {
  background: linear-gradient(135deg, #111c35 0%, #172646 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.reading-info h4 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 4px;
}

.reading-info p {
  color: var(--text-muted);
  font-size: 13.5px;
}

.reading-actions {
  display: flex;
  gap: 12px;
}

/* 子页面通用内容布局 */
.page-hero {
  padding: 44px 0 30px;
  background: #0d162a;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 800px;
}

.content-section {
  padding: 40px 0;
}

.article-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  color: #cbd5e1;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 22px;
  color: #fff;
  margin: 30px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-content h2::before {
  content: '✦';
  color: #38bdf8;
}

.article-content h3 {
  font-size: 17px;
  color: #93c5fd;
  margin: 20px 0 10px;
}

.article-content p {
  margin-bottom: 14px;
}

.article-content ul, .article-content ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content strong {
  color: #fff;
}

.tool-callout {
  background: rgba(37, 99, 235, 0.1);
  border-left: 4px solid var(--primary-hover);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
  color: #e2e8f0;
}

.code-box {
  background: #080e1a;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #38bdf8;
  overflow-x: auto;
  margin: 18px 0;
}

/* 页脚 */
.site-footer {
  background: #070d1a;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
  margin-top: 50px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 13px;
  margin: 14px 0;
  line-height: 1.6;
  max-width: 400px;
}

.copyright {
  color: var(--text-dim);
  font-size: 12px;
}

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

.link-col h4 {
  color: #f1f5f9;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 700;
}

.link-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.link-col a:hover {
  color: #60a5fa;
}

/* 响应式断点 */
@media (max-width: 992px) {
  .scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-six {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-container {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hero-h1 {
    font-size: 26px;
  }
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
  .grid-six {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}