/* CSS变量定义 - 主题系统 */
:root {
    /* 浅色主题 - 苹果风格配色方案 */
    --bg-primary: #ffffff;
    --bg-secondary: #f2f2f7;
    --bg-tertiary: #f2f2f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-muted: #8e8e93;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --shadow-heavy: rgba(0, 0, 0, 0.16);
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #ffffff;
    --accent-color: #007aff;
    --accent-hover: #0051d5;
    --success-color: #30d158;
    --error-color: #ff3b30;
    --warning-color: #ff9500;
    --info-color: #007aff;
    --button-bg: #007aff;
    --button-text: #ffffff;
    --button-hover: #0051d5;
    --scrollbar-track: #f2f2f7;
    --scrollbar-thumb: #c7c7cc;
}

/* 深色主题 - 紫色图标配色 */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-tertiary: #2c2c2e;
    --text-primary: #ffffff;
    --text-secondary: #ebebf5;
    --text-muted: #8e8e93;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --card-bg: #1c1c1e;
    --header-bg: rgba(28, 28, 30, 0.8);
    --footer-bg: #1c1c1e;
    --accent-color: #bb86fc;
    --accent-hover: #d4b3ff;
    --success-color: #30d158;
    --error-color: #ff453a;
    --warning-color: #ff9f0a;
    --info-color: #64d2ff;
    --button-bg: #bb86fc;
    --button-text: #000000;
    --button-hover: #d4b3ff;
    --scrollbar-track: #1c1c1e;
    --scrollbar-thumb: #bb86fc;
}

/* 滚动优化 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* 自定义滚动条样式 */
/* 全局滚动条优化 - 细滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* 深色模式滚动条 */
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(187, 134, 252, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(187, 134, 252, 0.6);
}

/* 浅色模式滚动条 - 蓝色 */
[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 122, 255, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 122, 255, 0.6);
}

/* Firefox 滚动条样式 */
[data-theme="dark"] * {
    scrollbar-width: thin;
    scrollbar-color: rgba(187, 134, 252, 0.3) transparent;
}

[data-theme="light"] * {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 122, 255, 0.3) transparent;
}

/* 如果用户希望完全隐藏滚动条，可以取消注释下面的代码 */
/*
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}
*/

/* 主题切换过渡动画 - 苹果风格缓动 */
* {
    transition: background-color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), 
                color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), 
                border-color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), 
                box-shadow 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* 为特定元素优化过渡效果 */
.loading-screen,
.modal,
.carousel-slide,
.gallery-item img,
.thumbnail-item img {
    transition: background-color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), 
                color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), 
                border-color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), 
                box-shadow 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), 
                opacity 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), 
                transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 页面加载屏幕样式 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.loading-screen.fade-out {
    animation: fadeOut 0.8s ease-in-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
    animation: fadeInUp 1s ease-out;
    transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* 摄影相机Logo设计 */
.camera-logo {
    position: relative;
    width: 120px;
    height: 80px;
    margin: 0 auto 30px;
    animation: cameraFloat 0.5s ease-in-out infinite;
}

.camera-body {
    position: relative;
    width: 100%;
    height: 60px;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.camera-lens {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: #333;
    border-radius: 50%;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    animation: lensRotate 2s linear infinite;
}

.lens-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #007bff;
    border-radius: 50%;
    animation: lensPulse 1s ease-in-out infinite;
}

.lens-reflection {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: reflectionShine 1.5s ease-in-out infinite;
}

.camera-flash {
    position: absolute;
    top: 8px;
    right: 15px;
    width: 12px;
    height: 8px;
    background: #17a2b8;
    border-radius: 2px;
    animation: flashBlink 1s ease-in-out infinite;
}

.camera-viewfinder {
    position: absolute;
    top: 5px;
    left: 15px;
    width: 8px;
    height: 6px;
    background: #333;
    border-radius: 1px;
    border: 1px solid #555;
}

.camera-strap {
    position: absolute;
    top: -5px;
    left: 10px;
    right: 10px;
    height: 4px;
    background: #8b4513;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 加载标题和副标题 */
.loading-title {
    font-size: 3.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #007bff;
    font-family: 'Dancing Script', cursive;
    letter-spacing: 0.05em;
    animation: titleGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 2px 4px var(--shadow-medium);
}

.loading-subtitle {
    font-size: 1.2rem;
    margin: 0 0 30px 0;
    color: #e0e0e0;
    font-weight: 300;
    letter-spacing: 2px;
    animation: subtitleFade 3s ease-in-out infinite;
}

/* 进度条 */
.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #007bff;
    border-radius: 2px;
    animation: progressMove 2s ease-in-out infinite;
}

/* 加载点动画 */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cameraFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes lensRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes lensPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
}

@keyframes reflectionShine {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes flashBlink {
    0%, 90%, 100% {
        opacity: 0.3;
    }
    95% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

@keyframes subtitleFade {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes progressMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* General Styles */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}




/* 滚动动画相关样式 */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.parallax-element {
    transition: transform 0.1s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.47;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    transition: background-color 0.3s ease, color 0.3s ease;
}


    box-sizing: border-box;
}


/* Touch-friendly interactions */

.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Smooth transitions for better UX */

* {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

button,
.clickable {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

button:hover,
.clickable:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-heavy);
    animation: appleFloat 2s ease-in-out infinite;
}

button:active,
.clickable:active {
    transform: translateY(1px) scale(0.96);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    animation: appleTap 0.2s ease-out;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 0.5px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow-light), 0 1px 2px var(--shadow-medium);
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    height: 64px;
}

.header-hidden {
    transform: translateY(-100%);
}

.logo {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: 0.05em;
    font-family: 'Dancing Script', cursive;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.logo:hover {
    transform: scale(1.04) translateY(-2px);
    color: var(--accent-hover);
}

.logo i {
    font-size: 1.6rem;
    color: var(--text-primary);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
    animation: iconPulse 2s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.4)) drop-shadow(0 0 16px rgba(0, 123, 255, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(0, 123, 255, 0.6)) drop-shadow(0 0 24px rgba(0, 123, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 16px rgba(157, 78, 221, 0.5)) drop-shadow(0 0 32px rgba(255, 107, 157, 0.2));
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 6px rgba(0, 123, 255, 0.6));
    }
    25% {
        transform: scale(1.03) rotate(1deg);
        filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.7));
    }
    50% {
        transform: scale(1.05) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.8));
    }
    75% {
        transform: scale(1.03) rotate(-1deg);
        filter: drop-shadow(0 0 8px rgba(255, 107, 157, 0.7));
    }
}

