/* ==========================================================================
   极客终端风主题 - Premium Terminal Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
    /* 主色调 - 翡翠绿 */
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --primary-dim: rgba(16, 185, 129, 0.1);
    --primary-bg: rgba(16, 185, 129, 0.05);

    /* 辅助色 */
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-yellow: #eab308;

    /* 背景 - 更深邃 */
    --bg-deep: #050508;
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-card-hover: #181825;
    --bg-terminal: #08080c;
    --bg-terminal-header: #0e0e15;

    /* 边框 */
    --border-subtle: rgba(16, 185, 129, 0.06);
    --border-medium: rgba(16, 185, 129, 0.12);
    --border-strong: rgba(16, 185, 129, 0.25);

    /* 文字 */
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-primary-color: #34d399;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-hero: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
    --gradient-terminal: linear-gradient(180deg, #0e0e15 0%, #08080c 100%);

    /* 玻璃态 */
    --glass-bg: rgba(17, 17, 24, 0.7);
    --glass-border: rgba(16, 185, 129, 0.1);

    /* 阴影/发光 */
    --glow-primary: 0 0 25px rgba(16, 185, 129, 0.2), 0 0 50px rgba(16, 185, 129, 0.06);
    --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.2), 0 0 50px rgba(6, 182, 212, 0.06);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.08);
    --shadow-terminal: 0 25px 80px rgba(0, 0, 0, 0.6), 
                        0 10px 30px rgba(0, 0, 0, 0.4),
                        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    /* 间距 */
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* 过渡 */
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;

    /* 字体 */
    --font-mono: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景光晕 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 900px 700px at 10% 10%, rgba(16, 185, 129, 0.08), transparent 60%),
        radial-gradient(ellipse 700px 600px at 90% 80%, rgba(6, 182, 212, 0.06), transparent 60%),
        radial-gradient(ellipse 600px 500px at 50% 50%, rgba(59, 130, 246, 0.03), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 背景网格 - 更细腻 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.font-mono {
    font-family: var(--font-mono);
}

/* ==========================================================================
   导航栏 - 更精致
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.85rem 2rem;
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 0.65rem 2rem;
}

.navbar-brand {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: -0.3px;
}

.navbar-brand::before {
    content: '>';
    color: var(--primary);
    font-weight: 400;
    animation: blink 1.2s infinite;
}

.navbar-brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.25rem;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    opacity: 0;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--primary-bg);
}

.nav-link:hover::before {
    transform: scaleX(1);
    opacity: 0.5;
}

.nav-link.active {
    color: var(--primary-light);
    background: var(--primary-dim);
    border: 1px solid var(--border-strong);
}

.nav-link.active::before {
    display: none;
}

/* 用户菜单 */
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid var(--border-strong);
    font-family: var(--font-mono);
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: var(--glow-primary);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: var(--shadow-card);
    z-index: 1001;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--primary-dim);
    color: var(--text-primary);
}

/* ==========================================================================
   Hero 区域 - 终端为主
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 880px;
    width: 100%;
}

.hero-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-status-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    animation: pulse 2s ease-in-out infinite;
}

.status-text {
    color: var(--primary-light);
}

.hero-status-right {
    opacity: 0.6;
}

/* 终端窗口 - 更精致 */
.terminal-window {
    background: var(--bg-terminal);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-terminal);
    margin-bottom: 2rem;
    position: relative;
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--gradient-terminal);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    transition: opacity var(--transition-fast);
}

.terminal-dot:hover {
    opacity: 0.8;
}

.terminal-dot.red {
    background: #ff5f57;
    box-shadow: 0 0 8px rgba(255, 95, 87, 0.4);
}

.terminal-dot.yellow {
    background: #febc2e;
    box-shadow: 0 0 8px rgba(254, 188, 46, 0.4);
}

