/* ============================================================
   FlowPix — AI 内容站
   深蓝底 · 青绿强调 · 干净排版 · 响应式
   ============================================================ */

:root {
    color-scheme: dark;
    --accent:       #2ee6c7;
    --accent-deep:  #14b8a6;
    --accent-soft:  rgba(46, 230, 199, 0.14);
    --bg:           #070b14;
    --bg-elevated:  #0e1422;
    --bg-card:      #101827;
    --text:         #e8eef8;
    --text-muted:   #8b95a8;
    --border:       rgba(148, 163, 184, 0.12);
    --gold-line:    rgba(46, 230, 199, 0.36);
    --ink:          #e8eef8;
    --radius:       8px;
    --radius-sm:    4px;
    --shadow:       0 12px 40px rgba(0, 0, 0, 0.45);
    --sans:         -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

::selection { background: var(--accent); color: #070b14; }
html { scrollbar-color: #1e2a3d #070b14; }

.main-content { padding-bottom: 8px; }
.main-content > .container { padding-top: 8px; }

/* === 导航 === */
.main-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-link {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #9aa6bb;
    position: relative;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 4px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent);
    text-decoration: none;
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.lang-switcher { display: inline-flex; gap: 4px; align-items: center; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--border); }
.lang-switcher .lang-link {
    font-size: 12px; padding: 3px 8px;
    letter-spacing: 0.04em;
    border: 1px solid transparent; color: #8b95a8; line-height: 1.2;
}
.lang-switcher .lang-link:hover { text-decoration: none; color: var(--accent); border-color: var(--gold-line); }
.lang-switcher .lang-link.active { color: var(--accent); border-color: var(--gold-line); font-weight: 600; }

.menu-toggle { display: none; background: none; border: 1px solid var(--border); cursor: pointer; padding: 7px; color: var(--accent); }

/* === 英雄区 === */
.hero-full {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 96px 24px 96px;
    color: var(--text);
    overflow: hidden;
    background:
        radial-gradient(720px 360px at 50% -10%, rgba(46, 230, 199, 0.16), transparent 60%),
        radial-gradient(500px 280px at 90% 110%, rgba(129, 140, 248, 0.10), transparent 55%),
        #070b14;
    border-bottom: 1px solid var(--gold-line);
}
.hero-full::before,
.hero-full::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 48px;
    height: 1px;
    background: var(--accent);
    transform: translateX(-50%);
    pointer-events: none;
}
.hero-full::before { top: 36px; }
.hero-full::after { bottom: 36px; }
.hero-full-inner { position: relative; max-width: 760px; }
.hero-eyebrow {
    font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 22px; font-weight: 600;
}
.hero-full h1 {
    font-size: clamp(28px, 5.2vw, 52px);
    font-weight: 600;
    line-height: 1.22;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
    color: var(--text);
}
.hero-highlight {
    color: var(--accent);
    font-weight: 700;
}
.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.8;
    letter-spacing: 0.02em;
}
.hero-tags {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center;
    margin-top: 36px;
}
.hero-tag {
    padding: 7px 18px;
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all .2s ease;
}
.hero-tag:hover {
    color: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}

