:root {
  --office-ink: #172033;
  --office-muted: #667085;
  --office-line: #dbe4f1;
  --office-blue: #155eef;
  --office-blue-dark: #0d47ad;
  --office-cyan: #087ea4;
  --office-soft: #f4f7fc;
  --office-card: #fff;
  --office-shadow: 0 18px 48px rgba(32, 57, 92, .09);
}

* { box-sizing: border-box; }
html { background: #f3f6fb; }
body, button, input, select, textarea { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }

.office-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--office-ink);
  background:
    radial-gradient(circle at 93% 5%, rgba(21, 94, 239, .12), transparent 25rem),
    radial-gradient(circle at 8% 40%, rgba(8, 126, 164, .07), transparent 22rem),
    linear-gradient(180deg, #f9fbff, #f1f5fa);
}

.office-body a { color: inherit; }
.office-topbar { position: relative; z-index: 30; border-bottom: 1px solid #dde6f2; background: rgba(255,255,255,.95); box-shadow: 0 5px 22px rgba(30,54,91,.05); }
.office-topbar-inner, .office-compliance, .office-shell, .office-messages { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.office-topbar-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.office-brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.office-brand img { width: 49px; height: 49px; padding: 3px; object-fit: contain; border: 1px solid #d9e2ef; border-radius: 50%; background: #fff; box-shadow: 0 8px 18px rgba(217,35,27,.12); }
.office-brand strong, .office-brand small { display: block; }
.office-brand strong { font-size: 18px; }
.office-brand small { margin-top: 3px; color: var(--office-muted); font-size: 12px; }
.office-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.office-nav a { color: #344054; font-weight: 700; text-decoration: none; }
.office-nav a:hover { color: var(--office-blue); }
.office-nav form { margin: 0; }
.office-nav button, .office-button-row button, .office-workbench > button:not(.office-primary), #prompt-close {
  border: 1px solid #cfdbea; border-radius: 11px; padding: 10px 16px; color: #344054; background: #fff; cursor: pointer; font-weight: 800;
}
.office-nav button:hover, .office-button-row button:hover, .office-workbench > button:not(.office-primary):hover { border-color: #9eb8dd; background: #f6f9fd; }
.office-user { padding: 8px 12px; border-radius: 10px; color: #1553aa; background: #eef5ff; font-weight: 800; }

.office-compliance { position: relative; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 10px; color: #87322d; font-size: 13px; }
.office-compliance::before { position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); border-bottom: 1px solid #efcbc8; background: #fff7f6; content: ""; }
.office-compliance > div { display: flex; align-items: center; gap: 9px; }
.office-compliance > div > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: #fff; background: #a83d36; font-weight: 900; }
.office-compliance small { color: #a86460; }
.office-shell { position: relative; z-index: 2; padding: 52px 0 80px; }
.office-messages { position: relative; z-index: 10; margin-top: 18px; }
.office-message { padding: 12px 15px; border: 1px solid #b8dec9; border-radius: 12px; color: #17683a; background: #effaf3; }

.office-hero { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 44px; align-items: center; padding: 46px; border: 1px solid #cbd9eb; border-radius: 28px; background: linear-gradient(135deg,#fff,#eef5ff); box-shadow: var(--office-shadow); }
.office-eyebrow { display: inline-block; color: var(--office-blue); font-size: 13px; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.office-hero h1 { margin: 12px 0 15px; font-size: clamp(32px,4.2vw,52px); line-height: 1.14; letter-spacing: -.035em; }
.office-hero p { max-width: 760px; margin: 0; color: var(--office-muted); font-size: 16px; line-height: 1.85; }
.office-hero-points { display: grid; gap: 10px; padding: 20px; border: 1px solid #d6e2f1; border-radius: 20px; background: rgba(255,255,255,.86); }
.office-hero-points span { display: flex; align-items: center; gap: 10px; color: #475467; font-size: 14px; }
.office-hero-points b { display: grid; place-items: center; min-width: 42px; height: 30px; border-radius: 9px; color: #155eef; background: #eaf2ff; font-size: 12px; }

.office-category { margin-top: 48px; }
.office-section-heading { margin-bottom: 19px; }
.office-section-heading h2 { margin: 6px 0 0; font-size: 30px; }
.office-tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.office-tool-card { min-height: 224px; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--office-line); border-radius: 21px; background: var(--office-card); box-shadow: 0 8px 27px rgba(33,58,98,.055); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.office-tool-card:hover { transform: translateY(-4px); border-color: #91b4e8; box-shadow: 0 17px 36px rgba(31,73,132,.12); }
.office-tool-mark { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 16px; color: #fff; background: linear-gradient(135deg,var(--office-blue),var(--office-cyan)); box-shadow: 0 10px 20px rgba(21,94,239,.18); font-size: 15px; font-weight: 900; }
.office-tool-card h3 { margin: 18px 0 9px; font-size: 20px; }
.office-tool-card p { margin: 0; color: var(--office-muted); line-height: 1.7; }
.office-tool-card footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.office-tool-card footer span { padding: 5px 9px; border-radius: 8px; color: #17683a; background: #edf9f1; font-size: 12px; font-weight: 800; }
.office-tool-card footer b { color: var(--office-blue); font-size: 13px; }
.office-security-note { margin-top: 48px; padding: 22px 25px; border: 1px solid #eed8a2; border-radius: 18px; color: #6d5210; background: #fffbeb; }
.office-security-note strong { display: block; margin-bottom: 7px; }
.office-security-note p { margin: 0; line-height: 1.7; }

.office-back { display: inline-block; margin-bottom: 20px; color: var(--office-blue) !important; font-weight: 800; text-decoration: none; }
.office-tool-hero { display: flex; align-items: center; gap: 20px; padding: 31px 34px; border: 1px solid #cbd9eb; border-radius: 24px; background: linear-gradient(135deg,#fff,#eef5ff); box-shadow: var(--office-shadow); }
.office-tool-hero .office-tool-mark { width: 64px; height: 64px; border-radius: 19px; font-size: 18px; }
.office-tool-hero h1 { margin: 6px 0 7px; font-size: clamp(29px,4vw,42px); }
.office-tool-hero p { margin: 0; color: var(--office-muted); line-height: 1.6; }
.office-workbench { margin-top: 24px; padding: 32px; border: 1px solid var(--office-line); border-radius: 23px; background: #fff; box-shadow: var(--office-shadow); }
.office-workbench label { display: block; }
.office-workbench label > span, .office-label { display: block; margin-bottom: 8px; color: #344054; font-size: 14px; font-weight: 900; }
.office-workbench input:not([type=checkbox]):not([type=range]), .office-workbench select, .office-workbench textarea { width: 100%; border: 1px solid #cfdbea; border-radius: 12px; padding: 12px 13px; color: #172033; background: #fff; font: inherit; outline: none; }
.office-workbench textarea { resize: vertical; line-height: 1.7; }
.office-workbench input:focus, .office-workbench select:focus, .office-workbench textarea:focus { border-color: #70a2ea; box-shadow: 0 0 0 3px rgba(21,94,239,.1); }
.office-workbench small { display: block; margin-top: 7px; color: var(--office-muted); line-height: 1.5; }
.office-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 20px; }
.office-wide { grid-column: 1 / -1; }
.office-primary { border: 0; border-radius: 12px; padding: 12px 21px; color: #fff; background: linear-gradient(135deg,var(--office-blue),#0d55c6); box-shadow: 0 9px 18px rgba(21,94,239,.2); cursor: pointer; font: inherit; font-weight: 900; }
.office-primary:hover { background: linear-gradient(135deg,#0d55c6,var(--office-blue-dark)); }
button:disabled { opacity: .55; cursor: not-allowed !important; }
.office-status { min-height: 24px; margin-top: 14px; color: var(--office-muted); line-height: 1.6; }
.office-status.is-error { color: #b42318; }
.office-status.is-success { color: #087443; }
.office-preview { display: block; max-width: 100%; max-height: 440px; margin-top: 20px; border: 1px solid var(--office-line); border-radius: 15px; }
.office-drop { display: grid !important; place-items: center; min-height: 150px; padding: 24px; border: 2px dashed #b9cbe3; border-radius: 18px; background: #f8fbff; text-align: center; }
.office-drop input { max-width: 500px; margin-top: 12px; }
.office-table-wrap { overflow-x: auto; margin-top: 18px; }
.office-table { width: 100%; border-collapse: collapse; }
.office-table th, .office-table td { padding: 12px; border-bottom: 1px solid #e5ebf3; text-align: left; vertical-align: top; }
.office-table th { color: #475467; background: #f7f9fc; font-size: 13px; }
.office-table td:last-child { min-width: 430px; word-break: break-all; font-family: ui-monospace,Consolas,monospace; font-size: 12px; }
.office-button-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.office-button-row .office-primary { border-color: transparent; color: #fff; background: var(--office-blue); }
.office-metrics { display: flex; flex-wrap: wrap; gap: 9px; color: #475467; font-size: 13px; }
.office-metrics span { padding: 7px 10px; border-radius: 9px; background: #f1f5fa; }
.office-result { min-height: 48px; margin: 15px 0 22px; padding: 13px 15px; border: 1px solid #d8e4f2; border-radius: 12px; color: #284d7c; background: #f5f9ff; line-height: 1.7; }
.office-prewrap { white-space: pre-wrap; word-break: break-word; }
.office-workbench hr { margin: 27px 0; border: 0; border-top: 1px solid #e1e8f1; }
.office-two-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
.office-qr-preview { display: block; width: min(300px,100%); margin-top: 18px; border: 1px solid #dbe4f1; border-radius: 14px; background: #fff; }
.office-mindmap { min-height: 340px; overflow: auto; padding: 20px; border: 1px solid #d8e3f0; border-radius: 16px; background: #f8fbff; }
.office-mindmap ul { position: relative; margin: 0; padding-left: 28px; list-style: none; }
.office-mindmap > ul { padding-left: 0; }
.office-mindmap li { position: relative; margin: 10px 0; padding-left: 16px; }
.office-mindmap li::before { position: absolute; top: .75em; left: 0; width: 10px; border-top: 1px solid #93afd2; content: ""; }
.office-mindmap span { display: inline-block; padding: 7px 11px; border: 1px solid #bcd0e9; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(31,73,132,.06); }
.office-timer { text-align: center; }
.office-timer-display { margin: 10px 0 20px; color: #174e9e; font-size: clamp(64px,12vw,120px); font-variant-numeric: tabular-nums; font-weight: 900; letter-spacing: -.05em; }
.office-timer .office-button-row { justify-content: center; }
.office-timer .office-form-grid { max-width: 570px; margin: 25px auto; text-align: left; }
.office-video { display: block; width: min(900px,100%); min-height: 260px; margin-top: 20px; border-radius: 16px; background: #0b1220; }
.office-check { display: inline-flex !important; align-items: center; gap: 9px; }
.office-check span { margin: 0 !important; }
.office-prompter { position: fixed; z-index: 1000; inset: 0; overflow-y: auto; padding: 70px 7vw 100vh; color: #fff; background: #05070b; }
.office-prompter #prompt-close { position: fixed; top: 18px; right: 22px; z-index: 2; color: #fff; border-color: #596170; background: #1d2430; }
.office-prompter #prompter-content { max-width: 1200px; margin: 0 auto; white-space: pre-wrap; line-height: 1.65; }
.office-alert { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 22px; padding: 15px 17px; border: 1px solid #efd69a; border-radius: 14px; color: #6f5310; background: #fffbeb; }
.office-alert strong { flex: 0 0 auto; }
.office-alert span { line-height: 1.65; }

.office-login { min-height: 610px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(360px,.7fr); overflow: hidden; border: 1px solid #ccdaec; border-radius: 28px; background: #fff; box-shadow: var(--office-shadow); }
.office-login-intro { display: flex; flex-direction: column; justify-content: center; padding: 58px; background: linear-gradient(135deg,#eef5ff,#f8fbff); }
.office-login-intro h1 { max-width: 650px; margin: 13px 0 17px; font-size: clamp(34px,5vw,54px); line-height: 1.13; }
.office-login-intro > p { max-width: 600px; margin: 0; color: var(--office-muted); font-size: 16px; line-height: 1.8; }
.office-assurance { display: grid; grid-template-columns: 38px 1fr; column-gap: 11px; align-items: center; margin-top: 32px; padding: 16px; border: 1px solid #efcbc8; border-radius: 15px; color: #87322d; background: #fff7f6; }
.office-assurance > span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: #a83d36; font-weight: 900; }
.office-assurance small { color: #a86460; }
.office-login-panel { display: flex; flex-direction: column; justify-content: center; padding: 52px; }
.office-login-panel h2 { margin: 8px 0; font-size: 32px; }
.office-login-panel > p { margin: 0 0 24px; color: var(--office-muted); }
.office-login-form { display: grid; gap: 17px; }
.office-login-form label span { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 900; }
.office-login-form input { width: 100%; border: 1px solid #cddaea; border-radius: 12px; padding: 13px; font: inherit; }
.office-form-error { margin-bottom: 14px; padding: 11px; border-radius: 10px; color: #b42318; background: #fef3f2; }

@media (max-width: 900px) {
  .office-hero, .office-login { grid-template-columns: 1fr; }
  .office-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .office-hero-points { grid-template-columns: repeat(3,1fr); }
  .office-nav a, .office-user { display: none; }
  .office-two-columns { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .office-topbar-inner, .office-compliance, .office-shell, .office-messages { width: min(100% - 24px,1240px); }
  .office-topbar-inner { min-height: 68px; }
  .office-brand img { width: 43px; height: 43px; }
  .office-brand strong { font-size: 15px; }
  .office-compliance { align-items: flex-start; }
  .office-compliance small, .office-compliance > b { display: none; }
  .office-shell { padding-top: 30px; }
  .office-hero, .office-workbench, .office-login-intro, .office-login-panel { padding: 24px; }
  .office-hero-points, .office-tool-grid, .office-form-grid { grid-template-columns: 1fr; }
  .office-tool-grid { gap: 12px; }
  .office-tool-card { min-height: 195px; }
  .office-tool-hero { align-items: flex-start; padding: 22px; }
  .office-tool-hero .office-tool-mark { width: 52px; height: 52px; }
  .office-wide { grid-column: auto; }
  .office-alert { display: block; }
  .office-alert strong { display: block; margin-bottom: 6px; }
}

@media print {
  .office-topbar, .office-compliance, .office-back, .office-tool-hero, .office-workbench > button, .office-workbench > .office-two-columns > label { display: none !important; }
  .office-shell, .office-workbench { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .office-mindmap { border: 0; background: #fff; }
}
