/* =========================================================================
 * EAAVPS 文章页 2026 —— 作用域全部以 .ea- 开头，避免与主题冲突
 * ========================================================================= */

.ea-page {
    --ea-ink: #0b1220;
    --ea-ink-2: #1e293b;
    --ea-body: #334155;
    --ea-muted: #64748b;
    --ea-line: #e6eaf2;
    --ea-bg: #f6f8fc;
    --ea-card: #ffffff;
    --ea-brand: #4f46e5;
    --ea-cyan: #06b6d4;
    --ea-brand-soft: rgba(79, 70, 229, 0.08);
    --ea-cyan-soft: rgba(6, 182, 212, 0.1);
    --ea-radius: 16px;
    --ea-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.12);
    background: var(--ea-bg);
    padding: 0 0 48px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ea-body);
}

.ea-page * {
    box-sizing: border-box;
}

.ea-ads-top {
    max-width: 1180px;
    margin: 12px auto 0;
    padding: 0 16px;
}

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */
.ea-hero {
    position: relative;
    max-width: 1180px;
    margin: 16px auto 0;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(1200px 400px at 12% -10%, #1e3a8a 0%, transparent 60%),
                radial-gradient(900px 380px at 90% 0%, #0e7490 0%, transparent 55%),
                linear-gradient(140deg, #0b1220 0%, #101a2f 55%, #0b1220 100%);
    box-shadow: 0 24px 60px -28px rgba(11, 18, 32, 0.55);
}

.ea-hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 78%);
    pointer-events: none;
}

.ea-hero-glow {
    position: absolute;
    right: -120px;
    top: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 68%);
    filter: blur(6px);
    pointer-events: none;
}

.ea-hero-inner {
    position: relative;
    padding: 34px 40px 30px;
    color: #e2e8f0;
}

.ea-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.ea-crumbs a {
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}

.ea-crumbs a:hover {
    color: #67e8f9;
    border-bottom-color: #67e8f9;
}

.ea-crumbs-sep {
    color: #475569;
}

.ea-crumbs-current {
    color: #94a3b8;
}

.ea-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ea-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    line-height: 1.2;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.22);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ea-chip:hover {
    color: #fff;
    border-color: rgba(103, 232, 249, 0.6);
    background: rgba(6, 182, 212, 0.18);
}

.ea-chip--brand {
    color: #0b1220;
    font-weight: 600;
    background: linear-gradient(135deg, #a5f3fc 0%, #67e8f9 100%);
    border-color: transparent;
}

.ea-chip--brand:hover {
    color: #0b1220;
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
}

.ea-title {
    margin: 0 0 20px;
    font-size: 34px;
    line-height: 1.32;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #f8fafc;
    text-shadow: 0 2px 24px rgba(2, 6, 23, 0.5);
}

.ea-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    font-size: 13px;
    color: #94a3b8;
}

.ea-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ea-meta-author {
    color: #e2e8f0;
    font-weight: 600;
}

.ea-avatar {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50%;
    border: 1.5px solid rgba(103, 232, 249, 0.6);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.ea-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.ea-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.1);
    transition: all 0.2s ease;
    font-family: inherit;
}

.ea-btn:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #fff;
    border-color: rgba(148, 163, 184, 0.45);
}

.ea-btn--primary {
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(6, 182, 212, 0.9);
}

.ea-btn--primary:hover {
    color: #fff;
    filter: brightness(1.06);
}

.ea-btn--ghost {
    background: transparent;
}

/* -------------------------------------------------------------------------
 * 布局
 * ---------------------------------------------------------------------- */
.ea-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 0 16px;
    align-items: start;
}

.ea-main {
    min-width: 0;
}

