

:root {
    --bg-base: #030508;
    --bg-panel: rgba(10, 14, 23, 0.6);
    --bg-panel-solid: rgba(8, 11, 18, 0.95);
    --text-main: #f0f4f8;
    --text-muted: #8ba1b7;
    --text-dim: #4b5563;
    --neon-blue: #00d2ff;
    --neon-purple: #9d00ff;
    --neon-glow: rgba(0, 210, 255, 0.4);
    --border-light: rgba(0, 210, 255, 0.1);
    --border-glow: rgba(0, 210, 255, 0.3);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body[data-page-id="blog-article"] {
    line-height: 1.8;
    min-height: unset;
}

body[data-page-id="blog-article"]::before {
    content: '';
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 5% 5%, rgba(157, 0, 255, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 95% 95%, rgba(0, 210, 255, 0.05) 0%, transparent 55%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.blog-article-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(3, 5, 8, 0.88);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.bah-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 0 28px; height: 60px;
}

.bah-logo {
    font-size: 15px; font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex; align-items: center; gap: 8px;
    letter-spacing: -0.3px;
    font-family: var(--font-mono);
}

.bah-logo-img { width: 22px; height: 22px; border-radius: 6px; display: block; }

.bah-back {
    font-size: 13px; font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 99px;
    border: 1px solid rgba(0, 210, 255, 0.15);
    background: rgba(0, 210, 255, 0.05);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.bah-back:hover {
    color: var(--neon-blue);
    border-color: rgba(0, 210, 255, 0.4);
    background: rgba(0, 210, 255, 0.08);
}

@media (max-width: 640px) {
    .bah-inner { padding: 0 20px; height: 54px; }
    .bah-back { font-size: 12px; padding: 5px 12px; }
    .bah-logo { font-size: 14px; }
}

.read-progress-bar {
    position: fixed; top: 0; left: 0; height: 2px; width: 0%;
    background: linear-gradient(90deg, var(--neon-blue), #a78bfa, var(--neon-purple));
    z-index: 2001; transition: width 0.1s linear; pointer-events: none;
}

canvas#starfield {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none;
}

.blog-hero {
    position: relative;
    padding: clamp(140px, 20vw, 200px) 0 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px);
}
.hero-orb-1 {
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(157, 0, 255, 0.18) 0%, transparent 70%);
    top: -80px; left: -120px;
    animation: orb-drift-1 12s ease-in-out infinite;
}
.hero-orb-2 {
    width: 500px; height: 350px;
    background: radial-gradient(ellipse, rgba(0, 210, 255, 0.12) 0%, transparent 70%);
    top: 40px; right: -100px;
    animation: orb-drift-2 15s ease-in-out infinite 2s;
}
@keyframes orb-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes orb-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.06); }
}

.hero-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: center;
    padding-bottom: 60px;
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-terminal { display: none; }
}

.hero-left { text-align: left; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 99px;
    background: rgba(0, 210, 255, 0.07);
    border: 1px solid rgba(0, 210, 255, 0.22);
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--neon-blue);
    margin-bottom: 24px;
    font-family: var(--font-mono);
}

.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--neon-blue); box-shadow: 0 0 8px var(--neon-blue);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.25} }

.hero-title {
    font-size: clamp(44px, 6.5vw, 80px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.title-line-1 {
    display: block;
    background: linear-gradient(135deg, var(--neon-blue) 0%, #a78bfa 50%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: title-shimmer 6s ease-in-out infinite;
}
@keyframes title-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.title-line-2 {
    display: block;
    color: rgba(240, 244, 248, 0.85);
    font-size: 0.62em;
    letter-spacing: -0.02em;
    margin-top: 6px;
}

.hero-desc {
    font-size: 16px; color: var(--text-muted);
    max-width: 480px; margin: 20px 0 32px;
    line-height: 1.75;
}

.hero-stats { display: flex; align-items: center; gap: 0; }

.stat-item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 0 24px;
    border-right: 1px solid rgba(0, 210, 255, 0.12);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }

.stat-num {
    font-size: 28px; font-weight: 800;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--neon-blue), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-dim);
}