/* 苹果风格弹性动画 */
@keyframes appleSpring {
    0% {
        transform: scale(1) translateY(0);
    }
    20% {
        transform: scale(1.1) translateY(-4px);
    }
    40% {
        transform: scale(0.95) translateY(2px);
    }
    60% {
        transform: scale(1.02) translateY(-1px);
    }
    80% {
        transform: scale(0.98) translateY(0.5px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

/* 苹果风格悬浮效果 */
@keyframes appleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

/* 苹果风格微交互 */
@keyframes appleTap {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.96);
    }
    100% {
        transform: scale(1);
    }
}

nav {
    display: flex;
    overflow: visible;
    gap: 0.8rem;
}

.nav-link {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    background: rgba(0, 0, 0, 0.04);
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1d1d1f;
    text-decoration: none;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-link i {
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
    color: #007aff;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover i {
    transform: scale(1.15) rotate(5deg);
    color: var(--text-primary);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.nav-link:active {
    transform: scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.12);
}


/* Hero Section - 保持原有配色不变 */

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        /* 封面图片 */
        url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 固定的暗色遮罩层，保持暗夜风格 */
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    /* 移除主题过渡效果 */
}

#hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    /* 固定白色字体，适配暗色背景 */
    color: #ffffff !important;
    opacity: 0;
    animation: typewriterTitle 2s ease-in-out forwards;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    font-family: 'Dancing Script', 'Playfair Display', 'Noto Serif SC', cursive;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
    /* 固定阴影效果，适配暗色背景 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.hero-content h1::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    animation: backgroundGlow 3s ease-in-out infinite alternate;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    animation: underlineExpand 1.5s ease-out forwards 1.8s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    display: inline-block;
    opacity: 0;
    animation: charFadeIn 0.08s ease-in forwards;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    transform-origin: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 span:hover {
    animation: glowPulse 1s ease-in-out infinite;
    /* 固定悬停颜色，适配暗色背景 */
    color: #ffffff !important;
    text-shadow: 
        /* 增强的深度阴影 */
        6px 6px 0px rgba(0, 0, 0, 0.9),
        12px 12px 0px rgba(0, 0, 0, 0.7),
        18px 18px 0px rgba(0, 0, 0, 0.5),
        /* 强烈的白色光晕 */
        0 0 40px rgba(255, 255, 255, 0.9),
        0 0 80px rgba(255, 255, 255, 0.6),
        0 0 120px rgba(255, 255, 255, 0.3),
        /* 彩色光晕 */
        0 0 60px rgba(0, 123, 255, 0.4),
        /* 高光细节 */
        -2px -2px 0px rgba(255, 255, 255, 0.4),
        2px 2px 0px rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
    filter: 
        drop-shadow(0 12px 32px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 30px rgba(255, 255, 255, 0.8))
        drop-shadow(0 0 60px rgba(0, 123, 255, 0.5));
}

@keyframes glowPulse {
    0%,
    100% {
        text-shadow: 
            4px 4px 0px rgba(0, 0, 0, 0.8),
            8px 8px 0px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(255, 255, 255, 0.6),
            0 0 60px rgba(0, 123, 255, 0.3);
    }
    50% {
        text-shadow: 
            6px 6px 0px rgba(0, 0, 0, 0.9),
            12px 12px 0px rgba(0, 0, 0, 0.7),
            0 0 50px rgba(255, 255, 255, 0.9),
            0 0 100px rgba(255, 255, 255, 0.5),
            0 0 80px rgba(255, 255, 255, 0.4),
            0 0 120px rgba(255, 255, 255, 0.2);
    }
}

@keyframes backgroundGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

@keyframes floatingOrb {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    20% {
        transform: translate(25%, -15%) rotate(72deg) scale(1.1);
        opacity: 0.9;
    }
    40% {
        transform: translate(-15%, 25%) rotate(144deg) scale(0.9);
        opacity: 0.7;
    }
    60% {
        transform: translate(-25%, -25%) rotate(216deg) scale(1.05);
        opacity: 0.85;
    }
    80% {
        transform: translate(15%, -35%) rotate(288deg) scale(0.95);
        opacity: 0.75;
    }
}

@keyframes backgroundShift {
    0%, 100% {
        filter: hue-rotate(0deg) brightness(0.95) contrast(1.1);
    }
    25% {
        filter: hue-rotate(5deg) brightness(1) contrast(1.15);
    }
    50% {
        filter: hue-rotate(-3deg) brightness(0.9) contrast(1.2);
    }
    75% {
        filter: hue-rotate(8deg) brightness(0.98) contrast(1.05);
    }
}

@keyframes subtleShift {
    0%, 100% {
        background-position: 0 0, 30px 30px, center;
    }
    25% {
        background-position: 15px 15px, 45px 45px, center;
    }
    50% {
        background-position: 30px 0, 60px 30px, center;
    }
    75% {
        background-position: 45px 15px, 75px 45px, center;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
    75% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



.hero-content p {
    font-size: 1.25rem;
    /* 固定颜色，适配暗色背景 */
    color: #e9ecef !important;
    opacity: 0;
    animation: slideUpFade 1.5s ease-out forwards 1.5s;
    transform: translateY(30px);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-weight: 400;
    letter-spacing: -0.016em;
    line-height: 1.47;
    /* 移除颜色过渡效果 */
}

.hero-content p span {
    display: inline-block;
    opacity: 0;
    animation: waveText 0.6s ease-in-out forwards;
    transition: all 0.2s ease;
    transform-origin: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.hero-content p span:hover {
    animation: shimmer 0.8s ease-in-out, elasticScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 固定悬停颜色，不受主题影响 */
    color: #007bff !important;
    transform: scale(1.15);
}

@keyframes shimmer {
    0% {
        transform: translateX(0) skewX(0deg);
        background: var(--accent-color);
        background-size: 300% 100%;
        background-position: -300% 0;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    50% {
        transform: translateX(2px) skewX(2deg);
        background-position: 0% 0;
    }
    100% {
        transform: translateX(0) skewX(0deg);
        background-position: 300% 0;
        -webkit-text-fill-color: transparent;
    }
}


/* 打字机效果 */

@keyframes typewriterTitle {
    0% {
        opacity: 1;
        width: 0;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}


/* 横线展开效果 */

@keyframes underlineExpand {
    0% {
        width: 0;
        opacity: 0;
        background: var(--accent-color);
    }
    50% {
        opacity: 1;
        background: var(--accent-color);
    }
    100% {
        width: 60%;
        opacity: 0.8;
        background: var(--accent-color);
    }
}


/* 字符逐个显示 */

@keyframes charFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateZ(-10deg);
        filter: blur(5px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px) rotateZ(2deg);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateZ(0deg);
        filter: blur(0px);
    }
}


/* 滑入淡出效果 */

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(4px);
    }
    70% {
        opacity: 0.9;
        transform: translateY(-3px);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}


/* 波浪文字效果 */

@keyframes waveText {
    0% {
        opacity: 0;
        transform: translateX(-30px) skewX(20deg);
        filter: blur(3px);
    }
    50% {
        opacity: 0.8;
        transform: translateX(5px) skewX(-5deg);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) skewX(0deg);
        filter: blur(0px);
    }
}


/* 闪烁光标效果 */

@keyframes blinkCursor {
    0%,
    50% {
        border-color: var(--accent-color);
    }
    51%,
    100% {
        border-color: transparent;
    }
}


/* Carousel Section */

#carousel-section {
    padding: 4rem 0.2rem;
    /* 进一步减少左右内边距，让轮播图更靠近页面边缘 */
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.carousel-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--accent-color), #007AFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.refresh-carousel-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.refresh-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.refresh-carousel-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.refresh-carousel-btn i {
    font-size: 1rem;
}