.terminal-dot.green {
    background: #28c840;
    box-shadow: 0 0 8px rgba(40, 200, 64, 0.4);
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.terminal-title-icon {
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1.5rem 1.5rem 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    line-height: 2;
    min-height: 280px;
    position: relative;
}

.terminal-line {
    margin-bottom: 0.25rem;
    animation: fadeInUp 0.3s ease-out forwards;
    opacity: 0;
}

.terminal-line:nth-child(1) { animation-delay: 0.1s; }
.terminal-line:nth-child(2) { animation-delay: 0.3s; }
.terminal-line:nth-child(3) { animation-delay: 0.5s; }
.terminal-line:nth-child(4) { animation-delay: 0.7s; }
.terminal-line:nth-child(5) { animation-delay: 0.9s; }
.terminal-line:nth-child(6) { animation-delay: 1.1s; }
.terminal-line:nth-child(7) { animation-delay: 1.3s; }
.terminal-line:nth-child(8) { animation-delay: 1.5s; }
.terminal-line:nth-child(9) { animation-delay: 1.7s; }
.terminal-line:nth-child(10) { animation-delay: 1.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-prompt {
    color: var(--primary-light);
    font-weight: 500;
}

.terminal-prompt-symbol {
    color: var(--text-muted);
}

.terminal-path {
    color: var(--accent-cyan);
}

.terminal-command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: 2rem;
    display: block;
}

.terminal-output.success {
    color: var(--primary-light);
}

.terminal-output.accent {
    color: var(--accent-cyan);
}

.terminal-output.comment {
    color: var(--text-muted);
    font-style: italic;
}

.terminal-output.key {
    color: var(--accent-purple);
}

.terminal-output.value {
    color: var(--accent-amber);
}

.terminal-cursor {
    display: inline-block;
    width: 9px;
    height: 1.15em;
    background: var(--primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 8px var(--primary-glow);
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.hero-subtitle-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.8;
    max-width: 600px;
}

.hero-subtitle-text strong {
    color: var(--primary-light);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 按钮 - 更精致 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: var(--gradient-green);
    color: white !important;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    font-family: var(--font-sans);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: transparent;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-sans);
}

.btn-secondary:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary-light) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   主容器
   ========================================================================== */

.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.section-title::before {
    content: '#';
    color: var(--primary);
    font-weight: 400;
}

.section-title .icon {
    font-size: 1.4rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-left: 2rem;
}

/* ==========================================================================
   统计卡片
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
    font-family: var(--font-mono);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ==========================================================================
   技能栈
   ========================================================================== */

.skills-section {
    margin-bottom: 3rem;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category-title::before {
    content: '//';
    color: var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: default;
    font-family: var(--font-mono);
}

.skill-tag:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: var(--primary-dim);
    transform: translateY(-1px);
}

.skill-tag .level {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.skill-tag .level.high {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary-glow);
}

.skill-tag .level.mid {
    background: var(--accent-cyan);
}

.skill-tag .level.low {
    background: var(--accent-amber);
}

/* ==========================================================================
   作品卡片网格
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card-header {
    padding: 1.25rem 1.25rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-card-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.project-card-badge {
    padding: 0.15rem 0.55rem;
    font-size: 0.68rem;
    border-radius: 4px;
    background: var(--primary-dim);
    color: var(--primary-light);
    border: 1px solid var(--border-medium);
    font-family: var(--font-mono);
}

.project-card-badge.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border-color: rgba(6, 182, 212, 0.2);
}

.project-card-badge.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.2);
}

.project-card-badge.yellow {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.project-card-badge.green {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.project-card-body {
    padding: 0 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    flex: 1;
}

.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tech-dot {
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    background: rgba(16, 185, 129, 0.06);
    color: var(--text-muted);
    border-radius: 4px;
    font-family: var(--font-mono);
}

.project-card-footer {
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.card-link {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
    font-family: var(--font-mono);
}

.card-link:hover {
    color: var(--primary-light);
    gap: 0.6rem;
}

/* ==========================================================================
   板块导航卡片
   ========================================================================== */

.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.sector-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.sector-card:hover {
    transform: translateX(4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
}

.sector-card:hover::before {
    opacity: 1;
}

.sector-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.sector-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sector-card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.sector-card-link {
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
}

/* ==========================================================================
   分类标签
   ========================================================================== */

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.category-tab {
    padding: 0.55rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-mono);
}

.category-tab:hover {
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--gradient-green);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 分类区块 */
.category-section {
    margin-bottom: 3rem;
}

.category-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
    font-family: var(--font-mono);
}

/* ==========================================================================
   时间线
   ========================================================================== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-medium);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.3rem;
    width: 16px;
    height: 16px;
    radius: 50%;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ==========================================================================
   CTA 区域
   ========================================================================== */

.cta-section {
    padding: 4rem 0;
    text-align: center;
}