.hero-terminal {
    background: rgba(3, 5, 8, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.18);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.06), 0 20px 60px rgba(0,0,0,0.5);
}

.term-topbar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 210, 255, 0.1);
}
.term-dot-mac { width: 10px; height: 10px; border-radius: 50%; }
.term-dot-mac:nth-child(1) { background: #ff5f57; }
.term-dot-mac:nth-child(2) { background: #febc2e; }
.term-dot-mac:nth-child(3) { background: #28c840; }
.term-title-bar {
    margin-left: 8px; font-size: 11px; font-family: var(--font-mono);
    color: var(--text-dim); letter-spacing: 0.06em;
}

.term-body { padding: 18px 20px; }

.term-line {
    font-family: var(--font-mono); font-size: 12.5px;
    line-height: 2; display: flex; align-items: baseline; gap: 8px;
}
.term-prompt { color: var(--neon-blue); flex-shrink: 0; }
.term-cmd { color: #f0f4f8; }
.term-out { color: var(--text-muted); padding-left: 16px; }
.term-out.green { color: #00ff66; }
.term-out.purple { color: #a78bfa; }
.term-out.dim { color: var(--text-dim); }
.term-cursor {
    display: inline-block; width: 8px; height: 14px;
    background: var(--neon-blue); vertical-align: middle;
    animation: blink 1.1s step-end infinite; margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-divider {
    position: relative; height: 1px; margin: 0;
}
.hero-divider::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0,210,255,0.15) 20%,
        rgba(0,210,255,0.4) 50%,
        rgba(157,0,255,0.2) 80%,
        transparent 100%);
}

.articles-section { padding: 56px 0 120px; }

.section-top {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    margin-bottom: 32px;
}

.section-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--text-dim);
    font-family: var(--font-mono);
}

.filter-tabs {
    display: flex; align-items: center; gap: 4px;
    background: rgba(8, 11, 18, 0.8);
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-radius: 99px;
    padding: 4px;
    backdrop-filter: blur(12px);
}

.filter-tab {
    padding: 6px 20px; border-radius: 99px;
    font-size: 12px; font-weight: 700;
    color: var(--text-dim); background: transparent;
    border: none; cursor: pointer; font-family: var(--font-sans);
    transition: color 0.2s, background 0.2s;
}
.filter-tab:hover { color: var(--text-muted); }
.filter-tab.active {
    background: rgba(0, 210, 255, 0.1);
    color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.15);
}

.section-counter {
    font-size: 12px; font-family: var(--font-mono); color: var(--text-dim);
}
.section-counter strong { color: var(--neon-blue); }

.article-entry {
    display: block; text-decoration: none; color: inherit;
    position: relative;
    background: rgba(8, 11, 18, 0.9);
    border: 1px solid rgba(0, 210, 255, 0.13);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.45s, box-shadow 0.45s;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}
.article-entry:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.35);
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(0, 210, 255, 0.18),
                0 0 48px rgba(0, 210, 255, 0.06);
}

.article-entry::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 80px; height: 80px;
    border-top: 1.5px solid var(--neon-blue);
    border-left: 1.5px solid var(--neon-blue);
    border-top-left-radius: var(--radius-lg);
    z-index: 2; pointer-events: none;
    -webkit-mask-image: radial-gradient(circle at 0 0, black 20%, transparent 80%);
    mask-image: radial-gradient(circle at 0 0, black 20%, transparent 80%);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-entry:hover::before { width: 160px; height: 160px; }
.article-entry::after { display: none; }

