/* ===== 基础设置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #090909;
    --bg-alt: #0f0f0f;
    --text: #f0f0f0;
    --text-muted: #888;
    --accent: #5eead4;
    --border: rgba(255,255,255,0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== 导航栏 ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(9, 9, 9, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-home-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    padding: 4px 8px;
    margin: -4px -8px;
    transition: opacity 0.2s ease;
}

.nav-home-link:hover {
    opacity: 0.75;
}

/* 数字分身入口 */
.nav-agent-btn {
    border: 1px solid var(--accent) !important;
    border-radius: 8px;
    padding: 5px 16px !important;
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.25s ease;
}

.nav-agent-btn:hover {
    background: rgba(94, 234, 212, 0.1);
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.15);
}

.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-brand {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-right a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-right a:hover {
    color: var(--text);
}

/* ===== Hero 首屏 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    background: #05050a;
}

/* WebGL 波纹环层（底层主视觉） */
#hero-fluid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#hero-fluid canvas {
    display: block;
}

/* Canvas 粒子点阵层 */
#heroBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 暗色遮罩 —— 径向渐变，中间亮四周暗（聚光灯效果） */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title-wrap {
    max-width: 700px;
}

.hero-line {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1px;
    color: #fff;
    margin: 0;
    opacity: 0;
    transform: translateY(40px);
}

/* 第一行动画：cubic-bezier 让动作更优雅，先快后慢 */
.hero-line-1 {
    animation: heroReveal 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}

/* 第二行延迟 0.3s，形成错落感 */
.hero-line-2 {
    animation: heroReveal 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s forwards;
}

.hero-subtitle {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 200px;
}

/* 每行标签的样式 */
.tag-line {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    letter-spacing: 0.5px;
    display: block;
    position: relative;
}

/* 正在打字的行末尾闪烁光标 */
.tag-line:last-child::after {
    content: '|';
    color: rgba(255, 255, 255, 0.6);
    animation: blink 0.8s step-end infinite;
    margin-left: 1px;
}

/* 全部打完时隐藏光标 */
.hero-subtitle.done .tag-line::after {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;

    /* 标题动画完成后出现 */
    animation: fadeInUp 0.8s ease-out 2.0s both;
}

.scroll-arrow {
    display: block;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    animation: breathe 2s ease-in-out infinite;
}

/* ===== 通用 Section 样式 ===== */
.section {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-label {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
}

.section h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

.section p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.section a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== 关于 ===== */
#about .articles-desc {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

.capability-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.cap-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px 32px;
    transition: border-color 0.3s ease, transform 0.2s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cap-card:hover {
    border-color: rgba(94, 234, 212, 0.25);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.04);
}

.cap-card-inner,
.cap-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.cap-head {
    flex-shrink: 0;
}

.cap-icon {
    position: absolute;
    top: 32px;
    right: 28px;
    color: var(--accent);
    opacity: 0.25;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.cap-card:hover .cap-icon {
    opacity: 0.5;
    transform: scale(1.05);
}

.cap-head h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text);
}

.cap-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.cap-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    flex-shrink: 0;
    min-height: 26px;
}

.cap-tags span {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cap-card:hover .cap-tags span {
    border-color: rgba(94, 234, 212, 0.3);
    color: #ccc;
    background: rgba(94, 234, 212, 0.06);
}

.cap-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
    flex: 1;
}

/* 关于模块也放在 section-alt 中，覆盖 h2 的边距 */
#about h2 {
    margin-bottom: 32px;
}

/* ===== 各区块不同背景色区分 ===== */
#about.section-alt {
    background: linear-gradient(180deg, #0a0a0f 0%, #0d0d14 40%, #0d0d14 60%, #0a0a0f 100%);
}

#articles.section-alt {
    background: linear-gradient(180deg, #0c0e0c 0%, #101410 40%, #101410 60%, #0c0e0c 100%);
}

#experience.section-alt {
    background: linear-gradient(180deg, #0c0c0c 0%, #0f0f0f 40%, #0f0f0f 60%, #0c0c0c 100%);
}

#contact.section-alt {
    background: linear-gradient(180deg, #0e0e0e 0%, #121212 40%, #121212 60%, #0e0e0e 100%);
}

/* 联系我 —— 邮箱排版修正 */
#contact p {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 15px;
}

