:root {
  --blue: #2f6bff;
  --blue-2: #42b6ff;
  --blue-3: #eaf3ff;
  --ink: #0f172a;
  --text: #475569;
  --muted: #7b8794;
  --line: #e5eefb;
  --card: #ffffff;
  --bg: #f3f8ff;
  --shadow: 0 22px 58px rgba(30, 87, 190, .14);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #eef6ff; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.page-shell { width: min(1024px, 100%); margin: 0 auto; min-height: 100vh; background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 48%, #f7fbff 100%); overflow: hidden; box-shadow: 0 0 0 1px rgba(203, 213, 225, .35), 0 30px 100px rgba(15, 23, 42, .08); }
.site-header { height: 76px; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 22px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 10px 22px rgba(47,107,255,.22); }
.brand-name { font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.main-nav { display: flex; align-items: center; gap: 30px; color: #526173; font-size: 15px; }
.main-nav a:hover { color: var(--blue); }
.settings-btn { height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid #cfe0ff; background: #fff; color: var(--blue); font-weight: 900; cursor: pointer; }
.settings-btn:hover { background: #edf5ff; }
main { padding-bottom: 40px; }
.capability-strip { height: 58px; padding: 0 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: center; background: #fff; border-bottom: 1px solid var(--line); }
.capability-strip span { height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #f4f9ff; border: 1px solid #e3eefc; color: #3f5875; font-size: 13px; font-weight: 900; }
.hero-section { position: relative; min-height: 520px; padding: 68px 48px 76px; display: grid; grid-template-columns: 1fr 390px; align-items: center; gap: 48px; background: linear-gradient(rgba(47,107,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(47,107,255,.055) 1px, transparent 1px), radial-gradient(circle at 18% 16%, rgba(66,182,255,.25), transparent 30%), radial-gradient(circle at 92% 12%, rgba(47,107,255,.16), transparent 34%), linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%); background-size: 34px 34px, 34px 34px, auto, auto, auto; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.orb-a { width: 180px; height: 180px; left: -60px; top: 120px; background: rgba(66,182,255,.16); }
.orb-b { width: 220px; height: 220px; right: -96px; top: 54px; background: rgba(47,107,255,.12); }
.hero-copy, .hero-side { position: relative; z-index: 1; }
.badge { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid #cfe0ff; background: rgba(255,255,255,.9); color: var(--blue); font-size: 14px; font-weight: 900; box-shadow: 0 8px 20px rgba(47,107,255,.08); }
.hero-copy h1 { margin: 24px 0 18px; max-width: 560px; font-size: 56px; line-height: 1.08; letter-spacing: -.06em; font-weight: 950; color: #0b1531; }
.hero-copy p { margin: 0; max-width: 540px; color: #536274; font-size: 18px; line-height: 1.85; }
.hero-actions { margin-top: 34px; display: flex; gap: 15px; }
.primary-link, .secondary-link { height: 50px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; font-weight: 900; }
.primary-link { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 16px 34px rgba(47,107,255,.25); }
.secondary-link { color: var(--blue); background: #fff; border: 1px solid #cfe0ff; }
.hero-side { display: grid; gap: 16px; }
.side-card { border: 1px solid #d9e8ff; border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); padding: 24px; }
.mini-paper { min-height: 300px; padding: 38px 30px; border-radius: 18px; background: linear-gradient(180deg, #fff, #f8fbff); border: 1px solid #e6eefb; color: #12203a; font-family: "FangSong", "仿宋_GB2312", "仿宋", serif; }
.mini-paper b { display: block; margin-bottom: 26px; text-align: center; font-family: "Songti SC", "SimSun", serif; font-size: 20px; line-height: 1.35; }
.mini-paper span { display: block; height: 10px; margin-bottom: 13px; border-radius: 999px; background: #d9e7ff; }
.mini-paper span.short { width: 48%; }
.mini-paper span.medium { width: 72%; }
.mini-paper em { display: block; margin: 22px 0 12px; color: #0f172a; font-style: normal; font-family: "SimHei", "黑体", sans-serif; font-weight: 900; }
.quality-badge { margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #2f6bff, #42b6ff); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.quality-badge strong { font-size: 22px; }
.quality-badge small { opacity: .88; font-weight: 800; }
.side-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.side-metrics div { min-height: 82px; padding: 14px 10px; border-radius: 20px; border: 1px solid #d9e8ff; background: rgba(255,255,255,.9); text-align: center; box-shadow: 0 12px 28px rgba(15,23,42,.045); }
.side-metrics strong { display: block; color: var(--blue); font-size: 22px; line-height: 1.2; }
.side-metrics span { display: block; margin-top: 6px; color: #64748b; font-size: 12px; font-weight: 800; }
.workspace-section { width: calc(100% - 96px); margin: -34px auto 34px; position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 20px; align-items: stretch; }
.tool-panel { width: 100%; margin: 0; border: 1px solid #d9e8ff; border-radius: 28px; background: rgba(255,255,255,.98); padding: 30px; box-shadow: var(--shadow); }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.panel-kicker, .section-title span { color: var(--blue); font-size: 12px; letter-spacing: .14em; font-weight: 950; }
.panel-header h2 { margin: 7px 0 0; font-size: 28px; letter-spacing: -.04em; }
.panel-header p { margin: 10px 0 0; color: #64748b; line-height: 1.7; font-size: 14px; }
.online-pill { height: 30px; flex: 0 0 auto; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: #e7f7ff; color: #0284c7; font-size: 12px; font-weight: 900; }
.upload-area { min-height: 185px; border: 2px dashed #9cc6ff; border-radius: 24px; background: linear-gradient(180deg, #fafdff, #edf6ff); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; text-align: center; cursor: pointer; transition: .18s ease; }
.upload-area:hover, .upload-area.dragover { border-color: var(--blue); transform: translateY(-1px); background: #edf5ff; }
.upload-area input { display: none; }
.upload-icon { width: 62px; height: 62px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-2)); font-size: 34px; font-weight: 900; box-shadow: 0 14px 28px rgba(47,107,255,.22); }
.upload-area strong { font-size: 18px; color: #172554; }
.upload-area small { color: var(--muted); }
.process-title { margin: 24px 0 14px; font-size: 15px; font-weight: 950; color: #22324a; }
.process-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.process-btn { min-height: 86px; padding: 16px 18px; border-radius: 20px; border: 1px solid #d9e8ff; background: #fff; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; transition: .18s ease; }
.process-btn:hover { transform: translateY(-2px); border-color: #8dbdff; background: #f5f9ff; box-shadow: 0 14px 32px rgba(47,107,255,.12); }
.process-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.process-icon, .feature-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 15px; display: grid; place-items: center; color: var(--blue); background: #edf5ff; font-size: 20px; font-weight: 950; }
.cloud-btn .process-icon { color: #0284c7; background: #e7f7ff; }
.process-btn b { display: block; color: #11214a; font-size: 17px; }
.process-btn small { display: block; margin-top: 5px; color: #718096; font-size: 13px; line-height: 1.35; }
.workspace-guide { display: grid; gap: 14px; }
.guide-card { padding: 19px; border-radius: 24px; border: 1px solid #d9e8ff; background: rgba(255,255,255,.98); box-shadow: 0 12px 30px rgba(15,23,42,.045); display: flex; align-items: flex-start; gap: 14px; }
.guide-card span { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; color: var(--blue); background: #edf5ff; font-weight: 950; }
.guide-card b { display: block; color: #15233d; font-size: 16px; }
.guide-card p { margin: 7px 0 0; color: #64748b; line-height: 1.65; font-size: 13px; }
.feature-row { width: calc(100% - 96px); margin: 0 auto 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-row article { position: relative; overflow: hidden; min-height: 148px; padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); box-shadow: 0 12px 32px rgba(15,23,42,.045); }
.feature-row article:after { content: ""; position: absolute; width: 110px; height: 110px; right: -42px; top: -42px; border-radius: 50%; background: rgba(47,107,255,.06); }
.feature-row h3 { margin: 16px 0 8px; font-size: 19px; }
.feature-row p { margin: 0; color: #64748b; line-height: 1.7; }
.checker-section, .standard-preview-section, .rules-section { width: calc(100% - 96px); margin: 0 auto 34px; border-radius: 28px; border: 1px solid var(--line); background: #fff; padding: 34px; box-shadow: 0 14px 36px rgba(15,23,42,.045); }
.checker-section, .standard-preview-section { background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); }
.section-title { text-align: center; margin-bottom: 24px; }
.section-title h2 { margin: 9px 0 8px; font-size: 32px; letter-spacing: -.045em; }
.section-title p { margin: 0 auto; max-width: 620px; color: #64748b; line-height: 1.8; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-grid div { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 16px; background: #f7fbff; color: #344256; font-weight: 800; }
.check-grid i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.paper-wrap { position: relative; width: min(620px, 100%); margin: 0 auto; padding: 32px 0 0; }
.paper-ruler { position: absolute; color: #2f6bff; background: #edf5ff; border: 1px solid #cfe0ff; border-radius: 999px; font-size: 12px; font-weight: 900; z-index: 2; }
.paper-ruler.top { top: 0; left: 50%; transform: translateX(-50%); padding: 6px 12px; }
.paper-ruler.left { top: 180px; left: -26px; padding: 6px 10px; writing-mode: vertical-rl; letter-spacing: .08em; }
.standard-paper { position: relative; min-height: 840px; padding: 96px 72px 82px; background: #fff; border: 1px solid #edf2fb; box-shadow: 0 24px 64px rgba(15,23,42,.10); color: #111827; font-family: "FangSong", "仿宋_GB2312", "仿宋", serif; font-size: 16px; line-height: 1.9; }
.standard-paper:before { content: "A4 公文版式预览"; position: absolute; top: 18px; right: 18px; color: #94a3b8; font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.standard-paper h3 { margin: 0 0 34px; text-align: center; color: #111827; font-family: "Songti SC", "SimSun", serif; font-size: 26px; line-height: 1.35; font-weight: 800; letter-spacing: .02em; }
.standard-paper p { margin: 0; text-indent: 2em; }
.standard-paper .recipient { text-indent: 0; }
.standard-paper .level { text-indent: 0; margin-top: 10px; }
.standard-paper .level-1 { font-family: "SimHei", "黑体", sans-serif; font-weight: 800; }
.standard-paper .level-2 { font-family: "KaiTi", "楷体_GB2312", serif; font-weight: 800; }
.standard-paper .level-3 { font-family: "FangSong", "仿宋_GB2312", serif; font-weight: 800; }
.standard-paper .attachment-line { margin-top: 28px; text-indent: 2em; font-weight: 800; }
.standard-paper .sign-line { margin-top: 40px; text-align: right; text-indent: 0; }
.standard-paper .date-line { text-align: right; text-indent: 0; }
.standard-paper .page-number { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; color: #111827; font-family: "SimSun", serif; font-size: 14px; }
.rules-list { display: grid; gap: 12px; }
.rules-list div { min-height: 66px; padding: 16px 18px; display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 16px; border-radius: 16px; background: #f7fbff; border: 1px solid #eaf1fb; }
.rules-list b { color: #1d4ed8; }
.rules-list em { color: #475569; font-style: normal; line-height: 1.6; }
footer { padding: 26px 48px 44px; text-align: center; color: #718096; }
.progress-overlay[hidden], .settings-modal[hidden] { display: none !important; }
.progress-overlay, .settings-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(248, 250, 252, .68); backdrop-filter: blur(6px); }
.settings-modal { z-index: 1100; background: rgba(248, 250, 252, .72); backdrop-filter: blur(7px); }
.progress-panel, .settings-card { width: min(520px, 94vw); padding: 26px; border-radius: 24px; border: 1px solid #d9e8ff; background: rgba(255,255,255,.98); box-shadow: 0 24px 70px rgba(47,107,255,.16); }
.progress-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.progress-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--blue); background: #edf5ff; font-size: 22px; }
.progress-panel h2 { margin: 0 0 6px; font-size: 20px; }
.progress-panel p { margin: 0; color: #64748b; font-size: 14px; }
.progress-track { height: 12px; border-radius: 999px; overflow: hidden; background: #e0f2fe; }
#progressBar { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #60a5fa, #22d3ee); transition: width .25s ease; }
.progress-foot { margin-top: 12px; display: flex; justify-content: space-between; color: #64748b; font-size: 13px; }
.progress-foot strong { color: var(--blue); }
.cancel-process { width: 100%; height: 42px; margin-top: 18px; border: 1px solid #cbd5e1; border-radius: 12px; color: #475569; background: #fff; font-weight: 900; cursor: pointer; }
.cancel-process:hover { color: #dc2626; border-color: #fecaca; background: #fff7f7; }
.settings-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.settings-head span { color: var(--blue); font-size: 12px; letter-spacing: .14em; font-weight: 950; }
.settings-head h2 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.04em; }
.settings-close { width: 34px; height: 34px; border: 0; border-radius: 12px; background: #f1f5f9; color: #475569; cursor: pointer; font-size: 24px; line-height: 1; }
.settings-desc { margin: 0 0 18px; color: #64748b; line-height: 1.7; font-size: 14px; }
.setting-field { display: grid; gap: 8px; margin-top: 14px; }
.setting-field span { color: #334155; font-weight: 900; font-size: 14px; }
.setting-field input { height: 46px; padding: 0 14px; border: 1px solid #dbeafe; border-radius: 13px; outline: none; color: #0f172a; background: #f8fbff; }
.setting-field input:focus { border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(147,197,253,.22); }
.setting-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #64748b; font-size: 14px; }
.settings-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.settings-primary, .settings-secondary { height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 900; cursor: pointer; }
.settings-primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.settings-secondary { border: 1px solid #cbd5e1; color: #475569; background: #fff; }
.settings-status { display: block; min-height: 18px; margin-top: 12px; color: #0284c7; }
@media (max-width: 860px) {
  .page-shell { width: 100%; }
  .site-header { padding: 0 22px; }
  .main-nav { display: none; }
  .capability-strip { height: auto; padding: 14px 22px; grid-template-columns: 1fr 1fr; }
  .hero-section { grid-template-columns: 1fr; padding: 46px 22px 58px; }
  .hero-copy h1 { font-size: 42px; }
  .workspace-section { width: calc(100% - 44px); grid-template-columns: 1fr; margin-top: -24px; }
  .process-actions, .feature-row, .check-grid { grid-template-columns: 1fr; }
  .feature-row, .checker-section, .standard-preview-section, .rules-section { width: calc(100% - 44px); }
  .rules-list div { grid-template-columns: 1fr; gap: 6px; }
  .standard-paper { min-height: 720px; padding: 76px 38px 72px; font-size: 15px; }
  .standard-paper h3 { font-size: 22px; }
  .paper-ruler.left { display: none; }
}
@media (max-width: 520px) {
  .brand-name { font-size: 16px; }
  .settings-btn { padding: 0 12px; }
  .capability-strip { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .primary-link, .secondary-link { width: 100%; }
  .side-metrics { grid-template-columns: 1fr; }
  .quality-badge { align-items: flex-start; flex-direction: column; }
  .tool-panel { padding: 22px; }
}