.refresh-carousel-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .carousel-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-title {
        font-size: 1.5rem;
        text-align: left;
    }
    
    .refresh-carousel-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .carousel-header {
        padding: 0 0.5rem;
    }
    
    .carousel-title {
        font-size: 1.3rem;
    }
    
    .refresh-carousel-btn span {
        display: none;
    }
    
    .refresh-carousel-btn {
        padding: 0.6rem;
        min-width: 44px;
        justify-content: center;
    }
}

#carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

@media (max-width: 768px) {
    #carousel-section {
        padding: 3rem 0.1rem;
    }
}

@media (max-width: 480px) {
    #carousel-section {
        padding: 2rem 0.05rem;
    }
}

.carousel-container {
    height: 500px;
    position: relative;
    max-width: 95%;
    /* 增加宽度，让轮播图更靠近页面边缘 */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    /* 只保留上方圆角，与缩略图连接 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    perspective: 1000px;
    /* 添加3D透视效果 */
}

.carousel-slide {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translateX(0);
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
    transition: opacity 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    background: rgba(255, 255, 255, 0.85);
    color: #1d1d1f;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 100;
    font-size: 1.3rem;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 255, 0.2);
    color: #007aff;
}

.carousel-button:active {
    transform: translateY(-50%) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: all 0.1s ease;
}

/* 暗色主题下的轮播按钮 */
[data-theme="dark"] .carousel-button {
    background: rgba(28, 28, 30, 0.85);
    color: #f2f2f7;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .carousel-button:hover {
    background: rgba(28, 28, 30, 0.95);
    color: #bb86fc;
    border-color: rgba(187, 134, 252, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .carousel-button:active {
    background: rgba(28, 28, 30, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.thumbnail-container {
    max-width: 95%;
    /* 与轮播图容器宽度保持一致 */
    margin: 0 auto;
    /* 移除上边距，与轮播图紧密连接 */
    overflow-x: auto;
    padding: 15px 0;
    /* 增加内边距 */
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    display: flex;
    justify-content: center;
    background: var(--card-bg);
    /* 添加背景色 */
    border-radius: 0 0 8px 8px;
    /* 只保留下方圆角，与轮播图形成整体 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    /* 添加阴影效果 */
    border-top: 1px solid var(--border-color);
    /* 添加顶部边框分隔 */
    scroll-behavior: smooth;
}

.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 6px;
}

.thumbnail-track {
    display: flex;
    gap: 12px;
    /* 增加间距 */
    padding: 0 15px;
    /* 增加左右内边距 */
    justify-content: center;
    max-width: 800px;
    /* 增加最大宽度 */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.thumbnail-item {
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 2px solid transparent;
    border-radius: 4px;
    width: 100px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--bg-primary);
}

.thumbnail-item:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.thumbnail-item.active {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
    transform: scale(1.02);
}


/* Gallery Section */

#gallery {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

#gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
    z-index: 0;
}

#gallery > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    #gallery {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    #gallery {
        padding: 2rem 0.5rem;
    }
}

#gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    animation: slideInFromTop 1s ease-out;
}

#gallery h2 i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#gallery h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}


/* 瀑布流布局 - 恢复传统column布局保持美观 */

.gallery-container {
    column-count: 3;
    column-gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: block;
    column-fill: balance;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    display: inline-block;
    width: 100%;
    vertical-align: top;
    transform-origin: center;
}

/* 分类筛选按钮区域 */
.category-filter-container {
    margin: 2rem auto 3rem auto;
    max-width: 1200px;
    padding: 0 20px;
}

.category-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px) saturate(150%) brightness(1.15);
    -webkit-backdrop-filter: blur(25px) saturate(150%) brightness(1.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(52, 152, 219, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(52, 152, 219, 0.1);
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.category-btn:hover::before {
    left: 100%;
}

/* 桌面端tooltip样式 */
@media (min-width: 481px) {
    .category-btn::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 120%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 0.8rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
        pointer-events: none;
        z-index: 1000;
    }
    
    .category-btn:hover::after {
        opacity: 1;
        visibility: visible;
        bottom: 125%;
    }
}







.category-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3), 0 4px 12px var(--shadow-medium);
    color: #ffffff;
}

.category-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.category-btn.active:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.category-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.category-btn:hover i {
    transform: scale(1.1);
}

.category-btn span {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    letter-spacing: -0.01em;
    font-weight: 500;
}

