/*
 * GuavaPulse 原创标签结构样式
 * 自定义标签统一按 block 渲染，降低模板撞车率
 */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: #25211f;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 91, 64, .18), transparent 280px),
        radial-gradient(circle at 92% 12%, rgba(255, 188, 77, .22), transparent 300px),
        linear-gradient(180deg, #fffaf4 0%, #f6f0ea 44%, #f3f5f8 100%);
    line-height: 1.75;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0,0,0,.025) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, #000, transparent 72%);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #f0442f;
}

gp-skybar,
gp-wrap,
gp-brandline,
gp-slogan,
gp-navflow,
gp-hero,
gp-hero-grid,
gp-hero-main,
gp-hero-side,
gp-hero-actions,
gp-pagegrid,
gp-mainlane,
gp-sidelane,
gp-panel,
gp-panel-title,
gp-entry-matrix,
gp-story-stack,
gp-story-card,
gp-story-meta,
gp-time-river,
gp-time-dot,
gp-faq-cloud,
gp-faq-node,
gp-sidebox,
gp-word-ring,
gp-footrealm,
gp-footnotice,
gp-footlinks,
gp-subhero,
gp-article-shell,
gp-article-meta,
gp-article-lead,
gp-article-body,
gp-mini-feed,
gp-empty,
gp-kicker {
    display: block;
}

gp-wrap {
    width: min(1190px, calc(100% - 28px));
    margin: 0 auto;
}

gp-skybar {
    position: sticky;
    top: 0;
    z-index: 9;
    background: rgba(255, 252, 247, .88);
    border-bottom: 1px solid rgba(90, 50, 25, .1);
    backdrop-filter: blur(14px);
}

gp-skybar gp-wrap {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

gp-brandline {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.gp-logo {
    position: relative;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: 1px;
    color: #f0442f;
}

.gp-logo:after {
    content: "";
    position: absolute;
    left: 2px;
    right: -8px;
    bottom: 3px;
    height: 8px;
    background: rgba(255, 188, 77, .45);
    z-index: -1;
    border-radius: 99px;
}

gp-slogan {
    color: #8b7b70;
    font-size: 13px;
}

gp-navflow {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

gp-navflow a {
    padding: 7px 12px;
    border-radius: 999px;
    color: #594b43;
    font-size: 14px;
    background: rgba(255,255,255,.45);
}

gp-navflow a:hover {
    background: #fff0e7;
}

gp-hero {
    padding: 36px 0 24px;
}

gp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 345px;
    gap: 18px;
    align-items: stretch;
}

gp-hero-main,
gp-hero-side,
gp-panel,
gp-sidebox,
gp-article-shell {
    border: 1px solid rgba(98, 57, 31, .09);
    background: rgba(255, 255, 255, .82);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(75, 48, 31, .075);
    position: relative;
    overflow: hidden;
}

gp-hero-main:before,
gp-panel:before,
gp-sidebox:before,
gp-article-shell:before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -80px;
    top: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 68, 47, .11), transparent 68%);
}

gp-hero-main {
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,247,237,.84)),
        radial-gradient(circle at 0% 0%, rgba(240, 68, 47, .08), transparent 240px);
}

gp-kicker {
    display: inline-block;
    margin-bottom: 11px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff0e7;
    color: #d83220;
    font-size: 13px;
    font-weight: 800;
}

gp-hero-main h1,
gp-subhero h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.25;
    letter-spacing: -.5px;
}

gp-hero-main p,
gp-subhero p {
    margin: 0;
    color: #6b5f58;
    font-size: 16px;
}

gp-hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

gp-hero-actions a {
    padding: 11px 17px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f0442f, #ff7a45);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(240, 68, 47, .2);
}

gp-hero-actions a + a {
    background: linear-gradient(135deg, #2c241f, #665249);
}

gp-hero-side {
    padding: 25px;
    display: grid;
    align-content: center;
    gap: 9px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,245,218,.92)),
        repeating-linear-gradient(135deg, transparent 0, transparent 10px, rgba(255,188,77,.08) 10px, rgba(255,188,77,.08) 20px);
}

gp-hero-side strong {
    color: #945900;
    font-size: 18px;
}

gp-hero-side span {
    color: #765423;
    font-size: 14px;
}

gp-pagegrid {
    display: grid;
    grid-template-columns: 1fr 324px;
    gap: 18px;
    align-items: start;
    margin: 18px 0 28px;
}

gp-panel,
gp-sidebox {
    padding: 21px;
    margin-bottom: 18px;
}

