/* 基础样式 */
@font-face {
    font-family: 'FZShuTi';
    src: url('fonts/FZShuTi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 900px;
    margin: 60px auto 0 auto;
    padding: 0 24px;
}

/* 桌面端头部样式 */
.desktop-header {
    padding: 1.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header-content {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.875rem;
    font-weight: bold;
    color: #333;
}

.desktop-nav {
    margin-top: 1rem;
}

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

.desktop-nav a {
    color: #333;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #666;
}

/* 移动端头部样式 */
.mobile-header {
    padding: 0.75rem 1rem;
    display: none; /* 默认隐藏，由媒体查询控制显示 */
    position: fixed; /* 固定在顶部 */
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 40;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* 底部阴影 */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 平滑过渡效果 */
}

.mobile-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

.mobile-header .logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.mobile-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: flex;
    align-items: center;
    padding: 0.625rem;
    border: none;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1a1a1a;
}

.menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* 移动端侧边栏样式 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 50;
    transform: translateX(100%); /* 默认移出屏幕外 */
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden; /* 隐藏时不可交互 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 侧边栏激活状态 */
.mobile-sidebar.active {
    transform: translateX(0); /* 移入屏幕 */
    opacity: 1;
    visibility: visible;
}

.sidebar-content {
    padding: 1.5rem;
    height: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sidebar-header .logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.close-menu {
    background: rgba(0, 0, 0, 0.03);
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    color: #1a1a1a;
}

.close-menu:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.close-menu:active {
    transform: scale(0.95);
}

.mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav a {
    font-size: 1.125rem;
    color: #1a1a1a;
    display: block;
    padding: 0.875rem 1rem;
    transition: all 0.2s ease;
    border-radius: 0.75rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.02);
}

.mobile-nav a:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #5b21b6;
}

.mobile-nav a:active {
    transform: scale(0.98);
}

/* 主要内容区域 */
main {
    flex: 1;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    width: 100%;
    margin-bottom: 0;
}

.image-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    margin-bottom: 0;
}

.main-image {
    cursor: pointer;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
}

.featured-image {
    margin-bottom: 0;
}

.tagline {
    margin-top: 1.5rem;
    color: #4b5563;
    font-family: 'FZShuTi', 'FangSong', serif; /* 特殊字体 */
    font-size: 1.25rem;
    line-height: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
    margin: 2rem auto 0;
    letter-spacing: 0.5px;
    font-weight: 400;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* 标语的装饰性引号 */
.tagline::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: rgba(91, 33, 182, 0.1);
    font-family: 'FZShuTi', 'FangSong', serif;
}

/* 标语的装饰性引号 */
.tagline::after {
    content: '"';
    position: absolute;
    right: 0;
    bottom: -1.5rem;
    font-size: 3rem;
    color: rgba(91, 33, 182, 0.1);
    font-family: 'FZShuTi', 'FangSong', serif;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

/* 底部页脚样式 */
footer {
    padding: 2rem 0;
    /* margin-top: auto; */ /* Removed to disable sticky footer */
    background-color: #fff;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    display: block;
}

.footer-content a {
    color: #333;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* 语言切换链接样式 (未使用) */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-toggle:hover {
    background-color: #5b21b6;
    color: white;
    border-color: #5b21b6;
    text-decoration: none;
}

.lang-toggle .icon {
    width: 20px;
    height: 20px;
}

.lang-toggle span {
    font-size: 0.875rem;
}

/* 媒体查询 - 适配小屏幕设备 (<= 768px) */
@media (max-width: 768px) {
    .desktop-header {
        display: none; /* 隐藏桌面版头部 */
    }

    .mobile-header {
        display: block; /* 显示移动版头部 */
    }

    .container {
        margin: 40px 0 0 0;
        padding: 0 16px;
    }

    .main-content {
        padding: 0.75rem 0 0 0;
        margin-top: 3.5rem;
        margin-bottom: 0;
    }

    .image-container {
        margin: 0;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .tagline {
        font-size: 1.125rem;
        line-height: 1.6;
        padding: 0 1rem;
        margin: 1.5rem auto;
        color: #4b5563;
        font-family: 'FZShuTi', 'FangSong', serif;
        letter-spacing: 0.3px;
        max-width: 90%;
    }

    .footer-content {
        text-align: center;
        padding: 1.5rem 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .footer-content p {
        margin: 0.5rem 0;
        font-size: 0.875rem;
        color: #666;
    }

    .lang-toggle {
        padding: 0.625rem;
        border-radius: 0.75rem;
        background: rgba(0, 0, 0, 0.03);
        border: none;
    }

    .lang-toggle:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    .lang-toggle:active {
        transform: scale(0.95);
    }

    .lang-toggle .icon {
        width: 20px;
        height: 20px;
    }

    .lang-toggle span {
        display: none;
    }
}

/* 媒体查询 - 适配大屏幕设备 (> 769px) */
@media (min-width: 769px) {
    .footer-content {
        display: none; /* 在大屏幕上隐藏移动版页脚 */
    }
    .main-content {
        padding: 1.5rem 0 0 0;
        margin-top: 0.5rem;
    }
    .image-container {
        margin-top: 0;
        margin-bottom: 1.5rem;
    }
}

/* 图片模态框 (点击放大) 样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明黑色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 模态框激活状态 */
.image-modal.active {
    opacity: 1;
    visibility: visible;
}

/* 模态框中的图片内容 */
.modal-content {
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease; /* 缩放动画 */
}

/* 放大动画 */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 模态框关闭按钮 */
.modal-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.modal-close-button svg {
    display: block;
}

/* Cookie 同意模态框样式 - 居中设计 */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* 调整背景色以更好地配合模糊效果 */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(5px); /* 为背景添加高斯模糊 */
    backdrop-filter: blur(5px);
}

.cookie-consent-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: auto;
    max-width: 450px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
}

.cookie-consent-banner.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    visibility: visible;
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.cookie-icon svg {
    color: #4a5568;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.cookie-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.cookie-text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4a5568;
}

.cookie-text a {
    color: #3182ce; /* Adjusted blue */
    font-weight: 500;
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

#cookie-consent-accept {
    background-color: #2d3748;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
    width: 100%;
    margin-top: 0.5rem;
}

#cookie-consent-accept:hover {
    background-color: #1a202c;
}

/* 居中 Cookie 模态框的移动端适配 */
@media (max-width: 768px) {
    .cookie-consent-banner {
        width: 90%;
        max-width: none;
        padding: 1.5rem 1.25rem;
    }
}