.entry-corner-br {
    position: absolute; bottom: 0; right: 0; z-index: 2; pointer-events: none;
    width: 60px; height: 60px;
    border-bottom: 1.5px solid rgba(157,0,255,0.6);
    border-right: 1.5px solid rgba(157,0,255,0.6);
    border-bottom-right-radius: var(--radius-lg);
    -webkit-mask-image: radial-gradient(circle at 100% 100%, black 20%, transparent 80%);
    mask-image: radial-gradient(circle at 100% 100%, black 20%, transparent 80%);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-entry:hover .entry-corner-br { width: 120px; height: 120px; }
.entry-corner-br::before, .entry-corner-br::after { display: none; }

.entry-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    min-height: 340px;
}
@media (max-width: 860px) {
    .entry-content { grid-template-columns: 1fr; }
    .entry-visual-col { display: none; }
}

.entry-text-col {
    padding: 44px 48px;
    display: flex; flex-direction: column;
    position: relative;
}
.entry-text-col::after {
    content: '';
    position: absolute; top: 10%; right: 0; bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 210, 255, 0.15) 30%,
        rgba(0, 210, 255, 0.15) 70%,
        transparent 100%);
}
@media (max-width: 640px) { .entry-text-col { padding: 28px 24px; } }

.entry-eyebrow {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 22px;
}
.eyebrow-tag {
    padding: 3px 11px; border-radius: 99px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.25);
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--neon-blue);
    font-family: var(--font-mono);
}
.eyebrow-new {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 11px; border-radius: 99px;
    background: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.25);
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: #00ff66; font-family: var(--font-mono);
}
.eyebrow-new::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: #00ff66; box-shadow: 0 0 6px #00ff66;
}
.eyebrow-date {
    font-size: 11px; font-family: var(--font-mono);
    color: var(--text-dim); letter-spacing: 0.06em;
}

.entry-title {
    font-size: clamp(20px, 2.8vw, 28px); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.3;
    color: var(--text-main); margin-bottom: 14px;
    transition: color 0.25s; flex: 0;
}
.article-entry:hover .entry-title {
    color: var(--neon-blue);
    text-shadow: 0 0 24px rgba(0, 210, 255, 0.22);
}
.entry-summary {
    font-size: 14px; line-height: 1.75;
    color: var(--text-muted); flex: 1; margin-bottom: 32px;
}
.entry-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 210, 255, 0.08);
}
.entry-author {
    display: flex; align-items: center; gap: 9px;
    font-size: 12px; color: var(--text-muted);
}
.author-ava {
    width: 28px; height: 28px; border-radius: 7px;
    background: linear-gradient(135deg, rgba(0,210,255,0.2), rgba(157,0,255,0.2));
    border: 1px solid rgba(0, 210, 255, 0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 800; color: var(--neon-blue); font-family: var(--font-mono);
}
.entry-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 99px;
    background: rgba(0, 210, 255, 0.07);
    border: 1px solid rgba(0, 210, 255, 0.2);
    font-size: 13px; font-weight: 700; color: var(--neon-blue);
    transition: var(--transition);
}
.article-entry:hover .entry-cta {
    background: rgba(0, 210, 255, 0.13);
    border-color: rgba(0, 210, 255, 0.45);
    box-shadow: 0 0 18px rgba(0, 210, 255, 0.18); gap: 10px;
}
.entry-cta svg { width: 14px; height: 14px; }