/* ===== 通用 Section 样式修正：section-alt 中 p 的宽度 ===== */
.section-alt .articles-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* ===== 子页时间轴同首页宽度 ===== */
.page-timeline-section {
    max-width: 1100px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-top: 60px !important;
    background: var(--bg-alt);
    max-width: none !important;
}

.page-timeline-section .timeline {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== 模块背景交替 ===== */
.section-alt {
    background: linear-gradient(180deg, #0c0c0c 0%, #0f0f0f 40%, #0f0f0f 60%, #0c0c0c 100%);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.section-alt .section-label,
.section-alt h2,
.section-alt .articles-desc,
.section-alt .articles-tabs,
.section-alt .articles-grid,
.section-alt .articles-more {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ===== 页面头部（项目经历 / 文章页） ===== */
.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 24px 40px;
    max-width: 1100px;
    margin: 0 auto;
    gap: 64px;
    overflow: hidden;
}

.page-hero-content {
    flex: 0 0 auto;
    padding-left: 24px;
}

.page-hero-content h2 {
    margin-bottom: 0;
    white-space: nowrap;
}

.page-hero-img {
    width: 420px;
    height: 260px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: visible;
    position: relative;
}

/* 四边向中心暗角融合，消除背景图轮廓 */
.page-hero-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, #090909 0%, transparent 25%, transparent 75%, #090909 100%),
        linear-gradient(to right,   #090909 0%, transparent 22%, transparent 78%, #090909 100%);
    z-index: 2;
    pointer-events: none;
    border-radius: 14px;
}

/* 中部提亮 */
.page-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.12) 0%, transparent 55%);
    z-index: 1;
    pointer-events: none;
    border-radius: 14px;
}

/* 点阵装饰 + 光晕 */
.hero-img-placeholder {
    width: 100%;
    height: 100%;
    background: #0d0d0d;
    position: relative;
    overflow: hidden;
}

.hero-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(94, 234, 212, 0.22) 0%, transparent 40%),
        radial-gradient(circle at 30% 60%, rgba(99, 102, 241, 0.16) 0%, transparent 35%),
        radial-gradient(circle at 60% 80%, rgba(59, 130, 246, 0.14) 0%, transparent 30%);
    animation: breathe-glow 3s ease-in-out infinite;
}

/* 文章页 —— 暖色光晕 + 横线纹理，边缘融入背景 */
.hero-img-placeholder.hero-img-articles::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 30% 60%, rgba(239, 68, 68, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(249, 115, 22, 0.12) 0%, transparent 30%);
    animation: breathe-glow 3.5s ease-in-out infinite;
}

.hero-img-placeholder.hero-img-articles::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 14px, rgba(255,255,255,0.04) 14px, rgba(255,255,255,0.04) 15px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.03) 60px, rgba(255,255,255,0.03) 61px);
    pointer-events: none;
    border-radius: 14px;
    animation: breathe-texture 5.5s ease-in-out infinite;
}

.hero-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.1) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(94,234,212,0.18) 2px, transparent 2px);
    background-size: 40px 40px, 80px 80px, 120px 120px;
    background-position: 10px 10px, 30px 50px, 60px 20px;
    animation: breathe-texture 4.5s ease-in-out infinite;
}

/* ===== 项目经历 ===== */
#experience.section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

#experience .section-label,
#experience h2 {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 竖线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* 每个公司节点 */
.tl-item {
    display: flex;
    gap: 44px;
    padding-bottom: 80px;
}

.tl-item:last-child {
    padding-bottom: 0;
}

/* 时间标记 —— 粘性滚动，随页面滚动下移 */
.tl-marker {
    position: sticky;
    top: 80px;
    display: flex;
    align-items: center;
    width: 100px;
    height: 24px;
    flex-shrink: 0;
    padding-top: 2px;
}

/* JS 给当前活跃的 marker 加高亮 */
.tl-marker.is-active .tl-time {
    color: #fff;
}

.tl-time {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 圆点右边缘对齐 marker 右边缘外 5px → 圆心正好落在竖线上 */
.tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    position: absolute;
    right: -5px;
    z-index: 2;
}

.tl-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 14px rgba(94, 234, 212, 0.35);
}

.tl-dot.more {
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.12);
}

/* 右侧主体 */
.tl-body {
    flex: 1;
    min-width: 0;
}

/* 公司区块 */
.company-block {
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.company-block:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.028);
}

.company-block:hover .company-tags span {
    border-color: rgba(255, 255, 255, 0.15);
    color: #ccc;
}

