/* ============================================================
   USDOC 在线编辑 · 格式宣传页共用样式
   页面路径：/edit/*.html
   ============================================================ */

:root {
	--brand: #387eff;
	--ink: #0f1c33;
	--text: #4d5b73;
	--muted: #8b97ad;
	--line: #e9edf6;
	--soft: #f5f7ff;
	--shadow: 0 14px 36px rgba(20, 45, 100, .08);
	--radius: 10px;
}

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

body.format-word {
	--accent: #4f8cff;
	--accent-2: #1e4fbf;
	--accent-soft: #eaf1ff;
	--accent-light: #b7d1ff;
}
body.format-excel {
	--accent: #25b97b;
	--accent-2: #0a7d4f;
	--accent-soft: #e6f8ef;
	--accent-light: #a9f0cf;
}
body.format-ppt {
	--accent: #ff8a3d;
	--accent-2: #d94a1e;
	--accent-soft: #fff0e6;
	--accent-light: #ffc8a6;
}
body.format-pdf {
	--accent: #ff5d6c;
	--accent-2: #c6283a;
	--accent-soft: #ffecef;
	--accent-light: #ffb6bf;
}

a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
	position: absolute; left: 12px; top: -60px; z-index: 2000;
	background: #fff; color: var(--accent-2); padding: 10px 18px;
	border-radius: 6px; font-size: 14px; font-weight: 700;
	text-decoration: none; box-shadow: var(--shadow); transition: top .2s;
}
.skip:focus { top: 12px; }

/* 头部圆角收敛，与页面卡片一致 */
.header .nav-cta { border-radius: 8px; }
.header .navli a { border-radius: 6px; }

/* ── Hero ── */
.fmt-hero {
	position: relative; overflow: hidden; color: #fff;
	padding: 46px 0 0;
	background: linear-gradient(135deg, #071027 0%, #10265c 48%, var(--accent-2) 100%);
}
.fmt-hero::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(540px 320px at 84% 6%, rgba(255, 255, 255, .18), transparent 68%),
		radial-gradient(560px 340px at 4% 96%, rgba(255, 255, 255, .10), transparent 72%);
}
.fmt-hero::after {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .34;
	background-image: radial-gradient(rgba(255, 255, 255, .24) 1px, transparent 1px);
	background-size: 25px 25px;
	-webkit-mask-image: radial-gradient(68% 68% at 32% 16%, #000 0%, transparent 78%);
	mask-image: radial-gradient(68% 68% at 32% 16%, #000 0%, transparent 78%);
}
.hero-grid {
	position: relative; z-index: 2;
	display: grid; grid-template-columns: 1fr 470px;
	gap: 40px; align-items: center;
	padding: 4px 0 32px;
}
.hero-kicker {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 13px; border-radius: 4px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .24);
	font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
	margin-bottom: 18px;
}
.hero-kicker i {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--accent-light); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}
.fmt-hero h1 {
	font-size: 42px; line-height: 1.2; font-weight: 800;
	letter-spacing: -1px; margin: 0 0 15px;
}
.fmt-hero h1 em {
	display: block; margin-top: 7px;
	font-style: normal; font-size: 22px; font-weight: 700;
	letter-spacing: 0; color: var(--accent-light);
}
.hero-lead {
	font-size: 15px; line-height: 1.85; color: rgba(255, 255, 255, .88);
	margin: 0 0 24px; max-width: 500px;
}
.hero-lead strong { color: #fff; }
.hero-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	height: 46px; padding: 0 26px; border-radius: 8px;
	font-size: 14.5px; font-weight: 700; text-decoration: none;
	white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--accent-2); box-shadow: 0 8px 22px rgba(4, 20, 60, .25); }