.entry-visual-col {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg,
        rgba(0, 210, 255, 0.025) 0%,
        rgba(157, 0, 255, 0.04) 60%,
        rgba(0, 210, 255, 0.02) 100%);
}
.entry-viz-circles { position: absolute; inset: 0; pointer-events: none; }
.viz-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(0, 210, 255, 0.07);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ring-pulse 4s ease-in-out infinite;
}
.viz-ring:nth-child(1) { width: 160px; height: 160px; }
.viz-ring:nth-child(2) { width: 260px; height: 260px; animation-delay: 0.9s; border-color: rgba(157,0,255,0.05); }
.viz-ring:nth-child(3) { width: 360px; height: 360px; animation-delay: 1.8s; border-color: rgba(0,210,255,0.03); }
@keyframes ring-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
.viz-center { position: relative; z-index: 1; text-align: center; }
.viz-chip {
    display: inline-flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 22px 32px;
    background: rgba(3, 5, 8, 0.75);
    border: 1px solid rgba(0, 210, 255, 0.18);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.07),
                inset 0 0 20px rgba(0, 210, 255, 0.03);
}
.viz-chip-icon {
    font-size: 44px; font-weight: 900; font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--neon-blue), #a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: -4px; line-height: 1;
}
.viz-chip-label {
    font-size: 10px; font-weight: 700; font-family: var(--font-mono);
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.viz-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    justify-content: center; margin-top: 16px;
}
.viz-tag {
    padding: 3px 10px; border-radius: 99px;
    font-size: 10px; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.06em;
}
.viz-tag:nth-child(1) { background: rgba(0,210,255,0.07); border: 1px solid rgba(0,210,255,0.18); color: rgba(0,210,255,0.8); }
.viz-tag:nth-child(2) { background: rgba(157,0,255,0.07); border: 1px solid rgba(157,0,255,0.18); color: rgba(167,139,250,0.85); }
.viz-tag:nth-child(3) { background: rgba(0,255,102,0.05); border: 1px solid rgba(0,255,102,0.15); color: rgba(0,255,102,0.75); }
.viz-tag:nth-child(n+4) { background: rgba(0,210,255,0.05); border: 1px solid rgba(0,210,255,0.12); color: rgba(0,210,255,0.65); }

.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(0, 210, 255, 0.045);
    border: 1px solid rgba(0, 210, 255, 0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}
@media (max-width: 680px) { .posts-grid { grid-template-columns: 1fr; } }

.grid-card {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    background: rgba(5, 7, 12, 0.97);
    padding: 30px 36px 28px 44px;
    position: relative; overflow: hidden;
    transition: background 0.35s;
    min-height: 200px;
}

.grid-card::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 70% 90% at -5% 50%,
        var(--card-accent-bg, rgba(0,210,255,0.055)) 0%, transparent 65%);
    opacity: 0; transition: opacity 0.45s;
}
.grid-card:hover::after { opacity: 1; }

.grid-card::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 2px; height: 36%;
    border-radius: 0 2px 2px 0;
    background: var(--card-accent, rgba(0,210,255,0.55));
    opacity: 0.35;
    transition: height 0.4s cubic-bezier(0.22,1,0.36,1),
                opacity 0.35s, box-shadow 0.35s;
}
.grid-card:hover::before {
    height: 56%;
    opacity: 1;
    box-shadow: 0 0 10px 1px var(--card-accent, rgba(0,210,255,0.35));
}

.gc-num {
    position: absolute; top: 22px; right: 28px;
    font-size: 11px; font-family: var(--font-mono); font-weight: 700;
    color: rgba(255,255,255,0.06); letter-spacing: 0.06em;
    transition: color 0.3s;
}
.grid-card:hover .gc-num { color: rgba(255,255,255,0.12); }

.gc-cat-row {
    display: flex; align-items: center; gap: 7px;
    margin-bottom: 12px;
}
.gc-dot {
    width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
    background: var(--card-accent, rgba(0,210,255,0.7));
    box-shadow: 0 0 6px var(--card-accent, rgba(0,210,255,0.4));
}
.gc-cat {
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; font-family: var(--font-mono);
}
.gc-tag-openclaw { color: rgba(0,210,255,0.7); }
.gc-tag-arch     { color: rgba(167,139,250,0.8); }
.gc-tag-ops      { color: rgba(0,255,102,0.7); }

