﻿@charset "utf-8";
/* ==========================================================================
   EasyShu 中文网站 · 公共样式 common.css
   主题色：#FEC000（品牌黄） / #000000（墨黑）
   浅色主题 · 现代 · 简洁 · 中英文混排
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --brand: #FEC000;
  --brand-dark: #E0A800;
  --brand-soft: #FFF6DC;
  --ink: #0a0a0a;
  --ink-2: #1c1c1c;
  --text: #22252b;
  --muted: #6b7280;
  --line: #ececef;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-panel: #f6f6f7;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow: 0 12px 30px rgba(0, 0, 0, .08);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1200px;
  --header-h: 74px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC",
    "WenQuanYi Micro Hei", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* 中英文混排：数字/英文与中文之间自动留白（视觉平衡） */
.cn-en { word-spacing: .02em; }

/* ---------- 布局容器 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #e9e9ec; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- 段首标签与标题 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-dark);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .25s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brand); color: #1a1400; border-color: var(--brand); box-shadow: 0 10px 24px rgba(254, 192, 0, .35); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(254, 192, 0, .45); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(0, 0, 0, .03); }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #2a2a2a; transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 16px; }

/* ==========================================================================
   导航栏 header（结构由 header.js 注入）
   ========================================================================== */
/* 让注入容器不产生约束盒，避免 sticky 导航滚动后丢失 */
#site-header { display: contents; }
/* 锚点跳转时为固定导航栏留出偏移，避免标题被遮挡 */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 42px; height: 42px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.nav__names { display: flex; flex-direction: column; line-height: 1.15; }
.nav__name { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.nav__by { font-size: 12px; color: var(--muted); font-weight: 500; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--text); transition: all .2s var(--ease);
}
.nav__link:hover { background: var(--bg-panel); color: var(--ink); }
.nav__link.is-active { color: var(--ink); background: var(--brand-soft); }