gp-panel-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(70, 40, 20, .08);
    padding-bottom: 12px;
}

gp-panel-title h2,
gp-sidebox h2 {
    margin: 0;
    font-size: 20px;
}

gp-panel-title span {
    color: #9a8a80;
    font-size: 13px;
}

gp-entry-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

gp-entry-matrix a {
    padding: 15px 13px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, #fff, #fff7f0);
    border: 1px solid rgba(240, 68, 47, .08);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.8);
    transition: transform .18s ease, box-shadow .18s ease;
}

gp-entry-matrix a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(85, 48, 32, .08);
}

gp-entry-matrix strong {
    display: block;
    font-size: 16px;
}

gp-entry-matrix em {
    display: block;
    margin-top: 5px;
    color: #88766b;
    font-style: normal;
    font-size: 13px;
}

gp-story-card {
    padding: 16px 0;
    border-bottom: 1px solid rgba(70,40,20,.07);
}

gp-story-card:last-child {
    border-bottom: none;
}

.story-title {
    display: block;
    font-size: 18px;
    font-weight: 900;
}

gp-story-card p {
    margin: 7px 0;
    color: #675b54;
    font-size: 14px;
}

gp-story-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

gp-story-meta b,
gp-article-meta b {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff0e7;
    color: #c03525;
    font-size: 12px;
}

gp-story-meta i {
    color: #9a8a80;
    font-size: 13px;
    font-style: normal;
}

gp-time-river {
    position: relative;
    padding-left: 22px;
    border-left: 2px solid rgba(240, 68, 47, .15);
}

gp-time-dot {
    position: relative;
    margin-bottom: 18px;
}

gp-time-dot:before {
    content: "";
    position: absolute;
    left: -28px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: #f0442f;
    border-radius: 50%;
    box-shadow: 0 0 0 6px #fff0e7;
}

gp-time-dot time {
    display: block;
    color: #9a8a80;
    font-size: 13px;
}

gp-time-dot a {
    font-weight: 850;
}

gp-faq-node {
    padding: 14px 0;
    border-bottom: 1px dashed rgba(70,40,20,.12);
}

gp-faq-node:last-child {
    border-bottom: none;
}

gp-faq-node h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

gp-faq-node p,
gp-sidebox p {
    margin: 0;
    color: #675b54;
    font-size: 14px;
}

gp-word-ring {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

gp-word-ring a {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff5ed;
    color: #65554c;
    font-size: 13px;
}

gp-mini-feed {
    display: grid;
    gap: 10px;
}

gp-mini-feed a {
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(70,40,20,.12);
    font-size: 14px;
}

gp-subhero {
    padding: 30px 0 10px;
}

gp-article-shell {
    padding: 25px;
}

gp-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a8a80;
    font-size: 13px;
    border-bottom: 1px solid rgba(70,40,20,.08);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

gp-article-lead {
    padding: 16px;
    border-radius: 18px;
    background: #fff4df;
    color: #77511b;
    margin-bottom: 18px;
}

gp-article-body h2 {
    margin: 22px 0 8px;
    font-size: 20px;
}

gp-article-body p {
    margin: 0 0 12px;
    color: #443c37;
}

gp-empty {
    padding: 20px;
    text-align: center;
    color: #9a8a80;
}

gp-footrealm {
    margin-top: 26px;
    padding: 28px 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(240,68,47,.18), transparent 240px),
        #211c19;
    color: #c8bcb3;
}