.gc-title {
    font-size: 18px; font-weight: 700; letter-spacing: -0.015em;
    line-height: 1.4; color: #ffffff;
    margin-bottom: 12px; flex: 0;
    transition: color 0.25s;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.grid-card:hover .gc-title {
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.gc-summary {
    font-size: 14.5px; color: #a3b3c5; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    flex: 1;
}

.gc-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.gc-date {
    font-size: 12px; font-family: var(--font-mono);
    color: var(--text-muted); letter-spacing: 0.04em;
}
.gc-read {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; font-family: var(--font-mono);
    color: var(--card-accent, rgba(0,210,255,0.6));
    opacity: 0; transform: translateX(4px);
    transition: opacity 0.28s, transform 0.28s, gap 0.28s;
}
.grid-card:hover .gc-read { opacity: 1; transform: translateX(0); gap: 8px; }
.gc-read svg { width: 11px; height: 11px; }

.article-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    gap: 48px;
    padding-top: 96px;
    padding-bottom: 100px;
    align-items: start;
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
        padding-top: 80px;
    }
    .article-sidebar { display: none; }
}

.article-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breadcrumbs {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 12px; color: #7a8fa0;
}
.breadcrumbs a {
    color: var(--text-muted); text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--neon-blue); }
.breadcrumbs .sep { color: #637589; }
.breadcrumbs .current { color: var(--text-muted); }

.author-meta {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex; flex-direction: column; gap: 10px;
    backdrop-filter: blur(16px);
}
.author-meta .author-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,210,255,0.2), rgba(157,0,255,0.2));
    border: 1px solid rgba(0, 210, 255, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 11px; font-weight: 800; color: var(--neon-blue);
}
.author-meta .author-name {
    font-size: 13px; font-weight: 700; color: var(--text-main); line-height: 1.3;
}
.author-meta .author-role {
    font-size: 11px; color: #7a8fa0;
}
.author-meta .post-date {
    font-size: 11px; font-weight: 700; color: var(--neon-blue);
    background: rgba(0,210,255,0.08); border: 1px solid rgba(0,210,255,0.2);
    padding: 3px 10px; border-radius: 99px; align-self: flex-start;
    font-family: var(--font-mono);
}
.author-meta .post-read-time {
    font-size: 11px; color: #7a8fa0; font-family: var(--font-mono);
}

.toc-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 20px 24px;
    backdrop-filter: blur(16px);
}
.toc-title {
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
    display: block; padding: 7px 10px; border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text-muted); text-decoration: none;
    transition: var(--transition); line-height: 1.4;
}
.toc-list a:hover, .toc-list a.active {
    color: var(--neon-blue); background: rgba(0, 210, 255, 0.06);
}

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

.article-header { margin-bottom: 40px; }

.article-badges {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-tag {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--neon-blue);
}
.badge-date {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

.article-title-h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #c7d8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta-row {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 16px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 13px; color: var(--text-muted);
}
.meta-author { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.meta-avatar {
    width: 28px; height: 28px; border-radius: 7px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.3), rgba(157, 0, 255, 0.3));
    border: 1px solid rgba(0, 210, 255, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 800; color: var(--neon-blue);
    font-family: var(--font-mono);
}
.meta-sep { color: var(--border-light); }

.article-intro {
    background: rgba(0, 210, 255, 0.04);
    border: 1px solid rgba(0, 210, 255, 0.12);
    border-left: 3px solid rgba(0, 210, 255, 0.5);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
    margin-bottom: 40px;
}
.article-intro p { font-size: 15px; color: #a0b4c8; margin-bottom: 12px; }
.article-intro p:last-child { margin-bottom: 0; }
.article-intro a { color: var(--neon-blue); text-decoration: none; }
.article-intro a:hover { text-decoration: underline; }
.article-intro code {
    font-family: var(--font-mono); font-size: 13px; color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.08); padding: 1px 6px; border-radius: 4px;
}
.article-intro strong { color: var(--text-main); }

.article-section { margin-bottom: 48px; }

