/* 在眸 · Editorial design system. Loaded after legacy styles. */
:root {
  --editorial-paper: #fff;
  --editorial-ink: #242827;
  --editorial-muted: #737773;
  --editorial-rule: #e3e5e2;
  --editorial-accent: #713d49;
  --editorial-serif: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', Georgia, serif;
  --max-width: 1248px;
}
html.dark {
  --editorial-paper: #151918;
  --editorial-ink: #eeeFEB;
  --editorial-muted: #b0b7b2;
  --editorial-rule: #343b37;
  --editorial-accent: #d8a9b2;
}
html body { background: var(--editorial-paper) !important; color: var(--editorial-ink); }
html.dark body { background: var(--editorial-paper) !important; color: var(--editorial-ink); }
body { font-size: 15px; line-height: 1.8; }
button, input, select, textarea { font-family: var(--font-sans); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--editorial-accent); outline-offset: 5px;
}
.container { max-width: var(--max-width); padding-inline: 32px; }
.nav { background: var(--editorial-paper); border-bottom: 1px solid var(--editorial-rule); }
.nav-inner { max-width: 1440px; height: 88px; padding: 0 48px; gap: 24px; }
.nav-brand { font-family: var(--editorial-serif) !important; font-size: 21px; letter-spacing: .05em; white-space: nowrap; color: var(--editorial-ink); }
.nav-brand .brand-dot { width: 5px; height: 5px; background: var(--editorial-accent); }
html .nav-brand { color: var(--editorial-ink) !important; }
.nav-toggle span { background: var(--editorial-ink); }
.nav-menu { gap: 8px; margin-left: auto; }
.nav-menu a { font-size: 14px; padding: 12px 10px; border-radius: 0; color: var(--editorial-muted); }
.nav-menu a.active, .nav-menu a:hover { background: transparent; color: var(--editorial-ink); }
.nav-menu a.active { box-shadow: inset 0 -1px var(--editorial-accent); }
.nav-social { display: none; }
.nav-auth { gap: 16px; border-left: 1px solid var(--editorial-rule); padding-left: 24px; margin-left: 0; }
.nav-auth-link, .nav-auth-register { font-size: 13px; background: transparent; border-radius: 0; padding: 8px 0; color: var(--editorial-accent); }
.nav-auth-register:hover { background: transparent; color: var(--editorial-ink); }
.theme-toggle { width: 32px; height: 32px; margin: 0; border-color: var(--editorial-rule); background: transparent; }
.banner { height: clamp(460px, 58vw, 560px); min-height: 0; }
.banner-img { object-position: center 54%; }
.banner-content { max-width: 1100px; padding: 0 32px; }
.banner-title { font-family: var(--editorial-serif) !important; font-size: clamp(62px, 7vw, 98px); font-weight: 600; letter-spacing: .1em; line-height: 1.22; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.banner-tag { margin-top: 28px; padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; font-size: 13px; font-weight: 400; letter-spacing: .26em; color: #f3f4f5; }
.banner-sub:empty { display: none; }
.section { padding: 64px 0; }
.section-header { margin-bottom: 32px; align-items: baseline; gap: 20px; }
.section-title { font-family: var(--editorial-serif) !important; font-size: 32px; font-weight: 600; letter-spacing: .03em; color: var(--editorial-ink); padding-left: 0; }
.section-more { color: var(--editorial-accent); font-size: 13px; white-space: nowrap; }
html .article-card, html .home-about-card, html .custom-block, html .external-card {
  background: transparent !important; border-radius: 0 !important; box-shadow: none !important; color: var(--editorial-ink);
}
html .article-card:hover, html .featured-card:hover { box-shadow: none !important; transform: none; }
.article-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px 32px; }
.article-card { overflow: visible; border: 0 !important; }
.article-card-thumb { height: auto; aspect-ratio: 16/10; border-radius: 0; background: var(--editorial-rule); overflow: hidden; }
.article-card-thumb img { transition: transform .45s ease; }
.article-card:hover .article-card-thumb img { transform: scale(1.035); }
.article-card-body { padding: 20px 0 0; }
.article-card-cat { color: var(--editorial-accent); font-size: 12px; letter-spacing: .08em; }
.article-card-title { font-family: var(--editorial-serif) !important; color: var(--editorial-ink); font-size: 22px; font-weight: 600; line-height: 1.55; margin: 8px 0 12px; }
.article-card-excerpt { font-size: 13px; line-height: 1.85; color: var(--editorial-muted); }
.article-card-meta { color: var(--editorial-muted); margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--editorial-rule); font-size: 11px; flex-wrap: wrap; }
html .article-card:hover .article-card-title { color: var(--editorial-accent); }
.platform-badge { padding: 0; border-radius: 0; background: transparent; color: var(--editorial-muted); }
.featured-section { padding-top: 48px; padding-bottom: 0; }
html .featured-card { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--editorial-rule) !important; border-radius: 0 !important; box-shadow: none; min-height: 0; display: grid; grid-template-columns: 1fr 1.55fr; gap: 44px; padding-bottom: 48px; align-items: center; color: var(--editorial-ink); }
.featured-visual { aspect-ratio: 16/10; overflow: hidden; background: var(--editorial-rule); }
.featured-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.featured-card:hover .featured-visual img { transform: scale(1.035); }
.featured-card.without-cover { grid-template-columns: 1fr; }
.featured-inner { position: static; padding: 0; color: var(--editorial-ink); }
.featured-label { padding: 0; background: transparent; border: 0; border-radius: 0; color: var(--editorial-accent); font-size: 13px; letter-spacing: .08em; }
.featured-cat { display: inline; color: var(--editorial-muted); font-size: 12px; margin-left: 16px; margin-top: 0; }
.featured-title { font-family: var(--editorial-serif) !important; color: var(--editorial-ink); font-size: clamp(26px,2.7vw,38px); font-weight: 600; line-height: 1.55; margin: 16px 0; text-shadow: none; }
.featured-excerpt { color: var(--editorial-muted); font-size: 14px; line-height: 1.9; -webkit-line-clamp: 2; }
.featured-meta { color: var(--editorial-muted); margin-top: 24px; font-size: 12px; }
.featured-read { color: var(--editorial-accent); }
.featured-title, .article-card-title { text-wrap: balance; }
.home-about-section { padding: 38px 0 0; }
.home-about-card { grid-template-columns: 1fr 1.3fr; gap: 48px; padding: 0 0 38px; border-bottom: 1px solid var(--editorial-rule) !important; }
.home-about-left { flex-direction: row; text-align: left; gap: 24px; }
.home-about-avatar { width: 88px; height: 88px; }
.home-about-name { font-family: var(--editorial-serif) !important; font-size: 30px; color: var(--editorial-ink); }
.home-about-role, .home-about-intro { color: var(--editorial-muted); }
.home-about-intro { font-size: 13px; margin-bottom: 16px; }
.home-about-stats { border: 0; padding: 0; margin-bottom: 12px; justify-content: space-between; }
.home-about-stat-num { font-family: var(--editorial-serif) !important; color: var(--editorial-ink); }
.home-about-btn { background: transparent; color: var(--editorial-accent); padding: 0; border-radius: 0 !important; font-size: 13px; }
.home-about-btn:hover { background: transparent; color: var(--editorial-ink); }
.custom-blocks { gap: 32px; }
html .custom-block { padding: 24px 0; border-top: 1px solid var(--editorial-rule) !important; }
.custom-block-icon { background: none; color: var(--editorial-accent); }
#custom-sections .section > .container { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--editorial-rule); }
#custom-sections .section-header { align-self: start; }
.custom-section-content { background: transparent; border: 0; padding: 0; box-shadow: none; border-radius: 0; color: var(--editorial-muted); font-size: 16px; line-height: 2; }
.custom-section-content blockquote { border-left: 2px solid var(--editorial-accent); background: transparent; color: var(--editorial-ink); font-family: var(--editorial-serif); font-size: 22px; padding: 8px 0 8px 24px; margin-top: 28px; }
.external-section { background: transparent; border: 0; border-radius: 0; padding: 0; text-align: left; }
.external-section h3 { font-family: var(--editorial-serif) !important; color: var(--editorial-ink); font-size: 30px; }
.external-desc { color: var(--editorial-muted); }
.external-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0 32px; margin-top: 30px; }
html .external-card { border-top: 1px solid var(--editorial-rule) !important; padding: 24px 0; }
.external-card:hover { color: var(--editorial-accent); }
.footer { background: #202624; color: #bfc6c1; border-top: 0; padding-top: 64px; }
.footer-brand { font-family: var(--editorial-serif); font-size: 26px; color: #f5f5ef; }
.footer-brand-desc { color: #bfc6c1; line-height: 1.9; }
.footer a, html.dark .footer a { color: #e2e5e1; }
.footer-bottom { border-top: 1px solid #414843; color: #a5afa8; padding-block: 26px; margin-top: 44px; }
.footer-sub-title { color: #f5f5ef; }
.footer-sub-desc { color: #bfc6c1; }
.footer-sub-form input { border-radius: 0; }
.footer-sub-form button { border-radius: 0; background: #f0f2eb; color: #202624; }
.page-header { padding-block: 72px 48px; }
.page-hero { background: transparent; padding: 72px 0 40px; border-bottom: 1px solid var(--editorial-rule); }
.page-hero h1 { font-family: var(--editorial-serif) !important; color: var(--editorial-ink); font-size: clamp(36px,5vw,56px); font-weight: 600; }
.page-hero p { color: var(--editorial-muted); margin-top: 16px; }
.page-hero::after { display: none; }
html .article-list, html .article-row, html .article-detail-content, html .about-card { background: transparent !important; border-radius: 0 !important; box-shadow: none !important; }
.article-row-thumb { border-radius: 0; }
[data-page="article"] main .container { max-width: 900px; }
.article-detail-cover { border-radius: 0; }
.article-detail-content { padding: 32px 0; }
.about-card { border: 1px solid var(--editorial-rule); }
.about-content h2, .about-card h2 { font-family: var(--editorial-serif) !important; color: var(--editorial-ink); }
.shop-card { border-radius: 2px; box-shadow: none; border-color: var(--editorial-rule); }
.articles-toolbar { background: transparent; padding: 0 0 28px; border-radius: 0; border-bottom: 1px solid var(--editorial-rule); }
.article-search { border-radius: 2px; border-color: var(--editorial-rule); }
.cat-tab { border-radius: 2px; }
.cat-tab.active { background: var(--editorial-accent); color: #fff; }
.page-title, .article-detail-header h1, .article-row-title { font-family: var(--editorial-serif) !important; color: var(--editorial-ink); }
.article-detail-header h1 { font-size: clamp(30px,4vw,48px); line-height: 1.5; }
.article-detail-content { font-size: 17px; line-height: 2; color: var(--editorial-ink); }
.article-detail-content a, html.dark .article-detail a, .text-link { color: var(--editorial-accent); }
.article-detail-content h2 { font-family: var(--editorial-serif) !important; margin-top: 48px; }
.article-row { border-radius: 0; box-shadow: none; padding-block: 28px; background: transparent; border-bottom: 1px solid var(--editorial-rule); }
.article-row-title { font-size: 23px; line-height: 1.6; }
.article-row-excerpt, .article-row-meta, .article-detail-meta { color: var(--editorial-muted); }
.article-toc, .as-inner, .auth-modal { border-radius: 4px; }
.act-btn.on, .auth-tab.active, .auth-submit { background: var(--editorial-accent); border-color: var(--editorial-accent); color: #fff; }
#reading-progress { background: var(--editorial-accent); }
html.dark .article-card, html.dark .home-about-card, html.dark .external-card, html.dark .custom-block, html.dark .article-row { background: transparent !important; color: var(--editorial-ink); }
html.dark .section-title, html.dark .featured-title, html.dark .article-card-title { color: var(--editorial-ink); }
html.dark .featured-excerpt, html.dark .featured-meta { color: var(--editorial-muted); }
html.dark .auth-modal { background: var(--editorial-paper); color: var(--editorial-ink); }
html.dark .auth-field label { color: var(--editorial-ink); }
html.dark .auth-tab { background: #303733; color: var(--editorial-ink); }
html.dark .auth-tab.active, html.dark .auth-submit { background: var(--editorial-accent); color: #202624; }
@media (max-width: 1100px) {
  .nav-inner { height: 76px; padding-inline: 28px; gap: 14px; }
  .nav-brand { font-size: 18px; }
  .nav-menu { gap: 0; }
  .nav-menu a { padding-inline: 8px; font-size: 13px; }
  .nav-auth { padding-left: 14px; gap: 12px; }
  .article-grid { gap: 40px 24px; }
}
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .featured-card { gap: 28px !important; }
}
@media (max-width: 768px) {
  .container { padding-inline: 24px; }
  .nav-inner { height: 68px; padding: 0 20px; gap: 12px; flex-wrap: nowrap; }
  .nav-brand { font-size: 17px; letter-spacing: 0; margin-right: auto; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; margin-left: 0; }
  .nav.open .nav-menu { position: absolute; top: 68px; left: 0; right: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: calc(100dvh - 68px); overflow-y: auto; margin: 0; background: var(--editorial-paper); padding: 20px; gap: 6px; border-top: 1px solid var(--editorial-rule); border-bottom: 1px solid var(--editorial-rule); box-shadow: 0 12px 20px rgba(0,0,0,.08); }
  .nav.open .nav-menu a { font-size: 15px; padding: 12px 16px; }
  .nav-auth { border: 0; padding: 0; gap: 10px; }
  .banner { height: 520px; }
  .banner-title { font-size: clamp(56px,11vw,78px); letter-spacing: .06em; }
  .banner-tag { font-size: 11px; letter-spacing: .12em; max-width: 300px; line-height: 2.2; }
  .section { padding-block: 44px; }
  .section-title { font-size: 27px; }
  html .featured-card { grid-template-columns: 1fr; gap: 24px; padding-bottom: 36px; }
  .featured-visual { aspect-ratio: 16/9; }
  .featured-title { font-size: 28px; }
  .home-about-card { grid-template-columns: 1fr; gap: 24px; }
  .home-about-left { flex-direction: row; }
  #custom-sections .section > .container { grid-template-columns: 1fr; gap: 12px; padding-block: 36px; }
  .external-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
  .custom-section-content blockquote { font-size: 21px; }
}
@media (max-width: 520px) {
  .article-grid { grid-template-columns: 1fr; gap: 36px; }
  .article-card-title { font-size: 24px; }
  .nav-brand { font-size: 15px; }
  .nav-auth-link { font-size: 12px; }
  .theme-toggle { width: 28px; height: 28px; }
  .nav-inner { gap: 9px; padding-inline: 16px; }
  .banner { height: 490px; }
  .banner-content { padding-inline: 20px; }
  .banner-title { font-size: 60px; }
  .banner-tag { max-width: 280px; }
  .featured-title { font-size: 26px; }
  .section-header { gap: 12px; }
  .footer { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
