/* ========================================
   长河编程 - 全局样式表
   数码复古风格：深黑 + 银灰 + 浅棕
   ======================================== */

:root {
    --color-bg-dark: #0a0a0a;
    --color-bg-card: #121212;
    --color-silver: #c0c0c0;
    --color-silver-light: #d8d8d8;
    --color-brown: #a0826d;
    --color-brown-light: #b8957a;
    --color-text-main: #e0e0e0;
    --color-text-muted: #888888;
    --color-accent: #a0826d;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(160, 130, 109, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ========================================
   顶部导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-brown-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--color-silver);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-silver);
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-brown);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-brown-light);
    border-color: rgba(160, 130, 109, 0.3);
}

.nav-link:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-silver);
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   瀑布流卡片布局
   ======================================== */
.waterfall-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border: 1px solid rgba(192, 192, 192, 0.05);
    position: relative;
    cursor: pointer;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(160, 130, 109, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(160, 130, 109, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(192, 192, 192, 0.05);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    color: var(--color-silver-light);
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-brown);
}

.card-date {
    color: var(--color-text-muted);
}

/* ========================================
   Banner 区域
   ======================================== */
.banner {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(160, 130, 109, 0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.banner-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.banner-title {
    font-size: 4rem;
    color: var(--color-brown-light);
    margin-bottom: 1rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out;
}

.banner-subtitle {
    font-size: 1.2rem;
    color: var(--color-silver);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.banner-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid var(--color-brown);
    color: var(--color-brown-light);
    font-size: 1rem;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.banner-btn:hover {
    background: var(--color-brown);
    color: var(--color-bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(160, 130, 109, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   section 通用样式
   ======================================== */
.section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: var(--color-brown-light);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-brown);
    margin: 1rem auto 0;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--color-bg-card);
    border-top: 1px solid rgba(192, 192, 192, 0.1);
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--color-brown-light);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--color-brown-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(192, 192, 192, 0.05);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-bg-dark);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition-smooth);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .banner-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .waterfall-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }
}

/* ========================================
   滚动渐入动画
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   页面容器
   ======================================== */
.page-container {
    padding-top: 70px;
    min-height: 100vh;
}

.page-header {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1a1a 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

.page-title {
    font-size: 2.5rem;
    color: var(--color-brown-light);
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    letter-spacing: 2px;
}

/* ========================================
   文章详情页面
   ======================================== */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

.article-main-title {
    font-size: 2rem;
    color: var(--color-silver-light);
    margin-bottom: 1rem;
}

.article-info {
    display: flex;
    gap: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

.article-body img {
    max-width: 100%;
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(192, 192, 192, 0.1);
}

/* ========================================
   资讯分类标签
   ======================================== */
.news-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(160, 130, 109, 0.1);
    border: 1px solid rgba(160, 130, 109, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--color-brown-light);
    margin-right: 0.5rem;
}

/* ========================================
   快速入口板块
   ======================================== */
.quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.access-card {
    background: var(--color-bg-card);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid rgba(192, 192, 192, 0.05);
    transition: var(--transition-smooth);
}

.access-card:hover {
    border-color: var(--color-brown);
    transform: translateY(-5px);
}

.access-icon {
    font-size: 2.5rem;
    color: var(--color-brown-light);
    margin-bottom: 1rem;
}

.access-title {
    color: var(--color-silver);
    font-size: 1rem;
    letter-spacing: 1px;
}