/* 暗色主题下的分类按钮样式 */
[data-theme="dark"] .category-btn {
    background: rgba(28, 28, 30, 0.8);
    color: #f2f2f7;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .category-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000000;
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .category-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000000;
    box-shadow: 0 6px 20px rgba(187, 134, 252, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .category-btn.active:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000000;
    box-shadow: 0 10px 30px rgba(212, 179, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 分类标签样式 */
.category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #e8e8e8;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.category-tag:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    color: #f0f0f0;
}

.gallery-item:hover .category-tag {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.9);
    color: #2a2a3e;
    text-shadow: none;
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 123, 255, 0.2);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    animation: appleFloat 3s ease-in-out infinite;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    filter: brightness(0.98) contrast(1.08) saturate(1.15) hue-rotate(1deg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.05) contrast(1.08) saturate(1.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    transform: scale(0.95);
    border: 1px solid var(--border-color);
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: scale(1);
    box-shadow: inset 0 1px 0 var(--shadow-light), 0 4px 12px var(--shadow-medium);
    background: var(--overlay-bg);
}

/* 桌面端overlay按钮样式 - 亮色主题 */
.gallery-item .overlay span {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
    flex-shrink: 0;
    margin: 0 6px;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

.gallery-item .overlay span:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.04) translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 255, 0.2);
    color: #007aff;
}

.gallery-item .overlay span:active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.1s ease;
}

/* 暗色主题下的按钮样式 */
[data-theme="dark"] .gallery-item .overlay span {
    background: rgba(28, 28, 30, 0.85);
    color: #f2f2f7;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .gallery-item .overlay span:hover {
    background: rgba(28, 28, 30, 0.95);
    color: #bb86fc;
    border-color: rgba(187, 134, 252, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .gallery-item .overlay span:active {
    background: rgba(28, 28, 30, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* 暗色主题下的卡片样式 */
[data-theme="dark"] .gallery-item {
    background: rgba(28, 28, 30, 0.6);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .gallery-item:hover {
    background: rgba(28, 28, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 暗色主题下的导航栏样式 */
[data-theme="dark"] header {
    background: rgba(28, 28, 30, 0.8);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .nav-link {
    background: rgba(255, 255, 255, 0.06);
    color: #f2f2f7;
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #bb86fc;
}

[data-theme="dark"] .nav-link:active {
    background: rgba(255, 255, 255, 0.15);
}


/* 图片加载指示器 */

.gallery-item .loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top: 3px solid var(--border-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.gallery-item.loading {
    background: #f5f5f5;
    min-height: 200px;
}

.gallery-item.loading img {
    opacity: 0;
}

.gallery-item.loaded .loading-indicator {
    display: none;
}

.gallery-item.loaded img {
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}


/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding: 3vh 3vw;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--overlay-bg);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: background-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
        transform: scale(0.9);
    }
    60% {
        opacity: 0.8;
        backdrop-filter: blur(15px) saturate(110%);
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(20px) saturate(120%);
        transform: scale(1);
    }
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    animation: modalZoom 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 24px;
    box-shadow: 0 32px 80px var(--shadow-heavy), 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    transition: border-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.2));
}

@keyframes modalZoom {
    0% {
        transform: scale(0.7) translateY(30px);
        opacity: 0;
        filter: blur(10px) drop-shadow(0 0 0px rgba(0, 123, 255, 0));
    }
    30% {
        transform: scale(1.05) translateY(-5px);
        opacity: 0.6;
        filter: blur(4px) drop-shadow(0 0 8px rgba(0, 123, 255, 0.1));
    }
    70% {
        transform: scale(0.98) translateY(2px);
        opacity: 0.9;
        filter: blur(1px) drop-shadow(0 0 15px rgba(0, 123, 255, 0.15));
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
        filter: blur(0px) drop-shadow(0 0 20px rgba(0, 123, 255, 0.2));
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 300;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1002;
    cursor: pointer;
    user-select: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.close:hover,
.close:focus {
    color: var(--error-color);
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--error-color);
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(231, 76, 60, 0.2);
    text-decoration: none;
    cursor: pointer;
}

.prev-modal,
.next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    color: var(--text-primary);
    font-weight: 300;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px var(--shadow-medium);
    z-index: 1003;
}

.prev-modal {
    left: 30px;
}

.next-modal {
    right: 30px;
}

.prev-modal:hover,
.next-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}


/* File Info Modal */

.file-info-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--overlay-bg);
    transition: background-color 0.3s ease;
    align-items: center;
    justify-content: center;
}

.file-info-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    animation: fadeIn 0.3s;
    transition: background-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding-bottom: 10px;
}

