/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 自定义鼠标样式 */
body {
    cursor: url('/static/mouse/normal.cur'), auto;
}

/* 链接和按钮的鼠标样式 */
a, button, .nav-link, .hero-nav-btn, .social-icon, .pagination-btn, .pagination-number, .flash-close, .nav-toggle, .copy-btn {
    cursor: url('/static/mouse/No_Disponible.cur'), pointer;
}

/* 按钮悬停和点击时的鼠标样式 */
a:hover, button:hover, .nav-link:hover, .hero-nav-btn:hover, .social-icon:hover, .pagination-btn:hover, .pagination-number:hover, .flash-close:hover, .nav-toggle:hover, .copy-btn:hover,
a:active, button:active, .nav-link:active, .hero-nav-btn:active, .social-icon:active, .pagination-btn:active, .pagination-number:active, .flash-close:active, .nav-toggle:active, .copy-btn:active {
    cursor: url('/static/mouse/No_Disponible.cur'), pointer;
}

/* 输入框的鼠标样式 */
input, textarea, select {
    cursor: url('/static/mouse/No_Disponible.cur'), text;
}

/* 禁用状态的鼠标样式 */
button:disabled, input:disabled, textarea:disabled, select:disabled {
    cursor: url('/static/mouse/No_Disponible.cur'), not-allowed;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #007bff;
}

/* 全屏布局下的容器样式 */
.main-content.fullscreen-layout .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 20px;
}