.btn-white:hover { box-shadow: 0 14px 30px rgba(4, 20, 60, .32); }
.btn-ghost {
	background: rgba(255, 255, 255, .12); color: #fff;
	border: 1px solid rgba(255, 255, 255, .42);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-primary {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff; box-shadow: 0 10px 24px rgba(20, 60, 140, .22);
}
.btn-line { background: #fff; color: var(--accent-2); border: 1px solid var(--line); }

.hero-chips {
	display: flex; flex-wrap: wrap; gap: 7px 16px;
	margin-top: 22px; font-size: 12.5px; color: rgba(255, 255, 255, .88);
}
.hero-chips span { position: relative; padding-left: 20px; display: inline-flex; align-items: center; }
.hero-chips span::before {
	content: ''; position: absolute; left: 0; top: 1px;
	width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .18);
}
.hero-chips span::after {
	content: ''; position: absolute; left: 4px; top: 5.5px;
	width: 5px; height: 2.6px;
	border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff;
	transform: rotate(-45deg);
}

.hero-media { min-width: 0; }
.media-frame {
	position: relative; overflow: hidden; border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, .22);
	background: #fff; box-shadow: 0 28px 60px rgba(0, 8, 32, .42);
}
.media-frame img { display: block; width: 100%; height: auto; }
.media-cap {
	display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px;
	margin-top: 9px; font-size: 11.5px; color: rgba(255, 255, 255, .72);
}
.rec-pill {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 2px 8px; border-radius: 4px;
	background: #fff1f0; color: #d9483e;
	font-size: 10.5px; font-weight: 700; letter-spacing: .2px;
}
.rec-pill i {
	width: 5px; height: 5px; border-radius: 50%;
	background: #ff5f57; box-shadow: 0 0 0 3px rgba(255, 95, 87, .14);
}
.rec-pill.is-mock { background: #eef3ff; color: #3f63b0; }
.rec-pill.is-mock i { background: #7a9bff; box-shadow: 0 0 0 3px rgba(122, 155, 255, .16); }

.hero-facts {
	position: relative; z-index: 2;
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: rgba(255, 255, 255, .09);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 10px; padding: 15px 0; margin-bottom: 42px;
}
.hero-facts .fact { text-align: center; border-right: 1px solid rgba(255, 255, 255, .14); padding: 0 8px; }
.hero-facts .fact:last-child { border-right: none; }
.hero-facts b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.hero-facts span { font-size: 12px; color: rgba(255, 255, 255, .76); }

/* ── 通用 Section ── */
.section { padding: 70px 0; scroll-margin-top: 82px; }
.soft { background: var(--soft); }
.sec-hd { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-hd .tag {
	display: inline-block; padding: 6px 13px; margin-bottom: 14px;
	border-radius: 4px; background: var(--accent-soft); color: var(--accent-2);
	font-size: 12px; font-weight: 700; letter-spacing: .5px;
}
.sec-hd h2 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 10px; }
.sec-hd p { font-size: 14.5px; line-height: 1.8; color: var(--muted); margin: 0; }

/* ── 特性 ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
	background: #fff; border: 1px solid var(--line); border-radius: 10px;
	padding: 25px 22px 23px;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dfe7f7; }
.feature .ic {
	width: 44px; height: 44px; border-radius: 8px; margin-bottom: 14px;
	display: flex; align-items: center; justify-content: center;
	background: var(--accent-soft); color: var(--accent-2);
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; font-weight: 700; margin: 0 0 7px; }
.feature p { font-size: 13px; line-height: 1.75; color: #6d7b8f; margin: 0; }

/* ── 真实演示 ── */
.demo-grid {
	display: grid; grid-template-columns: 1.1fr .9fr;
	gap: 42px; align-items: center;
}
.demo-media .media-frame {
	border-color: var(--line); box-shadow: 0 18px 44px rgba(24, 48, 100, .12);
}
.demo-media .media-cap { color: var(--muted); justify-content: center; }
.demo-copy .tag {
	display: inline-block; padding: 5px 12px; margin-bottom: 12px;
	border-radius: 4px; background: var(--accent-soft); color: var(--accent-2);
	font-size: 11.5px; font-weight: 700;
}
.demo-copy h2 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 10px; }
.demo-copy > p { font-size: 13.5px; line-height: 1.8; color: var(--muted); margin: 0 0 22px; }
.step { display: flex; gap: 13px; margin-bottom: 18px; }
.step:last-child { margin-bottom: 0; }
.step .num {
	flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px;
	background: var(--accent); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 800;
}
.step h3 { font-size: 14px; font-weight: 700; margin: 4px 0 4px; }
.step p { font-size: 12.5px; line-height: 1.7; color: #6d7b8f; margin: 0; }

/* ── 能力 ── */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap {
	background: #fff; border: 1px solid var(--line); border-radius: 10px;
	padding: 21px 19px;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cap:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dfe7f7; }
.cap .ic {
	width: 38px; height: 38px; border-radius: 8px; margin-bottom: 12px;
	display: flex; align-items: center; justify-content: center;
	background: var(--accent-soft); color: var(--accent-2);
}
.cap .ic svg { width: 19px; height: 19px; }
.cap h3 { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; }
.cap p { font-size: 12.5px; line-height: 1.7; color: #74808f; margin: 0; }

/* ── 场景 ── */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scene {
	background: #fff; border: 1px solid var(--line); border-radius: 10px;
	padding: 24px 21px;
}
.scene .sc-ic {
	width: 40px; height: 40px; border-radius: 8px; margin-bottom: 13px;
	display: flex; align-items: center; justify-content: center;
	background: var(--accent-soft); color: var(--accent-2);
}
.scene .sc-ic svg { width: 20px; height: 20px; }
.scene h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.scene p { font-size: 12.5px; line-height: 1.75; color: #74808f; margin: 0; }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
	background: #fff; border: 1px solid var(--line); border-radius: 8px;
	margin-bottom: 10px; overflow: hidden;
}
.faq details[open] { border-color: #d7e3fa; box-shadow: 0 10px 26px rgba(56, 126, 255, .06); }
.faq summary {
	cursor: pointer; list-style: none; padding: 16px 20px;
	display: flex; align-items: center; gap: 10px;
	font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
	content: ''; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%;
	background: var(--accent);
}
.faq summary::after {
	content: '+'; margin-left: auto; font-size: 19px; line-height: 1;
	color: #b8c4d8; font-weight: 400;
}
.faq details[open] summary::after { content: '−'; color: var(--accent); }
.faq .a { padding: 0 20px 18px 37px; font-size: 13.5px; line-height: 1.85; color: var(--text); }
.faq .a a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.faq .a a:hover { text-decoration: underline; }

/* ── CTA ── */
.cta {
	position: relative; overflow: hidden; text-align: center; color: #fff;
	padding: 54px 20px;
	background: linear-gradient(135deg, var(--accent-2), var(--accent) 68%, var(--accent-light));
}
.cta::before {
	content: ''; position: absolute; inset: 0;
	background: radial-gradient(520px 240px at 50% -10%, rgba(255, 255, 255, .24), transparent 72%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: 27px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.4px; }
.cta p { font-size: 14.5px; color: rgba(255, 255, 255, .88); margin: 0 0 24px; }
.cta .hero-btns { justify-content: center; }
.cta small { display: block; margin-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .7); }

/* ── Excel 表格示意 ── */
.sheet-window {
	background: #fff; color: #24352c; font-size: 9px;
	border-radius: 8px; overflow: hidden;
}
.sw-top {
	display: flex; align-items: center; gap: 6px;
	padding: 8px 10px; background: #f7faf8;
	border-bottom: 1px solid #e5eee8;
}
.sw-dots { display: flex; gap: 4px; margin-right: 3px; }
.sw-dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.sw-dots i:nth-child(1) { background: #ff5f57; }
.sw-dots i:nth-child(2) { background: #febc2e; }
.sw-dots i:nth-child(3) { background: #28c840; }
.sw-name { font-size: 9.5px; font-weight: 700; color: #3d4b44; }
.sw-saved {
	margin-left: auto; font-size: 8px; color: #0a7d4f;
	background: #e6f8ef; padding: 2px 7px; border-radius: 4px;
}
.sw-tools {
	display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
	padding: 6px 10px; border-bottom: 1px solid #e5eee8;
	font-size: 8px; color: #56655d;
}
.sw-tools span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 17px; height: 17px; padding: 0 4px;
	border-radius: 3px; background: #f2f7f4;
}
.sw-tools .sep { width: 1px; height: 11px; background: #dfe9e3; margin: 0 2px; padding: 0; }
.sw-formula {
	display: flex; align-items: center; gap: 8px;
	padding: 5px 10px; background: #f7faf8;
	border-bottom: 1px solid #e5eee8; font-size: 8.5px; color: #55655c;
}
.sw-formula b { color: #0a7d4f; font-style: italic; font-family: Georgia, serif; font-size: 10px; }
.sw-formula code {
	background: #fff; border: 1px solid #e2ece6;
	padding: 2px 6px; border-radius: 3px;
	font-family: Consolas, monospace; font-size: 8.5px; color: #0a7d4f;
}
.sw-formula span { margin-left: auto; color: #7f8e86; }
.sw-body { display: grid; grid-template-columns: 1fr 128px; }
.sw-grid { display: grid; grid-template-columns: 28px repeat(4, 1fr); }
.sw-grid .cell {
	border-right: 1px solid #edf3ef; border-bottom: 1px solid #edf3ef;
	padding: 4px 5px; min-height: 22px; line-height: 1.4;
}
.sw-grid .head {
	background: #f1f8f4; color: #6b7a72; text-align: center;
	font-weight: 700; font-size: 8px;
}
.sw-grid .rowh { background: #f7fbf8; color: #829088; text-align: center; }
.sw-grid .num { text-align: right; }
.sw-grid .active { outline: 2px solid #25b97b; outline-offset: -2px; background: #eaf8f1; }
.sw-chart {
	padding: 10px 9px; background: #fbfdfc; border-left: 1px solid #edf3ef;
	display: flex; flex-direction: column;
}
.sw-chart b { font-size: 8.5px; color: #46564d; margin-bottom: 7px; }
.sw-bars {
	display: flex; align-items: flex-end; gap: 7px;
	height: 92px; border-bottom: 1px solid #dfe9e3; padding: 0 3px;
}
.sw-bars i {
	flex: 1; background: linear-gradient(180deg, #8fe0b6, #25b97b);
	border-radius: 3px 3px 0 0;
}
.sw-legend { display: flex; justify-content: space-between; font-size: 7.5px; color: #8b9a92; margin-top: 5px; }

/* ── Footer ── */
footer { background: #10192b; color: #a9b4cc; padding: 56px 20px 0; min-width: 0; }
.footer-inner { max-width: 980px; margin: 0 auto; }
.footer-grid {
	display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr 1fr;
	gap: 28px; padding-bottom: 42px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-brand .logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .logo-wrap img { width: 36px; height: 36px; }
.footer-brand .logo-wrap span { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.footer-brand p { font-size: 13px; line-height: 1.85; color: #97a3bd; margin: 0 0 20px; max-width: 250px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact span { font-size: 12px; color: #8d9ab6; display: flex; align-items: flex-start; gap: 6px; }
.footer-contact span::before {
	content: ''; width: 5px; height: 5px; border-radius: 50%;
	background: var(--accent); flex: 0 0 5px; margin-top: 6px;
}
.footer-col h4 {
	font-size: 12px; color: #fff; margin: 0 0 18px;
	font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; font-size: 12.5px; }
.footer-col ul li a { color: #97a3bd; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li span { color: #7e8aa6; }
.footer-bottom {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 10px; padding: 20px 0;
	font-size: 12px; color: #6f7d9b;
}
.footer-bottom a { color: #6f7d9b; text-decoration: none; }
.footer-bottom a:hover { color: #b7c2da; }
.footer-bottom-left { display: flex; align-items: center; gap: 8px; }
.footer-bottom-left img { width: 17px; height: 17px; opacity: .85; }
.footer-bottom-right { display: flex; gap: 18px; }

/* ── 响应式 ── */
@media (max-width: 900px) {
	.fmt-hero { padding-top: 36px; }
	.hero-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 26px; }
	.hero-media { max-width: 540px; margin: 0 auto; width: 100%; }
	.fmt-hero h1 { font-size: 36px; }
	.fmt-hero h1 em { font-size: 20px; }
	.hero-facts { grid-template-columns: repeat(2, 1fr); padding: 0; margin-bottom: 34px; }
	.hero-facts .fact { padding: 12px 8px; }
	.hero-facts .fact:nth-child(2) { border-right: none; }
	.hero-facts .fact:nth-child(1), .hero-facts .fact:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }
	.section { padding: 56px 0; }
	.sec-hd { margin-bottom: 32px; }
	.feature-grid, .cap-grid, .scene-grid { grid-template-columns: repeat(2, 1fr); }
	.demo-grid { grid-template-columns: 1fr; gap: 28px; }
	.demo-copy { max-width: 620px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	.fmt-hero h1 { font-size: 30px; letter-spacing: -.5px; }
	.fmt-hero h1 em { font-size: 18px; }
	.hero-lead { font-size: 14px; }
	.hero-btns .btn { height: 44px; padding: 0 20px; font-size: 14px; }
	.hero-facts b { font-size: 18px; }
	.hero-facts span { font-size: 11.5px; }
	.sec-hd h2 { font-size: 24px; }
	.feature-grid, .cap-grid, .scene-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.cta h2 { font-size: 23px; }
}