.file-info-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.file-info-title i {
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

.file-info-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.file-info-close:hover {
    color: var(--accent-color);
    background: rgba(0, 123, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.file-info-close:active {
    transform: scale(0.95);
}

.file-info-body {
    margin-bottom: 20px;
}

.file-info-field {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
}

.file-info-label {
    font-weight: bold;
    color: var(--accent-color);
    margin-right: 10px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.file-info-value {
    color: var(--text-secondary);
    word-break: break-word;
    /* 允许在任意字符间断行 */
    overflow-wrap: break-word;
    /* 确保长单词可以被打断 */
    max-width: 100%;
    /* 确保不会溢出父容器 */
    transition: color 0.3s ease;
}

.file-info-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.file-info-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    min-width: 120px;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.file-info-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.file-info-button:hover::before {
    left: 100%;
}

.file-info-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}


/* 手机模式下的优化 */

@media (max-width: 480px) {
    .file-info-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .file-info-title {
        font-size: 1.3rem;
    }
    .file-info-field {
        flex-direction: column;
        margin-bottom: 1rem;
    }
    .file-info-label {
        margin-bottom: 6px;
        font-size: 1rem;
        font-weight: 600;
    }
    .file-info-value {
        font-size: 0.95rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .file-info-actions {
        justify-content: center;
        margin-top: 1.5rem;
    }
    .file-info-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        min-width: 120px;
    }
    
    /* 移动端隐藏不需要的字段 */
    .file-info-field:has(#fileName),
    .file-info-field:has(#fileCamera),
    .file-info-field:has(#fileLens),
    .file-info-field:has(#fileSettings) {
        display: none;
    }
}


/* Footer */

footer {
    text-align: center;
    padding: 2rem;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px var(--shadow-light);
    transition: background-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* 版权信息花体英文样式 */
.copyright-text {
    font-family: 'Dancing Script', 'Brush Script MT', cursive !important;
    font-weight: 700 !important;
    font-size: 1.2em;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px var(--shadow-medium);
    margin-top: 0.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.copyright-text:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 6px var(--shadow-heavy);
    color: var(--accent-hover);
}

/* Footer移动端适配 */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
    footer p {
        margin: 0.3rem 0;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1rem 0.5rem;
        font-size: 0.8rem;
    }
    footer p {
        margin: 0.2rem 0;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }
}


/* Responsive Design */


/* 响应式设计 - 大屏幕优化 */

@media (min-width: 1400px) {
    .gallery-container {
        column-count: 4 !important;
        column-gap: 30px;
        padding: 40px 30px;
        max-width: 1600px;
    }
    
    .hero-content h1 {
        font-size: 6rem;
        letter-spacing: 0.03em;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .hero-content p {
        font-size: 1.4rem;
        letter-spacing: 0.8px;
    }
}

@media (min-width: 1920px) {
    .hero-content h1 {
        font-size: 7rem;
        letter-spacing: 0.04em;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .hero-content p {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 1200px) {
    .gallery-container {
        column-count: 3;
        column-gap: 20px;
        padding: 30px 20px;
        max-width: 1000px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
        letter-spacing: 0.015em;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .hero-content p {
        font-size: 1.1rem;
        letter-spacing: 0.6px;
    }
}


/* Tablet and small desktop */

@media (max-width: 992px) {
    .gallery-container {
        column-count: 2;
        column-gap: 20px;
        padding: 25px 15px;
        max-width: 800px;
    }
    #carousel-section {
        padding: 3rem 0.1rem;
    }
    .carousel-container {
        height: 350px;
        max-width: 98%;
        border-radius: 12px 12px 0 0;
    }
    .carousel-button {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    .carousel-button.prev {
        left: 15px;
    }
    .carousel-button.next {
        right: 15px;
    }
    .thumbnail-container {
        padding: 12px 0;
        max-width: 98%;
        border-radius: 0 0 12px 12px;
        background: var(--card-bg);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    }
    .carousel-slide img {
        height: 350px;
        object-fit: cover;
        border-radius: 15px;
    }
    #gallery {
        padding: 3rem 1rem;
    }
}


/* Tablet */

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0.6rem 1rem;
        background: var(--header-bg);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px var(--shadow-medium);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }
    .logo {
        font-size: 1rem;
        font-weight: bold;
        color: var(--accent-color);
    }
    .logo i {
        font-size: 1rem;
        margin-right: 0.3rem;
    }
    nav {
        display: flex;
        gap: 0.4rem;
    }
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(0, 123, 255, 0.1);
        border: 1px solid rgba(0, 123, 255, 0.2);
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
        margin: 0;
        padding: 0;
    }
    .nav-link span {
        display: none;
    }
    .nav-link i {
        font-size: 0.8rem;
    }
    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }
    .hero-content h1::after {
        bottom: -6px;
        height: 2px;
    }
    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
        line-height: 1.4;
    }
    #carousel-section {
        padding: 2.5rem 1rem;
    }
    .carousel-button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    .thumbnail-item {
        width: 85px;
        height: 55px;
    }
    .gallery-container {
        column-count: 2;
        column-gap: 15px;
        padding: 20px 10px;
        max-width: 100%;
    }
    .gallery-item {
        margin-bottom: 20px;
        border-radius: 12px;
    }
    .gallery-item img {
        border-radius: 12px;
    }
    .gallery-item:hover {
        transform: translateY(-5px) scale(1.01);
    }
    .modal-content {
        max-width: 98vw;
        max-height: 85vh;
    }
    .close {
        font-size: 35px;
        top: 10px;
        right: 25px;
    }
}


/* Mobile */

@media (max-width: 480px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.8rem;
        position: fixed;
        background: var(--header-bg);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 2px 20px var(--shadow-medium);
    }
    body {
        padding-top: 55px;
    }
    .logo {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    .logo i {
        font-size: 0.9rem;
    }
    nav {
        margin-top: 0;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0.15rem;
        overflow: hidden;
    }
    .nav-link {
        margin: 0;
        padding: 0.15rem;
        background: transparent;
        border: none;
        border-radius: 50%;
        font-size: 0.6rem;
        min-height: 24px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .nav-link span {
        display: none;
    }
    .nav-link i {
        font-size: 0.7rem;
        color: var(--accent-color);
    }
    .nav-link:hover {
        background: rgba(0, 123, 255, 0.2);
        transform: scale(1.1);
        border-color: rgba(0, 123, 255, 0.4);
    }
    #hero {
        padding-top: 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0.6rem;
    }
    .hero-content h1::after {
        bottom: -4px;
        height: 2px;
    }
    .hero-content p {
        font-size: 0.75rem;
        padding: 0 0.3rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-align: center;
    }
    /* Enhanced carousel mobile experience */
    #carousel-section {
        padding: 2rem 0.05rem;
    }
    .carousel-container {
        height: 250px;
        max-width: 99%;
        border-radius: 15px 15px 0 0;
        position: relative;
        overflow: hidden;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }
    .carousel-slide {
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }
    .carousel-slide img {
        height: 250px;
        object-fit: cover;
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        backdrop-filter: blur(20px);
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        color: var(--text-primary);
    }
    .carousel-button:hover {
        transform: translateY(-50%) scale(1.05);
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
        color: var(--accent-color);
        border-color: rgba(255, 255, 255, 0.4);
    }
    .prev {
        left: 10px;
    }
    .next {
        right: 10px;
    }
    /* Enhanced thumbnail experience */
    .thumbnail-container {
        margin: 0 auto;
        padding: 12px 0;
        max-width: 99%;
        background: var(--card-bg);
        border-radius: 0 0 15px 15px;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    }
    .thumbnail-track {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 10px;
        justify-content: flex-start;
    }
    .thumbnail-track::-webkit-scrollbar {
        display: none;
    }
    .thumbnail-item {
        width: 60px;
        height: 40px;
        min-width: 60px;
        flex-shrink: 0;
        border-radius: 6px;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    .thumbnail-item.active {
        border-color: var(--accent-color);
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
    .thumbnail-item:hover {
        transform: scale(1.05);
        border-color: var(--border-color);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    }
    #gallery {
        padding: 2rem 1rem;
    }
    #gallery h2 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    #gallery h2 i {
        font-size: 1.4rem;
    }
    /* Enhanced gallery mobile experience - Grid Layout */
    .gallery-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
        margin: 0 auto;
        max-width: 100%;
        column-count: unset !important;
        column-gap: unset;
    }
    .gallery-item {
        margin-bottom: 0;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        transition: all 0.25s ease;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        width: 100%;
        aspect-ratio: 1;
        position: relative;
        /* 确保容器为相对定位 */
    }
    
    /* 移动端分类标签样式 */
    .category-tag {
        position: absolute;
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 0.6rem;
        border-radius: 4px;
        font-weight: 500;
        letter-spacing: 0.2px;
        z-index: 15;
        background: rgba(0, 0, 0, 0.8);
        color: #e8e8e8;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
        transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .gallery-item:hover .category-tag {
        transform: scale(1.05);
    }
    .gallery-item img {
        border-radius: 10px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    .gallery-item:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 123, 255, 0.2);
        border-color: rgba(0, 123, 255, 0.3);
    }
    .gallery-item:hover img {
        transform: scale(1.05);
        border-radius: 15px;
        transition: all 0.4s ease;
    }
    /* Loading animation for gallery items */
    .gallery-item {
        animation: fadeInUp 0.6s ease-out;
    }
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .gallery-item .overlay {
        font-size: 1rem;
        /* 移动端触摸优化 */
        gap: 8px;
        padding: 16px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        border-radius: 10px !important;
        /* 确保overlay完全覆盖图片 */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        position: absolute;
        z-index: 10;
        pointer-events: auto;
    }
    
    .gallery-item .overlay span {
        min-width: 36px;
        min-height: 36px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 18px;
        transition: all 0.3s ease;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.3);
        font-size: 0.85rem;
        flex-shrink: 0;
        color: #1d1d1f;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        z-index: 20;
        pointer-events: auto;
        position: relative;
    }
    
    .gallery-item .overlay span:hover,
    .gallery-item .overlay span:active,
    .gallery-item .overlay span:focus {
        background: rgba(255, 255, 255, 0.95);
        transform: scale(1.08);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
        border-color: rgba(0, 122, 255, 0.3);
        color: #007aff;
    }
    
    /* 暗色主题下的移动端按钮样式 */
    [data-theme="dark"] .gallery-item .overlay span {
        background: rgba(28, 28, 30, 0.9);
        color: #f2f2f7;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    [data-theme="dark"] .gallery-item .overlay span:hover,
    [data-theme="dark"] .gallery-item .overlay span:active,
    [data-theme="dark"] .gallery-item .overlay span:focus {
        background: rgba(28, 28, 30, 0.95);
        color: #bb86fc;
        border-color: rgba(187, 134, 252, 0.4);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    /* Enhanced modal mobile experience */
    .modal {
        padding: 1rem;
    }
    .modal-content {
        width: auto;
        height: auto;
        margin: 10px auto;
        max-width: 98vw;
        max-height: 80vh;
        object-fit: contain;
        border-radius: 15px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    .close {
        font-size: 24px;
        top: 5px;
        right: 15px;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .prev-modal,
    .next-modal {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(15px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        margin-top: -22px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        color: white;
        font-weight: bold;
        padding: 0;
        top: 50%;
        position: absolute;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        z-index: 1002;
    }
    .prev-modal {
        left: 15px;
        border-radius: 0 50% 50% 0;
    }
    .next-modal {
        right: 15px;
        border-radius: 50% 0 0 50%;
    }
    .prev-modal:hover,
    .next-modal:hover {
        transform: scale(1.15);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
        background: rgba(0, 0, 0, 0.9);
        border-color: rgba(255, 255, 255, 0.5);
    }
    .prev-modal:active,
    .next-modal:active {
        transform: scale(1.05);
        transition: all 0.1s ease;
    }
    .file-info-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 90%;
        max-height: 85vh;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    .about-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 90%;
        max-height: 85vh;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}


/* Extra small screens - single column grid */

@media (max-width: 360px) {
    .gallery-container {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 12px;
    }
    .gallery-item {
        aspect-ratio: 1;
    }
    .gallery-item .overlay {
        font-size: 0.9rem;
        gap: 6px;
        padding: 12px;
    }
    
    .gallery-item .overlay span {
        min-width: 36px;
        min-height: 36px;
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    /* 超小屏幕文件信息模态框优化 */
    .file-info-content {
        width: 98%;
        padding: 15px;
        margin: 2% auto;
    }
    .file-info-title {
        font-size: 1.2rem;
    }
    .file-info-label {
        font-size: 0.9rem;
    }
    .file-info-value {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .file-info-button {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
        min-width: 100px;
    }
    
    /* 移动端文件信息模态框关闭按钮适配 */
    .file-info-close {
        width: 36px;
        height: 36px;
        font-size: 22px;
        position: relative;
        flex-shrink: 0;
    }
    
    .file-info-header {
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
    
    .gallery-item .overlay .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        margin: 0 2px;
    }
}


/* About Modal */

.about-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: var(--overlay-bg);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    transition: background-color 0.3s ease;
}

.about-content {
    background: var(--card-bg);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 700px;
    border-radius: 16px;
    box-shadow: 0 16px 48px var(--shadow-heavy), 0 4px 16px var(--shadow-medium);
    animation: fadeIn 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    transition: border-color 0.3s ease;
}

.about-title {
    font-size: 2.2rem;
    color: var(--accent-color);
    font-weight: 600;
    font-family: 'Dancing Script', cursive;
    letter-spacing: 0.05em;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-title i {
    font-size: 1.3rem;
    color: var(--accent-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: var(--accent-color);
    }
}

.about-close {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
}

.about-close:hover {
    color: var(--error-color);
    background: rgba(255, 59, 48, 0.1);
    transform: scale(1.1);
}


/* Page Access Modal */

.page-access-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: var(--overlay-bg);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    transition: background-color 0.3s ease;
}

.page-access-content {
    background: var(--card-bg);
    margin: 15% auto;
    padding: 15px;
    border: 1px solid var(--border-color);
    width: 85%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-heavy), 0 2px 8px var(--shadow-medium);
    animation: fadeIn 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-access-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.page-access-title {
    color: var(--accent-color);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.page-access-body {
    margin-bottom: 15px;
}

.page-access-body p {
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    font-size: 14px;
    text-align: center;
}

.page-access-body input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s ease;
}

.page-access-body input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.page-access-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
    min-height: 16px;
}

.page-access-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-access-button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
}

.page-access-button.confirm {
    background: var(--accent-color);
    color: white;
}

.page-access-button.confirm:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transform: translateY(-1px);
}

.page-access-button.confirm:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

@media (max-width: 768px) {
    .page-access-content {
        margin: 20% auto;
        width: 90%;
        max-width: 280px;
        padding: 12px;
    }
    .page-access-title {
        font-size: 16px;
    }
    .page-access-body p {
        font-size: 13px;
    }
    .page-access-body input {
        font-size: 13px;
        padding: 7px 10px;
    }
    .page-access-button {
        font-size: 13px;
        padding: 7px 16px;
        min-width: 70px;
    }
}


/* Password Modal */

.password-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.password-content {
    background-color: #1e1e1e;
    margin: auto;
    padding: 15px;
    border: 1px solid #666;
    width: 85%;
    max-width: 320px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
    animation: fadeIn 0.3s;
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #666;
    padding-bottom: 10px;
}

.password-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.password-title i {
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

.password-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.password-close:hover {
    color: var(--accent-color);
    background: rgba(187, 134, 252, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(187, 134, 252, 0.3);
}

.password-close:active {
    transform: scale(0.95);
}

.password-body {
    margin-bottom: 20px;
}

.password-body p {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 1rem;
}

#passwordInput {
    width: 100%;
    padding: 12px;
    border: 1px solid #666;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#passwordInput:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    background-color: #333;
}

.password-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 5px;
    min-height: 20px;
}

.password-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.password-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.password-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.password-button:hover::before {
    left: 100%;
}

.password-button.confirm {
    background: var(--accent-color);
    color: white;
}

.password-button.cancel {
    background: var(--text-muted);
    color: white;
}

.password-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.password-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.password-button:disabled::before {
    display: none;
}


/* 手机模式下的优化 */

@media (max-width: 480px) {
    .password-content {
        width: 95%;
        padding: 15px;
        margin: 5% auto;
        max-height: 85vh;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    .password-title {
        font-size: 1.2rem;
    }
    .password-actions {
        justify-content: center;
    }
    .password-button {
        min-width: 100px;
        padding: 0.7rem 1.2rem;
    }
    
    /* 移动端密码模态框关闭按钮适配 */
    .password-close {
        width: 36px;
        height: 36px;
        font-size: 22px;
        position: relative;
        flex-shrink: 0;
    }
    
    .password-header {
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
}

.about-body {
    margin-bottom: 20px;
}

.about-section {
    margin-bottom: 20px;
}

.about-section h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.about-section p {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.about-actions {
    display: flex;
    justify-content: flex-end;
}

.about-button {
    background-color: var(--accent-color);
    color: var(--button-text);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-medium);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-heavy);
}

/* About模态框移动端适配 */
@media (max-width: 480px) {
    .about-content {
        width: 95%;
        padding: 15px;
        margin: 5% auto;
        max-height: 85vh;
        border-radius: 15px;
    }
    .about-title {
        font-size: 1.3rem;
    }
    .about-section h3 {
        font-size: 1.1rem;
    }
    .about-actions {
        justify-content: center;
    }
    .about-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* 移动端关闭按钮适配 */
    .about-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        position: relative;
        flex-shrink: 0;
    }
    
    .about-header {
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
}


/* 主页统计信息样式 */

.stats-section-main {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .stats-section-main {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .stats-section-main {
        padding: 1.5rem 0.5rem;
    }
}

.stats-container-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: all 0.3s ease;
    min-width: 200px;
}

.stat-item-main:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.stat-item-main i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label-main {
    font-size: 0.9rem;
    color: #cccccc;
    text-align: center;
    margin-bottom: 0.5rem;
}

.stat-value-main {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary);
    text-align: center;
}


/* 响应式设计 */

@media (max-width: 768px) {
    .stats-section-main {
        padding: 2rem 1rem;
    }
    .stats-container-main {
        gap: 2rem;
    }
    .stat-item-main {
        min-width: 180px;
        padding: 1rem 1.2rem;
    }
    .stat-item-main i {
        font-size: 1.6rem;
    }
    .stat-label-main {
        font-size: 0.8rem;
    }
    .stat-value-main {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-section-main {
        padding: 1.5rem 0.5rem;
    }
    .stats-container-main {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    .stat-item-main {
        min-width: 120px;
        max-width: 45%;
        padding: 0.8rem 0.5rem;
        flex: 1;
    }
    .stat-item-main i {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    .stat-label-main {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    .stat-value-main {
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .stats-container-main {
        gap: 0.5rem;
        flex-direction: column;
    }
    .stat-item-main {
        min-width: 100px;
        max-width: 90%;
        padding: 0.6rem 0.5rem;
        width: 100%;
    }
    .stat-item-main i {
        font-size: 1.2rem;
    }
    .stat-label-main {
        font-size: 0.7rem;
    }
    .stat-value-main {
        font-size: 1.1rem;
    }
}


/* 关于模态框中的统计信息样式 */

.stats-section {
    border-top: 1px solid #666;
    padding-top: 15px;
    margin-top: 15px;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: var(--card-bg);
    border-radius: 6px;
    border: 2px solid var(--border-color);
    min-width: 200px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px var(--shadow-light);
}

.stat-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.stat-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
    width: 16px;
    text-align: center;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.95rem;
    margin-left: auto;
}


/* Hero Section Text Effects */

#hero .hero-content h1,
#hero .hero-content p {
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: fadeIn 1.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#hero .hero-content h1 span,
#hero .hero-content p span {
    position: relative;
    z-index: 2;
    display: inline;
    /* 显示文本 */
}


/* 霓虹灯效果 */

#hero .hero-content h1 {}

#hero .hero-content p {}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent
    }
    50% {
        border-color: orange
    }
}


/* 渐变动画效果 */



#hero .hero-content p {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: 'Playfair Display', 'Noto Serif SC', 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px var(--shadow-medium);
    transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), text-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}


/* 鼠标跟随光晕效果 */

.mouse-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.2);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.mouse-glow.active {
    opacity: 1;
}


/* 弹性缩放动画 */

@keyframes elasticScale {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.3);
    }
    60% {
        transform: scale(0.9);
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.2);
    }
}


