/* ============================================
   pushow · blog — 暗色极简
   与 portal-site/index.html 风格一致:
   #06080f 背景 / 渐变标题 / 玻璃卡片
   ============================================ */

:root {
    --bg: #06080f;
    --text: #f0f2f5;
    --muted: #64748b;
    --dim: #475569;
    --faint: #334155;
    --accent: #a78bfa;
    --indigo: #818cf8;
    --pink: #f472b6;
    --card-border: rgba(255, 255, 255, .07);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', 'Noto Sans SC', sans-serif;
    --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 星空背景（与主站同款双色 radial） */
.stars {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(72, 61, 220, .15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 100, 132, .08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a { color: inherit; }

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- 顶栏 ---------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}
.topbar .brand {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -.5px;
    text-decoration: none;
}
.topbar .brand .tld { color: var(--muted); font-weight: 400; }
.topbar .home {
    font-size: .82rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}
.topbar .home:hover { color: var(--accent); }

/* ---------- 首页 Hero ---------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem 3.5rem;
}
.hero h1 {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 30%, #f472b6 70%, #fb923c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s ease-in-out infinite alternate;
}
@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}
.hero p {
    margin-top: .6rem;
    font-size: .95rem;
    color: var(--muted);
    letter-spacing: .5px;
}
.hero .dot { color: var(--indigo); }

/* ---------- 文章列表 ---------- */
.year-mark {
    font-size: .8rem;
    font-weight: 600;
    color: var(--faint);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 2rem 0 .9rem;
}

.post-list { padding-bottom: 4rem; }

.card {
    position: relative;
    display: block;
    background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1rem;
    text-decoration: none;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .5), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 139, 250, .25);
    background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
}
.card:hover::before { opacity: 1; }

.card .meta {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .75rem;
    color: var(--dim);
    margin-bottom: .55rem;
}
.card .tag {
    font-weight: 600;
    padding: .15rem .6rem;
    border-radius: 99px;
    background: rgba(167, 139, 250, .12);
    color: var(--accent);
}
.card .title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -.3px;
    margin-bottom: .4rem;
    transition: color .2s;
}
.card:hover .title { color: var(--accent); }
.card .desc {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.6;
}
.card .arrow {
    position: absolute;
    top: 1.3rem; right: 1.4rem;
    color: var(--faint);
    font-size: 1rem;
    transition: all .3s;
}
.card:hover .arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
}

/* ---------- 文章页 ---------- */
.article-hero {
    padding: 4.5rem 1.5rem 2.5rem;
}
.article-hero .tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .7rem;
    border-radius: 99px;
    background: rgba(167, 139, 250, .12);
    color: var(--accent);
    margin-bottom: 1.1rem;
}
.article-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.25;
    background: linear-gradient(135deg, #f0f2f5 0%, #cbd5e1 60%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.article-hero .meta {
    margin-top: 1rem;
    font-size: .8rem;
    color: var(--dim);
}
.article-hero .meta .dot { margin: 0 .5rem; color: var(--faint); }

/* 正文排版（.prose） */
.prose {
    padding: 0 1.5rem 3rem;
    font-size: 1rem;
    line-height: 1.85;
    color: #cbd5e1;
}
.prose p { margin-bottom: 1.3rem; }
.prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.3px;
    margin: 2.6rem 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 .8rem;
}
.prose a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(167, 139, 250, .3);
}
.prose a:hover { border-bottom-color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.3rem 1.4rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--indigo); }
.prose blockquote {
    border-left: 3px solid rgba(167, 139, 250, .4);
    padding: .3rem 0 .3rem 1.2rem;
    margin: 1.6rem 0;
    color: var(--muted);
    background: rgba(167, 139, 250, .04);
    border-radius: 0 10px 10px 0;
}
.prose code {
    font-family: var(--mono);
    font-size: .85em;
    background: rgba(255, 255, 255, .07);
    padding: .15rem .45rem;
    border-radius: 6px;
    color: #e2c6ff;
}
.prose pre {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    margin: 1.6rem 0;
    line-height: 1.6;
}
.prose pre code { background: none; padding: 0; color: #cbd5e1; }
.prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
    margin: 2.5rem 0;
}
.prose img { max-width: 100%; border-radius: 14px; }

/* 文章底部 */
.article-footer {
    padding: 0 1.5rem 4rem;
    text-align: center;
}
.article-footer a {
    display: inline-block;
    font-size: .85rem;
    color: var(--muted);
    text-decoration: none;
    padding: .6rem 1.5rem;
    border: 1px solid var(--card-border);
    border-radius: 99px;
    transition: all .3s;
}
.article-footer a:hover {
    color: var(--accent);
    border-color: rgba(167, 139, 250, .35);
    transform: translateY(-2px);
}

/* 404 / 加载态 */
.hidden { display: none !important; }
.state-box {
    text-align: center;
    padding: 5rem 1.5rem;
    color: var(--muted);
}
.state-box .big { font-size: 3rem; margin-bottom: 1rem; }

/* ---------- 底部 ---------- */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: .78rem;
    color: var(--faint);
}
.footer a { color: var(--dim); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* 进入动画 */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s cubic-bezier(.4, 0, .2, 1) both; }
.fade-up:nth-child(2) { animation-delay: .05s; }
.fade-up:nth-child(3) { animation-delay: .1s; }

/* 梦境诗歌样式 */
.prose em {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    color: #8a90a0;
}
.prose h2 {
    color: #a78bfa;
    border-left: 3px solid rgba(167,139,250,.3);
    padding-left: .8rem;
}
.prose hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,.06);
    margin: 2.5rem 0;
}
@media(max-width:480px) {
    .prose { font-size: .95rem; padding: 0 .8rem 2rem; }
    .article-hero h1 { font-size: 1.4rem; }
}