/* === 精选文章 === */
.featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 56px 0 48px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.featured-image {
    display: block;
    overflow: hidden;
    position: relative;
}
.featured-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,11,20,0.12) 0%, rgba(7,11,20,0.42) 100%);
    pointer-events: none;
}
.featured-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    filter: saturate(0.72) brightness(0.78);
    transition: transform .6s ease, filter .4s ease;
}
.featured:hover .featured-image img {
    transform: scale(1.03);
    filter: saturate(0.88) brightness(0.88);
}
.featured-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.featured-body h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.4;
    margin: 10px 0 16px;
    letter-spacing: 0.02em;
}
.featured-body h2 a { color: var(--text); }
.featured-body h2 a:hover { color: var(--accent); text-decoration: none; }
.featured-body p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}
.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.read-more {
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.12em;
    font-size: 12px;
}
.read-more:hover { text-decoration: none; color: #7ef5df; }

/* === 栏目条 === */
.cat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin: 8px 0 56px;
}
.cat-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 32px 28px;
    background: var(--bg-elevated);
    text-decoration: none;
    color: var(--text);
    border-top: 2px solid transparent;
    transition: border-color .2s ease, background .2s ease;
}
.cat-cell:hover {
    text-decoration: none;
    border-top-color: var(--accent);
    background: #121a2c;
}
.cat-icon {
    width: 36px; height: 36px;
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-cell h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text);
}
.cat-cell p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-count {
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-top: 6px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px 28px;
    margin-bottom: 56px;
}
.article-card {
    background: var(--bg-card);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.22s ease;
}
.article-card:hover { border-color: var(--gold-line); }
.card-image { display: block; overflow: hidden; position: relative; }
.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,11,20,0.08), rgba(7,11,20,0.38));
    pointer-events: none;
}
.card-image img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
    filter: saturate(0.7) brightness(0.78);
    transition: transform .5s ease, filter .4s ease;
}
.article-card:hover .card-image img {
    transform: scale(1.04);
    filter: saturate(0.88) brightness(0.9);
}
.card-body { padding: 22px 22px 24px; }
.card-category {
    font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
    color: var(--accent);
    display: inline-block; margin-bottom: 8px;
}
.card-body h3 { font-size: 18px; margin: 6px 0 10px; line-height: 1.45; font-weight: 600; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.card-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.card-footer { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
.article-card time { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }

.breadcrumb ol {
    display: flex; flex-wrap: wrap; list-style: none; gap: 8px;
    font-size: 13px; color: var(--text-muted); padding: 28px 0 12px;
    letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "·"; margin-right: 8px; color: var(--accent); font-size: 14px; }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; }
.article-content { min-width: 0; }
.article-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-category {
    font-size: 11px; font-weight: 600; color: var(--accent);
    letter-spacing: 0.2em;
}
.article-header h1 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 600; line-height: 1.35; margin: 16px 0 18px;
    letter-spacing: 0.02em; color: var(--text);
}
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-muted); letter-spacing: 0.04em; }
.article-cover { margin-bottom: 36px; position: relative; overflow: hidden; }
.article-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,11,20,0.1), rgba(7,11,20,0.28));
    pointer-events: none;
}
.article-cover img { width: 100%; filter: saturate(0.72) brightness(0.8); }