/* 彩虹渐变文字效果 */

.rainbow-text {
    color: var(--accent-color);
    animation: rainbowMove 3s ease-in-out infinite;
}

@keyframes rainbowMove {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}


/* 导航按钮样式 */

.back-to-top-btn,
.scroll-to-bottom-btn,
.theme-toggle-btn {
    display: none;
    position: fixed;
    background: var(--card-bg);
    color: var(--accent-color);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    text-decoration: none;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    box-shadow: 0 2px 8px var(--shadow-light);
    backdrop-filter: blur(10px);
}

.back-to-top-btn {
    bottom: 140px;
    right: 10px;
}

.theme-toggle-btn {
    bottom: 80px;
    right: 10px;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    transform: translateY(0) scale(1);
    transition: all 0.3s ease;
}

/* 鼠标悬停时完全显示 */
.theme-toggle-btn:hover {
    background: var(--accent-color);
    color: var(--button-text);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px var(--shadow-medium);
    transform: translateY(-2px) scale(1.05);
}

/* 主题切换按钮图标动画 */
.theme-toggle-btn i {
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.theme-toggle-btn:hover i {
    transform: rotate(180deg) scale(1.1);
}

/* 主题切换过渡动画 */
.theme-transitioning * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* 主题切换时的图标动画 */
[data-theme="dark"] .theme-toggle-btn i::before {
    content: "\f185"; /* sun icon */
}

.theme-toggle-btn i::before {
    content: "\f186"; /* moon icon */
}

.scroll-to-bottom-btn {
    bottom: 20px;
    right: 10px;
}

.back-to-top-btn.show,
.scroll-to-bottom-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* 鼠标悬停时完全显示 */
.back-to-top-btn:hover,
.scroll-to-bottom-btn:hover {
    background: var(--accent-color);
    color: var(--button-text);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px var(--shadow-medium);
    transform: translateY(-2px) scale(1.05);
}



.back-to-top-btn:active,
.scroll-to-bottom-btn:active,
.theme-toggle-btn:active {
    transform: translateY(0) scale(0.95);
    transition: all 0.1s;
}

/* 按钮图标动画 */
.back-to-top-btn i,
.scroll-to-bottom-btn i {
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover i {
    transform: translateY(-2px);
}

.scroll-to-bottom-btn:hover i {
    transform: translateY(2px);
}

/* 动画优化 */
.gallery-item,
.carousel-slide,
.back-to-top-btn,
.scroll-to-bottom-btn,
.modal,
.hero-section,
.carousel-button,
.thumbnail-item {
    /* 移除硬件加速以符合用户要求 */
}

/* 移动端导航按钮优化 */
@media (max-width: 768px) {
    .back-to-top-btn,
    .scroll-to-bottom-btn,
    .theme-toggle-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
        right: 8px;
    }
    
    .back-to-top-btn {
        bottom: 125px;
    }
    
    .theme-toggle-btn {
        bottom: 70px;
    }
    
    .scroll-to-bottom-btn {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .back-to-top-btn,
    .scroll-to-bottom-btn,
    .theme-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
        right: 6px;
    }
    
    .back-to-top-btn {
        bottom: 115px;
    }
    
    .theme-toggle-btn {
        bottom: 65px;
    }
    
    .scroll-to-bottom-btn {
        bottom: 12px;
    }
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem 0 2rem 0;
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 123, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: visible;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 48px;
    height: 48px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.25), 0 4px 16px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(0, 123, 255, 0.5);
    backdrop-filter: blur(16px) saturate(180%) brightness(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.15);
    z-index: 10;
    position: relative;
}