.ea-aside {
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* -------------------------------------------------------------------------
 * 正文卡片
 * ---------------------------------------------------------------------- */
.ea-content {
    background: var(--ea-card);
    border: 1px solid var(--ea-line);
    border-radius: var(--ea-radius);
    box-shadow: var(--ea-shadow);
    padding: 34px 40px 30px;
    font-size: 16.5px;
    line-height: 1.9;
    color: var(--ea-body);
    overflow-wrap: break-word;
}

.ea-content > *:first-child {
    margin-top: 0 !important;
}

/* qk-md 段落结构 */
.ea-content .qk-md-paragraph {
    margin: 0 0 18px;
    line-height: 1.9;
    color: var(--ea-body);
}

.ea-content .qk-md-text {
    display: inline;
}

.ea-content p {
    margin: 0 0 18px;
}

.ea-content strong,
.ea-content b {
    color: var(--ea-ink);
    font-weight: 700;
}

.ea-content em {
    color: var(--ea-brand);
    font-style: normal;
    background: linear-gradient(180deg, transparent 62%, rgba(6, 182, 212, 0.22) 62%);
}

.ea-content a {
    color: #4338ca;
    text-decoration: none;
    border-bottom: 1px solid rgba(67, 56, 202, 0.32);
    transition: all 0.15s ease;
}

.ea-content a:hover {
    color: #0891b2;
    border-bottom-color: #0891b2;
}

/* 标题层级 */
.ea-content h2 {
    position: relative;
    margin: 46px 0 20px;
    padding: 0 0 12px 16px;
    font-size: 23px;
    line-height: 1.45;
    font-weight: 800;
    color: var(--ea-ink);
    letter-spacing: -0.2px;
    border-bottom: 1px solid var(--ea-line);
}

.ea-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 15px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #6366f1 0%, #06b6d4 100%);
}

.ea-content h2::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.55) 0%, rgba(6, 182, 212, 0.18) 40%, transparent 100%);
}

.ea-content h3 {
    position: relative;
    margin: 34px 0 14px;
    padding-left: 18px;
    font-size: 19px;
    font-weight: 700;
    color: var(--ea-ink-2);
}

.ea-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 3px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    transform: rotate(45deg);
}

.ea-content h4 {
    margin: 26px 0 12px;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--ea-brand);
}

.ea-content h2:target,
.ea-content h3:target {
    scroll-margin-top: 90px;
}

.ea-content,
.ea-visual-slot {
    scroll-margin-top: 84px;
}

/* 列表 */
.ea-content ul,
.ea-content ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.ea-content li {
    margin: 0 0 10px;
    line-height: 1.85;
}

.ea-content ul > li::marker {
    color: var(--ea-brand);
}

.ea-content ol > li::marker {
    color: var(--ea-muted);
    font-weight: 700;
}

/* 表格 */
.ea-table-wrap {
    margin: 26px 0;
    border: 1px solid var(--ea-line);
    border-radius: 14px;
    overflow-x: auto;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ea-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    min-width: 560px;
}

.ea-content thead th {
    padding: 13px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #1e293b 0%, #111c33 100%);
    white-space: nowrap;
}

.ea-content tbody td {
    padding: 13px 16px;
    border-top: 1px solid var(--ea-line);
    color: var(--ea-body);
    vertical-align: middle;
}

.ea-content tbody tr:nth-child(even) {
    background: #f8fafc;
}

.ea-content tbody tr:hover {
    background: rgba(6, 182, 212, 0.07);
}

.ea-content tbody td:first-child {
    font-weight: 600;
    color: var(--ea-ink-2);
}

/* 行内代码 */
.ea-content code {
    padding: 2px 7px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4338ca;
    font-family: "JetBrains Mono", Consolas, Monaco, monospace;
    font-size: 0.9em;
    border: 1px solid rgba(67, 56, 202, 0.14);
}

/* 代码块 */
.ea-content pre {
    position: relative;
    margin: 24px 0;
    padding: 20px 22px;
    border-radius: 14px;
    background: #0b1220;
    color: #e2e8f0;
    font-size: 13.5px;
    line-height: 1.7;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ea-content pre code {
    padding: 0;
    background: transparent;
    border: none;
    color: inherit;
    font-size: inherit;
}

.ea-code-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.25);
    cursor: pointer;
    transition: all 0.15s ease;
}