/* 保留原有容器样式用于其他地方 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease,
                backdrop-filter 0.3s ease,
                box-shadow 0.3s ease;
    pointer-events: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.show {
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

/* 导航栏进入动画 */
@keyframes navbarSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 导航栏退出动画 */
@keyframes navbarSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* 页面加载时的导航栏动画 */
.navbar.initial-load {
    animation: navbarSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 提升导航链接的交互体验 */
.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    min-width: 300px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    z-index: 1002;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-dropdown:hover .dropdown-menu {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

/* 确保导航栏显示时下拉菜单也能正常工作 */
.navbar.show .nav-dropdown:hover .dropdown-menu {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

/* 确保下拉菜单内的链接可以正常点击 */
.dropdown-menu a {
    pointer-events: auto;
    cursor: pointer;
}

.dropdown-section a {
    display: block;
    padding: 0.5rem 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dropdown-section a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.dropdown-section h4 {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 移动端导航 */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.9);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 主要内容区域 */
.main-content {
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow-x: hidden;
}

/* 英雄区域 - 全屏布局 */
.hero {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* .hero-bg 样式已移除，现在只使用视频背景 */

/* 视频背景 */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0;
}

/* 赛博朋克风格字体效果 */
.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-text h1:hover {
    animation: cyberpunk-glitch 1.5s infinite;
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 15px #00ffff,
        0 0 20px #ff00ff,
        0 0 35px #ff00ff,
        0 0 40px #ff00ff;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-subtitle:hover {
    animation: cyberpunk-flicker 2s infinite;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 15px #00ff00;
    color: #00ff00;
}

.hero-location {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.hero-location:hover {
    animation: cyberpunk-pulse 2.5s infinite;
    text-shadow: 
        0 0 5px #ffff00,
        0 0 10px #ffff00;
    color: #ffff00;
}

/* 赛博朋克动画效果 */
@keyframes cyberpunk-glitch {
    0% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    10% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    20% {
        transform: translate(-4px, -2px);
        filter: hue-rotate(180deg);
    }
    30% {
        transform: translate(4px, 2px);
        filter: hue-rotate(270deg);
    }
    40% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
    50% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    60% {
        transform: translate(-4px, -2px);
        filter: hue-rotate(180deg);
    }
    70% {
        transform: translate(4px, 2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(360deg);
    }
    90% {
        transform: translate(2px, 2px);
        filter: hue-rotate(90deg);
    }
    100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
}

@keyframes cyberpunk-flicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    10% {
        opacity: 0.8;
        transform: scale(1.02);
    }
    20% {
        opacity: 1;
        transform: scale(0.98);
    }
    30% {
        opacity: 0.9;
        transform: scale(1.01);
    }
    40% {
        opacity: 1;
        transform: scale(0.99);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.03);
    }
    60% {
        opacity: 1;
        transform: scale(0.97);
    }
    70% {
        opacity: 0.9;
        transform: scale(1.01);
    }
    80% {
        opacity: 1;
        transform: scale(0.99);
    }
    90% {
        opacity: 0.95;
        transform: scale(1.02);
    }
}

@keyframes cyberpunk-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* 社交图标赛博朋克效果 */
.hero-social .social-icon {
    transition: all 0.3s ease;
}

.hero-social .social-icon:hover {
    animation: cyberpunk-icon-glow 2.5s infinite;
    transform: scale(1.2);
}

@keyframes cyberpunk-icon-glow {
    0%, 100% {
        text-shadow: 
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff;
        filter: hue-rotate(0deg);
    }
    25% {
        text-shadow: 
            0 0 5px #ff00ff,
            0 0 10px #ff00ff,
            0 0 15px #ff00ff;
        filter: hue-rotate(90deg);
    }
    50% {
        text-shadow: 
            0 0 5px #ffff00,
            0 0 10px #ffff00,
            0 0 15px #ffff00;
        filter: hue-rotate(180deg);
    }
    75% {
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
        filter: hue-rotate(270deg);
    }
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-btn:hover {
    animation: cyberpunk-button-pulse 1.8s infinite;
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    transform: scale(1.1);
    box-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        inset 0 0 10px rgba(0, 255, 255, 0.1);
}

@keyframes cyberpunk-button-pulse {
    0%, 100% {
        box-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            inset 0 0 10px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 15px #ff00ff,
            0 0 30px #ff00ff,
            inset 0 0 15px rgba(255, 0, 255, 0.2);
        border-color: #ff00ff;
        background: rgba(255, 0, 255, 0.2);
    }
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 特色文章区域 */
.featured-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* 海浪板块视频背景 */
.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/video/五条悟.mp4') center center/cover no-repeat;
    z-index: 0;
}

.featured-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* 动态海浪背景 */
.wave-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background-repeat: repeat-x;
    background-size: 1000px 100px;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.wave1 {
    background-image: url('/static/images/wave1.png');
    animation: wave-move 15s infinite;
    opacity: 0.8;
    z-index: 2;
}

.wave2 {
    background-image: url('/static/images/wave2.png');
    animation: wave-move 20s infinite reverse;
    opacity: 0.6;
    z-index: 3;
    bottom: 10px;
}

.wave3 {
    background-image: url('/static/images/wave1.png');
    animation: wave-move 25s infinite;
    opacity: 0.4;
    z-index: 1;
    bottom: 20px;
    transform: scaleY(-1);
}

@keyframes wave-move {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-1000px);
    }
}

/* 小鱼功能已移除 */

/* 确保内容在海浪之上 */
.featured-section .container {
    position: relative;
    z-index: 10;
}

.featured-section .section-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.featured-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.featured-card.clickable-card {
    cursor: pointer;
}

.featured-card.clickable-card:active {
    transform: scale(0.98);
}

.featured-large {
    grid-row: span 2;
}

.featured-small-grid {
    display: grid;
    gap: 1rem;
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.featured-large .card-image {
    height: 300px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .card-image img {
    transform: scale(1.05);
}

.featured-card.clickable-card:hover .post-overlay {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card-summary {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.card-category {
    background: #007bff;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 文章列表区域 */
.posts-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* 最新文章模块背景遮罩变为完全透明 */
.posts-section::before {
    background: rgba(255,255,255,0);
}

/* 修正二次元字体设置，避免影响 Font Awesome 图标 */
.posts-section, .posts-section * {
    font-family: 'ZCOOL KuaiLe', 'Smiley Sans', 'LXGW WenKai', 'Comic Sans MS', 'Arial', 'sans-serif' !important;
    letter-spacing: 0.5px;
}
.posts-section .fa, .posts-section .fas, .posts-section .far, .posts-section .fal, .posts-section .fab {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.posts-section > .container {
    position: relative;
    z-index: 1;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 可点击卡片样式 */
.clickable-card {
    cursor: pointer;
}

.clickable-card:active {
    transform: scale(0.98);
}

/* 最新文章卡片 hover 时使用特殊鼠标样式 */
.post-card:hover,
.post-card:hover * {
    cursor: url('/static/mouse/No_Disponible.cur'), pointer !important;
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

/* 图片覆盖层 */
.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 增强最新文章卡片阅读文章的眼睛图标可见性 */
.post-overlay {
    z-index: 2;
}
.post-overlay i {
    color: #fff !important;
    text-shadow: 0 2px 8px #000, 0 0 2px #fff;
    filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 2px #000);
    opacity: 0.95;
}

.clickable-card:hover .post-overlay {
    opacity: 1;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-thumbnail-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.post-title a {
    color: #333;
}

.post-title a:hover {
    color: #007bff;
}

.post-summary {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta a {
    color: #007bff;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #007bff;
    color: white;
}

/* 阅读全文按钮 */
.read-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #007bff;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.clickable-card:hover .read-more-btn {
    color: #0056b3;
}

.clickable-card:hover .read-more-btn i {
    transform: translateX(3px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    background: #007bff;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.pagination-number:hover,
.pagination-number.active {
    background: #007bff;
    color: white;
}

.pagination-ellipsis {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Flash消息 */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
}

.flash-message {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.flash-success {
    border-left: 4px solid #28a745;
}

.flash-error {
    border-left: 4px solid #dc3545;
}

.flash-info {
    border-left: 4px solid #17a2b8;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    margin-left: 1rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 页脚样式 */
.footer {
    background: #000000;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.author-location {
    color: #bdc3c7;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #007bff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #333333;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

footer.bottom-info-bar {
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    position: relative;
    width: 100%;
}

/* 非主页的footer采用毛玻璃效果，隐藏视频 */
body:not(.index-page) footer.bottom-info-bar,
body.gallery-page footer.bottom-info-bar {
    background: rgba(255,255,255,0.25) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255,255,255,0.3) !important;
}
body.gallery-page footer.bottom-info-bar {
    background: rgba(255,255,255,0.45) !important; /* 提高透明度，增强毛玻璃感 */
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(255,255,255,0.3) !important;
}
body.gallery-page footer.bottom-info-bar .footer-bg-video {
    display: none !important; /* 确保视频隐藏 */
}

/* 主页footer保持视频背景 */
body.index-page footer.bottom-info-bar {
    background: transparent;
}

body.index-page footer.bottom-info-bar .footer-bg-video {
    display: block;
}

body.archive-page footer.bottom-info-bar {
    margin: 0 !important;
    position: relative;
    width: 100%;
}

.posts-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        transform: translateY(-100%);
    }
    
    .navbar.show {
        transform: translateY(0);
    }
    
    .nav-container {
        height: 60px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        overflow-y: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        margin: 1rem 0;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0;
        margin-top: 1rem;
        min-width: auto;
        width: 90%;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }

    /* 移动端英雄区域调整 */
    .hero {
        margin-top: -60px; /* 移动端菜单栏高度是60px */
        padding-top: 60px;
    }
    
    .hero-content {
        padding-top: 60px; /* 移动端为菜单栏留出空间 */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-social {
        order: -1;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-large {
        grid-row: span 1;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-numbers {
        justify-content: center;
    }
} 

/* 修复最新文章卡片鼠标样式丢失问题 */
.post-card,
.post-card * {
    cursor: pointer !important;
} 

/* 归档页面二次元风格字体 */
.archive-content, .archive-content * {
    font-family: 'ZCOOL KuaiLe', 'Smiley Sans', 'LXGW WenKai', 'Comic Sans MS', 'Arial', 'sans-serif' !important;
    letter-spacing: 0.5px;
}
.archive-bg {
    pointer-events: none;
} 

/* 关于我页面全透明风格 */
.about-content > *, .about-content .card, .about-content section, .about-content article, .about-content div:not(.page-header) {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 关于我页面除标题外所有文字颜色为二次元风格 */
.about-content p, .about-content li, .about-content span, .about-content div:not(.page-header), .about-content a, .about-content strong, .about-content em {
    color: #ff6b9d !important;
    background: linear-gradient(90deg, #ff6b9d 0%, #ffd93d 50%, #4d9de0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* 关于我页面所有内容板块标题也为二次元渐变色 */
.about-content h2, .about-content h3, .about-content h4, .about-content h5, .about-content h6 {
    color: #ff6b9d !important;
    background: linear-gradient(90deg, #ff6b9d 0%, #ffd93d 50%, #4d9de0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* 关于我页面技术栈标签修正，保证可读性 */
.about-content .tech-item {
    background: rgba(255,255,255,0.18) !important;
    color: #1976d2 !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-fill-color: initial !important;
    font-weight: bold;
}
.about-content .tech-item.planned {
    color: #7b1fa2 !important;
}

/* 统一除主页外所有页面标题为画廊风格 */
.page-header h1, .page-header h2, .page-header h3 {
    font-family: 'Noto Sans SC', 'ZCOOL KuaiLe', 'Smiley Sans', 'LXGW WenKai', 'Comic Sans MS', 'Arial', 'sans-serif' !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-shadow: 
        2px 2px 0px #000000,
        -2px -2px 0px #000000,
        2px -2px 0px #000000,
        -2px 2px 0px #000000,
        0 0 5px #ff6b9d;
    letter-spacing: 2px;
}
.page-header h1 {
    font-size: 3rem !important;
    background: linear-gradient(45deg, #ff6b9d, #ffd93d, #6bcf7f, #4d9de0);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: anime-gradient 3s ease infinite;
    text-shadow: none;
}
@keyframes anime-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
} 

/* 鼠标点击特效 */
.click-effect {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,157,0.8) 0%, rgba(255,217,61,0.6) 50%, rgba(77,157,224,0.4) 100%);
    pointer-events: none;
    z-index: 9999;
    animation: click-ripple 0.6s ease-out forwards;
    transform: translate(-50%, -50%);
}

@keyframes click-ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* 恢复留言界面除背景外的所有样式为最初状态 */
.guestbook-content, .guestbook-main-grid, .guestbook-content > *, .guestbook-content .card, .guestbook-content section, .guestbook-content article, .guestbook-content div:not(.page-header) {
    all: unset;
}

/* 恢复经典留言区布局 */
.guestbook-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
@media (max-width: 900px) {
    .guestbook-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.leave-message,
.messages-list {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
} 

/* 留言界面所有模块毛玻璃效果 */
.guestbook-content .page-header,
.guestbook-main-grid > *,
.guestbook-content .leave-message,
.guestbook-content .messages-list {
    background: rgba(255,255,255,0.18) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 32px rgba(0,0,0,0.12) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1.5px solid rgba(255,255,255,0.35) !important;
    color: #fff !important;
} 

/* 留言界面标题模块全透明样式 */
.guestbook-content .page-header {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #fff !important;
} 

/* 留言和留言列表模块缩小为合理大小并居中 */
.guestbook-main-grid > *,
.guestbook-content .leave-message,
.guestbook-content .messages-list {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    min-width: 0;
}
.guestbook-main-grid {
    justify-items: center;
}

/* 留言和留言列表模块标题居中 */
.guestbook-content .leave-message h2,
.guestbook-content .messages-list h2 {
    text-align: center;
}

/* 留言列表分页样式 */
.guestbook-content .pagination {
    text-align: center !important;
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.guestbook-content .pagination-btn {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    margin: 0 0.5rem !important;
    transition: all 0.3s ease !important;
}
.guestbook-content .pagination-btn:hover {
    background: rgba(255,255,255,0.3) !important;
    color: #fff !important;
}
.guestbook-content .pagination-info {
    color: #fff !important;
    margin: 0 1rem !important;
} 

/* 留言列表访客留言气泡对话框样式 */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.message-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}
.message-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4d9de0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.message-content {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.message-header {
    font-size: 0.95rem;
    color: #ffd93d;
    margin-bottom: 0.2rem;
    display: flex;
    gap: 0.7rem;
}
.message-text {
    background: linear-gradient(120deg, #fff 60%, #e3f2fd 100%);
    color: #333;
    border-radius: 18px 18px 18px 4px;
    padding: 0.8rem 1.2rem;
    font-size: 1.08rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-top: 0.1rem;
    word-break: break-all;
} 

.digital-clock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: 'Orbitron', 'Consolas', 'Courier New', monospace;
    font-size: 3.5rem;
    color: #00ffe7;
    text-shadow: 0 0 8px #00ffe7, 0 0 16px #00ffe7, 0 0 32px #00ffe7;
    background: rgba(0,0,0,0.25);
    padding: 0.5em 1.2em;
    border-radius: 0.5em;
    letter-spacing: 0.15em;
    box-shadow: 0 0 24px #00ffe7;
    border: 2px solid #00ffe7;
    animation: digital-glow 1.5s infinite alternate;
}

@keyframes digital-glow {
    from { box-shadow: 0 0 12px #00ffe7; }
    to { box-shadow: 0 0 32px #00ffe7, 0 0 64px #00ffe7; }
} 

/* 留言表单毛玻璃效果 */
.message-form input,
.message-form textarea {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid #111;
    border-radius: 8px;
    color: #222;
    font-size: 1rem;
    padding: 0.7em 1em;
    margin-bottom: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.message-form input:focus,
.message-form textarea:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 0 2px #2222;
}

.message-form .submit-btn {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid #111;
    color: #111;
    font-weight: bold;
    border-radius: 8px;
    padding: 0.7em 2em;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.message-form .submit-btn:hover {
    background: rgba(255,255,255,0.4);
    color: #000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
} 

@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');

body {
    font-family: 'ZCOOL KuaiLe', 'Comic Sans MS', 'Arial Rounded MT Bold', 'sans-serif';
    color: #3a2c5e;
}

/* 主页保持背景 */
body.index-page {
    background: linear-gradient(135deg, #f8e1ff 0%, #aeefff 100%);
}

/* 非主页透明背景，只显示毛玻璃效果 */
body:not(.index-page) {
    background: transparent;
}

body.gallery-page {
    background: url('/static/images/电锯人.jpg') center/cover no-repeat fixed;
}

body.guestbook-page {
    background: url('/static/images/罗小黑.jpg') center/cover no-repeat fixed;
}

body.about-page {
    background: url('/static/images/金木研.jpg') center/cover no-repeat fixed;
}

body.archive-page {
    background: url('/static/images/只有我不存在的城市.jpg') center/cover no-repeat fixed;
}

h1, h2, h3, h4, h5, h6, .section-title {
    font-family: 'ZCOOL KuaiLe', 'Comic Sans MS', 'Arial Rounded MT Bold', 'sans-serif';
    color: #ff6ad5;
    text-shadow: none;
}

a, .nav-link, .hero-nav-btn, .social-icon, .pagination-btn, .pagination-number, .flash-close, .nav-toggle, .copy-btn {
    color: #5e7fff;
    transition: color 0.3s, text-shadow 0.3s;
    text-shadow: 0 1px 4px #fff6, 0 0 2px #aeefff;
}
a:hover, .nav-link:hover, .hero-nav-btn:hover, .social-icon:hover, .pagination-btn:hover, .pagination-number:hover, .flash-close:hover, .nav-toggle:hover, .copy-btn:hover {
    color: #ff6ad5;
    text-shadow: 0 2px 8px #ffb3ef, 0 0 4px #fff;
}

button, .submit-btn, .hero-nav-btn, .pagination-btn {
    background: linear-gradient(90deg, #aeefff 0%, #ffb3ef 100%);
    color: #3a2c5e;
    border: 2px solid #ff6ad5;
    border-radius: 1.5em;
    font-family: 'ZCOOL KuaiLe', 'Comic Sans MS', 'Arial Rounded MT Bold', 'sans-serif';
    font-weight: bold;
    box-shadow: 0 4px 16px #aeefff88, 0 0 8px #ffb3ef44;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
button:hover, .submit-btn:hover, .hero-nav-btn:hover, .pagination-btn:hover {
    background: linear-gradient(90deg, #ffb3ef 0%, #aeefff 100%);
    color: #ff6ad5;
    box-shadow: 0 8px 32px #ffb3ef88, 0 0 16px #aeefff44;
}

input, textarea, select {
    font-family: 'ZCOOL KuaiLe', 'Comic Sans MS', 'Arial Rounded MT Bold', 'sans-serif';
    background: rgba(255,255,255,0.7);
    border: 2px solid #aeefff;
    border-radius: 1em;
    color: #3a2c5e;
    box-shadow: 0 2px 8px #aeefff44;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
    border-color: #ff6ad5;
    box-shadow: 0 0 0 2px #ffb3ef44;
}

.card, .featured-card, .post-card, .message-item, .container, .page-header, .guestbook-content, .leave-message {
    background: transparent;
    border-radius: 1.5em;
    box-shadow: none;
    border: none;
    text-shadow: none;
} 

.posts-section .post-card {
    background: rgba(255,255,255,0.95);
    border-radius: 1.5em;
    box-shadow: none;
    border: none;
    text-shadow: none;
} 

.hero,
.featured-section,
.posts-section,
.archive,
.category,
.tag,
.guestbook-content,
.about-content {
    margin: 0 !important;
    padding: 0 !important;
}

.main-content.fullscreen-layout .container,
.container {
    margin: 0 !important;
    padding: 0 !important;
}

/* ==================== 统一的加载动画样式已移至 loading-animation.css ==================== */ 