:root {
    /* === HackHub Dark Hacker Theme === */
    --bg-body: #0a0a0a;
    --bg-white: #0f0f0f;
    --bg-card: #111111;
    --bg-hover: #1a1a1a;
    --text-primary: #00ff41;
    --text-secondary: #b0b0b0;
    --text-tertiary: #666666;
    --border-color: #1f1f1f;
    --accent-green: #00ff41;
    --accent-cyan: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #00ff41, #00d4ff);
    --glow-green: 0 0 10px rgba(0, 255, 65, 0.3);
    --glow-cyan: 0 0 10px rgba(0, 212, 255, 0.3);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-body);
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* 黑客终端扫描线效果 */
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}
a { color: var(--accent-green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-cyan); text-shadow: 0 0 8px rgba(0, 212, 255, 0.5); }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
}
.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.4));
    transition: filter 0.3s ease;
}
.logo:hover .logo-img {
    filter: drop-shadow(0 0 12px rgba(0, 255, 65, 0.6));
}
.logo-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    font-weight: 400;
    background: linear-gradient(135deg, #00ff41 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-shadow: var(--glow-green);
}
/* Desktop Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-list a {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.25s ease;
    position: relative;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: transform 0.25s ease;
}
.nav-list a:hover, .nav-list a.active {
    color: var(--accent-green);
}
.nav-list a:hover::after, .nav-list a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* 桌面端导航下拉菜单 */
.nav-item-dropdown {
    position: relative;
}

.nav-has-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-arrow {
    transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 320px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--glow-green);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
    padding-top: 12px;
}

.nav-item-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-submenu-inner {
    padding: 12px;
}

.nav-submenu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-submenu-item:hover {
    background: var(--bg-body);
}

.nav-submenu-item:hover .nav-submenu-title {
    color: var(--accent-green);
}

.nav-submenu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-submenu-icon svg {
    color: white;
}

.nav-submenu-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-submenu-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s;
}

.nav-submenu-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* 手机端知识库分组 */
.nav-dropdown-group {
    border-radius: 10px;
    overflow: hidden;
}

.nav-dropdown-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-dropdown-group-title:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-green);
}

.nav-dropdown-group-title span {
    flex: 1;
}

.nav-dropdown-arrow {
    transition: transform 0.25s ease;
}

.nav-dropdown-group.active .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 44px;
}

.nav-dropdown-group.active .nav-dropdown-submenu {
    max-height: 300px;
}

.nav-dropdown-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-dropdown-sublink:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-green);
}