.ea-code-copy:hover {
    background: rgba(6, 182, 212, 0.28);
    color: #fff;
}

/* 引用 → 提示卡 */
.ea-content blockquote.ea-callout {
    position: relative;
    margin: 26px 0;
    padding: 20px 24px 20px 54px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-left: 4px solid var(--ea-brand);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, rgba(6, 182, 212, 0.05) 100%);
    color: var(--ea-ink-2);
    font-size: 15.5px;
}

.ea-content blockquote.ea-callout::before {
    content: "💡";
    position: absolute;
    left: 18px;
    top: 18px;
    font-size: 20px;
    line-height: 1;
}

.ea-content blockquote.ea-callout p:last-child {
    margin-bottom: 0;
}

/* 图片 */
.ea-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--ea-line);
    margin: 22px 0;
    display: block;
}

/* 分割线 */
.ea-content hr {
    height: 1px;
    border: none;
    margin: 34px 0;
    background: linear-gradient(90deg, transparent 0%, var(--ea-line) 20%, var(--ea-line) 80%, transparent 100%);
}

/* -------------------------------------------------------------------------
 * 图表 / 方案卡
 * ---------------------------------------------------------------------- */
.ea-visual-slot {
    margin: 30px 0 6px;
}

.ea-visual {
    position: relative;
    margin: 0 0 24px;
    padding: 22px 24px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--ea-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -28px rgba(30, 58, 138, 0.35);
    overflow: hidden;
}

.ea-visual::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #06b6d4 60%, transparent 100%);
}

.ea-visual-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ea-visual-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ea-ink);
    padding: 0;
    border: none;
}

/* 正文 h3 有 18px 左缩进（配菱形标记），图表标题不需要 */
.ea-content .ea-visual-title,
.ea-content .ea-visual-title::before,
.ea-content .ea-visual-title::after {
    padding-left: 0;
}

.ea-content .ea-visual-title::before,
.ea-content .ea-visual-title::after {
    display: none;
}

.ea-visual-sub {
    margin: 0;
    font-size: 12.5px;
    color: var(--ea-muted);
    line-height: 1.6;
}

.ea-visual-badge {
    flex: 0 0 auto;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #0e7490;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    white-space: nowrap;
}

.ea-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ea-bar-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 82px;
    align-items: center;
    gap: 12px;
}

.ea-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ea-ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ea-bar-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.ea-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1 0%, #06b6d4 100%);
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ea-bar-row.is-cheap .ea-bar-fill {
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
}

.ea-bar-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--ea-ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ea-bars.is-animated .ea-bar-fill {
    width: var(--w);
}

.ea-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.ea-plan {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--ea-line);
    background: #fff;
    transition: all 0.2s ease;
}

.ea-plan:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 14px 30px -20px rgba(6, 182, 212, 0.7);
    transform: translateY(-2px);
}

.ea-plan-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--ea-line);
}

.ea-plan-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ea-ink);
}

.ea-plan-price {
    font-size: 18px;
    font-weight: 800;
    color: #dc2626;
    font-variant-numeric: tabular-nums;
}

.ea-plan-price small {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ea-muted);
    margin-left: 2px;
}

.ea-plan-specs {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.ea-plan-specs li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px !important;
}

.ea-meter-label {
    font-size: 11.5px;
    color: var(--ea-muted);
}

.ea-meter {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.ea-meter i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.85) 0%, rgba(6, 182, 212, 0.9) 100%);
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ea-plans.is-animated .ea-meter i {
    width: var(--w);
}

.ea-meter-value {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ea-ink-2);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
 * 正文之后：标签、分享、作者、上下篇、相关
 * ---------------------------------------------------------------------- */
.ea-after {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 20px 0 0;
    padding: 20px 24px;
    border-radius: var(--ea-radius);
    background: var(--ea-card);
    border: 1px solid var(--ea-line);
    box-shadow: var(--ea-shadow);
}

.ea-after-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ea-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ea-tags {
    flex: 1 1 320px;
}