/* ---------- 分组下拉菜单（桌面端） ---------- */
.nav__group { position: relative; }
.nav__grouptrigger {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
}
.nav__caret { width: 15px; height: 15px; transition: transform .25s var(--ease); opacity: .7; }
.nav__group:hover .nav__caret, .nav__group:focus-within .nav__caret { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 176px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav__dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav__group:hover .nav__dropdown, .nav__group:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav__dropitem {
  padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  color: var(--text); white-space: nowrap; transition: background .18s, color .18s;
}
.nav__dropitem:hover { background: var(--bg-panel); color: var(--ink); }
.nav__dropitem.is-active { background: var(--brand-soft); color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
/* 弱化下载试用 / 突显立即购买 */
.nav__actions .btn--ghost { color: var(--muted); border-color: var(--line); }
.nav__actions .btn--ghost:hover { color: var(--ink); }

/* 汉堡按钮 */
.nav__burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 移动端弹出菜单（全屏抽屉） ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(10, 10, 10, .45); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 88vw);
  background: #fff; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.mobile-menu__brand { display: flex; align-items: center; gap: 10px; }
.mobile-menu__brand img { width: 36px; height: 36px; border-radius: 9px; }
.mobile-menu__brand b { font-size: 17px; color: var(--ink); }
.mobile-menu__close {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; font-size: 22px; color: var(--ink); line-height: 1;
}
.mobile-menu__links { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px; border-radius: 14px; font-size: 17px; font-weight: 700; color: var(--ink);
  transition: background .2s;
}
.mobile-menu__links a:hover, .mobile-menu__links a.is-active { background: var(--brand-soft); }
.mobile-menu__links a::after { content: "›"; color: var(--muted); font-weight: 400; font-size: 20px; }
/* 移动端分组 */
.mobile-menu__group { margin: 6px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.mobile-menu__grouptitle {
  padding: 8px 16px 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--muted); text-transform: none;
}
.mobile-menu__group a { padding-left: 24px; font-size: 16px; }
.mobile-menu__cta { margin-top: auto; padding: 22px 24px 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.mobile-menu__cta .btn { width: 100%; }
.mobile-menu__deco { height: 6px; background: linear-gradient(90deg, var(--brand), #ffe28a, var(--brand)); }
body.menu-lock { overflow: hidden; }

/* ==========================================================================
   页脚 footer（结构由 footer.js 注入）
   ========================================================================== */
.site-footer { background: var(--ink); color: #b9bcc4; padding: 72px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 12px; }
.footer-brand .fb-name { font-size: 22px; font-weight: 800; color: #fff; }
.footer-brand .fb-by { font-size: 13px; color: #8b8f98; }
.footer-note { font-size: 14.5px; line-height: 1.9; color: #9a9ea7; max-width: 560px; }
.footer-note .en { display: block; margin-top: 10px; color: #75787f; font-size: 13px; }

.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-contact .fc-title { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #c9ccd3; }
.footer-contact a:hover { color: var(--brand); }
.footer-contact .fc-ico {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .06);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.footer-contact .fc-ico svg { width: 18px; height: 18px; color: var(--brand); }

.footer-bottom {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: #7f838c;
}
.footer-bottom .fb-brandline { color: #c9ccd3; }
.footer-bottom .fb-brandline b { color: var(--brand); }

/* ==========================================================================
   图片灯箱 lightbox（点击放大 / 左右切换，逻辑由 lightbox.js 提供）
   ========================================================================== */
[data-zoom] { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 8, 10, .92); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s; padding: 72px 20px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { position: relative; max-width: 1100px; width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img {
  max-width: 100%; max-height: calc(100vh - 150px); border-radius: 12px; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff;
  transform: scale(.96); transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__cap { margin-top: 16px; color: #e9e9ec; font-size: 14px; font-weight: 600; text-align: center; max-width: 720px; }
.lightbox__count { margin-top: 6px; color: #8b8f98; font-size: 13px; font-weight: 600; }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s; backdrop-filter: blur(6px);
}
.lightbox__btn:hover { background: var(--brand); color: #1a1400; border-color: var(--brand); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__btn--prev { left: -8px; }
.lightbox__btn--next { right: -8px; }
.lightbox__close {
  position: absolute; top: 18px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s;
}
.lightbox__close:hover { background: var(--brand); color: #1a1400; border-color: var(--brand); }
body.lightbox-lock { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox { padding: 60px 12px; }
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__btn--prev { left: 0; }
  .lightbox__btn--next { right: 0; }
}

/* ==========================================================================
   教程 / 文档正文 article（供 tutorials 子页复用）
   ========================================================================== */
.doc-hero { background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%); padding: 56px 0 30px; position: relative; overflow: hidden; }
.doc-hero::after { content: ""; position: absolute; top: -40%; right: -6%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(254,192,0,.20), transparent 68%); pointer-events: none; }
.doc-hero .wrap { position: relative; z-index: 2; }
.doc-crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 18px; flex-wrap: wrap; }
.doc-crumb a { color: var(--muted); }
.doc-crumb a:hover { color: var(--brand-dark); }
.doc-crumb .sep { color: #c8cace; }
.doc-crumb .cur { color: var(--ink); }
.doc-hero h1 { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -.02em; max-width: 900px; }
.doc-hero .lead { margin-top: 16px; font-size: 17px; color: #4a4d55; max-width: 760px; line-height: 1.8; }
.doc-hero .tagrow { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.doc-hero .tagrow span { font-size: 12.5px; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 5px 13px; border-radius: 999px; }

.article { max-width: 860px; margin: 0 auto; font-size: 16.5px; line-height: 1.95; color: var(--text); }
.article > *:first-child { margin-top: 0; }
.article h2 { font-size: 26px; margin: 48px 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--line); position: relative; }
.article h2::before { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--brand); }
.article h3 { font-size: 20px; margin: 34px 0 14px; }
.article h4 { font-size: 17px; margin: 24px 0 10px; color: var(--ink); }
.article p { margin: 16px 0; }
.article ul, .article ol { margin: 16px 0; padding-left: 4px; }
.article ul li, .article ol li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 3px; background: var(--brand); }
.article ol { counter-reset: li; }
.article ol li::before { counter-increment: li; content: counter(li); position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.article a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(224,168,0,.4); word-break: break-word; }
.article a:hover { text-decoration-color: var(--brand-dark); }
.article strong, .article b { color: var(--ink); font-weight: 700; }
.article code { background: var(--bg-panel); padding: 2px 8px; border-radius: 6px; font-size: 14.5px; color: var(--ink); word-break: break-all; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.article figure { margin: 24px 0; }
.article figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.article figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.article blockquote { margin: 20px 0; padding: 16px 22px; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 10px; color: var(--text); }
.article blockquote p { margin: 6px 0; font-size: 15.5px; }
/* 提示卡：info / warning / danger / success */
.callout { margin: 20px 0; padding: 16px 20px 16px 52px; border-radius: 12px; position: relative; font-size: 15px; line-height: 1.85; }
.callout::before { position: absolute; left: 18px; top: 16px; font-size: 18px; line-height: 1; }
.callout p { margin: 6px 0; }
.callout.info { background: #eef5fd; border: 1px solid #cfe2f8; }
.callout.info::before { content: "ℹ"; color: #2f7fe0; }
.callout.warn { background: var(--brand-soft); border: 1px solid #f2dd97; }
.callout.warn::before { content: "!"; color: #b98900; font-weight: 800; }
.callout.danger { background: #fdf0f0; border: 1px solid #f4cccc; }
.callout.danger::before { content: "✕"; color: #d94f4f; font-weight: 800; }
.callout.success { background: #eefaf1; border: 1px solid #cdeede; }
.callout.success::before { content: "✓"; color: #1f9d55; font-weight: 800; }
/* 视频教程链接列表 */
.vidlist { display: grid; gap: 12px; margin: 22px 0; }
.vidlist a { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.vidlist a:hover { border-color: var(--brand); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.vidlist .idx { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.vidlist .play { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.vidlist .play svg { width: 15px; height: 15px; color: var(--brand); margin-left: 2px; }
.vidlist .txt { flex: 1; min-width: 0; }
.vidlist .txt b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 700; }
.vidlist .txt span { font-size: 13px; color: var(--muted); }
.vidlist .go { flex: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.vidlist a:hover .go { color: var(--brand-dark); }
@media (max-width: 560px) { .vidlist .play, .vidlist .go { display: none; } }

/* 底部上一页/下一页导航 */
.doc-nav { max-width: 860px; margin: 56px auto 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.doc-nav a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 15px; }
.doc-nav a:hover { color: var(--brand-dark); }
.doc-nav .back { color: var(--muted); }
@media (max-width: 640px) { .article { font-size: 15.5px; } .article h2 { font-size: 22px; } }

/* ---------- 通用动效 ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav__menu, .nav__actions { display: none; }
  .nav__burger { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
}