.article-section h2 {
    display: flex; align-items: center; gap: 14px;
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--neon-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.section-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 24px; padding: 0 8px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 6px;
    font-size: 11px; font-weight: 800; font-family: var(--font-mono);
    color: var(--neon-blue); flex-shrink: 0;
}

.section-body p {
    font-size: 15px; color: #a0b4c8;
    line-height: 1.8; margin-bottom: 16px;
}
.section-body p:last-child { margin-bottom: 0; }
.section-body strong { color: var(--text-main); }
.section-body a { color: var(--neon-blue); text-decoration: none; }
.section-body a:hover { text-decoration: underline; }
.section-body code {
    font-family: var(--font-mono); font-size: 13px;
    color: var(--neon-blue); background: rgba(0, 210, 255, 0.08);
    padding: 2px 7px; border-radius: 4px;
    border: 1px solid rgba(0, 210, 255, 0.15);
}
.section-body ul, .section-body ol { padding-left: 20px; margin-bottom: 16px; }
.section-body li {
    font-size: 15px; color: #a0b4c8;
    line-height: 1.8; margin-bottom: 10px;
}
.section-body li:last-child { margin-bottom: 0; }
.section-body li strong { color: var(--text-main); }
.section-body blockquote {
    border-left: 3px solid rgba(0, 210, 255, 0.4);
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(0, 210, 255, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.section-body blockquote p {
    font-size: 14px; font-style: italic; color: var(--text-muted);
}

.article-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    margin: 20px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    max-width: 100%;
}
.article-matrix {
    width: 100%;
    min-width: min(100%, 36rem);
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
}
.article-matrix-caption {
    text-align: left; padding: 12px 16px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
    text-transform: none;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-light);
    caption-side: top;
    line-height: 1.45;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}
.article-matrix thead tr {
    background: rgba(0, 210, 255, 0.05);
    border-bottom: 1px solid var(--border-light);
}
.article-matrix th {
    padding: 12px 14px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-muted);
    text-align: left;
    white-space: normal;
    vertical-align: bottom;
    line-height: 1.35;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}
.article-matrix tbody tr {
    border-bottom: 1px solid rgba(0, 210, 255, 0.05);
    transition: background 0.2s;
}
.article-matrix tbody tr:last-child { border-bottom: none; }
.article-matrix tbody tr:hover { background: rgba(0, 210, 255, 0.03); }
.article-matrix td, .article-matrix tbody th {
    padding: 12px 14px;
    color: #a0b4c8;
    font-size: 14px;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}
