/* ============================================================
   每日一文 · LiteLog 版 · 完整样式
   ------------------------------------------------------------
   目录：
   01. 基础 / 布局
   02. 按钮
   03. 首页 Hero
   04. 今日一文卡片
   05. 内嵌双栏 / 往期列表
   06. 归档页
   07. 详情页正文
   08. 批注样式
   09. 打卡 / 表单 / 评论 / 摘抄
   10. 上下篇 / 相关推荐
   11. Toast
   12. 模态框
   13. 选区浮动按钮
   14. 摘抄卡片
   15. 响应式
   ============================================================ */

/* ============================================================
   01. 基础 / 布局
   ============================================================ */
.da-wrap { padding: 8px 0 32px; }

.da-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}
.da-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color .15s;
}
.da-breadcrumb a:hover { color: #2563eb; }

.da-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}
.da-empty a { color: #2563eb; text-decoration: none; }
.da-empty a:hover { text-decoration: underline; }

/* ============================================================
   02. 按钮
   ============================================================ */
.da-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 9px;
    border: 1px solid #e5e9f0;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    transition: all .15s;
    white-space: nowrap;
}
.da-btn:hover {
    border-color: #93c5fd;
    color: #2563eb;
    background: #eff6ff;
    text-decoration: none;
}
.da-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.da-btn:disabled:hover {
    border-color: #e5e9f0;
    color: #334155;
    background: #fff;
}

.da-btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,.28);
}
.da-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.4);
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    text-decoration: none;
}
.da-btn-primary:disabled {
    opacity: .6;
    transform: none;
    box-shadow: none;
}
.da-btn-primary:disabled:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: none;
    box-shadow: none;
}

.da-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}

/* ============================================================
   03. 首页 Hero
   ============================================================ */
.da-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    padding: 32px 32px 30px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.da-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(99,102,241,.18), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}
.da-hero-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}
.da-hero-sub {
    margin: 0 0 20px;
    font-size: 15px;
    color: #64748b;
    position: relative;
    z-index: 1;
}
.da-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   04. 今日一文卡片
   ============================================================ */
.da-section { margin-bottom: 24px; }

.da-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.da-section-head .da-section-title { margin: 0; }

.da-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    letter-spacing: -.01em;
}
.da-section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    border-radius: 2px;
}
.da-more {
    color: #2563eb;
    text-decoration: none;
    font-size: 13.5px;
    transition: color .15s;
}
.da-more:hover { text-decoration: underline; }

.da-today-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 26px 30px 24px;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
    position: relative;
    overflow: hidden;
}
.da-today-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 60%, #a3c4f3 100%);
}

