:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #7b7f87;
  --line: #eeeef1;
  --soft: #f7f7f9;
  --red: #ff2442;
  --red-soft: #fff0f2;
  --green: #24a36b;
  --shadow: 0 12px 36px rgba(28, 29, 36, .06);
}

/* 集成总台副本：统一为橙白视觉，不影响原抖音项目。 */
:root {
  --line: #eee3d7;
  --soft: #faf7f3;
  --red: #f26518;
  --red-soft: #fff1e7;
  --shadow: 0 12px 36px rgba(129, 72, 22, .07);
}

* { box-sizing: border-box; }
body { margin: 0; background: #fbfbfc; color: var(--ink); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.topbar { height: 68px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.brand, .connection, .search-row, .section-heading, .archive-toolbar, .note-card-head, .note-card-foot { display: flex; align-items: center; }
.brand { gap: 11px; }
.brand-mark, .project-card-icon { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #ff2749, #ff526b); font-weight: 800; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 20px; }
.brand strong { display: block; font-size: 16px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; }
.connection { gap: 7px; color: var(--muted); font-size: 12px; }
.login-button { min-height: 30px; margin-left: 8px; padding: 0 10px; font-size: 12px; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: #bbb; }
.connection i.online { background: var(--green); box-shadow: 0 0 0 4px #e7f7ef; }
.connection i.offline { background: #f19a40; box-shadow: 0 0 0 4px #fff2e3; }
.layout { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 278px minmax(0, 1fr); }
.sidebar { padding: 27px 18px; background: #fff; border-right: 1px solid var(--line); }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.eyebrow { color: #a0a3aa; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: 28px; letter-spacing: -.03em; }
h2 { margin: 2px 0 0; font-size: 19px; }
h3 { margin: 12px 0 7px; font-size: 16px; line-height: 1.45; }
h3 a { color: inherit; text-decoration: none; }
h3 a:hover { color: var(--red); }
.sidebar h2 { font-size: 20px; }
.icon-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #888; font-size: 18px; }
.icon-button:hover { color: var(--red); border-color: #ffc6ce; }
.sidebar-tip { margin: 18px 10px 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.project-list { display: grid; gap: 7px; }
.project-card { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 10px; border: 1px solid transparent; border-radius: 11px; background: transparent; text-align: left; color: var(--ink); }
.project-card:hover, .project-card.selected { background: var(--red-soft); border-color: #ffe0e4; }
.project-card-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.project-card-copy { min-width: 0; flex: 1; }
.project-card-copy strong, .project-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-copy strong { font-size: 13px; }
.project-card-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.project-card-arrow { color: #bbb; font-size: 20px; }
.workspace { min-width: 0; max-width: 1200px; width: 100%; padding: 38px 48px 70px; }
.page-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-intro p, .section-heading p { margin-bottom: 0; color: var(--muted); }
.today-chip { padding: 7px 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--muted); font-size: 12px; }
.search-panel, .content-section, .welcome { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.search-row { gap: 10px; }
.search-row label { font-weight: 700; }
input, select { height: 40px; border: 1px solid #e5e5e9; border-radius: 9px; background: #fff; outline: none; color: var(--ink); }
input { min-width: 0; flex: 1; padding: 0 13px; }
select { padding: 0 10px; }
input:focus, select:focus { border-color: #ff9baa; box-shadow: 0 0 0 3px var(--red-soft); }
.button { min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 600; white-space: nowrap; }
.button.primary { color: #fff; background: var(--red); }
.button.primary:hover { background: #e91c39; }
.button.secondary { color: #555; background: #fff; border-color: #e4e4e8; }
.button.secondary:hover { color: var(--red); border-color: #ffc4cc; }
.button.danger { color: #d94d5f; background: #fff; border-color: #ffd9de; }
.button:disabled { cursor: wait; opacity: .6; }
.search-note, .message { margin-top: 12px; color: var(--muted); font-size: 12px; }
.message { min-height: 19px; color: #c15361; }
.content-section { margin-top: 22px; }
.section-heading { align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading em { margin-left: 5px; color: var(--red); font-size: 13px; font-style: normal; }
.section-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; }
.note-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.note-card:hover { border-color: #ffd1d7; box-shadow: 0 8px 24px rgba(255, 36, 66, .07); }
.note-card-head, .note-card-foot { justify-content: space-between; gap: 8px; color: #a0a2a8; font-size: 11px; }
.note-platform { color: var(--red); font-weight: 700; }
.note-card p { display: -webkit-box; min-height: 44px; margin-bottom: 15px; overflow: hidden; color: #63666d; font-size: 12px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.note-card-foot { padding-top: 11px; border-top: 1px solid var(--line); }
.note-list { display: grid; gap: 9px; }
.note-list .note-card { padding: 14px 16px; }
.note-list .note-card p { min-height: 0; margin-bottom: 10px; -webkit-line-clamp: 3; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.stats-row > div { padding: 13px 15px; border-radius: 10px; background: var(--soft); }
.stats-row span, .stats-row strong { display: block; }
.stats-row span { color: var(--muted); font-size: 11px; }
.stats-row strong { margin-top: 2px; font-size: 17px; }
.archive-toolbar { justify-content: space-between; margin-bottom: 13px; color: #555; font-weight: 700; }
.runs-panel { margin-top: 15px; padding: 12px 14px; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 2; }
.welcome { margin-top: 22px; padding: 58px 24px; border-style: dashed; text-align: center; box-shadow: none; }
.welcome-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 26px; }
.welcome h2 { margin-bottom: 6px; }
.welcome p { max-width: 430px; margin: 0 auto; color: var(--muted); }
.empty-small { padding: 24px 12px; color: #aaa; text-align: center; }
.hidden { display: none !important; }
@media (max-width: 820px) {
  .topbar { padding: 0 18px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-list { display: flex; overflow-x: auto; padding-bottom: 3px; }
  .project-card { min-width: 190px; }
  .workspace { padding: 28px 18px 50px; }
}
@media (max-width: 580px) {
  .connection { display: none; }
  .page-intro, .section-heading, .search-row { display: grid; }
  .today-chip { justify-self: start; }
  .search-row label { margin-bottom: -4px; }
  .search-row input, .search-row select, .search-row .button { width: 100%; }
  .section-actions { justify-content: flex-start; }
  .stats-row { grid-template-columns: 1fr; }
}

:root { --bg:#faf7f3; --card:#fff; --ink:#2e2119; --muted:#9a8d80; --line:#efe6db; --brand:#f26518; --brand-soft:#fdeee1; --shadow:0 10px 28px rgba(129,72,22,.07); }
body { background:var(--bg); color:var(--ink); font-family:Inter,"Microsoft YaHei",sans-serif; font-size:14px; }
.app-shell { min-height:100vh; }
.topbar { height:72px; padding:0 38px; background:#fff; border-bottom:1px solid var(--line); }
.top-actions { display:flex; align-items:center; gap:20px; }
.brand-mark { width:36px; height:36px; border-radius:11px; background:linear-gradient(145deg,#ff3158,#ff617c); box-shadow:0 3px 10px rgba(242,43,82,.25); font-size:20px; }
.brand-mark { overflow:hidden; background:#ff7100; }
.brand-mark img { display:block; width:100%; height:100%; object-fit:cover; }
.brand-mark { display:block; object-fit:cover; }
.message .verify-link,.message .verify-retry{display:inline-flex;align-items:center;margin-left:10px;border:0;border-radius:7px;padding:7px 10px;font-size:11px;font-weight:800;text-decoration:none;cursor:pointer}.message .verify-link{background:var(--brand);color:#fff}.message .verify-retry{background:var(--brand-soft);color:var(--brand)}.message .verify-link:hover{background:var(--brand-dark)}
.message .verification-tip{display:block;margin:8px 0 0;color:var(--muted)}
.brand strong { font-size:17px; letter-spacing:.5px; }
.brand small { color:var(--muted); font-size:11px; margin-top:3px; }
.connection { gap:8px; color:#6f6357; font-size:12px; }
.connection i { width:8px; height:8px; }
.button { border:0; border-radius:8px; padding:10px 16px; font-size:12px; }
.button.primary { background:var(--brand); }
.button.primary:hover { background:#d24f07; }
.button.secondary { background:#f4eee7; color:#6f6357; }
.layout { max-width:1440px; margin:0 auto; grid-template-columns:280px 1fr; min-height:calc(100vh - 72px); }
.project-sidebar { display:block; background:#fdfaf6; border-right:1px solid var(--line); padding:30px 20px; }
.sidebar-heading { display:flex; align-items:center; justify-content:space-between; }
.sidebar-heading h2,.section-heading h2 { margin:8px 0 0; font-size:20px; }
.sidebar-tip { color:var(--muted); font-size:11px; line-height:1.7; margin:16px 0 22px; }
.schedule-note { margin:-14px 0 18px; padding:9px 11px; border-radius:8px; background:var(--brand-soft); color:#c2530c; font-size:10px; line-height:1.6; font-weight:700; }
.project-list { display:grid; gap:8px; }
.project-card { border:1px solid transparent; background:transparent; border-radius:10px; padding:13px 11px; }
.project-card:hover,.project-card.selected { background:#fff; border-color:#f6d7bc; box-shadow:var(--shadow); }
.project-card-icon { width:27px; height:27px; border-radius:8px; background:var(--brand-soft); color:var(--brand); }
.project-card-icon { overflow:hidden; padding:0; background:#ff7100; }
.project-card-icon img { display:block; width:100%; height:100%; object-fit:cover; }
.project-card-copy strong { font-size:12px; }
.project-card-copy small { color:var(--muted); font-size:10px; margin-top:4px; }
.workspace { padding:38px 44px 70px; }
.page-intro { margin-bottom:25px; }
.page-intro h1 { margin:10px 0 7px; font-size:29px; letter-spacing:-.5px; }
.page-intro p { color:var(--muted); font-size:12px; }
.today-chip { padding:8px 12px; background:#fff; border:1px solid var(--line); border-radius:8px; color:var(--muted); font-size:11px; }
.search-panel,.content-section,.welcome { border:1px solid var(--line); border-radius:13px; box-shadow:var(--shadow); }
.search-panel { padding:20px 22px; margin-bottom:25px; }
.search-row { gap:12px; }
.search-row label { font-weight:800; font-size:12px; }
input,select { border:1px solid #e7ddd2; border-radius:8px; }
input:focus,select:focus { border-color:#f08b3f; box-shadow:0 0 0 3px var(--brand-soft); }
.search-note { color:var(--muted); font-size:10px; margin:12px 0 0 50px; }
.content-section { padding:24px; margin-bottom:25px; }
.section-heading p { margin:8px 0 0; color:var(--muted); font-size:11px; }
.section-actions { gap:8px; }
.note-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
.note-list { gap:10px; margin-top:15px; }
.note-card { border:1px solid var(--line); border-radius:10px; padding:15px; }
.note-card h3 { font-size:13px; margin:12px 0 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.note-card p { color:#71665a; font-size:11px; line-height:1.65; }
.note-card-foot { border-top:1px solid #f2ebe2; padding-top:10px; margin-top:12px; }
.stats-row { gap:0; margin:22px 0; border:1px solid var(--line); border-radius:10px; background:#fdfbf7; }
.stats-row > div { padding:14px 18px; border-right:1px solid var(--line); background:transparent; }
.stats-row span { font-size:10px; }.stats-row strong { margin-top:7px; font-size:16px; }
.archive-toolbar { margin-top:24px; color:#6f6357; font-size:12px; }
.welcome { padding:70px 30px; box-shadow:var(--shadow); }
.welcome-icon { width:50px; height:50px; border-radius:16px; background:var(--brand-soft); color:var(--brand); margin-bottom:18px; }
.welcome h2 { color:var(--ink); font-size:20px; margin-bottom:10px; }.welcome p { max-width:550px; line-height:1.8; font-size:12px; }
.flow { display:flex; justify-content:center; gap:13px; margin-top:28px; color:#71665a; font-size:11px; }.flow b { color:#f3a367; }
@media(max-width:900px){.layout{grid-template-columns:1fr}.project-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:20px}.project-list{display:flex;overflow:auto}.project-card{min-width:190px}.workspace{padding:25px 18px}.note-grid{grid-template-columns:1fr}.topbar{padding:0 18px}}
 .modal-backdrop{position:fixed;inset:0;background:rgba(39,27,18,.35);display:grid;place-items:center;z-index:20}.modal-backdrop.hidden,.hidden{display:none}.login-modal{width:min(430px,calc(100vw - 32px));padding:32px;background:#fffdfb;border:1px solid #eadfd5;border-radius:24px;box-shadow:0 24px 80px rgba(48,28,15,.2);text-align:center;position:relative}.modal-close{position:absolute;right:18px;top:12px;border:0;background:transparent;font-size:28px;color:#9b8f86;cursor:pointer}.login-modal h2{margin:8px 0}.login-modal p{color:#9b8f86}.qr-box{width:260px;height:260px;margin:24px auto 16px;border:1px solid #eadfd5;border-radius:14px;display:grid;place-items:center;background:#fff}.qr-box img{width:240px;height:240px;object-fit:contain}.login-status{min-height:24px;color:#f15b2a}.login-modal .button{margin-top:14px}
