﻿/* ==========================================================
   上线性能与顺滑度增强引擎 (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;
}

:root {
  --office-blue: #0284c7;
  --office-blue-dark: #0369a1;
  --office-teal: #0d9488;
  --office-navy: #0f172a;
  
  --ppt-orange: #ea580c;
  --email-blue: #2563eb;
  --sheet-green: #16a34a;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.08);
}

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

body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

a { color: var(--office-blue); text-decoration: none; font-weight: 700; }
a:hover { color: var(--office-blue-dark); text-decoration: underline; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* 顶部声明 */
.office-topbar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.office-badge {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.4);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.topbar-text strong { color: #f8fafc; }

/* 头部导航 */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--office-navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon { font-size: 26px; }
.brand-name {
  font-size: 21px;
  font-weight: 950;
  color: var(--office-navy);
  display: block;
  line-height: 1.2;
}
.brand-name span { color: var(--office-blue); }
.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  font-weight: 600;
}
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a {
  color: var(--text-sub);
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  transition: all .2s ease;
}
.nav a:hover, .nav a.active {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: var(--office-blue-dark);
  text-decoration: none;
}

/* 办公首屏 Hero */
.hero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border-bottom: 1px solid var(--border-light);
}
.hero-tag-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 950;
  line-height: 1.35;
  color: var(--office-navy);
  margin-bottom: 16px;
}
.hero p {
  font-size: 16.5px;
  color: var(--text-sub);
  max-width: 960px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.hero strong { color: var(--office-blue); }

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 4px;
  transition: all .2s ease;
}
.btn.primary {
  background: var(--office-blue);
  color: #ffffff;
  border: 1px solid var(--office-blue);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.btn.primary:hover {
  background: var(--office-blue-dark);
  border-color: var(--office-blue-dark);
  text-decoration: none;
}
.btn.secondary {
  background: #ffffff;
  color: var(--office-navy);
  border: 1px solid var(--border-strong);
}
.btn.secondary:hover {
  background: #f8fafc;
  color: var(--office-blue);
  border-color: var(--office-blue);
  text-decoration: none;
}

/* 办公三件套图标卡片条 (PPT / 邮件 / 表格) */
.office-tools-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.tool-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.tool-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tool-icon {
  font-size: 32px;
  line-height: 1;
}
.tool-info strong {
  display: block;
  font-size: 15.5px;
  color: var(--office-navy);
  margin-bottom: 2px;
}
.tool-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* 通用 Section */
.section {
  padding: 46px 0;
  border-bottom: 1px solid var(--border-light);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 950;
  color: var(--office-navy);
}
.section-note {
  max-width: 480px;
  color: var(--text-muted);
  font-size: 14px;
}

/* 六宫格功能模块区 */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--office-blue);
  box-shadow: var(--shadow-md);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.card-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--office-blue);
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 3px;
}
.card-num {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}
.card h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--office-navy);
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.65;
  flex: 1;
}

/* 正文介绍区 */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.intro-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.intro-box h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--office-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.intro-box p {
  font-size: 14.5px;
  color: var(--text-sub);
  margin-bottom: 14px;
  line-height: 1.8;
}
.intro-box ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.intro-box li {
  font-size: 14px;
  color: var(--text-main);
  padding-left: 20px;
  position: relative;
}
.intro-box li::before {
  content: "💼";
  position: absolute;
  left: 0;
  font-size: 11px;
}

/* 热门教程表格 */
.table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
th, td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  vertical-align: middle;
}
th {
  background: #f8fafc;
  color: var(--office-navy);
  font-weight: 900;
  border-bottom: 2px solid var(--border-strong);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }
.level-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
}
.level-badge.easy { background: #e0f2fe; color: #0369a1; }
.level-badge.medium { background: #fef3c7; color: #b45309; }
.level-badge.hard { background: #fee2e2; color: #b91c1c; }

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}
details {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 18px 22px;
  transition: all .2s ease;
}
details:hover {
  border-color: var(--office-blue);
}
summary {
  font-size: 16px;
  font-weight: 900;
  color: var(--office-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 18px;
  color: var(--office-blue);
  font-weight: 900;
}
details[open] summary::after { content: "−"; }
details p {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.8;
}

/* 子页面文章 */
.article {
  max-width: 900px;
  margin: 36px auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.article h1 {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 950;
  color: var(--office-navy);
  margin-bottom: 16px;
  line-height: 1.35;
}
.article-lead {
  background: #f0f9ff;
  border-left: 4px solid var(--office-blue);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14.5px;
  color: var(--text-sub);
  border-radius: 0 4px 4px 0;
  line-height: 1.8;
}
.article h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--office-navy);
  margin: 28px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.article p, .article li {
  color: var(--text-sub);
  font-size: 14.5px;
  margin-bottom: 12px;
  line-height: 1.8;
}
.article ul { margin-left: 20px; }

/* 页脚 */
.site-footer {
  margin-top: 50px;
  background: #0f172a;
  color: #94a3b8;
  padding: 44px 0 24px;
  border-top: 1px solid #1e293b;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 28px;
}
.footer-brand .footer-logo {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}
.footer-brand p {
  font-size: 13.5px;
  color: #64748b;
  max-width: 440px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-nav a {
  color: #cbd5e1;
  background: #1e293b;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid #334155;
}
.footer-nav a:hover {
  background: var(--office-blue);
  color: #ffffff;
  border-color: var(--office-blue);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 18px;
  font-size: 12.5px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 960px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .grid-6, .intro-grid, .office-tools-bar, .footer-top { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .article { padding: 22px 16px; }
  .topbar-inner { flex-direction: column; align-items: flex-start; }
}