.da-today-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12.5px;
}
.da-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}
.da-cat-link {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    text-decoration: none;
    transition: background .15s;
}
.da-cat-link:hover { background: #dbeafe; text-decoration: none; }
.da-date { color: #94a3b8; }

.da-today-title {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    letter-spacing: -.01em;
}
.da-today-title a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}
.da-today-title a:hover { color: #2563eb; }
.da-today-author {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 10px;
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    vertical-align: middle;
}

.da-today-summary-wrap {
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #f8fafc;
    border-left: 3px solid #cbd5e1;
    border-radius: 0 6px 6px 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: #64748b;
}
.da-today-summary-label { font-weight: 600; color: #334155; }

.da-today-excerpt {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.9;
    color: #334155;
}
.da-today-excerpt-label {
    display: inline-block;
    padding: 2px 10px;
    margin-bottom: 8px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}
.da-today-excerpt-text { text-indent: 2em; }

.da-today-readmore { text-align: right; margin-bottom: 4px; }
.da-today-readmore .da-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    transition: all .15s;
}
.da-today-readmore .da-more:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   05. 内嵌双栏 / 往期列表
   ============================================================ */
.da-today-streams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 18px 20px;
    margin-top: 16px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
}
.da-today-stream-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.da-today-list { list-style: none; margin: 0; padding: 0; }
.da-today-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 13.5px;
    line-height: 1.7;
    color: #334155;
}
.da-today-list li:last-child { border-bottom: 0; }
.da-today-user { color: #2563eb; font-weight: 500; }
.da-today-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.da-today-empty {
    padding: 12px 0;
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

/* 往期列表（两列） */
.da-issues-full {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}
.da-issues-full .da-issue a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: all .15s;
}
.da-issues-full .da-issue a:hover {
    border-color: #93c5fd;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(37,99,235,.1);
    text-decoration: none;
}
.da-issues-full .da-issue-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.da-issues-full .da-issue-date {
    flex: 0 0 auto;
    font-size: 12px;
    color: #94a3b8;
}

/* ============================================================
   06. 归档页
   ============================================================ */
.da-tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.da-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid #e5e9f0;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    transition: all .15s;
}
.da-tag:hover,
.da-tag.is-active {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
    text-decoration: none;
}
.da-archive-meta {
    margin: 0 0 16px;
    font-size: 13.5px;
    color: #64748b;
}
.da-archive-meta strong { color: #2563eb; font-weight: 700; }

.da-archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.da-archive-item-link {
    display: block;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: all .2s;
}
.da-archive-item-link:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 20px rgba(37,99,235,.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.da-archive-item-head {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.da-archive-item-issue {
    padding: 2px 10px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}
.da-archive-item-cat {
    padding: 2px 10px;
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    color: #64748b;
    border-radius: 999px;
    font-size: 11.5px;
}
.da-archive-item-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    letter-spacing: -.01em;
}
.da-archive-item-summary {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.da-archive-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px dashed #f1f5f9;
    font-size: 12.5px;
    color: #94a3b8;
}

/* ============================================================
   07. 详情页正文
   ============================================================ */
.da-article {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 32px 36px;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.da-article-header { margin-bottom: 20px; }
.da-article-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    letter-spacing: -.01em;
}
.da-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 14px;
}
.da-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.da-content {
    font-size: 16px;
    line-height: 2;
    color: #334155;
    word-wrap: break-word;
    padding: 0 8px;
    margin: 24px 0;
}
.da-content.da-rich { white-space: normal; }
.da-content.da-rich p {
    margin: 0 0 1em;
    line-height: 2;
}
.da-content.da-rich h1,
.da-content.da-rich h2,
.da-content.da-rich h3,
.da-content.da-rich h4,
.da-content.da-rich h5,
.da-content.da-rich h6 {
    margin: 1.2em 0 .6em;
    line-height: 1.4;
    color: #0f172a;
}
.da-content.da-rich ul,
.da-content.da-rich ol {
    padding-left: 1.6em;
    margin: .6em 0 1em;
}
.da-content.da-rich li { margin: .3em 0; }
.da-content.da-rich blockquote {
    margin: 1em 0;
    padding: .4em 1em;
    border-left: 3px solid #2563eb;
    background: #f8fafc;
    color: #64748b;
    border-radius: 4px;
}
.da-content.da-rich code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    color: #db2777;
}
.da-content.da-rich pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 12px 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1em 0;
}
.da-content.da-rich pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.da-content.da-rich img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 1em auto;
}
.da-content.da-rich a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37,99,235,.3);
}
.da-content.da-rich a:hover {
    border-bottom-color: #2563eb;
    text-decoration: none;
}
.da-content.da-rich hr {
    border: 0;
    border-top: 1px solid #e5e9f0;
    margin: 1.5em 0;
}
.da-content.da-rich table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 13.5px;
}
.da-content.da-rich th,
.da-content.da-rich td {
    border: 1px solid #e5e9f0;
    padding: 9px 14px;
    text-align: left;
}
.da-content.da-rich th { background: #f8fafc; font-weight: 600; }

/* ============================================================
   08. 批注样式（角标数字由 CSS 伪元素生成）
   ============================================================ */
.da-annot {
    position: relative;
    border-bottom: 2px dashed #f59e0b;
    background: rgba(245, 158, 11, .08);
    padding-bottom: 1px;
    cursor: pointer;
    transition: background .15s;
}
.da-annot:hover {
    background: rgba(245, 158, 11, .18);
}

.da-annot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 2px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #f59e0b;
    border-radius: 999px;
    vertical-align: super;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 1px 3px rgba(245,158,11,.4);
}
.da-annot-badge::before {
    content: attr(data-da-note-num);
}
.da-annot-badge:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(245,158,11,.6);
}