.sublink-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 10px;
    color: var(--text-tertiary);
    transition: all 0.25s ease;
}
.header-search:focus-within {
    background: var(--bg-card);
    border-color: var(--accent-green);
    box-shadow: var(--glow-green);
}
.header-search svg {
    transition: color 0.2s;
}
.header-search:focus-within svg {
    color: var(--accent-green);
}
.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
    width: 140px;
    transition: width 0.25s ease;
}
.header-search:focus-within .search-input {
    width: 180px;
}
.search-input::placeholder {
    color: var(--text-tertiary);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 图标按钮样式 */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-secondary);
}
.btn-icon:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.05);
}
.btn-icon svg {
    flex-shrink: 0;
}
/* Nav Toggle Button - 默认隐藏，只在手机端显示 */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    flex-shrink: 0;
}
.nav-toggle:hover {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.05);
}
.nav-toggle.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
}
.nav-toggle.active .nav-toggle-icon,
.nav-toggle.active .nav-toggle-icon::before,
.nav-toggle.active .nav-toggle-icon::after {
    background: #fff;
}
.nav-toggle-icon {
    width: 16px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: relative;
    transition: all 0.25s ease;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.25s ease;
}
.nav-toggle-icon::before {
    top: -5px;
}
.nav-toggle-icon::after {
    bottom: -5px;
}
.nav-toggle.active .nav-toggle-icon {
    background: transparent;
}
.nav-toggle.active .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle.active .nav-toggle-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}
/* Nav Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 400px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-green);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 12px;
}
.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-inner {
    padding: 20px;
}
.nav-dropdown-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}
.nav-dropdown-search:focus-within {
    border-color: var(--accent-green);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
}
.nav-dropdown-search svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: color 0.2s;
}
.nav-dropdown-search:focus-within svg {
    color: var(--accent-green);
}
.nav-dropdown-search .search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
}
.nav-dropdown-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.nav-dropdown-link:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-green);
}
.nav-dropdown-link.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}
.nav-dropdown-link svg {
    flex-shrink: 0;
}
.nav-dropdown-link:hover svg,
.nav-dropdown-link.active svg {
    stroke: var(--accent-green);
}

.btn {
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.btn-primary {
    background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    color: #000;
    box-shadow: var(--glow-green);
    position: relative;
    overflow: hidden;
    font-weight: 700;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    color: #000;
}

/* Main Content */
.main {
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 68px 0px 48px;
}
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}
.main-content {
    min-width: 0;
}
/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 88px;
    height: fit-content;
    align-self: flex-start;
}
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.1);
    border-radius: 12px;
    padding: 20px;
}
.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title-icon {
    color: var(--accent-green);
}
.sidebar-list {
    list-style: none;
}
.sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-list li:first-child {
    padding-top: 0;
}
.sidebar-list a {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    transition: color 0.2s;
}
.sidebar-list a:hover {
    color: var(--accent-green);
}
.sidebar-list .sidebar-item-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
}
.sidebar-vuln {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.sidebar-vuln-level {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}
.sidebar-vuln-level.critical {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.sidebar-vuln-level.high {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}
.sidebar-vuln-level.medium {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}
.sidebar-vuln-info {
    flex: 1;
    min-width: 0;
}
.sidebar-vuln-info a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 侧边栏标签 */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sidebar-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.sidebar-tag:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* 侧边栏分类列表 */
.sidebar-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-category-list .category-name {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.sidebar-category-list .category-count {
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--bg-body);
    padding: 2px 8px;
    border-radius: 10px;
}
.sidebar-category-list a:hover .category-name {
    color: var(--accent-green);
}
.sidebar-category-list a:hover .category-count {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .hero {
        padding-top: 16px; /* 移动端减小间距 */
    }
}
@media (max-width: 640px) {
    .sidebar {
        grid-template-columns: 1fr;
    }
}

/* Hero Section */
.hero {
    margin-bottom: 40px;
    padding-top: 32px; /* 与侧边栏 gap 保持一致 */
}
.hero-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    text-align: right;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-green);
    width: fit-content;
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.25); }
}
.hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}
.hero-desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-meta-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green);
}
.hero-meta-label {
    font-size: 11px;
    color: var(--text-tertiary);
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.hero-btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
    font-weight: 700;
}
.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    color: #000;
}
.hero-btn-secondary {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: var(--accent-green);
}
.hero-btn-secondary:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: var(--glow-green);
}
/* Hero Banner Image */
.hero-banner {
    width: 100%;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    box-shadow: var(--glow-green);
}
.hero-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}
.hero-banner-title {
    font-size: 32px;
    font-weight: 700;
    color: #00ff41;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    font-family: 'Press Start 2P', 'Consolas', monospace;
}
.hero-banner-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.hero-banner-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: #10b981;
    backdrop-filter: blur(4px);
}
.hero-banner-feature-dot {
    width: 5px;
    height: 5px;
    background: #10b981;
    border-radius: 50%;
}
/* Wiki Features */
.wiki-features {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.03);
}
.wiki-features-header {
    margin-bottom: 20px;
}
.wiki-features-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.wiki-features-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}
.wiki-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.wiki-feature-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}
.wiki-feature-item:hover {
    background: rgba(0, 255, 65, 0.08);
    border-color: rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--glow-green);
}
.wiki-feature-item:hover .wiki-feature-content h3 {
    color: var(--accent-green);
}
.wiki-feature-item:hover svg {
    stroke: #059669;
}
.wiki-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}
.wiki-feature-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.wiki-feature-content p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}
@media (max-width: 1024px) {
    .wiki-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .wiki-features-grid {
        grid-template-columns: 1fr;
    }
}
/* 主页社区数据紧凑样式 */
#community-stats-placeholder .hero-card {
    margin: 0 !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    margin-bottom: 0 !important;
}

#community-stats-placeholder .hero-card-header {
    margin-bottom: 12px !important;
}