.cta-content {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.cta-badge {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    background: var(--primary-dim);
    color: var(--primary-light);
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2.5rem 2rem 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-brand h3::before {
    content: '>';
    color: var(--primary);
    font-weight: 400;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: var(--font-mono);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.footer-social a:hover {
    background: var(--primary-dim);
    border-color: var(--border-strong);
    color: var(--primary-light);
}

/* ==========================================================================
   双栏布局
   ========================================================================== */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* ==========================================================================
   资料卡片
   ========================================================================== */

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.info-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
}

.info-card-title::before {
    content: '$';
    color: var(--primary);
    font-weight: 400;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.88rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .label {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.info-list .value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 968px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .two-col {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-link {
        padding: 0.4rem 0.55rem;
        font-size: 0.78rem;
    }

    .navbar {
        padding: 0.65rem 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .terminal-body {
        padding: 1.25rem;
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   补充：页脚额外样式
   ========================================================================== */

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: var(--primary-dim);
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--primary-light);
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ==========================================================================
   补充：下拉菜单
   ========================================================================== */

.dropdown-header {
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0.25rem;
}

.dropdown-header .username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.dropdown-header .welcome {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.25rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--primary-dim);
    color: var(--primary-light);
}

.dropdown-item.danger {
    color: var(--accent-red);
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   补充：通用页面 Hero（工具/视频/导航/登录等页面用）
   ========================================================================== */

.hero-badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: var(--primary-dim);
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--primary-light);
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

/* ==========================================================================
   补充：工具卡片（工具/导航页面用）
   ========================================================================== */

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
}

.tool-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    flex: 1;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.tool-category {
    padding: 0.15rem 0.5rem;
    background: var(--primary-dim);
    border-radius: 4px;
    color: var(--primary-light);
    font-size: 0.72rem;
}

.tool-clicks {
    color: var(--text-muted);
}

.tool-actions {
    margin-top: auto;
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: var(--gradient-green);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-family: var(--font-mono);
}

.btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-favorite {
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    transition: transform var(--transition-fast);
}

.btn-favorite:hover {
    transform: scale(1.2);
}

.btn-favorite.active {
    filter: drop-shadow(0 0 4px var(--accent-red));
}

/* ==========================================================================
   补充：视频卡片
   ========================================================================== */

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-terminal), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle);
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all var(--transition-base);
    cursor: pointer;
}

.video-card:hover .play-btn {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    font-size: 0.72rem;
    color: white;
    font-family: var(--font-mono);
}

.video-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-description {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
    flex: 1;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}

.video-progress {
    margin-top: 0.5rem;
}

.video-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
}

.progress-bar {
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-green);
    border-radius: 2px;
    transition: width var(--transition-base);
}

/* ==========================================================================
   补充：空状态
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ==========================================================================
   补充：表单（登录/注册页面用）
   ========================================================================== */

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.form-alert.success {
    background: var(--primary-dim);
    border: 1px solid var(--border-medium);
    color: var(--primary-light);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ==========================================================================
   补充：通用间距
   ========================================================================== */

.mb-6 {
    margin-bottom: 2.5rem !important;
}

/* ==========================================================================
   补充：Bootstrap 兼容覆盖（让 Bootstrap 组件融入暗色主题）
   ========================================================================== */

/* 搜索框 / 表单控件暗色化 */
.form-control,
.form-control:focus {
    background: var(--bg-card);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem var(--primary-dim);
    border-color: var(--primary);
}

/* 按钮暗色化 */
.btn-primary {
    background: var(--gradient-green);
    border-color: transparent;
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-medium);
}

.btn-outline-secondary:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-outline-danger {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.btn-warning {
    background: var(--accent-amber);
    border-color: transparent;
    color: #000;
}

.btn-success {
    background: var(--primary);
    border-color: transparent;
}

.btn-secondary {
    background: var(--bg-card);
    border-color: var(--border-medium);
    color: var(--text-secondary);
}

/* 徽章 */
.badge {
    font-family: var(--font-mono);
}

.badge.bg-light {
    background: var(--bg-card-hover) !important;
    color: var(--text-secondary) !important;
}

/* 面包屑 */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-light);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* 卡片暗色化 */
.card {
    background: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.card-header {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
}

.card-footer {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
}

/* 弹窗暗色化 */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

.modal-header {
    border-bottom-color: var(--border-subtle);
}

.modal-footer {
    border-top-color: var(--border-subtle);
}

/* 表格暗色化 */
.table {
    color: var(--text-primary);
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-color: var(--border-subtle);
}

.table-hover > tbody > tr:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* 警告框 */
.alert {
    border-radius: var(--radius-md);
}

.alert-info {
    background: var(--primary-dim);
    border-color: var(--border-medium);
    color: var(--primary-light);
}

/* 输入组 */
.input-group-text {
    background: var(--bg-card);
    border-color: var(--border-medium);
    color: var(--text-muted);
}

/* 页面 Hero（文章页面用） */
.page-hero {
    padding: 40px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
}

.page-hero .breadcrumb a {
    color: var(--text-secondary);
}

.page-hero h1 {
    color: var(--text-primary);
}

.page-hero .text-muted {
    color: var(--text-muted) !important;
}

/* 文章内容 */
article img, .article-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
}

/* 链接 */
a {
    color: var(--primary-light);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

/* 文字颜色覆盖 */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* 分页 */
.pagination .page-link {
    background: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-dark);
    color: var(--text-muted);
}
