.brand { text-decoration: none; color: var(--ink); }
.product-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; white-space: nowrap; }
.product-nav a { color: #728079; text-decoration: none; font-size: 13px; padding: 9px 12px; border-radius: 6px; }
.product-nav a[aria-current=page] { color: var(--green); background: #edf4ed; font-weight: 600; }
.header-start { text-decoration: none; white-space: nowrap; padding: 10px 16px; font-size: 13px; }
header .top-actions { gap: 8px; margin-left: 0; }
header .top-actions .btn { padding: 10px 13px; font-size: 13px; }
#workbench-new-article { color: var(--green); background: #f0f6ef; border-color: #d8e7d8; white-space: nowrap; }
.product-page { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.page-inner { width: min(1160px, 100%); margin: auto; padding: 44px 36px; }
.section-kicker { font-size: 11px; color: #718b7b; letter-spacing: 2px; }
.home-page { background: #f5f7f3; }
.home-hero { display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center; }
.hero-copy h2 { margin: 23px 0 22px; font-size: clamp(36px, 4vw, 56px); letter-spacing: -1px; line-height: 1.25; font-weight: 650; }
.hero-lead { font-size: 17px; color: #6e7d74; line-height: 1.9; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.hero-actions .btn { text-decoration: none; padding: 14px 22px; }
.hero-actions .btn span { margin-left: 28px; }
.text-link { color: #597462; text-decoration: none; font-size: 13px; }
.hero-note { font-size: 11px; color: #8c968e; margin: 17px 0 42px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 11px; color: #708075; }
.hero-benefits span + span { border-left: 1px solid #d6e0d4; padding-left: 20px; }
.home-showcase { background: #eaf0e7; border: 1px solid #dce5da; padding: 16px 20px 12px; border-radius: 14px; box-shadow: 0 14px 40px #294d3210; }
.showcase-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: #778c7d; }
.showcase-badge { font-size: 10px; border-radius: 4px; padding: 4px 7px; background: #f5f8f2; color: #839384; white-space: nowrap; }
.demo-themes { display: flex; gap: 5px; margin: 15px 0; }
.demo-themes button { flex: 1; padding: 8px; border: 0; border-radius: 5px; background: transparent; color: #829080; font-size: 11px; }
.demo-themes button[aria-pressed=true] { background: white; color: #365e47; box-shadow: 0 2px 6px #00000008; }
.demo-paper { padding: 25px 27px; border-radius: 6px; background: white; overflow-wrap: anywhere; }
.showcase-bottom { text-align: center; font-size: 10px; color: #8a988b; padding-top: 12px; }
.home-flow { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding: 38px 0 32px; margin-top: 28px; border-top: 1px solid #e0e7dc; }
.home-flow > div { padding-right: 24px; }
.home-flow > div + div { border-left: 1px solid #e0e7dc; padding-left: 24px; }
.home-flow span { color: #a2b49f; font-size: 13px; }
.home-flow h3 { margin: 13px 0 8px; font-size: 16px; font-weight: 600; }
.home-flow p { line-height: 1.9; font-size: 12px; color: #819082; margin: 0; }
.home-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #eaf0e7; padding: 22px 28px; border-radius: 10px; }
.home-bottom h3 { font-weight: 600; font-size: 16px; margin: 0 0 7px; }
.home-bottom p { color: #7c8c7c; font-size: 12px; margin: 0; }
.home-bottom a { text-decoration: none; font-size: 12px; white-space: nowrap; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 30px; }
.page-heading h2 { font-size: 30px; margin: 12px 0 10px; letter-spacing: -1px; font-weight: 650; }
.page-heading p { color: #89958b; margin: 0; font-size: 13px; }
.library-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dfe6dc; padding-bottom: 16px; }
.library-tabs { display: flex; gap: 16px; }
.library-tabs button { background: transparent; border: 0; padding: 8px 0; color: #8c978d; }
.library-tabs button[aria-pressed=true] { color: var(--green); font-weight: 650; }
.library-tabs span { font-size: 11px; background: #e7ede3; border-radius: 4px; padding: 2px 6px; margin-left: 6px; }
#article-search { width: 280px; max-width: 50%; background: white; border: 1px solid #dce4d8; border-radius: 7px; padding: 10px 13px; font-size: 12px; color: var(--ink); }
.library-note, .library-footnote { font-size: 11px; color: #8c988d; line-height: 1.8; }
.library-note { margin: 16px 0; }
.draft-card { display: flex; align-items: center; gap: 24px; background: white; border: 1px solid #e1e7de; border-radius: 10px; padding: 24px; margin-bottom: 12px; }
.draft-accent { width: 4px; height: 66px; border-radius: 2px; background: #8aab95; flex-shrink: 0; }
.draft-content { min-width: 0; flex: 1; }
.draft-content h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.draft-excerpt { font-size: 12px; color: #8b968b; margin: 0 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 10px; color: #92a08f; }
.draft-actions { display: flex; gap: 8px; flex-shrink: 0; }
.draft-actions button { font-size: 11px; padding: 8px 10px; background: #f8faf6; color: #728171; border: 1px solid #e3e9de; border-radius: 5px; }
.draft-actions button:first-child { color: var(--green); background: #edf4ec; border-color: #d8e7d8; }
.draft-actions .danger { color: #ae7b70; }
.empty-library { text-align: center; padding: 70px 20px; border: 1px dashed #d6e1d2; border-radius: 10px; color: #84917f; }
.empty-library h3 { color: #566b53; font-weight: 550; }
.empty-library p { font-size: 12px; line-height: 1.8; }
.preferences-grid { display: grid; grid-template-columns: 1fr 440px; gap: 32px; align-items: start; }
.preferences-card { padding: 28px; background: white; border: 1px solid #e1e7de; border-radius: 12px; }
.preferences-card h3 { margin: 0 0 7px; font-size: 17px; font-weight: 600; }
.preference-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 21px 0; font-size: 12px; color: #6a7c68; }
.preference-field select { min-width: 90px; border: 1px solid #dfe6da; border-radius: 5px; background: white; padding: 7px; color: #4b624c; }
.preference-field input[type=color] { width: 44px; height: 32px; border: 0; padding: 0; background: transparent; }
.preference-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; border-top: 1px solid #edf1e9; margin-top: 26px; }
.preference-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.preference-actions .btn { font-size: 12px; }
.text-button { background: none; border: 0; color: #758d73; font-size: 11px; padding: 6px 0; }
.preferences-preview { border-radius: 12px; background: #eaf0e7; padding: 20px; }
.preferences-preview .demo-paper { margin-top: 17px; }
.workbench-loading { opacity: .7; }
.account-action { white-space: nowrap; font-size: 12px; padding: 9px 12px; }
#login-dialog { width: min(460px, calc(100% - 32px)); border: 1px solid #dce5d9; border-radius: 16px; padding: 40px 32px 26px; color: var(--ink); text-align: center; box-shadow: 0 24px 90px #20362930; }
#login-dialog::backdrop { background: #20362955; backdrop-filter: blur(3px); }
.login-close { position: absolute; right: 15px; top: 10px; border: 0; background: none; color: #7b8b7f; font-size: 25px; padding: 6px; }
.login-brand { color: var(--green); letter-spacing: 5px; font-size: 24px; font-weight: 700; margin-bottom: 28px; }
#login-dialog h2 { font-size: 21px; font-weight: 600; line-height: 1.6; }
.login-intro { color: #7a897b; font-size: 13px; line-height: 1.9; }
.login-benefits { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 28px; color: #58785e; font-size: 12px; }
#wechat-login { width: 100%; padding: 13px; }
#wechat-login:disabled { opacity: .45; cursor: default; }
#official-login { width: 100%; margin-top: 10px; }
#official-login:disabled { opacity: .45; cursor: default; }
#official-login-panel { margin-top: 16px; padding: 14px; background: #f4f7f1; border-radius: 10px; }
#official-login-qr { width: 200px; height: 200px; max-width: 100%; object-fit: contain; background: white; }
#official-login-status { margin: 10px 0 4px; }
#official-login-refresh:disabled { opacity: .5; cursor: wait; }
#login-status { margin-top: 16px; }
@media (max-width: 1500px) { header .header-copy { display: none; } .header-brand { gap: 0; } }
@media (max-width: 1000px) {
  header { height: auto; min-height: 72px; flex-wrap: wrap; padding: 12px; gap: 12px; }
  header .top-actions { order: 3; width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  header .top-actions .saved { margin-right: auto; }
  header .top-actions .btn { white-space: nowrap; }
  .page-inner { padding: 30px 24px; }
  .home-hero { grid-template-columns: 1fr 390px; gap: 28px; }
  .preferences-grid { grid-template-columns: 1fr 360px; gap: 20px; }
  .preference-fields { grid-template-columns: 1fr; }
  .draft-card { flex-wrap: wrap; gap: 18px; }
  .draft-actions { width: 100%; padding-left: 22px; }
  header .product-nav a { padding: 8px; font-size: 12px; }
}
@media (max-width: 720px) {
  header { gap: 12px; padding: 12px; }
  header .header-brand { width: auto; flex: 1; }
  header .header-copy { display: none; }
  .product-nav { order: 3; width: 100%; justify-content: space-between; margin: 0; }
  .product-nav a { text-align: center; }
  header .top-actions { flex-wrap: wrap; }
  .page-inner { padding: 30px 18px; }
  .home-hero, .preferences-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy h2 { font-size: 40px; }
  .hero-lead { font-size: 15px; }
  .hero-note { margin-bottom: 28px; }
  .home-flow { grid-template-columns: 1fr; gap: 25px; }
  .home-flow > div + div { border-left: 0; padding-left: 0; }
  .home-bottom { flex-direction: column; align-items: flex-start; padding: 22px; }
  .page-heading h2 { font-size: 27px; }
  .page-heading .btn { padding: 10px 12px; font-size: 12px; white-space: nowrap; }
  .library-tools { gap: 12px; }
  .library-tabs { gap: 12px; }
  #article-search { width: 190px; }
  .draft-card { padding: 20px 16px; gap: 14px; }
  .draft-actions { padding-left: 18px; flex-wrap: wrap; }
  .preferences-card { padding: 22px; }
}

.demo-themes { flex-wrap:wrap; gap:6px; }
.demo-themes button { flex:0 0 auto; }

.home-legal { margin-top:28px; padding-top:20px; border-top:1px solid var(--line); text-align:center; font-size:12px; line-height:1.8; color:var(--muted); overflow-wrap:anywhere; }
.home-legal p { margin:0 0 5px; }
.home-legal a { color:var(--muted); text-decoration:none; }
.home-legal a:hover { color:var(--green); text-decoration:underline; text-underline-offset:3px; }
.home-legal a:focus-visible { outline:3px solid #97bcaa; outline-offset:3px; }