#community-stats-placeholder .hero-card-intro {
    gap: 12px !important;
    margin-bottom: 12px !important;
}

#community-stats-placeholder .hero-card-icon {
    width: 48px !important;
    height: 48px !important;
}

#community-stats-placeholder .hero-card-text {
    font-size: 13px !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

#community-stats-placeholder .hero-card-columns {
    gap: 16px !important;
}

#community-stats-placeholder .hero-kpi-grid {
    gap: 10px !important;
}

#community-stats-placeholder .hero-kpi {
    padding: 12px !important;
}

#community-stats-placeholder .hero-kpi-label {
    font-size: 11px !important;
    margin-bottom: 4px !important;
}

#community-stats-placeholder .hero-kpi-value {
    font-size: 20px !important;
}

#community-stats-placeholder .hero-kpi-sub {
    font-size: 10px !important;
    margin-top: 2px !important;
}

#community-stats-placeholder .hero-progress {
    margin-bottom: 12px !important;
}

#community-stats-placeholder .hero-card-tags {
    gap: 6px !important;
    margin-bottom: 12px !important;
}

#community-stats-placeholder .hero-card-tag {
    padding: 4px 10px !important;
    font-size: 11px !important;
}

#community-stats-placeholder .code-scroll-wrap {
    height: 120px !important;
    margin-bottom: 12px !important;
}

#community-stats-placeholder .hero-card-footer {
    padding-top: 12px !important;
    margin-top: 0 !important;
}

#community-stats-placeholder .hero-card-note {
    font-size: 12px !important;
}

#community-stats-placeholder .hero-card-btn {
    padding: 8px 16px !important;
    font-size: 12px !important;
}

/* 响应式 - 主页社区数据紧凑 */
@media (max-width: 768px) {
    #community-stats-placeholder .hero-card {
        border-radius: 12px !important;
        padding: 14px 16px !important;
    }
    
    #community-stats-placeholder .hero-card-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    #community-stats-placeholder .hero-card-text {
        font-size: 12px !important;
    }
    
    #community-stats-placeholder .hero-kpi {
        padding: 10px !important;
    }
    
    #community-stats-placeholder .hero-kpi-value {
        font-size: 18px !important;
    }
    
    #community-stats-placeholder .code-scroll-wrap {
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    #community-stats-placeholder .hero-card {
        border-radius: 10px !important;
        padding: 12px !important;
    }
    
    #community-stats-placeholder .hero-card-intro {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    #community-stats-placeholder .hero-card-icon {
        display: none !important;
    }
    
    #community-stats-placeholder .hero-kpi-grid {
        grid-template-columns: 1fr !important;
    }
    
    #community-stats-placeholder .hero-card-columns {
        flex-direction: column !important;
    }
    
    #community-stats-placeholder .code-scroll-wrap {
        height: 80px !important;
    }
}