/* 项目整体区块 */
.projects-block {
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 8px 36px 12px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.projects-block:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.028);
}

/* 公司头部 */
.company-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.geo-logo {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.baidu-logo {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.yyk-logo {
    background: linear-gradient(135deg, #10b981, #059669);
}

.rjl-logo {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.company-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 2px;
    line-height: 1.2;
}

.company-role {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.2;
}

/* 公司标签 */
.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.company-tags span {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* 项目卡片列表 */
.project-cards {
    display: flex;
    flex-direction: column;
}

/* 项目之间用分割线区隔 */
.project-card + .project-card {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 32px;
}

/* 项目间距紧凑 */
.project-card:first-child {
    padding-top: 24px;
}

.project-card:last-child {
    padding-bottom: 20px;
}

/* 单个项目 */
.project-card {
    padding: 28px 0;
}

/* 单个项目 —— 画册风格：标题+描述在上，大图在中，指标在下 */
.project-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px 0;
}

.project-card:hover .img-placeholder {
    filter: brightness(1.1);
}

.project-card:hover .stat-item {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.project-card:hover .stat-value {
    color: var(--text);
}

.project-card:hover .project-title {
    color: var(--accent);
}

/* 上方内容 */
.project-content {
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.project-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* 大图 */
.project-img {
    width: 100%;
    height: 340px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* 数据指标 —— 覆盖在图片左下角，半透明 */
.project-stats {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.stat-item {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.project-card:hover .stat-item {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease;
}

.project-card:hover .stat-value {
    color: #fff;
}

.stat-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
    transition: color 0.3s ease;
}

.project-card:hover .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.project-img .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.12);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    border-radius: 10px;
}

/* 不同项目不同配色 */
.project-card:nth-child(1) .img-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.project-card:nth-child(2) .img-placeholder {
    background: linear-gradient(135deg, #1a102e 0%, #2d1b4e 50%, #1a1040 100%);
}
.project-card:nth-child(3) .img-placeholder {
    background: linear-gradient(135deg, #102a2e 0%, #0d3b3b 50%, #0a3030 100%);
}
.project-card:nth-child(4) .img-placeholder {
    background: linear-gradient(135deg, #2a1a1e 0%, #3d1b2b 50%, #301a28 100%);
}

.img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.02) 0%, transparent 50%);
}

/* 查看更多 */
.tl-more .tl-marker {
    position: relative;
    top: auto;
}

.tl-view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tl-view-more:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text);
    gap: 12px;
}

/* ===== 文章区 ===== */
.articles-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: -28px;
    margin-bottom: 32px;
}

/* Tab 切换栏 */
.articles-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
}

.articles-tab {
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.articles-tab:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #ccc;
}

.articles-tab.active {
    background: rgba(94, 234, 212, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* 卡片网格 —— 3 列 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 单张卡片 */
.article-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.2s ease, background 0.3s ease;
}

.article-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    background: #141414;
}

/* 卡片顶部：系列标签 + 日期 */
.ac-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    height: 24px;
    flex-shrink: 0;
}