/* ============================================================
   09. 打卡 / 表单 / 评论 / 摘抄
   ============================================================ */
.da-checkin-inline {
    margin: 20px 0 8px;
}

.da-block {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed #e5e9f0;
}

.da-form { margin-bottom: 18px; }

.da-textarea {
    width: 100%;
    min-height: 84px;
    padding: 12px 14px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
    color: #1e293b;
}
.da-textarea:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.da-textarea::placeholder { color: #cbd5e1; }

.da-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.da-comment-list,
.da-quote-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.da-comment,
.da-quote {
    padding: 14px 0;
    border-bottom: 1px dashed #f1f5f9;
}
.da-comment:last-child,
.da-quote:last-child { border-bottom: 0; }
.da-comment-head,
.da-quote-head {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 12.5px;
    color: #94a3b8;
}
.da-comment-user,
.da-quote-user {
    color: #334155;
    font-weight: 600;
    font-size: 13px;
}
.da-comment-body,
.da-quote-body {
    font-size: 14.5px;
    line-height: 1.8;
    color: #334155;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ============================================================
   10. 上下篇 / 相关推荐
   ============================================================ */
.da-fm-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}
.da-fm-nav-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    font-size: 13.5px;
    transition: all .15s;
}
.da-fm-nav-btn:hover {
    border-color: #2563eb;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,.08);
}
.da-fm-nav-btn.is-disabled {
    opacity: .5;
    cursor: not-allowed;
}
.da-fm-nav-btn.is-disabled:hover {
    border-color: #e5e9f0;
    transform: none;
    box-shadow: none;
}
.da-fm-nav-dir {
    font-size: 12px;
    color: #2563eb;
    font-weight: 600;
}
.da-fm-nav-title {
    font-size: 14px;
    color: #0f172a;
    line-height: 1.4;
}
.da-fm-nav-random {
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border-color: #e0e7ff;
    text-align: center;
    align-items: center;
    justify-content: center;
}
.da-fm-nav-random .da-fm-nav-title {
    color: #7c3aed;
    font-weight: 500;
}

.da-fm-related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.da-fm-related a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 9px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: all .15s;
}
.da-fm-related a:hover {
    border-color: #2563eb;
    color: #2563eb;
    text-decoration: none;
}
.da-fm-related-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.da-fm-date {
    font-size: 12px;
    color: #94a3b8;
    flex: 0 0 auto;
}

/* ============================================================
   11. Toast
   ============================================================ */
.da-toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, .88);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    max-width: 90vw;
}
.da-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   12. 模态框
   ============================================================ */
.da-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.da-modal[hidden] { display: none !important; }

.da-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.da-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(15,23,42,.35);
    animation: daModalIn .25s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
}
@keyframes daModalIn {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.da-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f7;
    flex-shrink: 0;
}
.da-modal-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.01em;
}
.da-modal-close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #94a3b8;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    font-family: inherit;
    flex-shrink: 0;
}
.da-modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.da-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.9;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1;
    min-height: 0;
}

.da-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/* 批注输入模态框的划线预览 */
.da-annot-quote {
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 6px;
    background: #f8fafc;
    border-left: 3px solid #f59e0b;
    font-size: 13.5px;
    line-height: 1.7;
    white-space: normal;
    word-break: break-word;
}
.da-annot-quote-label {
    color: #94a3b8;
    margin-right: 6px;
}
.da-annot-quote-text {
    color: #0f172a;
    font-weight: 500;
}