.article-body { font-size: 17px; line-height: 1.9; color: #d5dce8; }
.article-body h2 {
    font-size: 24px; font-weight: 600; margin: 48px 0 16px;
    color: var(--text);
    letter-spacing: 0.03em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-line);
}
.article-body h3 { font-size: 19px; font-weight: 600; margin: 32px 0 12px; color: var(--text); }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--accent); }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article-body th, .article-body td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; }
.article-body th { background: #162033; font-weight: 600; color: var(--accent); }
.article-body tr:nth-child(even) td { background: #0c1220; }
.article-body strong { font-weight: 650; color: #f1f5fb; }
.article-body blockquote {
    border-left: 2px solid var(--accent);
    padding: 16px 22px; margin: 28px 0;
    background: var(--bg-elevated);
    color: #c5cede;
    font-style: normal;
}
.article-body code { background: #162033; padding: 2px 6px; font-size: 15px; color: var(--accent); border: 1px solid var(--border); }
.article-body pre { background: #050810; color: #c5cede; padding: 20px; overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); }
.article-body pre code { background: none; padding: 0; color: inherit; border: none; }
.article-body img { margin: 16px 0; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-line); }
.article-body a:hover { text-decoration-color: var(--accent); }
.ai-image { margin: 24px 0; text-align: center; }
.ai-image img { }
.ai-image figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; letter-spacing: 0.04em; }

.article-sidebar { position: sticky; top: 88px; }
.article-banner { display: block; max-width: 1024px; margin: 0 auto 28px; overflow: hidden; line-height: 0; transition: opacity .2s ease; }
.article-banner:hover { opacity: .94; }
.article-banner img { display: block; width: 100%; height: auto; }
.sidebar-section { background: var(--bg-elevated); border: 1px solid var(--border); padding: 24px; }
.sidebar-section h3 {
    font-size: 12px; font-weight: 600; margin-bottom: 18px;
    color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.related-list { list-style: none; }
.related-list li { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.related-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.related-list a { display: block; color: var(--text); }
.related-list a:hover .related-title { color: var(--accent); }
.related-title { font-size: 14px; font-weight: 500; display: block; margin-bottom: 4px; transition: color 0.2s; line-height: 1.5; }
.related-list time { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }

.category-header {
    position: relative;
    padding: 56px 24px 44px;
    text-align: center;
    margin: 8px 0 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
}
.category-header h1 {
    font-size: 32px; font-weight: 600; color: var(--text);
    letter-spacing: 0.12em;
}
.category-desc { font-size: 15px; color: var(--text-muted); max-width: 560px; margin: 14px auto 0; line-height: 1.8; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 12px 0 48px; }
.page-link {
    min-width: 40px; height: 40px; padding: 0 12px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); color: var(--text-muted); font-weight: 500;
    font-size: 13px; letter-spacing: 0.04em;
}
.page-link.active, .page-link:hover { background: transparent; color: var(--accent); border-color: var(--accent); text-decoration: none; }
.page-ellipsis { min-width: 28px; height: 40px; display: flex; align-items: flex-end; justify-content: center; color: var(--text-muted); user-select: none; }
.page-prev, .page-next { font-size: 20px; line-height: 1; }

.error-page { text-align: center; padding: 100px 0; }
.error-page h1 { font-size: 96px; font-weight: 300; color: var(--accent); line-height: 1; letter-spacing: 0.08em; }
.error-page p { font-size: 16px; color: var(--text-muted); margin: 12px 0; }
.btn {
    display: inline-block; padding: 12px 28px;
    background: transparent; color: var(--accent);
    border: 1px solid var(--accent);
    font-weight: 500; margin-top: 24px;
    letter-spacing: 0.16em; font-size: 12px;
    transition: all .2s ease;
}
.btn:hover { background: var(--accent); color: #070b14; text-decoration: none; }
.empty-state { text-align: center; padding: 60px 0; color: var(--text-muted); grid-column: 1/-1; }

.site-footer {
    background: #050810;
    color: var(--text-muted);
    padding: 64px 0 28px;
    margin-top: 72px;
    border-top: 1px solid var(--gold-line);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .logo { color: var(--text); font-size: 18px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; text-decoration: none; font-weight: 600; letter-spacing: 0.12em; }
.footer-brand .logo:hover { text-decoration: none; }
.footer-brand .logo .logo-text { color: var(--text); }
.footer-brand .logo .logo-text span { color: var(--accent); }
.footer-brand p { font-size: 13px; max-width: 300px; line-height: 1.8; letter-spacing: 0.04em; }
.footer-nav h4 { color: var(--accent); font-size: 11px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--text-muted); font-size: 14px; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; font-size: 12px; text-align: center; letter-spacing: 0.08em; }

.about-page { max-width: 760px; margin: 0 auto; }
.about-tagline { font-size: 1.05em; color: var(--text-muted); margin-top: 8px; letter-spacing: 0.04em; }
.about-page .article-header h1 { color: var(--text); }

@media (max-width: 768px) {
    .main-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: #070b14; flex-direction: column; padding: 16px 20px 24px;
        border-bottom: 1px solid var(--gold-line); align-items: stretch;
    }
    .main-nav.open { display: flex; }
    .lang-switcher { margin: 12px 0 0; padding: 12px 0 0; border-left: none; border-top: 1px solid var(--border); }
    .menu-toggle { display: block; }
    .article-layout { grid-template-columns: 1fr; gap: 36px; }
    .article-sidebar { position: static; }
    .article-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-full { min-height: 340px; padding: 72px 20px 64px; }
    .featured { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 32px; }
    .cat-strip { grid-template-columns: 1fr 1fr; }
    .cat-cell { padding: 24px 20px; }
}
@media (max-width: 480px) {
    .cat-strip { grid-template-columns: 1fr; }
}