.pagination-btn.active {
    background: var(--accent-color);
    color: var(--button-text);
    font-weight: 700;
    box-shadow: 0 4px 12px var(--shadow-medium);
    border-color: var(--accent-color);
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn.prev-btn,
.pagination-btn.next-btn {
    min-width: 50px;
    font-size: 18px;
}

.pagination-ellipsis {
    color: var(--text-secondary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0 8px;
}

.page-info {
    color: var(--text-secondary);
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-size: 14px;
    text-align: center;
    text-shadow: 1px 1px 2px var(--shadow-light);
    letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-container {
        margin: 2rem 1rem 1rem 1rem;
        padding: 1.5rem 1rem;
    }
    
    .pagination {
        gap: 6px;
    }
    
    .pagination-btn {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .pagination-btn.prev-btn,
    .pagination-btn.next-btn {
        min-width: 44px;
        font-size: 16px;
    }
    
    .page-info {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        margin: 1.5rem 0.5rem 0.5rem 0.5rem;
        padding: 1rem 0.8rem;
        border-radius: 16px;
        border: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        overflow: visible;
    }
    
    .pagination {
        gap: 4px;
        margin-bottom: 0.3rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        padding: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .pagination::-webkit-scrollbar {
        display: none;
    }
    
    .pagination-btn {
        min-width: 24px;
        height: 24px;
        font-size: 10px;
        border-radius: 8px;
        flex-shrink: 0;
        font-weight: 500;
    }
    
    .pagination-btn:hover:not(:disabled) {
        transform: translateY(-2px) scale(1.03);
    }
    
    .pagination-btn.prev-btn,
    .pagination-btn.next-btn {
        min-width: 26px;
        font-size: 11px;
    }
    
    .pagination-ellipsis {
        font-size: 10px;
        padding: 0 1px;
        flex-shrink: 0;
    }
    
    .page-info {
        font-size: 9px;
        margin-top: 0.2rem;
    }
    
    /* 移动端分类按钮样式 */
    .category-filter-container {
        margin: 1.5rem 0.5rem 2rem 0.5rem;
        padding: 0 10px;
    }
    
    .category-filter-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 1rem;
        border-radius: 16px;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .category-btn {
        padding: 8px;
        font-size: 0.8rem;
        border-radius: 50%;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        position: relative;
        transition: all 0.3s ease;
        display: flex;
    }
    
    .category-btn i {
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }
    
    .category-btn span {
        display: none;
    }
    
    /* 移动端tooltip效果 */
    .category-btn::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 0.7rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        pointer-events: none;
        backdrop-filter: blur(10px);
    }
    
    .category-btn:hover::after {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-4px);
    }
    
    /* 为tooltip添加小箭头 */
    .category-btn::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-2px);
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid rgba(0, 0, 0, 0.8);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        pointer-events: none;
    }
    
    .category-btn:hover::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(2px);
    }
    
    .category-btn:hover {
        transform: translateY(-2px) scale(1.05);
    }
    
    .category-btn:hover i {
        transform: scale(1.1);
    }
    
    /* 移动端加载屏幕样式 */
    .loading-content {
        padding: 0 20px;
        max-width: 90vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .camera-logo {
        width: 100px;
        height: 70px;
        margin: 0 auto 25px;
    }
    
    .camera-body {
        height: 50px;
    }
    
    .camera-lens {
        width: 38px;
        height: 38px;
    }
    
    .lens-inner {
        width: 25px;
        height: 25px;
    }
    
    .loading-title {
        font-size: 2rem;
        margin: 0 0 8px 0;
    }
    
    .loading-subtitle {
        font-size: 1rem;
        margin: 0 0 25px 0;
        letter-spacing: 1px;
    }
    
    .loading-progress {
        width: 160px;
        margin: 0 auto 15px;
    }
    
    .loading-dots {
        gap: 6px;
    }
    
    .loading-dots span {
        width: 6px;
        height: 6px;
    }
}