/* 新闻详情 — PC：与分类页统一的 Editorial 风格 */

.hw-single--pc {
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px var(--page-gutter-x) 88px;
}

.hw-single__inner {
    max-width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 8px;
    background: var(--hw-card-bg, #fff);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

/* 返回列表 */
.hw-single__crumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hw-accent, #5046e5);
    text-decoration: none;
    margin-bottom: 0;
    padding: 6px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(80, 70, 229, 0.24);
    letter-spacing: 0.02em;
    box-shadow: none;
    transition: opacity 0.2s ease;
}
.hw-single__crumb::before {
    content: "<<";
    font-size: 11px;
    line-height: 1;
    opacity: 0.86;
}
.hw-single__crumb:hover {
    opacity: 0.75;
}

/* 首屏标题区 — 对齐分类页 hero 气质 */
.hw-single__hero {
    position: relative;
    text-align: left;
    padding: 12px 12px 12px;
    margin: 0;
    border-radius: 0;
    border: none;
    background:
        radial-gradient(120% 130% at 100% 0%, rgba(80, 70, 229, 0.16) 0%, rgba(80, 70, 229, 0) 60%),
        linear-gradient(160deg, #ffffff 0%, #f7f8ff 100%);
    box-shadow: none;
    overflow: hidden;
}
.hw-single__hero::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -64px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 70, 229, 0.18) 0%, rgba(80, 70, 229, 0) 72%);
    pointer-events: none;
}

.hw-single__topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hw-single__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}
.hw-single__chips--topline {
    margin-bottom: 0;
}
.hw-single__chips--topline .hw-single__chip {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hw-text-secondary, #666);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
}

.hw-single__chip {
    display: inline-block;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--hw-text-secondary, #666);
    background: none;
    border: none;
    border-radius: 0;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}
.hw-single__chip:hover {
    color: var(--hw-accent, #5046e5);
    opacity: 0.9;
}

.hw-single__headline {
    max-width: 900px;
    font-size: clamp(30px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--hw-text, #1a1a2e);
}

.hw-single__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #5f647a;
}

.hw-single__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    backdrop-filter: none;
}

.hw-single__meta-item + .hw-single__meta-item::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.22);
    margin-right: 10px;
}

.hw-single__meta-item--views {
    gap: 6px;
}
.hw-single__meta-item--views i {
    font-size: 14px;
    opacity: 0.75;
}

/* 封面图 — 浮动在正文左上角 */
.hw-single__figure {
    float: left;
    width: 25%;
    margin: 0 22px 14px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0%);
    box-shadow: 0 4px 16px rgb(255 255 255 / 8%);
    background: var(--hw-card-bg, #fff);
}

