/* =========================================
   1. 全局变量与重置 (Variables & Reset)
   ========================================= */
:root {
    /* 核心配色：荧光绿(Volt) + 深黑 + 纯白 */
    --primary-color: #ccff00; 
    --primary-hover: #b3e600;
    
    --dark-bg: #111111;      /* 页脚、数据栏背景 */
    --dark-surface: #1a1a1a; /* 深色卡片背景 */
    
    --light-bg: #f8f9fa;     /* 网页主背景 */
    --white: #ffffff;
    
    --text-main: #1a1a1a;
    --text-gray: #666666;
    --text-light-gray: #999999;
    
    /* 布局与尺寸 */
    --container-width: 1200px;
    --nav-height: 70px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* 动画 */
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* 让字体更清晰 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. 通用组件 (Utilities)
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* 按钮样式组 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

/* 主按钮：荧光绿背景 */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.3);
}

/* 黑色按钮 */
.btn-black {
    background-color: var(--dark-bg);
    color: var(--primary-color);
}
.btn-black:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* 描边按钮 (用于图片背景上) */
.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
    margin-left: 10px;
}
.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* 章节通用样式 */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    font-style: italic; /* 运动感 */
}
/* 标题下的荧光绿短线 */
.section-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background-color: var(--primary-color);
    bottom: 2px;
    left: 0;
    z-index: -1;
    opacity: 0.6;
}

/* =========================================
   3. 导航栏 (Navbar)
   ========================================= */
.navbar {
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    color: var(--dark-bg);
    letter-spacing: -1px;
}
.logo span {
    color: var(--primary-color);
    /* 给浅色数字加一点深色描边，增加对比度 */
    text-shadow: 1px 1px 0px #000; 
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
}

.nav-links a.active,
.nav-links a:hover {
    color: #000;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
}
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* =========================================
   4. Hero 主视觉区域
   ========================================= */
.hero {
    height: 650px; /* 稍微调高一点 */
    background-color: var(--dark-bg);
    background-image: url('https://images.unsplash.com/photo-1552674605-469523170d98?auto=format&fit=crop&q=80&w=1600'), linear-gradient(135deg, rgba(204, 255, 0, 0.18), rgba(17, 17, 17, 0.92));
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

/* 黑色渐变遮罩，保证文字清晰 */
.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    width: 100%;
}

.tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    font-style: italic;
}
.hero h1 .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 20px;
    font-weight: 300;
    max-width: 550px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   5. 个人数据仪表盘 (Stats Bar)
   ========================================= */
.banner-cta {
    background-color: var(--dark-bg);
    padding: 40px 0;
    border-bottom: 4px solid var(--primary-color);
    /* 确保它在视觉上连接 Hero */
}

.banner-cta .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-box {
    text-align: center;
}

.stat-box h2 {
    color: var(--white);
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 5px;
}
.stat-box h2 small {
    font-size: 16px;
    color: var(--primary-color);
    font-style: normal;
    margin-left: 5px;
    font-weight: 600;
}

.stat-box p {
    color: var(--text-light-gray);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background-color: #333;
}

.cta-text {
    text-align: right;
}
.cta-text h3 {
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.cta-text p {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    font-family: monospace; /* 用等宽字体显示目标时间，更有电子感 */
}

/* =========================================
   6. 内容分类 Grid (Categories)
   ========================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    height: 260px;
    border-radius: var(--radius-md);
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
}
/* 卡片遮罩 */
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    transition: var(--transition);
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 100%);
}
.category-card:hover .cat-content {
    transform: translateY(-5px);
}

.cat-content {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    color: var(--white);
    transition: var(--transition);
}
.cat-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    /* 标题下的荧光下划线 */
    border-bottom: 2px solid var(--primary-color); 
    display: inline-block;
    padding-bottom: 4px;
}
.cat-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
}

/* =========================================
   7. 最新文章列表 (Latest Posts)
   ========================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.more-link {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.more-link:hover {
    color: #000;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
}

.grid-card-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-md); /* 稍微圆一点，但不要太圆 */
    overflow: hidden;
    /* 极其轻微的阴影，保持干净 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-color); /* 悬停时边框变色 */
}

.post-img {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.post-card:hover .post-img img {
    transform: scale(1.05);
}

/* 分类标签 */
.badge {
    position: absolute;
    top: 15px;
    left: 15px; /* 改到左边，符合阅读习惯 */
    background-color: var(--dark-bg);
    color: var(--primary-color);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.post-body {
    padding: 25px;
    flex: 1; /* 保证卡片高度一致 */
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light-gray);
    margin-bottom: 15px;
    font-weight: 500;
}
.post-meta i {
    margin-right: 4px;
    color: var(--primary-hover); /* 图标带点颜色 */
}

.post-body h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-main);
}

.post-body p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    /* 限制显示3行 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   8. 个人化页脚 (Personal Footer)
   ========================================= */
.footer {
    background-color: #0d0d0d; /* 比纯黑稍微浅一点 */
    color: var(--text-gray);
    padding-top: 60px;
    margin-top: 60px;
}

.footer-simple-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid #222;
}

.footer-left {
    max-width: 400px;
}

.footer-left .logo {
    color: var(--white);
    margin-bottom: 15px;
    display: block;
}

.bio {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #888;
}

.footer-social {
    display: flex;
    gap: 20px;
}
.footer-social a {
    font-size: 20px;
    color: #fff;
    background: #222;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-social a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.footer-right {
    /* 预留：右侧可扩展订阅/链接区域 */
    color: #888;
    text-align: right;
}

.footer-bottom {
    padding-top: 24px;
    padding-bottom: 40px; /* 底部留白 */
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
}

.footer-bottom a {
    color: #aaa;
    text-decoration: underline;
    text-decoration-color: rgba(204, 255, 0, 0.5);
    text-underline-offset: 3px;
}

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