/* assets/css/index.css */

:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-card-hover: #2a2a2a;
    --text-main: #e0e0e0;
    --text-sub: #a0a0a0;
    --accent-blue: #64b5f6;
    --accent-gradient: linear-gradient(135deg, #64b5f6, #ba68c8);
    --border-color: #333333;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-media {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
    opacity: 0.9;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.header-link-wrapper {
    display: inline-block;
    cursor: pointer;
}

.section-title-main {
    font-size: 2.4rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Standard property */
    margin-bottom: 12px;
}

.section-title-sub {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-sub);
    font-size: 1rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.art-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
}

.art-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-excerpt {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.art-link {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.art-link:hover {
    gap: 8px;
}

/* Showcase Grid (3D) */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.showcase-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.showcase-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.showcase-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.showcase-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.showcase-sub {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-top: 5px;
}

.canvas-wrapper {
    width: 100%;
    height: 350px;
    /* 背景色将由内联样式或 JS 动态控制，这里设默认值以防万一 */
    background: #0f0f0f; 
    position: relative;
    cursor: grab;
    overflow: hidden;
}

.canvas-wrapper:active {
    cursor: grabbing;
}

.loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: bold;
    background: rgba(0,0,0,0.8);
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid var(--accent-blue);
    pointer-events: none;
    z-index: 5;
}

.showcase-footer {
    padding: 15px 25px;
    background: rgba(0,0,0,0.2);
    text-align: center;
}

.btn-small {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-small:hover {
    background: var(--accent-blue);
    color: #fff;
}

.texture-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #ffd700;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    border-top: 1px solid #222;
    margin-top: 50px;
}

.admin-link {
    color: #444;
    margin-top: 10px;
    display: inline-block;
}

.admin-link:hover {
    color: var(--accent-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }

    .main-container {
        padding: 40px 20px;
        gap: 50px;
    }

    .section-title-main {
        font-size: 1.8rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .canvas-wrapper {
        height: 280px;
    }
}