.hw-single__figure-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 正文卡片 — 与列表卡片圆角、描边一致 */
.hw-single__sheet {
    background: var(--hw-card-bg, #fff);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 12px 12px;
}

.hw-single__body {
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
    color: var(--hw-text, #1a1a2e);
    word-break: break-word;
    overflow: hidden;
}

.hw-single__body > *:first-child {
    margin-top: 0;
}

.hw-single__body h2 {
    font-size: 26px;
    margin: 44px 0 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--hw-text, #1a1a2e);
}
.hw-single__body h3 {
    font-size: 20px;
    margin: 36px 0 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hw-text, #1a1a2e);
}
.hw-single__body p {
    margin: 0 0 1.15em;
}
.hw-single__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.hw-single__body blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--hw-accent, #5046e5);
    background: var(--hw-accent-light, rgba(80, 70, 229, 0.06));
    border-radius: 0 8px 8px 0;
    font-style: normal;
    font-size: 16px;
    line-height: 1.75;
    color: var(--hw-text-secondary, #444);
}
.hw-single__body pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 22px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.65;
    margin: 24px 0;
}
.hw-single__body code {
    font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", monospace;
}
.hw-single__body a {
    color: var(--hw-accent, #5046e5);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}
.hw-single__body ul,
.hw-single__body ol {
    padding-left: 1.35em;
    margin: 0 0 1.15em;
}
.hw-single__body li {
    margin-bottom: 0.45em;
}

/* 标签区 */
.hw-single__tags {
    max-width: 720px;
    margin: 40px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.hw-single__tags-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hw-text-secondary, #888);
    margin-bottom: 12px;
}

.hw-single__chips--tags {
    justify-content: flex-start;
    margin-bottom: 0;
}

.hw-single__chip--tag {
    font-weight: 500;
}

/* ── 分享 + 上下篇：与正文同一张 hw-single__sheet 内的底区 ── */
.hw-single__sheet > .hw-single__actions-sheet {
    margin: 24px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.hw-single__sheet > .hw-single__actions-sheet:has(.hw-single__pager) .hw-single__share {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* ── 分享栏 ── */
.hw-single__share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0 0 18px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.hw-single__share-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--hw-text, #1a1a2e);
    white-space: nowrap;
}
.hw-single__share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}
.hw-single__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hw-text-secondary, #555);
    background: #f5f5f8;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
    line-height: 1;
}
.hw-single__share-btn:hover {
    background: #eef0ff;
    color: var(--hw-accent, #5046e5);
    border-color: rgba(80, 70, 229, 0.2);
}
.hw-single__share-btn i {
    font-size: 14px;
}
.hw-single__share-btn--weibo:hover { color: #e6162d; }
.hw-single__share-btn--x:hover { color: #000; }
.hw-single__share-btn--wechat:hover { color: #07c160; }

.hw-single__share-tip {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding: 5px 14px;
    font-size: 12px;
    color: #fff;
    background: var(--hw-text, #1a1a2e);
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 10;
}
.hw-single__share-tip--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── 上下篇（卡片内底区，与分享同一外框） ── */
.hw-single__sheet > .hw-single__actions-sheet .hw-single__pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    padding: 4px 0 0;
}
.hw-single__sheet > .hw-single__actions-sheet .hw-single__pager:has(.hw-single__pager-item--next) .hw-single__pager-item--prev {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
}
.hw-single__pager-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    text-decoration: none;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: background 0.25s;
}
.hw-single__pager-item::before {
    content: "";
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f66600 0%, #ff8f3d 100%);
    transition: width 0.25s;
}
.hw-single__pager-item--prev::before { left: 0; border-radius: 0; }
.hw-single__pager-item--next::before { right: 0; left: auto; border-radius: 0; }
.hw-single__pager-item:hover {
    background: rgba(246, 102, 0, 0.05);
}
.hw-single__pager-item:hover::before { width: 5px; }
.hw-single__pager-item--next {
    flex-direction: row;
    text-align: right;
    justify-content: flex-end;
}
.hw-single__pager-item--prev:only-child {
    grid-column: 1 / -1;
    max-width: 50%;
}
.hw-single__pager-item--next:only-child {
    grid-column: 2 / -1;
    max-width: 100%;
    margin-left: auto;
}
/* 圆角方钮：白底 + 橙色描边 + 橙箭头（非实心紫圆） */
.hw-single__pager-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #f66600;
    color: #f66600;
    font-size: 15px;
    box-shadow:
        0 2px 0 rgba(246, 102, 0, 0.06) inset,
        0 4px 14px rgba(246, 102, 0, 0.12);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}
.hw-single__pager-item:hover .hw-single__pager-arrow {
    transform: translateY(-1px);
    background: #f66600;
    color: #fff;
    box-shadow: 0 4px 14px rgba(246, 102, 0, 0.3);
}
.hw-single__pager-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.hw-single__pager-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #f66600;
}
.hw-single__pager-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--hw-text, #1a1a2e);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 相关新闻（卡片样式复用 archive-pc.css 的 .hw-archive__*） ── */
.hw-single__related {
    margin: 44px 0 0;
}
.hw-single__inner > .hw-single__related {
    margin: 0;
    padding: 12px 12px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.hw-single__inner:has(> .hw-single__related) .hw-single__sheet {
    padding-bottom: 32px;
}
.hw-single__related-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
    line-height: 1.25;
    padding: 14px 18px;
    border-radius: 3px;
    color: #f66600;
    background:
        linear-gradient(135deg, rgba(246, 102, 0, 0.22) 0%, rgba(255, 143, 61, 0.14) 42%, rgba(255, 250, 245, 0.98) 100%);
    border: none;
    box-shadow: 0 2px 14px rgba(246, 102, 0, 0.1);
}
.hw-single__related-heading::before {
    content: "";
    width: 4px;
    height: 1.15em;
    flex-shrink: 0;
    border-radius: 2px;
    background: linear-gradient(180deg, #f66600 0%, #ff8533 55%, #ffb366 100%);
    box-shadow: 0 2px 8px rgba(246, 102, 0, 0.35);
}
.hw-single__related .hw-archive__grid {
    margin: 0;
}
/* 兜底：全局 a { color: var(--brand) } 在 archive 未加载时会把卡片链成品牌色；与分类页一致为继承色、无下划线 */
.hw-single__related .hw-archive__card-link {
    color: inherit;
    text-decoration: none;
}

.hw-single__article {
    min-width: 0;
}

/* 空状态 */
.hw-single__empty {
    text-align: center;
    padding: 120px var(--page-gutter-x);
    color: var(--hw-text-secondary, #888);
}
.hw-single__empty h1 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--hw-text, #1a1a2e);
}
.hw-single__empty a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: var(--hw-accent, #5046e5);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