.article-matrix tbody th {
    font-weight: 700; color: var(--text-main);
    white-space: normal;
    min-width: 6.5rem;
}
.article-matrix td code, .article-matrix th code {
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.terminal-block {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden; margin: 20px 0;
}
.term-header {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.term-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}
.term-filename {
    margin-left: 8px;
    font-size: 11px; font-family: var(--font-mono);
    font-weight: 700; letter-spacing: 0.08em;
    color: var(--text-dim);
}
.terminal-block pre { padding: 20px; overflow-x: auto; }
.terminal-block code {
    font-family: var(--font-mono); font-size: 13px; line-height: 1.8;
    color: #d1d5db; display: block;
}
.terminal-block .hl { color: var(--neon-blue); }
.terminal-block .ok { color: #00ff66; }
.terminal-block .err { color: #f87171; }
.terminal-block .dim { color: rgba(255,255,255,0.3); }

.article-footer-nav {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    margin-top: 56px; padding-top: 24px;
    border-top: 1px solid var(--border-light);
}
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--neon-blue);
    text-decoration: none; transition: gap 0.3s;
}
.back-link:hover { gap: 12px; }
.back-link svg { width: 16px; height: 16px; }
.article-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag-label { font-size: 12px; color: #7a8fa0; }
.tag-item {
    padding: 3px 10px; border-radius: 99px;
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.15);
    font-size: 12px; color: var(--text-muted);
}

.article-cta {
    margin: 56px 0;
    padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px);
    background: linear-gradient(160deg,
        rgba(0, 5, 15, 0.96) 0%,
        rgba(3, 10, 25, 0.96) 55%,
        rgba(0, 5, 15, 0.96) 100%);
    border: 1px solid rgba(0, 210, 255, 0.18);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative; overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 210, 255, 0.06), 0 24px 56px rgba(0,0,0,0.6);
}
.article-cta::before {
    content: '';
    position: absolute; top: -40%; right: -10%; width: 60%; height: 140%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.07) 0%, transparent 60%);
    pointer-events: none;
}
.article-cta::after {
    content: '';
    position: absolute; bottom: -40%; left: -10%; width: 50%; height: 120%;
    background: radial-gradient(circle, rgba(157, 0, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}
.article-cta-inner { position: relative; z-index: 2; }
.article-cta-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 14px; border-radius: 99px;
    background: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.2);
    font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
    text-transform: uppercase; color: #00ff66;
    font-family: var(--font-mono);
    margin-bottom: 20px;
}
.article-cta-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #00ff66; box-shadow: 0 0 6px rgba(0,255,102,0.8);
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}
.article-cta h3 {
    font-size: clamp(22px, 3vw, 32px); font-weight: 900;
    letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 0%, var(--neon-blue) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.article-cta p {
    font-size: 15px; color: var(--text-muted);
    max-width: 440px; margin: 0 auto; line-height: 1.65;
}
.article-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 28px;
    padding: 14px 36px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 99px;
    font-size: 14px; font-weight: 800;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.article-cta-btn:hover {
    background: rgba(0, 210, 255, 0.18);
    border-color: rgba(0, 210, 255, 0.6);
    box-shadow: 0 0 32px rgba(0, 210, 255, 0.25);
    transform: translateY(-2px);
}

.floating-cta {
    position: fixed; right: 24px; bottom: 28px; z-index: 900; width: 236px;
    background: linear-gradient(155deg,
        rgba(3, 5, 8, 0.97) 0%,
        rgba(5, 10, 20, 0.97) 100%);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,210,255,0.05) inset;
    display: flex; flex-direction: column; gap: 10px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.3s;
    transform: translateY(calc(100% + 56px)); opacity: 0; pointer-events: none;
}
.floating-cta.is-visible {
    transform: translateY(0); opacity: 1; pointer-events: auto;
}
.floating-cta:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 32px 56px rgba(0,0,0,0.65), 0 0 0 1px rgba(0,210,255,0.15) inset !important;
}
.fc-header { display: flex; align-items: center; gap: 8px; }
.fc-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #00ff66; box-shadow: 0 0 8px rgba(0,255,102,0.8);
    flex-shrink: 0; animation: fc-pulse 2.2s ease-in-out infinite;
}
@keyframes fc-pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 8px rgba(0,255,102,0.8); }
    50% { opacity: 0.55; box-shadow: 0 0 3px rgba(0,255,102,0.3); }
}
.fc-label {
    font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-main); font-family: var(--font-mono);
}
.fc-sep { width: 100%; height: 1px; background: rgba(0, 210, 255, 0.08); }
.fc-desc { font-size: 13px; font-weight: 500; line-height: 1.65; color: #7a8fa0; }
.fc-btn {
    display: block;
    background: rgba(0, 210, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 12px;
    text-align: center; font-size: 13px; font-weight: 800;
    text-decoration: none; border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.fc-btn:hover {
    background: rgba(0, 210, 255, 0.18);
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

@media (max-width: 1100px) { .floating-cta { display: none; } }

.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-up {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up.active { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .article-layout { padding-top: 80px; }
}
@media (max-width: 860px) {
    .entry-content { grid-template-columns: 1fr; }
    .entry-visual-col { display: none; }
}
@media (max-width: 680px) {
    .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .entry-text-col { padding: 28px 24px; }
    .article-layout { padding: 76px 20px 80px; }
}
