/* 帧渡 - 高端简约浅色主题（设计美化版） */
:root {
  --ink: #13243f;
  --muted: #687892;
  --line: #e6edf6;
  --blue: #2779e8;
  --blue2: #5ea6ff;
  --violet: #7657d9;
  --teal: #12ad77;
  --canvas: #fbfcff;
  --shadow: 0 13px 38px rgba(49, 92, 153, .08);
  --danger: #d64545;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Manrope, 'Noto Sans SC', sans-serif; font-size: 15px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.app { min-height: 100vh; display: flex; }

/* ---------- 侧边栏 ---------- */
.sidebar { width: 286px; flex: none; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .9); padding: 27px 24px 24px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 13px; padding: 0 10px 29px; text-decoration: none; color: inherit; }
.brand-mark { width: 45px; height: 45px; position: relative; display: grid; place-items: center; }
.brand-mark svg { width: 45px; height: 45px; }
.brand-text b { display: block; font-size: 23px; letter-spacing: -.08em; line-height: 1.05; }
.brand-text span { display: block; font-size: 12px; color: #4b6e9e; margin-top: 6px; letter-spacing: .04em; }
.nav { display: flex; flex-direction: column; gap: 7px; }
.nav a { display: flex; align-items: center; gap: 17px; border-radius: 14px; padding: 15px 18px; color: #1d3555; font-size: 16px; text-decoration: none; transition: .18s; }
.nav a svg { width: 23px; height: 23px; stroke: #48627f; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a:hover { background: #f2f7ff; color: var(--blue); }
.nav a.active { color: var(--blue); background: linear-gradient(100deg, #edf5ff, #f3f7ff); font-weight: 700; }
.nav a.active svg { stroke: var(--blue); }
.privacy { margin: auto 11px 0; padding: 25px 22px 24px; border: 1px solid #d9e8ff; border-radius: 18px; background: linear-gradient(145deg, #eef6ff, #f7fbff); }
.privacy-icon { width: 38px; height: 38px; border-radius: 12px; background: #d7eaff; display: grid; place-items: center; color: var(--blue); margin-bottom: 15px; }
.privacy-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.privacy h3 { font-size: 16px; margin: 0 0 12px; color: #1c4f98; }
.privacy p { font-size: 13px; line-height: 1.75; color: #667e9e; margin: 0 0 14px; }
.privacy a { font-size: 13px; color: var(--blue); font-weight: 600; text-decoration: none; }
.privacy a span { font-size: 18px; margin-left: 4px; }

/* ---------- 主区域 ---------- */
.main { min-width: 0; flex: 1; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 42px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; color: #33517a; text-decoration: none; font-size: 14px; padding: 9px 14px; border-radius: 11px; transition: .15s; }
.topbar a:hover { background: #f0f6ff; color: var(--blue); }
.topbar a svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.topbar button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: #33517a; transition: .15s; }
.topbar button:hover { border-color: #c9dcf6; color: var(--blue); }
.topbar button svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.workspace { padding: 26px 42px 60px; max-width: 1240px; margin: 0 auto; }
.hero { text-align: center; margin: 8px 0 22px; }
.hero h1 { font-size: 40px; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.hero h1 span { color: var(--blue); }
.hero h1 em { font-style: normal; color: var(--violet); }
.hero p { color: var(--muted); font-size: 16px; margin: 0; letter-spacing: .12em; }
.notice { display: flex; gap: 10px; align-items: flex-start; max-width: 860px; margin: 0 auto 26px; background: #fff8e8; border: 1px solid #ffe1a1; color: #8a6414; border-radius: 13px; padding: 12px 18px; font-size: 13px; line-height: 1.7; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: #d9a520; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 26px 28px; }
.panel.wide { margin-top: 22px; }
.qz-frame-wrap { margin: 14px -4px -4px; }
.qz-frame-wrap iframe { display: block; width: 100%; min-height: 320px; border: 0; background: var(--canvas); border-radius: 12px; }
.panel:has(#compress) { padding: 20px 22px 0; }
.panel:has(#compress) .panel-head { padding: 0 4px 6px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.panel-title { display: flex; align-items: center; gap: 11px; }
.panel-title h2 { font-size: 19px; margin: 0; font-weight: 700; }
.panel-title .icon { width: 34px; height: 34px; border-radius: 11px; background: #e5f0ff; color: var(--blue); display: grid; place-items: center; flex: none; }
.panel-title .icon.violet { background: #efe9fd; color: var(--violet); }
.panel-title .icon.teal { background: #e2f7ee; color: var(--teal); }
.panel-title .icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pill { font-size: 12px; color: var(--blue); background: #e9f2ff; border-radius: 999px; padding: 4px 12px; font-weight: 600; white-space: nowrap; }
.pill.violet { color: var(--violet); background: #efe9fd; }
.panel-desc { color: var(--muted); font-size: 13px; margin: 0 0 16px; line-height: 1.7; }

/* ---------- 链接输入区 ---------- */
.dropzone { border: 1.6px dashed #c9dcf6; border-radius: 16px; background: #f7faff; }
.link-zone { padding: 16px 18px 13px; }
.link-zone textarea { width: 100%; border: none; outline: none; resize: vertical; background: transparent; color: var(--ink); font-size: 14px; line-height: 1.7; min-height: 66px; font-family: inherit; }
.link-zone textarea::placeholder { color: #9dafc8; }
.drop-hint { font-size: 12px; color: #8ba0bd; margin-top: 5px; }
.drop-hint.detected { color: var(--blue); font-weight: 600; }
.link-zone:focus-within { border-color: var(--blue2); background: #f2f8ff; }
.actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.primary { flex: 1; max-width: 340px; height: 50px; border: none; border-radius: 13px; background: linear-gradient(135deg, #2f83f0, #1e6fe0); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .06em; box-shadow: 0 10px 22px rgba(39, 121, 232, .28); transition: .18s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(39, 121, 232, .34); }
.primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.violet-btn { background: linear-gradient(135deg, #8465e6, #6a4cd0); box-shadow: 0 10px 22px rgba(118, 87, 217, .28); }
.violet-btn:hover { box-shadow: 0 14px 26px rgba(118, 87, 217, .34); }
.shortcut { font-size: 12px; color: #93a6c0; }

/* ---------- 平台标签 ---------- */
.platforms { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #eef3fa; }
.platforms strong { font-size: 12px; color: #7d92af; font-weight: 600; margin-right: 2px; }
.platform { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #40587a; }
.platform i { font-style: normal; width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 11px; color: #fff; font-weight: 700; }
.platform i.douyin { background: #161823; }
.platform i.red { background: #ff2442; }
.platform i.bili { background: #00a1d6; }
.platform i.weibo { background: #e6162d; }
.platform i.kuaishou { background: #ff4906; }
.platform i.xigua { background: #ff7f4d; }
.platform i.toutiao { background: #ff2d2d; }
.platform.more { cursor: pointer; color: var(--blue); font-weight: 600; }
.platform.more i { background: #e5f0ff; color: var(--blue); }

/* ---------- 文件选择区 ---------- */
.file-zone { width: 100%; padding: 30px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; transition: .18s; }
.file-zone:hover, .file-zone.over { border-color: var(--violet); background: #f7f3ff; }
.upload-icon { width: 46px; height: 46px; border-radius: 14px; background: #efe9fd; color: var(--violet); display: grid; place-items: center; margin-bottom: 4px; }
.upload-icon svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.drop-main { font-size: 15px; font-weight: 700; color: #3c4f70; }
.drop-sub { font-size: 12px; color: #93a6c0; }
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 16px; }
.format { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 13px 8px 11px; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: .15s; }
.format:hover { border-color: #c9dcf6; background: #f7faff; transform: translateY(-1px); }
.format .ficon { font-size: 21px; line-height: 1; }
.format b { font-size: 13px; color: #2c4160; }
.format span { font-size: 11px; color: #93a6c0; }

/* ---------- 解析结果 ---------- */
.result-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 38px 0; color: var(--muted); }
.result-placeholder { text-align: center; padding: 34px 0; color: var(--muted); }
.result-placeholder .t1 { font-size: 15px; font-weight: 600; color: #40587a; margin-top: 12px; }
.result-placeholder .t2 { font-size: 13px; margin-top: 6px; }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; background: #eef5ff; color: var(--blue); display: inline-grid; place-items: center; }
.icon-circle svg { width: 24px; height: 24px; }
.result-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.result-head .badge { flex: none; font-size: 12px; font-weight: 700; color: var(--blue); background: #e9f2ff; border-radius: 999px; padding: 4px 12px; margin-top: 2px; }
.result-head .title { font-size: 16px; font-weight: 700; line-height: 1.6; }
.result-head .author { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 5px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.media-card { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: #fff; }
.media-card .media-body { background: #0e1626; display: grid; place-items: center; min-height: 150px; }
.media-card img.cover, .media-card video { width: 100%; max-height: 320px; object-fit: contain; display: block; }
.media-card .audio-body { padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.media-card .audio-body audio { width: 100%; }
.audio-icon { color: var(--violet); }
.media-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.media-card-footer .t { font-size: 13px; font-weight: 700; }
.media-card-footer .s { font-size: 11px; color: #93a6c0; margin-top: 2px; }
.gallery { margin-top: 20px; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; flex-wrap: wrap; }
.gallery-head .label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #2c4160; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-item .dl { position: absolute; right: 8px; bottom: 8px; opacity: 0; transition: .15s; }
.gallery-item:hover .dl { opacity: 1; }

/* ---------- 提示条 ---------- */
.alert { display: flex; gap: 11px; align-items: flex-start; border-radius: 13px; padding: 14px 16px; font-size: 13px; line-height: 1.7; }
.alert svg { flex: none; margin-top: 2px; }
.alert-error { background: #fdf0f0; border: 1px solid #f6d5d5; color: #a33; }
.alert-info { background: #eef5ff; border: 1px solid #d5e5f9; color: #2d5c9e; }
.alert-title { font-weight: 700; margin-bottom: 3px; }
.alert-desc code { background: rgba(0, 0, 0, .06); padding: 1px 6px; border-radius: 5px; font-size: 11px; word-break: break-all; }

/* ---------- 按钮通用 ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; transition: .15s; text-decoration: none; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 11.5px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1e6bd8; }
.btn-secondary { background: #eef3fa; color: #33517a; }
.btn-secondary:hover { background: #e2ebf7; }
.btn-outline { background: #fff; border-color: #cfdef3; color: #33517a; }
.btn-outline:hover { border-color: var(--blue2); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.ghost-btn { border: 1px solid #cfdef3; background: #fff; color: #33517a; border-radius: 10px; height: 32px; padding: 0 14px; font-size: 12.5px; font-weight: 600; }
.ghost-btn:hover { border-color: var(--blue2); color: var(--blue); }

/* ---------- 转换任务列表 ---------- */
.file-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.file-row { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; background: #fbfdff; }
.file-icon { flex: none; width: 42px; height: 42px; border-radius: 11px; background: #efe9fd; color: var(--violet); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.file-meta { min-width: 0; flex: 1; }
.file-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 11.5px; color: #93a6c0; margin-top: 2px; }
.file-cat { display: inline-block; font-size: 10.5px; color: var(--violet); background: #efe9fd; border-radius: 999px; padding: 1px 9px; margin-top: 5px; font-weight: 600; }
.file-arrow { font-size: 12px; color: #93a6c0; flex: none; }
.fmt-select { height: 34px; border: 1px solid #cfdef3; border-radius: 9px; padding: 0 8px; background: #fff; color: #33517a; font-size: 12.5px; max-width: 130px; }
.file-status { flex: none; min-width: 74px; font-size: 12px; color: #93a6c0; text-align: center; }
.file-status.processing { color: var(--blue); }
.file-status.done { color: var(--teal); font-weight: 700; }
.file-status.error { color: var(--danger); font-weight: 700; }
.progress-track { height: 4px; border-radius: 99px; background: #e5edf7; overflow: hidden; margin-top: 5px; }
.progress-fill { height: 100%; width: 40%; border-radius: 99px; background: var(--blue); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.btn-remove { flex: none; width: 26px; height: 26px; border: none; border-radius: 8px; background: transparent; color: #9dafc8; font-size: 16px; }
.btn-remove:hover { background: #fdf0f0; color: var(--danger); }
.convert-bar { margin-top: 14px; }

/* ---------- 转换记录 ---------- */
.empty-tip { text-align: center; color: #93a6c0; font-size: 13px; padding: 30px 0; }
.hist-table { width: 100%; border-collapse: collapse; }
.hist-table th { text-align: left; font-size: 12px; color: #7d92af; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hist-table td { font-size: 13px; padding: 11px 10px; border-bottom: 1px solid #f0f5fb; vertical-align: middle; }
.hist-table tr:last-child td { border-bottom: none; }
.hist-name { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.hist-target { font-weight: 700; color: var(--violet); white-space: nowrap; }
.hist-status { white-space: nowrap; font-size: 12px; font-weight: 700; }
.hist-status.done { color: var(--teal); }
.hist-status.error { color: var(--danger); }
.hist-status.processing { color: var(--blue); }
.hist-time { color: #93a6c0; font-size: 12px; white-space: nowrap; }

/* ---------- 信息条 / 快捷键 ---------- */
.info-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 24px 28px; }
.info { display: flex; gap: 12px; align-items: flex-start; }
.info > svg { width: 34px; height: 34px; flex: none; stroke: var(--blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info h3 { font-size: 14.5px; margin: 0 0 6px; }
.info p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0; }
.keyboard { display: flex; align-items: center; gap: 12px; margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 15px 20px; font-size: 13px; }
.keyboard svg { width: 22px; height: 22px; stroke: #48627f; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.keyboard b { color: #2c4160; }
.keyboard span { color: var(--muted); font-size: 12.5px; }

/* ---------- 弹窗 ---------- */
.dialog-mask { position: fixed; inset: 0; background: rgba(19, 36, 63, .42); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 90; padding: 20px; }
.dialog { background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(19, 36, 63, .2); width: 100%; max-width: 26rem; max-height: 86vh; overflow: auto; padding: 24px 26px; }
.dialog-head { margin-bottom: 14px; }
.dialog-title { font-size: 17px; font-weight: 800; }
.dialog-desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.dialog-foot { margin-top: 16px; display: flex; justify-content: flex-end; gap: 10px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.platform-cell { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.platform-cell .n { font-size: 13px; font-weight: 700; }
.platform-cell .d { font-size: 11px; color: #93a6c0; margin-top: 3px; }
.faq-item { border-bottom: 1px solid #f0f5fb; padding: 12px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item .q { font-size: 13.5px; font-weight: 700; color: #2c4160; }
.faq-item .a { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-top: 5px; }

/* ---------- 下载进度 ---------- */
.progress-bar { height: 8px; border-radius: 99px; background: #e5edf7; overflow: hidden; }
.progress-bar > div { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--blue2)); transition: width .2s; }
.progress-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: #93a6c0; margin-top: 7px; }
.dl-tray { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; width: 300px; }
.dl-task { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; transition: opacity .4s; }
.dl-task.fade { opacity: 0; }
.dl-task-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dl-task-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-task-x { flex: none; border: none; background: transparent; color: #9dafc8; font-size: 16px; line-height: 1; }
.dl-task-x:hover { color: var(--danger); }
.dl-task.done .dl-pct { color: var(--teal); font-weight: 700; }
.dl-task.error .dl-pct { color: var(--danger); font-weight: 700; }

/* ---------- iOS 浮层 ---------- */
.ios-overlay { position: fixed; inset: 0; background: rgba(10, 18, 32, .92); z-index: 100; display: flex; flex-direction: column; }
.ios-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; color: #fff; }
.ios-top .a { font-size: 14px; font-weight: 700; }
.ios-top .b { font-size: 11px; color: #93a6c0; margin-top: 3px; word-break: break-all; }
.ios-close { border: none; background: rgba(255, 255, 255, .12); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.ios-content { flex: 1; display: grid; place-items: center; overflow: hidden; padding: 0 18px; }
.ios-content img, .ios-content video { max-width: 100%; max-height: 100%; border-radius: 12px; }
.ios-thumbs { display: flex; gap: 8px; padding: 10px 18px; overflow-x: auto; }
.ios-thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: 9px; border: 2px solid transparent; cursor: pointer; }
.ios-thumbs img.active { border-color: var(--blue2); }
.ios-actions { padding: 14px 18px 26px; display: flex; justify-content: center; }
.ios-actions .btn { background: var(--blue); color: #fff; height: 44px; padding: 0 26px; border-radius: 12px; font-size: 14px; }

/* ---------- Toast / spinner ---------- */
#toastRoot { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #13243f; color: #fff; font-size: 13px; border-radius: 11px; padding: 10px 20px; box-shadow: 0 10px 26px rgba(19, 36, 63, .3); animation: toastIn .22s ease; max-width: 80vw; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.spinner { width: 30px; height: 30px; border: 3px solid #d5e5f9; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.tiny { width: 14px; height: 14px; border-width: 2px; display: inline-block; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 登录 / 用户 ---------- */
.auth-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 999px; border: none; background: linear-gradient(135deg, #1e8af0 0%, #4f9dff 100%); color: #fff; font-size: 13.5px; font-weight: 600; width: auto !important; cursor: pointer; box-shadow: 0 4px 14px rgba(30, 138, 240, .30), inset 0 1px 0 rgba(255, 255, 255, .22); transition: .18s; }
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(30, 138, 240, .40), inset 0 1px 0 rgba(255, 255, 255, .22); color: #fff; }
.auth-btn:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(30, 138, 240, .30); }
.auth-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; }
.auth-btn.user-chip { background: linear-gradient(100deg, #edf5ff, #f3f7ff); border: 1px solid #c9dcf6; color: var(--blue); box-shadow: none; }
.auth-btn.user-chip em { font-style: normal; font-size: 10.5px; background: linear-gradient(135deg, #f0b429, #d9930d); color: #fff; border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.topbar .auth-btn:hover { color: #fff; border-color: transparent; }
.topbar .auth-btn.user-chip:hover { color: var(--blue); }
.form-field { margin-bottom: 13px; }
.form-field label { display: block; font-size: 12.5px; color: #5b7191; font-weight: 600; margin-bottom: 6px; }
.form-field input { width: 100%; height: 42px; border: 1px solid #cfdef3; border-radius: 11px; padding: 0 13px; font-size: 14px; outline: none; background: #fbfdff; transition: .15s; }
.form-field input:focus { border-color: var(--blue2); background: #fff; box-shadow: 0 0 0 3px rgba(94, 166, 255, .15); }
.form-err { color: var(--danger); font-size: 12.5px; min-height: 18px; margin: 4px 0 8px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; background: #f0f5fb; border-radius: 11px; padding: 4px; }
.auth-tabs button { flex: 1; height: 36px; border: none; border-radius: 8px; background: transparent; color: #5b7191; font-size: 13.5px; font-weight: 600; }
.auth-tabs button.active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(49, 92, 153, .12); }
.auth-tabs button:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; max-width: none; }
.user-info-card { background: #f7faff; border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px; margin-bottom: 15px; }
.user-info-card .row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.user-info-card .row b { color: #2c4160; }
.user-info-card .row span { color: var(--muted); }
.member-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f0b429, #d9930d); border-radius: 999px; padding: 1px 9px; }
.member-tag.free { background: #b8c6da; }

/* ---------- 记录类型徽章 ---------- */
.hist-type { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.hist-type.parse { color: var(--blue); background: #e9f2ff; }
.hist-type.convert { color: var(--violet); background: #efe9fd; }
.hist-sub { font-size: 11.5px; color: #93a6c0; margin-top: 3px; }

/* ---------- 页脚备案 ---------- */
.site-footer{display:flex;justify-content:center;align-items:center;gap:14px;padding:16px 20px 20px;font-size:12.5px;color:#93a5bd}
.site-footer a{color:#93a5bd;text-decoration:none;transition:color .2s}
.site-footer a:hover{color:#337be8}

/* ---------- 关于我们 ---------- */
.about-body{padding:4px 26px 24px}
.about-intro{margin:0 0 18px;font-size:14px;line-height:1.9;color:#5b6b82}
.about-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.about-card{display:block;background:#f6f9fd;border:1px solid #e6edf6;border-radius:14px;padding:18px 20px;text-decoration:none;transition:border-color .2s,transform .2s}
.about-card:hover{border-color:#337be8;transform:translateY(-2px)}
.about-card-icon{width:38px;height:38px;border-radius:11px;background:#e8f1fe;color:#337be8;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.about-card-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.about-card-t{font-size:12px;color:#8aa0bc;margin-bottom:4px}
.about-card-v{font-size:14.5px;font-weight:600;color:#22314a}

/* ---------- 响应式 ---------- */@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; z-index: 70; transform: translateX(-100%); transition: .25s; }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(19, 36, 63, .25); }
  .workspace { padding: 18px 18px 50px; }
  .topbar { padding: 0 18px; }
  .hero h1 { font-size: 27px; }
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .info-strip { grid-template-columns: 1fr; }
  .hist-table { display: block; overflow-x: auto; }
}