.ea-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ea-tag {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--ea-brand);
    background: var(--ea-brand-soft);
    text-decoration: none;
    border: 1px solid rgba(99, 102, 241, 0.16);
    transition: all 0.15s ease;
}

.ea-tag:hover {
    background: var(--ea-brand);
    color: #fff;
}

.ea-share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ea-share-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--ea-ink-2);
    background: #f1f5f9;
    border: 1px solid var(--ea-line);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.ea-share-btn:hover {
    background: var(--ea-ink);
    color: #fff;
    border-color: var(--ea-ink);
}

.ea-muted {
    color: var(--ea-muted);
    font-size: 13px;
}

/* 作者 */
.ea-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 22px 24px;
    border-radius: var(--ea-radius);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, rgba(6, 182, 212, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.16);
}

.ea-author-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 6px 18px -8px rgba(79, 70, 229, 0.6);
}

.ea-author-body {
    flex: 1;
    min-width: 0;
}

.ea-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ea-ink);
    margin-bottom: 4px;
}

.ea-author-bio {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ea-muted);
}

.ea-author .ea-btn {
    color: var(--ea-brand);
    border-color: rgba(99, 102, 241, 0.3);
    background: #fff;
}

/* 上下篇 */
.ea-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

.ea-pn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--ea-card);
    border: 1px solid var(--ea-line);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ea-pn:hover {
    border-color: rgba(6, 182, 212, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -24px rgba(6, 182, 212, 0.8);
}

.ea-pn--next {
    text-align: right;
}

.ea-pn-label {
    font-size: 12px;
    color: var(--ea-muted);
    font-weight: 600;
}

.ea-pn-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ea-ink-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 相关文章 */
.ea-related {
    margin-top: 28px;
}

.ea-section-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--ea-ink);
    padding-left: 12px;
    border-left: 4px solid var(--ea-brand);
    line-height: 1.3;
}

.ea-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ea-related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: var(--ea-card);
    border: 1px solid var(--ea-line);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ea-related-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -26px rgba(79, 70, 229, 0.75);
}

.ea-related-thumb img {
    width: 100%;
    height: 108px;
    object-fit: cover;
    border-radius: 9px;
    display: block;
}

.ea-related-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ea-ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ea-related-meta {
    font-size: 11.5px;
    color: var(--ea-muted);
}

.ea-ads-inline {
    margin: 20px 0;
}

.ea-ads-inline:empty {
    display: none;
}

.ea-comments {
    margin-top: 28px;
    padding: 24px;
    border-radius: var(--ea-radius);
    background: var(--ea-card);
    border: 1px solid var(--ea-line);
}

.ea-comments .comment-respond,
.ea-comments .comments-area {
    margin: 0;
}

/* -------------------------------------------------------------------------
 * 侧栏卡片
 * ---------------------------------------------------------------------- */
.ea-card {
    padding: 18px 20px;
    border-radius: var(--ea-radius);
    background: var(--ea-card);
    border: 1px solid var(--ea-line);
    box-shadow: var(--ea-shadow);
}

.ea-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ea-ink);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ea-line);
}

.ea-card-title::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(180deg, #6366f1, #06b6d4);
}

.ea-toc-card {
    position: relative;
}

.ea-toc-track {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eef2f7;
    border-radius: 2px;
}

.ea-toc-progress {
    display: block;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #6366f1, #06b6d4);
    transition: height 0.15s linear;
}

.ea-toc {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
    max-height: 46vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ea-toc-item {
    margin: 0;
}

.ea-toc-item a {
    display: flex;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 12.8px;
    line-height: 1.55;
    color: var(--ea-muted);
    text-decoration: none;
    transition: all 0.15s ease;
}

.ea-toc-item a:hover {
    color: var(--ea-brand);
    background: var(--ea-brand-soft);
}

.ea-toc-level-3 a {
    padding-left: 18px;
    font-size: 12.2px;
}

.ea-toc-num {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
    padding-top: 1px;
}

.ea-toc-item.is-active a {
    color: var(--ea-brand);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.06));
    font-weight: 600;
}