.ac-series {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.ac-series--geo {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.ac-series--ai {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.ac-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* 标题：固定高度，保证标签行在各卡片对齐 */
.ac-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 4px;
    height: 51px;
    flex-shrink: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ac-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card:hover .ac-title a {
    color: var(--accent);
}

/* 文章标签 */
.ac-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    min-height: 22px;
    flex-shrink: 0;
}

.ac-tags span {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover .ac-tags span {
    border-color: rgba(94, 234, 212, 0.3);
    color: #ccc;
    background: rgba(94, 234, 212, 0.06);
}

/* 摘要 */
.ac-summary {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    /* 最多显示 3 行 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 元信息：字数 · 阅读时长 */
.ac-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ac-sep {
    color: rgba(255, 255, 255, 0.15);
}

/* 阅读原文 */
.ac-read-link {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.ac-read-link:hover {
    gap: 8px;
}

/* 查看更多按钮 */
.articles-more {
    margin-top: 48px;
}

/* 文章页 —— 全宽背景 */
.page-articles-section {
    max-width: 1100px !important;
    padding-top: 40px !important;
    background: var(--bg-alt);
    max-width: none !important;
}

.page-articles-section .articles-tabs,
.page-articles-section .articles-grid,
.page-articles-section .articles-more {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.page-articles-section .articles-tabs {
    padding: 0 24px;
}

.page-articles-section .articles-grid {
    padding: 0 24px;
}

/* 文章二级页 —— 头部描述 */
.articles-hero-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 8px;
}

.articles-hero-links {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 12px;
}

.articles-hero-links a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.articles-hero-links a:hover {
    opacity: 0.8;
}

/* 微信公众号 QR 触发 */
.wechat-qr-trigger {
    color: var(--accent);
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.wechat-qr-trigger:hover {
    opacity: 0.8;
}

/* QR 弹出层 */
.wechat-qr-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 50;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.wechat-qr-popup img {
    border-radius: 8px;
    display: block;
}

.qr-tip {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* hover 时显示 */
.wechat-qr-trigger:hover .wechat-qr-popup {
    opacity: 1;
    visibility: visible;
}

/* 小三角箭头 */
.wechat-qr-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}

/* 文章页网格：桌面 3 列 */
.page-articles-section .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== 联系 ===== */
.social-links {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--text);
}

.social-sep {
    margin: 0 8px;
    color: var(--border);
}

/* ===== 底部 ===== */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== 动画定义 ===== */

/* 从下方淡入上移 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero 标题入场：更大幅度的位移 + 优雅缓动 */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 呼吸浮动 */
@keyframes breathe {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(8px);
    }
}

/* 光标闪烁 */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .capability-cards {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        flex-direction: column;
        padding: 80px 20px 30px;
    }

    .page-hero-content { padding-left: 0; }

    .page-hero-img {
        width: 100%;
        height: 200px;
    }
}

/* ===== 二级页背景呼吸动画 ===== */
@keyframes breathe-glow {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 1; }
}

@keyframes breathe-texture {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 1; }
}

/* ===== 数字分身抽屉 ===== */
.chat-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 200; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.chat-drawer-overlay.open { opacity: 1; visibility: visible; }

.chat-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw;
    background: #0d0d0d; z-index: 201;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.chat-drawer.open { transform: translateX(0); }

/* 抽屉头部 */
.chat-drawer-header {
    flex-shrink: 0; padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(9,9,9,0.95);
    backdrop-filter: blur(12px);
}
.chat-drawer-header-left { display: flex; align-items: center; gap: 10px; }
.chat-drawer-avatar {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.chat-drawer-title { font-size: 14px; font-weight: 600; color: var(--text); }
.chat-drawer-subtitle { font-size: 11px; color: var(--text-muted); }
.chat-drawer-close {
    background: none; border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted); width: 32px; height: 32px; border-radius: 8px;
    cursor: pointer; font-size: 18px; display: flex; align-items: center;
    justify-content: center; transition: all 0.2s ease; line-height: 1;
}
.chat-drawer-close:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

/* 抽屉消息区 */
.chat-drawer-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.chat-drawer-messages .msg-time-divider {
    text-align: center; font-size: 11px; color: var(--text-muted);
    padding: 8px 0; opacity: 0.5;
}
.chat-drawer-messages .msg {
    display: flex; gap: 8px; max-width: 90%;
    animation: msgIn 0.25s ease-out;
}
.chat-drawer-messages .msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-drawer-messages .msg.agent { align-self: flex-start; }
.chat-drawer-messages .msg-avatar {
    width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; margin-top: 2px;
}
.chat-drawer-messages .msg.user .msg-avatar {
    background: rgba(255,255,255,0.06); color: var(--text-muted);
}
.chat-drawer-messages .msg.agent .msg-avatar {
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
}
.chat-drawer-messages .msg-bubble {
    padding: 10px 14px; border-radius: 10px; font-size: 13px;
    line-height: 1.65; border: 1px solid rgba(255,255,255,0.06);
    word-break: break-word;
}
.chat-drawer-messages .msg.user .msg-bubble {
    background: rgba(94,234,212,0.06);
    border-radius: 10px 10px 4px 10px;
}
.chat-drawer-messages .msg.agent .msg-bubble {
    background: rgba(255,255,255,0.02);
    border-radius: 10px 10px 10px 4px;
}
/* 思考过程 */
.chat-drawer-messages .msg-reasoning {
    margin-bottom: 8px; border: 1px solid rgba(99,102,241,0.15);
    border-radius: 8px; overflow: hidden; background: rgba(99,102,241,0.04);
}
.chat-drawer-messages .msg-reasoning-header {
    font-size: 11px; color: rgba(99,102,241,0.7); padding: 6px 10px;
    cursor: pointer; user-select: none; display: flex; align-items: center; gap: 4px;
    transition: background 0.2s ease;
}
.chat-drawer-messages .msg-reasoning-header:hover { background: rgba(99,102,241,0.06); }
.chat-drawer-messages .msg-reasoning .reasoning-arrow { font-size: 10px; }
.chat-drawer-messages .msg-reasoning-content {
    display: none; padding: 8px 10px; font-size: 12px; color: var(--text-muted);
    line-height: 1.6; border-top: 1px solid rgba(99,102,241,0.08);
    max-height: 200px; overflow-y: auto;
}
.chat-drawer-messages .msg-reasoning.expanded .msg-reasoning-content { display: block; }
.chat-drawer-messages .msg.agent .msg-sources {
    margin-top: 6px; padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 10px; color: var(--text-muted);
    display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
}
.chat-drawer-messages .msg.agent .src-chip {
    padding: 1px 6px; border-radius: 100px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
}
.chat-drawer-messages .msg.thinking .msg-bubble {
    display: flex; gap: 4px; align-items: center; padding: 14px;
}
.chat-drawer-messages .msg.thinking .dot {
    width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted);
    animation: dotBounce 1.4s ease-in-out infinite;
}
.chat-drawer-messages .msg.thinking .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-drawer-messages .msg.thinking .dot:nth-child(3) { animation-delay: 0.4s; }

