/* ========================================
   Futurism Holographic Theme Template
   未来主义全息科技主题模板
   ======================================== */

/* CSS Variables - Futurism Theme */
:root {
    --bg-deep: #050508;
    --bg-panel: rgba(10, 15, 30, 0.8);
    --hologram-cyan: #00f0ff;
    --hologram-pink: #ff00a0;
    --hologram-purple: #b829dd;
    --hologram-blue: #0066ff;
    --grid-line: rgba(0, 240, 255, 0.1);
    --text-primary: #e0f7ff;
    --text-secondary: #8a9bb8;
    --text-muted: #4a5568;
    --glass-border: rgba(0, 240, 255, 0.3);
    --radius: 12px;
    --max-width: 1400px;
    --sidebar-width: 320px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-deep);
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(184, 41, 221, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

a {
    color: var(--hologram-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--hologram-pink);
    text-shadow: 0 0 20px var(--hologram-pink);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* Layout */
#divAll {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

#divMiddle {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    #divMiddle {
        grid-template-columns: 1fr;
    }
}

/* Header - Futurism Style */
#divTop {
    padding: 60px 40px;
    margin: 30px 0 40px;
    text-align: center;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 40px rgba(0, 240, 255, 0.1),
        inset 0 0 60px rgba(0, 102, 255, 0.05);
}

#divTop::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hologram-cyan), transparent);
    box-shadow: 0 0 20px var(--hologram-cyan);
}

#divTop::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 30%;
    right: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hologram-pink), transparent);
    box-shadow: 0 0 20px var(--hologram-pink);
}

#BlogTitle {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--hologram-cyan), var(--hologram-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
    letter-spacing: 5px;
}

#BlogTitle a {
    color: inherit;
    -webkit-text-fill-color: transparent;
}

#BlogSubTitle {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Navigation - Futurism Style */
#divNavBar {
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    position: relative;
}

#divNavBar::before {
    content: '◆ NAVIGATION ◆';
    position: absolute;
    top: -10px;
    left: 30px;
    background: var(--bg-deep);
    padding: 0 15px;
    font-size: 0.7rem;
    color: var(--hologram-cyan);
    letter-spacing: 3px;
}

#divNavBar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
}

#divNavBar a {
    display: block;
    padding: 12px 25px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#divNavBar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#divNavBar a:hover::before {
    left: 100%;
}

#divNavBar a:hover {
    color: var(--hologram-cyan);
    border-color: var(--hologram-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

#divNavBar a.nav-home {
    color: var(--hologram-cyan);
    border-color: var(--hologram-cyan);
    background: rgba(0, 240, 255, 0.1);
}

/* Main Content */
#divMain {
    min-width: 0;
}

/* Post Cards - Futurism Style */
.post {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 35px;
    margin-bottom: 30px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    overflow: hidden;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--hologram-cyan), var(--hologram-pink));
}

.post::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), transparent);
    pointer-events: none;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 40px rgba(0, 240, 255, 0.1),
        0 0 60px rgba(0, 102, 255, 0.1);
    border-color: var(--hologram-cyan);
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--hologram-cyan);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.post-date::before {
    content: '◈';
    color: var(--hologram-pink);
}

.post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.4;
}

.post-title a {
    color: inherit;
}

.post-title a:hover {
    color: var(--hologram-cyan);
}

.post-body {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.post-footer {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Single Post */
.post.single {
    padding: 45px;
}

.post.single .post-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

/* Sidebar - Futurism Style */
#divSidebar {
    position: sticky;
    top: 30px;
}

.function {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    position: relative;
}

.function::before {
    content: '◆';
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--bg-deep);
    padding: 0 10px;
    color: var(--hologram-purple);
    font-size: 1.2rem;
}

.function_t {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hologram-purple);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(184, 41, 221, 0.3);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.function_c ul {
    list-style: none;
}

.function li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    position: relative;
    padding-left: 20px;
}

.function li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--hologram-cyan);
}

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

.function a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.function a:hover {
    color: var(--hologram-cyan);
    padding-left: 5px;
}

/* Pagination - Futurism Style */
.pagebar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.pagebar a,
.pagebar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagebar a:hover {
    color: var(--hologram-cyan);
    border-color: var(--hologram-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.now-page a,
.pagebar .current {
    color: var(--hologram-pink);
    border-color: var(--hologram-pink);
    box-shadow: 0 0 20px rgba(255, 0, 160, 0.3);
}

/* Comments - Futurism Style */
#divCommentPost {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 35px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
    position: relative;
}

#divCommentPost::before {
    content: '◆ DATA INPUT ◆';
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--bg-deep);
    padding: 0 15px;
    font-size: 0.7rem;
    color: var(--hologram-cyan);
    letter-spacing: 3px;
}

#txaArticle {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

#txaArticle:focus {
    outline: none;
    border-color: var(--hologram-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.button,
input[type="submit"] {
    padding: 15px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-deep);
    background: linear-gradient(135deg, var(--hologram-cyan), var(--hologram-blue));
    border: none;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.button:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--hologram-pink), var(--hologram-purple));
    box-shadow: 0 6px 30px rgba(255, 0, 160, 0.4);
    transform: translateY(-2px);
}

/* Footer - Futurism Style */
#divBottom {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 60px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
}

#divBottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 40%;
    right: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hologram-cyan), transparent);
    box-shadow: 0 0 20px var(--hologram-cyan);
}

#BlogCopyRight {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

#BlogCopyRight a {
    color: var(--hologram-cyan);
}

#BlogCopyRight a:hover {
    color: var(--hologram-pink);
}

/* Utilities */
.clear {
    clear: both;
}

/* Animations */
@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.post {
    animation: slideUp 0.5s ease forwards;
}

.post:nth-child(1) { animation-delay: 0.05s; }
.post:nth-child(2) { animation-delay: 0.1s; }
.post:nth-child(3) { animation-delay: 0.15s; }
.post:nth-child(4) { animation-delay: 0.2s; }
.post:nth-child(5) { animation-delay: 0.25s; }

/* Scanline Effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.02) 2px,
        rgba(0, 240, 255, 0.02) 4px
    );
    pointer-events: none;
    z-index: 1000;
    animation: scan 8s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    #divAll {
        padding: 0 20px;
    }
    
    #divTop {
        padding: 40px 25px;
    }
    
    #BlogTitle {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    
    .post {
        padding: 25px;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    .post.single {
        padding: 30px;
    }
    
    .post.single .post-title {
        font-size: 1.6rem;
    }
    
    .function {
        padding: 25px;
    }
    
    #divBottom {
        padding: 30px 25px;
    }
}