/* 摘抄卡片模态框 */
.da-card-panel { max-width: 620px; }

.da-card-sign-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    white-space: normal;
}
.da-card-sign-label {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}
.da-card-sign-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    color: #1e293b;
    transition: border-color .15s, box-shadow .15s;
}
.da-card-sign-input:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.da-card-preview {
    max-height: 60vh;
    overflow: auto;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
    white-space: normal;
}
.da-card-preview canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* ============================================================
   13. 选区浮动按钮
   ============================================================ */
.da-sel-actions {
    position: fixed;
    z-index: 9997;
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.10);
    border: 1px solid #eef2f7;
    animation: daSelPop .18s cubic-bezier(.2,.8,.2,1);
}
.da-sel-actions[hidden] { display: none !important; }

@keyframes daSelPop {
    from { opacity: 0; transform: translateY(6px) scale(.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.da-sel-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    font-size: 12.5px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s, transform .15s, box-shadow .15s;
    color: #fff;
}
.da-sel-btn:hover {
    opacity: .94;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.da-sel-btn:active {
    transform: translateY(0);
    box-shadow: none;
}
.da-sel-btn-quote {
    background: #1e40af;
}
.da-sel-btn-quote:hover {
    background: #1d4ed8;
}
.da-sel-btn-annot {
    background: #ca8a04;
}
.da-sel-btn-annot:hover {
    background: #a16207;
}

/* ============================================================
   14. 辅助 / 通用
   ============================================================ */
.da-text-muted { color: #94a3b8; }

/* 兼容旧结构 */
.da-issues { list-style: none; margin: 0; padding: 0; }
.da-issue { border-bottom: 1px dashed #f1f5f9; }
.da-issue:last-child { border-bottom: 0; }

/* ============================================================
   15. 响应式
   ============================================================ */
@media (max-width: 768px) {
    .da-hero { padding: 22px 20px; }
    .da-hero-title { font-size: 20px; }
    .da-hero-sub { font-size: 14px; }

    .da-today-card { padding: 20px 18px; border-radius: 14px; }
    .da-today-title { font-size: 19px; }
    .da-today-author {
        display: block;
        margin-left: 0;
        margin-top: 6px;
        width: fit-content;
    }
    .da-today-streams {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    .da-issues-full { grid-template-columns: 1fr; gap: 8px; }
    .da-issues-full .da-issue a { padding: 9px 12px; font-size: 13.5px; }
    .da-issues-full .da-issue-date { font-size: 11.5px; }

    .da-archive-item-link { padding: 14px 16px; }
    .da-archive-item-title { font-size: 16px; }
    .da-archive-item-meta { gap: 12px; }

    .da-article { padding: 22px 20px; border-radius: 12px; }
    .da-article-title { font-size: 20px; }
    .da-article-meta { font-size: 12.5px; gap: 10px; }
    .da-content {
        font-size: 15px;
        padding: 0;
        margin: 18px 0;
    }
    .da-content.da-rich pre { font-size: 12.5px; padding: 10px 12px; }
    .da-content.da-rich table { font-size: 12.5px; }

    .da-fm-nav { grid-template-columns: 1fr; }
    .da-fm-related { grid-template-columns: 1fr; }

    .da-modal { padding: 12px; }
    .da-modal-panel { max-height: 92vh; border-radius: 12px; }
    .da-modal-head { padding: 14px 16px; }
    .da-modal-head h3 { font-size: 15px; }
    .da-modal-body { padding: 14px 16px; font-size: 13.5px; }
    .da-card-panel { max-width: 100%; }
    .da-card-sign-row { flex-wrap: wrap; }

    .da-sel-btn { padding: 6px 10px; font-size: 12px; }
    .da-sel-actions { padding: 3px; }
}

@media (max-width: 480px) {
    .da-hero { padding: 18px 16px; border-radius: 14px; }
    .da-hero-title { font-size: 18px; }
    .da-hero-sub { font-size: 13px; margin-bottom: 16px; }
    .da-hero-actions { gap: 8px; }
    .da-btn { padding: 8px 14px; font-size: 13px; }
    .da-btn-sm { padding: 6px 10px; font-size: 12.5px; }

    .da-today-card { padding: 18px 16px; }
    .da-today-title { font-size: 17px; }
    .da-today-head { font-size: 11.5px; gap: 8px; }
    .da-badge { padding: 2px 10px; font-size: 11px; }
    .da-cat-link { font-size: 11px; }

    .da-section-title { font-size: 16px; }
    .da-article-title { font-size: 18px; }
    .da-article { padding: 18px 16px; }
    .da-content { font-size: 14.5px; line-height: 1.9; }

    .da-modal-panel { border-radius: 10px; }
    .da-modal-close { width: 26px; height: 26px; font-size: 20px; }

    .da-annot-badge {
        min-width: 14px;
        height: 14px;
        font-size: 9px;
        padding: 0 3px;
    }
}

/* ============================================================
   打印优化
   ============================================================ */
@media print {
    .da-sel-actions,
    .da-toast,
    .da-modal,
    .da-btn,
    .da-form,
    .da-form-actions,
    .da-fm-nav,
    .da-top-actions { display: none !important; }

    .da-article {
        border: 0;
        padding: 0;
        box-shadow: none;
    }
    .da-annot {
        background: transparent;
        border-bottom: 0;
    }
    .da-annot-badge { display: none; }
}

/* ============================================================
   ★ 编者按 / 译文 / 本期话题（详情页 + 首页）
   ============================================================ */

/* 编者按（详情页 · 正文上方） */
.da-editor-note {
    padding: 14px 18px;
    margin: 0 0 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border-left: 3px solid #2563eb;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    line-height: 1.75;
    color: #334155;
    word-break: break-word;
}
.da-editor-note strong {
    color: #1d4ed8;
    font-weight: 700;
    margin-right: 4px;
}

/* 译文（详情页 · 正文下方） */
.da-translation {
    margin: 22px 0 0;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}
.da-translation-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 10px;
    letter-spacing: .3px;
}
.da-translation-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    border-radius: 2px;
}
.da-translation-body {
    font-size: 15px;
    line-height: 1.9;
    color: #475569;
    word-break: break-word;
}

/* 本期话题（详情页 + 首页） */
.da-topics {
    margin: 22px 0 0;
    padding: 0;
    background: #fff;
    border: 1px solid #d6e4ff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 102, 204, .06);
}
.da-topics-title {
    position: relative;
    padding: 10px 16px 10px 20px;
    background: linear-gradient(90deg, #e6f0ff 0%, #fff 100%);
    border-bottom: 1px solid #d6e4ff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #1d4ed8;
    line-height: 1.5;
}
.da-topics-title::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: #2563eb;
}
.da-topics-list {
    list-style: none;
    margin: 0;
    padding: 6px 16px;
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
}
.da-topics-list li {
    position: relative;
    padding: 8px 0 8px 22px;
    word-break: break-word;
}
.da-topics-list li + li {
    border-top: 1px dashed #eef2f7;
}
.da-topics-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    background: #e6f0ff;
    opacity: .8;
    box-sizing: border-box;
}

/* 首页今日卡片里的话题：稍微紧凑 */
.da-section .da-topics { margin-top: 16px; }

/* 响应式微调 */
@media (max-width: 640px) {
    .da-editor-note { padding: 12px 14px; font-size: 13.5px; }
    .da-translation { padding: 14px 16px; }
    .da-translation-body { font-size: 14.5px; }
    .da-topics-title { padding: 9px 14px 9px 18px; font-size: 13px; }
    .da-topics-list { padding: 4px 14px; font-size: 13.5px; }
    .da-topics-list li { padding: 7px 0 7px 20px; }
    .da-topics-list li::before { width: 8px; height: 8px; left: 3px; }
}

/* ============================================================
   ★ 马甲发帖 · 发布身份选择器
   （由 vn_postname 插件渲染的 <select name="vn_alias">）
   ============================================================ */
.vnpn-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    font-size: 13px;
}
.vnpn-picker-label {
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}
.vnpn-picker-select {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
    transition: border-color .15s, box-shadow .15s;
}
.vnpn-picker-select:hover {
    border-color: #cbd5e1;
}
.vnpn-picker-select:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* 响应式：窄屏时堆叠 */
@media (max-width: 480px) {
    .vnpn-picker {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .vnpn-picker-label {
        font-size: 12.5px;
    }
}

/* ============================================================
   ★ 往期全部 · v1.2 美化版
   （追加在文件末尾，覆盖上方旧 .da-issues-full 相关规则）
   ============================================================ */

/* 与上一个区块（今日摘抄/讨论）的间距拉开 */
.da-archive-section {
    margin-top: 36px;
    padding-top: 4px;
}
.da-archive-section .da-section-head {
    margin-bottom: 16px;
}

/* 列表容器：两列网格 */
.da-issues-full {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.da-issues-full .da-issue {
    margin: 0;
}

/* 卡片本体 */
.da-issues-full .da-issue a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 12px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: all .22s cubic-bezier(.2, .8, .2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

/* 悬停时左侧渐变竖条 */
.da-issues-full .da-issue a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transform: scaleY(.4);
    transform-origin: center;
    transition: opacity .22s ease, transform .26s cubic-bezier(.2, .8, .2, 1);
}

.da-issues-full .da-issue a:hover {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #fbfdff 0%, #f8fbff 100%);
    box-shadow: 0 8px 22px rgba(37, 99, 235, .1);
    transform: translateY(-2px);
    text-decoration: none;
}
.da-issues-full .da-issue a:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

/* 左侧期数徽标 */
.da-issue-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 700;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: -.02em;
    line-height: 1;
    transition: all .22s cubic-bezier(.2, .8, .2, 1);
}
.da-issues-full .da-issue a:hover .da-issue-index {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
    transform: scale(1.05);
}

/* 中间文字主体 */
.da-issue-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.da-issue-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    transition: color .15s;
    letter-spacing: -.005em;
}
.da-issues-full .da-issue a:hover .da-issue-title {
    color: #2563eb;
}
.da-issue-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
}
.da-issue-date svg {
    width: 11px;
    height: 11px;
    opacity: .7;
    flex-shrink: 0;
}

/* 右侧箭头 */
.da-issue-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #cbd5e1;
    flex-shrink: 0;
    transition: all .22s cubic-bezier(.2, .8, .2, 1);
    margin-left: -2px;
}
.da-issue-arrow svg {
    width: 14px;
    height: 14px;
}
.da-issues-full .da-issue a:hover .da-issue-arrow {
    color: #2563eb;
    background: #eff6ff;
    transform: translateX(2px);
}

/* 响应式 */
@media (max-width: 768px) {
    .da-archive-section { margin-top: 26px; }
    .da-issues-full {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .da-issues-full .da-issue a {
        padding: 10px 12px 10px 10px;
        gap: 10px;
        border-radius: 10px;
    }
    .da-issue-index {
        width: 30px;
        height: 30px;
        font-size: 11.5px;
        border-radius: 8px;
    }
    .da-issue-title { font-size: 13.5px; }
    .da-issue-date { font-size: 11px; }
    .da-issue-arrow { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
    .da-archive-section { margin-top: 22px; }
    .da-issues-full .da-issue a { padding: 9px 10px 9px 9px; gap: 9px; }
    .da-issue-index { width: 28px; height: 28px; font-size: 11px; border-radius: 7px; }
    .da-issue-title { font-size: 13px; }
}