/* 抽屉输入区 */
.chat-drawer-input-area {
    flex-shrink: 0; padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    background: rgba(9,9,9,0.95);
}
.chat-drawer-input-wrap { display: flex; gap: 8px; align-items: flex-end; }
.chat-drawer-input-wrap textarea {
    flex: 1; background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); border-radius: 8px;
    padding: 9px 12px; color: var(--text); font-size: 13px;
    font-family: inherit; line-height: 1.5;
    resize: none; min-height: 38px; max-height: 100px;
    transition: border-color 0.2s ease;
}
.chat-drawer-input-wrap textarea:focus {
    outline: none; border-color: var(--accent);
}
.chat-drawer-input-wrap textarea::placeholder { color: rgba(255,255,255,0.15); }
.chat-drawer-send-btn {
    width: 38px; height: 38px; border-radius: 8px;
    border: 1px solid var(--accent); background: var(--accent);
    color: #090909; cursor: pointer; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; flex-shrink: 0; font-weight: 700;
}
.chat-drawer-send-btn:hover { filter: brightness(1.1); }
.chat-drawer-send-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.chat-drawer-key-hint {
    text-align: center; font-size: 10px; color: var(--text-muted);
    margin-top: 6px; cursor: pointer; transition: color 0.2s ease;
}
.chat-drawer-key-hint:hover { color: #ccc; }

/* 抽屉设置弹窗 */
.chat-key-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    z-index: 300; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.chat-key-modal.open { opacity: 1; visibility: visible; }
.chat-key-modal-inner {
    background: #141414; border: 1px solid var(--border);
    border-radius: 14px; padding: 24px; max-width: 380px; width: 90%;
}
.chat-key-modal-inner h3 { font-size: 15px; margin-bottom: 12px; }
.chat-key-modal-inner input {
    width: 100%; background: var(--bg); border: 1px solid var(--border);
    border-radius: 8px; padding: 10px 14px; color: var(--text);
    font-size: 13px; font-family: inherit; margin-bottom: 8px;
    transition: border-color 0.2s ease;
}
.chat-key-modal-inner input:focus { outline: none; border-color: var(--accent); }
.chat-key-modal-inner .chat-key-hint-text {
    font-size: 11px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5;
}
.chat-key-modal-btns { display: flex; gap: 8px; justify-content: flex-end; }
.chat-key-modal-btns button {
    font-size: 12px; padding: 7px 16px; border-radius: 8px;
    cursor: pointer; font-family: inherit; border: 1px solid var(--border);
    background: transparent; color: var(--text-muted); transition: all 0.2s ease;
}
.chat-key-modal-btns button.primary {
    background: var(--accent); color: #090909; border-color: var(--accent); font-weight: 600;
}
.chat-key-modal-btns button.primary:hover { filter: brightness(1.1); }

@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes dotBounce { 0%,60%,100% { opacity: 0.15; } 30% { opacity: 1; } }

/* 移动端抽屉全屏 */
@media (max-width: 500px) {
    .chat-drawer { width: 100vw; }
}