/* Hero Card */
.hero-card {
    width: 100%;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px 24px;
    color: var(--text-primary);
    border: 1px solid rgba(0, 255, 65, 0.15);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 50%; bottom: 50%;
    background: radial-gradient(circle at 0% 0%, rgba(0,255,65,0.08), transparent 60%);
    pointer-events: none;
}
.hero-card::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%; right: 0; bottom: 0;
    background: radial-gradient(circle at 100% 100%, rgba(0,212,255,0.06), transparent 60%);
    pointer-events: none;
}
.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.hero-card-title {
    font-size: 15px;
    font-weight: 600;
}
.hero-card-chip {
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 600;
}
.hero-card-body {
    position: relative;
    z-index: 1;
}
.hero-card-intro {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.hero-card-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}
.hero-card-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.hero-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.hero-card-tag {
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    font-size: 11px;
    color: var(--text-secondary);
}
.hero-kpi-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hero-card-columns {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
    margin-top: 16px;
}
.hero-card-left {
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
}
.hero-card-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-progress-value {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(90deg, #00ff41, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-green);
}
.hero-kpi {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
}
.hero-kpi-users {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero-kpi-avatars {
    text-align: right;
}
.hero-kpi-avatars-label {
    font-size: 9px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}
.hero-kpi-avatars-list {
    display: flex;
    gap: 0;
}
.kpi-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    border: 2px solid var(--bg-card);
    margin-left: -8px;
    object-fit: cover;
}
.kpi-avatar:first-child {
    margin-left: 0;
}
.kpi-avatar-more {
    background: var(--border-color);
    color: var(--text-tertiary);
    width: 24px;
    height: 24px;
}
.hero-kpi-articles {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero-kpi-articles-wrap {
    text-align: right;
    max-width: 120px;
}
.hero-kpi-articles-label {
    font-size: 9px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}
.hero-kpi-articles-scroll {
    height: 18px;
    overflow: hidden;
}
.hero-kpi-articles-list {
    animation: article-scroll 6s ease-in-out infinite;
}
.kpi-article-item {
    display: block;
    font-size: 10px;
    color: #00ff41;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}
@keyframes article-scroll {
    0%, 25% { transform: translateY(0); }
    33%, 58% { transform: translateY(-18px); }
    66%, 91% { transform: translateY(-36px); }
    100% { transform: translateY(-54px); }
}
.hero-kpi-label {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}
.hero-kpi-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}
.hero-kpi-sub {
    font-size: 9px;
    color: var(--text-tertiary);
    margin-top: 2px;
}
.hero-progress {
    margin-bottom: 0;
}
.hero-progress-bar {
    height: 8px;
    border-radius: 50px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.hero-progress-fill {
    height: 100%;
    width: 72%;
    border-radius: 50px;
    background: linear-gradient(90deg, #00ff41, #00d4ff, #a855f7);
    animation: progress-anim 2s ease-out forwards;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}
@keyframes progress-anim {
    0% { width: 0; }
    100% { width: 72%; }
}
.hero-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-tertiary);
}
.hero-card-note {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.hero-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.hero-card-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    background: linear-gradient(135deg, #00ff41, #00d4ff);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}
.hero-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    color: #000;
}
/* Code Scroll */
.code-scroll-wrap {
    height: 9%;
    overflow: hidden;
    position: relative;
    margin-top: 8px;
    background: #0a0a0a;
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
}
.code-scroll-wrap::before,
.code-scroll-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 1;
    pointer-events: none;
}
.code-scroll-wrap::before {
    top: 0;
    background: linear-gradient(to bottom, #0a0a0a, transparent);
}
.code-scroll-wrap::after {
    bottom: 0;
    background: linear-gradient(to top, #0a0a0a, transparent);
}
.code-scroll {
    animation: code-scroll 20s linear infinite;
}
@keyframes code-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.code-line {
    display: block;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre;
    color: #00ff41;
}
.code-keyword { color: #ff6b6b; }
.code-func { color: #00d4ff; }
.code-string { color: #ffd93d; }
.code-number { color: #ff9f43; }
.code-comment { color: #666666; font-style: italic; }
.code-module { color: #a855f7; }


/* Section */
.section {
    margin-bottom: 64px;
}
.section-header {
    text-align: left;
    margin-bottom: 40px;
}
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}
.section-desc {
    font-size: 15px;
    color: var(--text-secondary);
}


/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    cursor: pointer;
}
.blog-card:hover {
    border-color: rgba(0, 255, 65, 0.4);
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}
.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-green);
    margin-bottom: 12px;
}
.blog-tag-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}
.blog-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.2s;
}
.blog-title:hover {
    color: var(--accent-green);
}
.blog-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.blog-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.15);
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.pagination .current {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
    box-shadow: var(--glow-green);
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(0, 255, 65, 0.15);
    margin-top: auto;
}
.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 40px;
}
.footer-brand {
    max-width: 280px;
}
.footer-brand .logo {
    margin-bottom: 16px;
}
.footer-brand .logo-img {
    height: 42px;
}
.footer-brand-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 底部搜索引擎链接 */
.footer-search-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.footer-search-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.footer-search-links a:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.footer-search-links a svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-search-links a:hover svg {
    opacity: 1;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}
.footer-links a:hover {
    color: var(--accent-green);
}
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}
.footer-bottom-links {
    display: flex;
    gap: 24px;
}
.footer-bottom-links a {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-top { grid-template-columns: 1fr; }
    .hero-right { order: -1; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    /* 手机端显示展开按钮，隐藏桌面导航 */
    .nav-toggle {
        display: flex;
    }
    .nav-list,
    .header-search,
    .desktop-only {
        display: none !important;
    }
    /* 手机端按钮统一尺寸 */
    .header-actions {
        gap: 8px;
    }
    .header-actions .btn {
        padding: 0 14px;
        height: 36px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header-actions .btn-icon {
        width: 36px;
        height: 36px;
    }
    .header-actions .btn-icon svg {
        width: 16px;
        height: 16px;
    }
    .nav-toggle {
        width: 36px;
        height: 36px;
    }
    .hero-title { font-size: 28px; }
    .hero-card-columns { grid-template-columns: 1fr; }
    .hero-card-left { padding-right: 0; border-right: none; border-bottom: 1px solid rgba(148,163,184,0.2); padding-bottom: 20px; }
    /* 修复KPI板块在手机端超出框架 */
    .hero-kpi-grid { flex-direction: column; gap: 10px; }
    .hero-kpi { width: 100%; }
    .hero-kpi-users,
    .hero-kpi-articles {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .hero-kpi-avatars,
    .hero-kpi-articles-wrap {
        text-align: left;
        max-width: 100%;
    }
    .hero-kpi-avatars-list {
        justify-content: flex-start;
    }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .footer-brand { grid-column: span 2; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 24px; }
    .hero-actions { flex-direction: column; }
    .stats { grid-template-columns: 1fr; }
}

/* 分类页面和标签页面样式 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}
.page-header {
    text-align: center;
    margin-bottom: 48px;
}
.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}
.page-title svg {
    color: var(--accent-green);
}
.page-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

/* 分类卡片网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.category-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.category-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}
.category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 12px;
    flex-shrink: 0;
}
.category-icon svg {
    color: var(--accent-green);
}
.category-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.category-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}
.category-info .category-count {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 500;
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}
.tag-cloud-item:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.tag-cloud-item .tag-count {
    font-size: 11px;
    background: var(--bg-body);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-tertiary);
}
.tag-cloud-item:hover .tag-count {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

/* 标签大小 */
.tag-size-xl { font-size: 18px; font-weight: 600; }
.tag-size-lg { font-size: 16px; font-weight: 500; }
.tag-size-md { font-size: 14px; }
.tag-size-sm { font-size: 13px; }
.tag-size-xs { font-size: 12px; }

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .page-title {
        font-size: 24px;
    }
}

/* ==================== 文章详情页样式（完整版） ==================== */
.article-page-wrapper {
    width: 100%;
    background: var(--bg-body);
}

.article-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr; /* 单列布局 */
    gap: 32px;
    margin-top: 2.75rem;
    padding: 0px;
}

.article-container {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.05);
}

.article-header {
    padding: 36px 40px 28px;
    background: linear-gradient(180deg, rgba(0, 255, 65, 0.08) 0%, rgba(0, 255, 65, 0.02) 100%);
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 18px;
    text-shadow: var(--glow-green);
}

.article-tag-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.18);
}