.ea-toc-item.is-active .ea-toc-num {
    color: var(--ea-brand);
}

.ea-facts {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ea-facts > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--ea-line);
}

.ea-facts > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ea-facts dt {
    font-size: 12.5px;
    color: var(--ea-muted);
}

.ea-facts dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ea-ink);
    font-variant-numeric: tabular-nums;
}

.ea-aside-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ea-aside-list li {
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px dashed var(--ea-line);
}

.ea-aside-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ea-aside-list a {
    font-size: 12.9px;
    line-height: 1.6;
    color: var(--ea-ink-2);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.ea-aside-list a:hover {
    color: var(--ea-brand);
}

.ea-aside-ad {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* -------------------------------------------------------------------------
 * 进度条 / 回到顶部
 * ---------------------------------------------------------------------- */
.ea-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
}

.ea-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6366f1 0%, #06b6d4 70%, #22d3ee 100%);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
    transition: width 0.1s linear;
}

.ea-totop {
    position: fixed;
    right: 22px;
    bottom: 26px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    border: none;
    cursor: pointer;
    box-shadow: 0 14px 30px -12px rgba(6, 182, 212, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 9998;
}

.ea-totop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* -------------------------------------------------------------------------
 * 响应式
 * ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ea-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ea-aside {
        position: static;
        order: 2;
        grid-row: 2;
    }

    .ea-toc {
        max-height: none;
    }

    .ea-content {
        padding: 26px 24px;
    }

    .ea-title {
        font-size: 28px;
    }

    .ea-hero-inner {
        padding: 26px 24px 24px;
    }
}

@media (max-width: 720px) {
    .ea-hero {
        margin: 10px 10px 0;
        border-radius: 18px;
    }

    .ea-layout {
        padding: 0 10px;
        margin-top: 14px;
        gap: 16px;
    }

    .ea-hero-inner {
        padding: 22px 18px 20px;
    }

    .ea-title {
        font-size: 23px;
        line-height: 1.4;
        margin-bottom: 14px;
    }

    .ea-meta {
        gap: 8px 12px;
        font-size: 12px;
    }

    .ea-content {
        padding: 20px 16px;
        font-size: 15.8px;
        line-height: 1.85;
        border-radius: 12px;
    }

    .ea-content h2 {
        font-size: 19.5px;
        margin-top: 34px;
    }

    .ea-content h3 {
        font-size: 17px;
    }

    .ea-bar-row {
        grid-template-columns: 66px minmax(0, 1fr) 68px;
        gap: 8px;
    }

    .ea-bar-label,
    .ea-bar-value {
        font-size: 12px;
    }

    .ea-visual {
        padding: 16px 14px;
    }

    .ea-plans {
        grid-template-columns: 1fr;
    }

    .ea-related-grid {
        grid-template-columns: 1fr;
    }

    .ea-related-thumb img {
        height: 150px;
    }

    .ea-prevnext {
        grid-template-columns: 1fr;
    }

    .ea-pn--next {
        text-align: left;
    }

    .ea-author {
        flex-wrap: wrap;
    }

    .ea-after {
        padding: 16px;
    }

    .ea-totop {
        right: 14px;
        bottom: 16px;
    }
}

/* -------------------------------------------------------------------------
 * 封面图与正文配图
 * ---------------------------------------------------------------------- */
.ea-hero--cover::before {
    content: "";
    position: absolute;
    inset: -6%;
    background-image: var(--ea-cover);
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    filter: blur(9px) saturate(0.85) brightness(0.72);
    transform: scale(1.04);
    z-index: 0;
    pointer-events: none;
}

.ea-hero--cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.58), rgba(8, 12, 22, 0.84));
    z-index: 0;
    pointer-events: none;
}

.ea-hero--cover .ea-hero-inner {
    position: relative;
    z-index: 2;
}

.ea-figure {
    margin: 30px 0;
}

.ea-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--ea-line);
    box-shadow: 0 18px 42px -26px rgba(11, 18, 32, 0.5);
}

.ea-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7a94;
    text-align: center;
}