gp-footlinks {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

gp-footlinks a {
    color: #f4e6dc;
}


.gp-lang-switch {
    border: 1px solid rgba(240, 68, 47, .18);
    background: linear-gradient(135deg, #fff7ef, #fff);
    color: #d83220;
    font-weight: 800;
    border-radius: 999px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.gp-lang-switch:hover {
    background: #fff0e7;
    box-shadow: 0 8px 18px rgba(240, 68, 47, .12);
}

@media (max-width: 860px) {
    gp-skybar gp-wrap,
    gp-hero-grid,
    gp-pagegrid {
        display: block;
    }

    gp-navflow {
        justify-content: flex-start;
        margin-top: 8px;
    }

    gp-skybar gp-wrap {
        padding: 12px 0;
    }

    gp-entry-matrix {
        grid-template-columns: repeat(2, 1fr);
    }

    gp-hero-main,
    gp-hero-side,
    gp-panel,
    gp-sidebox,
    gp-article-shell {
        border-radius: 18px;
    }

    gp-hero-side {
        margin-top: 14px;
    }

    gp-panel-title {
        display: block;
    }

    gp-hero-main h1,
    gp-subhero h1 {
        font-size: 24px;
    }
}


.gp-logo img {
    max-height: 38px;
    display: block;
}

.gp-icp {
    display: inline-block;
    margin-top: 6px;
    color: #aa9b91;
    font-size: 13px;
}


gp-hot-image {
    display: block;
    margin: 18px 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(98, 57, 31, .09);
    background: #fff7ef;
}

gp-hot-image img {
    display: block;
    width: 100%;
    height: auto;
}


gp-trend-stream {
    display: grid;
    gap: 12px;
}

gp-trend-card {
    display: block;
    padding: 15px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,247,240,.88));
    border: 1px solid rgba(240, 68, 47, .10);
}

gp-trend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

gp-trend-head b {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff0e7;
    color: #c03525;
    font-size: 12px;
}

gp-trend-head time {
    color: #9a8a80;
    font-size: 13px;
}

.trend-title {
    display: block;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.45;
}

gp-trend-card p {
    margin: 7px 0 0;
    color: #675b54;
    font-size: 14px;
}




/* 热门事件时间线：简洁竖线样式 */
gp-timeline-stream {
    position: relative;
    display: block;
    padding-left: 30px;
}

gp-timeline-stream::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: #ffe1d9;
    border-radius: 99px;
}

gp-timeline-item {
    position: relative;
    display: block;
    padding-bottom: 24px;
}

gp-timeline-item:last-child {
    padding-bottom: 0;
}

gp-timeline-dot {
    position: absolute;
    left: -27px;
    top: 4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ff5a3d;
    border: 6px solid #fff1ec;
    box-sizing: content-box;
    z-index: 2;
}

gp-timeline-time {
    display: block;
    margin-bottom: 5px;
    color: #9b8b83;
    font-size: 15px;
    line-height: 1.4;
}

gp-timeline-card {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

gp-timeline-card:hover {
    transform: none;
    box-shadow: none;
}

gp-hot-tag,
.timeline-desc,
gp-timeline-meta {
    display: none;
}

.timeline-title {
    display: block;
    color: #222;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.55;
}







/* =========================================================
   热门事件时间线：主题适配 + 无第二层卡片
   圆点/标签/链接颜色跟随当前主题变量，未定义时使用默认暖色。
   ========================================================= */

gp-time-river.real-timeline,
gp-time-river {
    position: relative !important;
    display: block !important;
    padding-left: 30px !important;
    border-left: none !important;
    background: transparent !important;
}

gp-time-river.real-timeline::before,
gp-time-river::before {
    content: "" !important;
    position: absolute !important;
    left: 10px !important;
    top: 8px !important;
    bottom: 0 !important;
    width: 2px !important;
    background: color-mix(in srgb, var(--theme-primary, #f0442f) 22%, transparent) !important;
    border-radius: 99px !important;
}

gp-time-dot {
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 0 24px 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

gp-time-dot:last-child {
    padding-bottom: 0 !important;
}

gp-time-dot::before {
    content: "" !important;
    position: absolute !important;
    left: -27px !important;
    top: 4px !important;
    width: 13px !important;
    height: 13px !important;
    border-radius: 50% !important;
    background: var(--theme-primary, #f0442f) !important;
    border: 6px solid color-mix(in srgb, var(--theme-primary, #f0442f) 14%, #fff) !important;
    box-sizing: content-box !important;
    z-index: 2 !important;
    box-shadow: none !important;
}

gp-time-dot time {
    display: block !important;
    margin: 0 0 6px 0 !important;
    color: var(--theme-muted, #9b8b83) !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

gp-time-label {
    display: inline-block !important;
    margin: 0 0 6px 0 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--theme-primary, #f0442f) 10%, #fff) !important;
    color: var(--theme-primary, #d83220) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
}

gp-time-dot a {
    display: block !important;
    color: var(--theme-title, #222) !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

gp-time-dot a:hover {
    color: var(--theme-primary, #f0442f) !important;
}

gp-time-dot p {
    display: block !important;
    margin: 6px 0 0 !important;
    color: var(--theme-text, #675b54) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

/* 彻底隐藏旧第二层卡片结构 */
gp-time-content,
gp-timeline-stream,
gp-timeline-item,
gp-timeline-card,
gp-timeline-meta,
.timeline-desc,
gp-hot-tag {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 如果旧结构残留，直接不显示，避免出现第二层卡片 */
gp-timeline-stream,
gp-timeline-item,
gp-timeline-card,
gp-timeline-meta,
.timeline-desc {
    display: none !important;
}