.article-title {
    font-size: 34px;
    font-weight: 800;
    color: #00ff41;
    line-height: 1.3;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.02);
}

.article-meta-item svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.article-overview {
    padding: 36px 40px;
    background: var(--bg-body);
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
    gap: 28px;
    align-items: start;
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.overview-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 20px 22px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 65, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.02);
}

.overview-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.overview-meta-item {
    padding: 14px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.9) 0%, rgba(17, 17, 17, 0.95) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 65, 0.15);
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0, 255, 65, 0.03);
}

.overview-meta-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.overview-meta-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-green);
}

.overview-excerpt {
    padding: 22px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 65, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.02);
}

.overview-excerpt h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-excerpt h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent-green);
    border-radius: 2px;
}

.overview-excerpt-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.community-stats-wrapper {
    position: sticky;
    top: 88px;
}

.article-body {
    padding: 44px 40px 48px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, var(--bg-card) 30%);
}

/* 文章公告横幅 */
.article-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    margin: 0;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.08) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    flex-wrap: wrap;
}

.banner-icon {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #00ff41;
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.banner-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.banner-text strong {
    color: var(--accent-green);
    font-weight: 600;
}

.banner-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    background: linear-gradient(135deg, #00ff41 0%, #00d4ff 100%);
    color: #000 !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: var(--glow-green);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.6);
    color: #000 !important;
}

@media (max-width: 768px) {
    .article-banner {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .banner-emoji {
        font-size: 20px;
    }
    
    .banner-text {
        font-size: 13px;
        flex-basis: calc(100% - 40px);
    }
    
    .banner-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-content h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 42px 0 22px;
    line-height: 1.35;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 42px 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(0, 255, 65, 0.2);
    color: #00ff41;
    position: relative;
}

.article-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 64px;
    height: 2px;
    background: var(--accent-green);
    box-shadow: var(--glow-green);
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 18px;
    color: #00d4ff;
    padding-left: 14px;
    border-left: 4px solid var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 14px;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.article-content li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

.article-content ol {
    counter-reset: item;
}

.article-content ol li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content code {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.article-content pre {
    background: #0a0a0a;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    overflow-x: auto;
    box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.05);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #00ff41;
    font-size: 14px;
    line-height: 1.7;
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-cyan);
    padding: 20px 24px;
    margin: 28px 0;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
    margin: 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-content a {
    color: var(--accent-green);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-green);
    transition: all 0.2s;
}

.article-content a:hover {
    border-bottom-style: solid;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-content th,
.article-content td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-content th {
    background: var(--bg-body);
    font-weight: 600;
    color: var(--text-primary);
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.article-footer {
    padding: 32px 48px 40px;
    background: rgba(10, 10, 10, 0.5);
    border-top: 1px solid rgba(0, 255, 65, 0.15);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.article-tags-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 8px;
}

.article-tags a {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s;
}

.article-tags a:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: var(--glow-green);
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.article-nav-item {
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s;
}

.article-nav-item:hover {
    border-color: var(--accent-green);
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}

.article-nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.article-nav-item.prev { text-align: left; }
.article-nav-item.next { text-align: right; }

.article-nav-label {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 500;
    margin-bottom: 8px;
}

.article-nav-title {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

/* 平板适配 */
@media (max-width: 1200px) {
    .article-overview {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .community-stats-wrapper { position: static; }
}

/* 手机端适配 */
@media (max-width: 768px) {
    .article-main { padding: 0; }
    .article-layout { margin-top: 0; gap: 0; }
    .article-container { border-radius: 0; border-left: none; border-right: none; box-shadow: none; }
    .article-header { padding: 24px 20px 20px; }
    .article-tag { padding: 6px 12px; font-size: 12px; margin-bottom: 14px; border-radius: 18px; }
    .article-tag-dot { width: 6px; height: 6px; }
    .article-title { font-size: 22px; line-height: 1.4; margin-bottom: 16px; }
    .article-meta { gap: 8px; font-size: 13px; }
    .article-meta-item { padding: 6px 10px; border-radius: 8px; gap: 6px; }
    .article-meta-item svg { width: 14px; height: 14px; }
    .article-overview { padding: 20px 16px; gap: 16px; }
    .overview-content { gap: 14px; }
    .overview-description { font-size: 14px; line-height: 1.75; padding: 16px; border-radius: 12px; }
    .overview-meta { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .overview-meta-item { padding: 12px 8px; border-radius: 10px; }
    .overview-meta-label { font-size: 10px; margin-bottom: 4px; }
    .overview-meta-value { font-size: 15px; font-weight: 700; }
    .overview-excerpt { padding: 16px; border-radius: 12px; }
    .overview-excerpt h3 { font-size: 14px; margin-bottom: 10px; }
    .overview-excerpt h3::before { width: 3px; height: 14px; }
    .overview-excerpt-text { font-size: 13px; line-height: 1.7; }
    .community-stats-wrapper { display: none; }
    .article-body { padding: 24px 16px 32px; background: var(--bg-white); }
    .article-content { font-size: 15px; line-height: 1.85; }
    .article-content h1 { font-size: 22px; margin: 32px 0 16px; }
    .article-content h2 { font-size: 19px; margin: 28px 0 16px; padding-bottom: 12px; }
    .article-content h2::before { width: 48px; }
    .article-content h3 { font-size: 17px; margin: 24px 0 14px; padding-left: 12px; border-left-width: 3px; }
    .article-content h4 { font-size: 16px; margin: 20px 0 12px; }
    .article-content p { margin-bottom: 16px; }
    .article-content ul, .article-content ol { margin: 16px 0; }
    .article-content li { margin-bottom: 10px; padding-left: 24px; font-size: 14px; }
    .article-content ul li::before { left: 8px; top: 9px; width: 5px; height: 5px; }
    .article-content ol li::before { width: 20px; height: 20px; font-size: 11px; }
    .article-content code { padding: 2px 6px; font-size: 13px; }
    .article-content pre { margin: 20px -16px; border-radius: 0; padding: 16px; width: calc(100% + 32px); }
    .article-content pre code { font-size: 12px; line-height: 1.6; }
    .article-content blockquote { padding: 16px 18px; margin: 20px 0; border-radius: 0 10px 10px 0; border-left-width: 3px; }
    .article-content img { margin: 24px -16px; border-radius: 0; width: calc(100% + 32px); max-width: calc(100% + 32px); }
    .article-content table { display: block; overflow-x: auto; margin: 20px -16px; width: calc(100% + 32px); }
    .article-content th, .article-content td { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
    .article-content hr { margin: 28px 0; }
    .article-footer { padding: 20px 16px 24px; }
    .article-tags { margin-bottom: 20px; gap: 8px; }
    .article-tags-title { font-size: 13px; margin-right: 4px; }
    .article-tags a { padding: 6px 12px; font-size: 12px; border-radius: 16px; }
    .article-nav { grid-template-columns: 1fr; gap: 12px; }
    .article-nav-item { padding: 16px 18px; border-radius: 10px; }
    .article-nav-item.prev, .article-nav-item.next { text-align: left; }
    .article-nav-label { font-size: 11px; margin-bottom: 6px; }
    .article-nav-title { font-size: 13px; line-height: 1.4; }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .article-header { padding: 20px 16px 18px; }
    .article-title { font-size: 20px; line-height: 1.35; }
    .article-meta { gap: 6px; }
    .article-meta-item { padding: 5px 8px; font-size: 12px; }
    .article-overview { padding: 16px 14px; }
    .overview-description { font-size: 13px; padding: 14px; }
    .overview-meta { gap: 6px; }
    .overview-meta-item { padding: 10px 6px; }
    .overview-meta-value { font-size: 14px; }
    .overview-excerpt { padding: 14px; }
    .article-body { padding: 20px 14px 28px; }
    .article-content { font-size: 14px; }
    .article-content h2 { font-size: 18px; }
    .article-content h3 { font-size: 16px; }
    .article-content pre { margin: 18px -14px; width: calc(100% + 28px); }
    .article-content pre code { font-size: 11px; }
    .article-content img { margin: 20px -14px; width: calc(100% + 28px); max-width: calc(100% + 28px); }
    .article-content table { margin: 20px -14px; width: calc(100% + 28px); }
    .article-footer { padding: 18px 14px 22px; }
    .article-tags a { padding: 5px 10px; font-size: 11px; }
    .article-nav-item { padding: 14px 16px; }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .article-title { font-size: 18px; }
    .overview-meta-label { font-size: 9px; }
    .overview-meta-value { font-size: 13px; }
    .article-content { font-size: 13.5px; }
    .article-content pre code { font-size: 10px; }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .article-header { padding: 20px 24px 18px; }
    .article-title { font-size: 20px; }
    .article-overview { padding: 18px 20px; }
    .article-body { padding: 24px 20px; }
    .article-content pre { margin: 20px -20px; width: calc(100% + 40px); }
    .article-content img { margin: 24px 0; width: 100%; max-width: 100%; border-radius: 10px; }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .article-tags a { min-height: 36px; display: inline-flex; align-items: center; }
    .article-nav-item { min-height: 60px; }
}

/* 深色模式下的移动端优化 */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .article-content pre { background: #0a0a0a; }
}

/* 黑客终端效果 - 光标闪烁 */
@keyframes terminal-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 扫描线效果 */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 2px,
        rgba(0, 255, 65, 0.03) 4px
    );
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}
