/* 全局样式 - 黑客主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 黑客主题色彩 */
    --primary-color: #00ff41;
    --secondary-color: #00bfff;
    --accent-color: #ff0000;
    --text-color: #00ff41;
    --text-light: #00cccc;
    --bg-color: #0a0a0a;
    --card-bg: #121212;
    --border-color: #00ff41;
    --highlight-color: #ff00ff;
    
    /* 样式变量 */
    --border-radius: 4px;
    --transition: all 0.3s ease;
    --shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    --shadow-hover: 0 0 20px rgba(0, 255, 65, 0.4);
    --font-main: 'Courier New', monospace;
    
    /* 间距变量 */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-xxl: 50px;
    
    /* 字体大小 */
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.9rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.2rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    --font-size-xxxl: 2.8rem;
    
    /* 黑客特效变量 */
    --glitch-offset: 2px;
    --scanline-height: 2px;
    --scanline-color: rgba(0, 255, 65, 0.1);
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
    
    /* 黑客背景效果 */
    background-image: 
        radial-gradient(circle at 100% 100%, rgba(0, 255, 65, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 0% 0%, rgba(0, 191, 255, 0.05) 0%, transparent 20%);
    
    /* 模拟终端闪烁光标 */
    position: relative;
}

/* 扫描线效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--scanline-color) 50%,
        transparent 51%
    );
    background-size: 100% var(--scanline-height);
    pointer-events: none;
    z-index: 9999;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 黑客主题 */
.navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    transition: var(--transition);
    transform: translateY(0);
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar.scrolled {
    padding: var(--spacing-xs) 0;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    
    /* 黑客文字动画 */
    animation: textGlitch 5s infinite;
}

@keyframes textGlitch {
    0% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
    2% { text-shadow: var(--glitch-offset) var(--glitch-offset) 0 var(--highlight-color); }
    3% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
    8% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
    9% { text-shadow: calc(-1 * var(--glitch-offset)) calc(-1 * var(--glitch-offset)) 0 var(--secondary-color); }
    10% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
    15% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
    16% { text-shadow: var(--glitch-offset) calc(-1 * var(--glitch-offset)) 0 var(--highlight-color); }
    17% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
    25% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
    26% { text-shadow: calc(-1 * var(--glitch-offset)) var(--glitch-offset) 0 var(--secondary-color); }
    27% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
    100% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* 终端风格下划线 */
    border-bottom: 1px dashed transparent;
}

.nav-links a:hover {
    color: var(--highlight-color);
    border-bottom-color: var(--highlight-color);
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* 英雄区域 - 黑客主题 */
.hero {
    /* 黑客主题背景 - 终端风格 */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                repeating-linear-gradient(
                    0deg,
                    rgba(0, 255, 65, 0.02),
                    rgba(0, 255, 65, 0.02) 1px,
                    transparent 1px,
                    transparent 2px
                );
    background-size: 100% 100%, 100% 20px;
    background-attachment: fixed;
    color: var(--primary-color);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    position: relative;
    overflow: hidden;
    
    /* 终端网格线效果 */
    border-bottom: 1px solid var(--primary-color);
}

/* 数字雨背景效果 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><text x="50%" y="50%" font-family="monospace" font-size="10" fill="rgba(0,255,65,0.2">010101</text></svg>');
    opacity: 0.2;
    pointer-events: none;
    animation: matrixRain 20s linear infinite;
}

@keyframes matrixRain {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out, textGlitch 3s infinite;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both, textPulse 2s infinite;
    color: var(--text-light);
    font-family: var(--font-main);
}

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

.btn-upload {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 0.4s both;
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-upload::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: left 0.5s;
}

.btn-upload:hover {
    background-color: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.btn-upload:hover::before {
    left: 100%;
}

/* 上传区域 - 黑客主题 */
.upload-section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
}

/* 终端装饰角 */
.upload-section::before,
.upload-section::after,
.upload-section header::before,
.upload-section header::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--primary-color);
    border-style: solid;
    opacity: 0.7;
}

.upload-section::before {
    top: 10px;
    left: 10px;
    border-width: 2px 0 0 2px;
}

.upload-section::after {
    top: 10px;
    right: 10px;
    border-width: 2px 2px 0 0;
}

.upload-section header::before {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 2px 2px;
}

.upload-section header::after {
    bottom: 10px;
    right: 10px;
    border-width: 0 2px 2px 0;
}

.upload-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.drop-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: center;
    transition: var(--transition);
    margin-bottom: 20px;
    cursor: pointer;
    background-color: rgba(0, 255, 65, 0.02);
}

.drop-area:hover,
.drop-area.active {
    border-color: var(--highlight-color);
    background-color: rgba(0, 255, 65, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.drop-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.drop-area p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-family: var(--font-main);
}

.drop-area input[type="file"] {
    display: none;
}

.btn-choose {
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-main);
}

.btn-choose:hover {
    background-color: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.album-selector {
    margin-bottom: 20px;
    text-align: center;
}

.album-selector label {
    margin-right: 10px;
    font-weight: 500;
    color: var(--text-light);
}

.album-selector select {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-family: var(--font-main);
}

.upload-progress {
    height: 10px;
    background-color: rgba(0, 255, 65, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.upload-progress.show {
    opacity: 1;
    transform: translateY(0);
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: var(--font-main);
    letter-spacing: 1px;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.preview-item.loading {
    height: 150px;
    background-color: rgba(0, 255, 65, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    border: 1px dashed var(--border-color);
}

/* 加载动画效果 */
.preview-item.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: loadingScan 1.5s linear infinite;
}

@keyframes loadingScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.preview-loading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.preview-filename {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    text-align: center;
    padding: 0 5px;
    word-break: break-all;
    font-family: var(--font-main);
}

.preview-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: var(--transition);
}

.preview-item:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.03);
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    filter: contrast(1.1);
}

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0.8;
}

.preview-remove:hover {
    background-color: var(--accent-color);
    color: var(--card-bg);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    opacity: 1;
}

/* 相册分类样式 - 黑客主题 */
.albums-section {
    padding: 50px 0;
    background-color: var(--bg-color);
    position: relative;
}

/* 网格背景 */
.albums-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.albums-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    position: relative;
}

/* 标题装饰 */
.albums-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.add-album-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.add-album-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.3), transparent);
    transition: left 0.5s;
}

.add-album-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}

.add-album-btn:hover::before {
    left: 100%;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.album-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid var(--border-color);
}

/* 相册项装饰角 */
.album-item::before,
.album-item::after,
.album-item > div::before,
.album-item > div::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--primary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.album-item::before {
    top: 0;
    left: 0;
    border-top: 1px solid var(--primary-color);
    border-left: 1px solid var(--primary-color);
}

.album-item::after {
    top: 0;
    right: 0;
    border-top: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
}

.album-item > div::before {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid var(--primary-color);
    border-left: 1px solid var(--primary-color);
}

.album-item > div::after {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
}

.album-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 故障效果 */
.album-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
    animation: glitch 0.05s linear infinite;
    animation-play-state: running;
    border-color: var(--primary-color);
}

.album-item:hover::before,
.album-item:hover::after,
.album-item:hover > div::before,
.album-item:hover > div::after {
    opacity: 1;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

@keyframes glitch {
    0% { transform: translateY(-5px) scale(1.02) translateX(0); }
    25% { transform: translateY(-5px) scale(1.02) translateX(-1px); }
    50% { transform: translateY(-5px) scale(1.02) translateX(1px); }
    75% { transform: translateY(-5px) scale(1.02) translateX(-1px); }
    100% { transform: translateY(-5px) scale(1.02) translateX(0); }
}

/* 相册项交错动画延迟 */
.album-item:nth-child(1) { transition-delay: 0.05s; }
.album-item:nth-child(2) { transition-delay: 0.10s; }
.album-item:nth-child(3) { transition-delay: 0.15s; }
.album-item:nth-child(4) { transition-delay: 0.20s; }
.album-item:nth-child(5) { transition-delay: 0.25s; }
.album-item:nth-child(6) { transition-delay: 0.30s; }
.album-item:nth-child(7) { transition-delay: 0.35s; }
.album-item:nth-child(8) { transition-delay: 0.40s; }
.album-item:nth-child(n+9) { transition-delay: 0.45s; }

.album-item:hover .album-actions {
    opacity: 1;
    transform: translateY(0);
}

.album-item.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.album-cover {
    height: 150px;
    background-color: rgba(0, 255, 65, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* 封面网格线效果 */
.album-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
    z-index: 1;
}

.album-item:hover .album-cover {
    transform: scale(1.05);
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
}

.album-item.active .album-cover {
    color: var(--bg-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.album-item h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: var(--font-main);
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

.album-item.active h3 {
    color: var(--bg-color);
    text-shadow: none;
}

.album-count {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
    font-family: var(--font-main);
}

.album-item.active .album-count {
    color: rgba(0, 0, 0, 0.8);
}

.album-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    gap: 5px;
}

.album-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

/* 按钮悬停发光效果 */
.album-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(0, 255, 65, 0.2);
    transition: width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

.album-action-btn:hover::before {
    width: 100px;
    height: 100px;
}

.album-item.active .album-action-btn {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--bg-color);
    border-color: var(--bg-color);
}

.album-action-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
}

.album-item.active .album-action-btn:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* 模态框样式 - 黑客主题 */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 模态框背景网格 */
.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* 扫描线效果 */
.modal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 255, 65, 0.3);
    opacity: 0.7;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% { top: -10px; }
    100% { top: 100%; }
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    border: 1px solid var(--border-color);
    position: relative;
}

/* 模态框装饰角 */
.modal-content::before,
.modal-content::after,
.modal-content > div::before,
.modal-content > div::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--primary-color);
    opacity: 0.6;
}

.modal-content::before {
    top: 0;
    left: 0;
    border-top: 1px solid var(--primary-color);
    border-left: 1px solid var(--primary-color);
}

.modal-content::after {
    top: 0;
    right: 0;
    border-top: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
}

.modal-content > div::before {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid var(--primary-color);
    border-left: 1px solid var(--primary-color);
}

.modal-content > div::after {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.modal-close {
    background: none;
    border: 1px solid var(--accent-color);
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--accent-color);
    transition: all 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

.modal-close:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
    font-family: var(--font-main);
    letter-spacing: 1px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-family: var(--font-main);
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.2);
}

.form-group input[type="text"]::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* 图标选择器样式 - 黑客主题 */
.icon-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.icon-option {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.5rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* 图标选择器悬停效果 */
.icon-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.3s;
}

.icon-option:hover {
    background-color: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.icon-option:hover::before {
    left: 100%;
}

.icon-option.selected {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.icon-option.selected::after {
    content: '✓';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.8rem;
    background-color: var(--bg-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* 按钮悬停发光效果 */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.5s, height 0.5s;
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.btn-danger:hover {
    background-color: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

/* 照片库 */
.gallery-section {
    padding: 50px 0;
    margin-bottom: 50px;
    position: relative;
    background: var(--bg-color);
    overflow: hidden;
}

/* 照片库网格背景 */
.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.gallery-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    position: relative;
}

/* 标题装饰线 */
.gallery-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.sort-options {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-family: var(--font-main);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.sort-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: left 0.5s;
}

.sort-btn.active,
.sort-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

.sort-btn:hover::before {
    left: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transform: perspective(1000px) rotateY(0deg);
}

/* 照片项装饰角 */
.gallery-item::before,
.gallery-item::after,
.gallery-item > div::before,
.gallery-item > div::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--primary-color);
    opacity: 0.6;
    z-index: 2;
}

.gallery-item::before {
    top: 0;
    left: 0;
    border-top: 1px solid var(--primary-color);
    border-left: 1px solid var(--primary-color);
}

.gallery-item::after {
    top: 0;
    right: 0;
    border-top: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
}

.gallery-item > div::before {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid var(--primary-color);
    border-left: 1px solid var(--primary-color);
}

.gallery-item > div::after {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
}

.gallery-item:hover {
    transform: scale(1.03) perspective(1000px) rotateY(5deg);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.3);
    border-color: var(--primary-color);
}

.gallery-item:hover {
    animation: glitch 0.3s linear 3;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: var(--border-radius);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(0, 255, 65, 0.3);
    transition: width 0.5s, height 0.5s;
    transform: translate(-50%, -50%);
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    transform: translateY(-3px);
}

.action-btn:hover::before {
    width: 150px;
    height: 150px;
}

.no-photos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: var(--text-light);
    font-size: 1.1rem;
    font-family: var(--font-main);
    letter-spacing: 1px;
    background-color: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
}

/* 灯箱样式 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    color: var(--text-light);
    overflow: hidden;
}

/* 灯箱网格背景 */
.lightbox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* 扫描线效果 */
.lightbox::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    animation: scanline 0.2s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox.active {
    animation: glitch 0.5s linear;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* 灯箱内容装饰角 */
.lightbox-content::before,
.lightbox-content::after,
.lightbox-content > div::before,
.lightbox-content > div::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: var(--primary-color);
    opacity: 0.6;
    z-index: 11;
}

.lightbox-content::before {
    top: -5px;
    left: -5px;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

.lightbox-content::after {
    top: -5px;
    right: -5px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.lightbox-content > div::before {
    bottom: -5px;
    left: -5px;
    border-bottom: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

.lightbox-content > div::after {
    bottom: -5px;
    right: -5px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.lightbox-content img:hover {
    filter: contrast(1.1);
}

/* 灯箱信息 */
.lightbox-info {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    max-width: 80%;
    text-align: center;
    border: 1px solid var(--border-color);
    z-index: 10;
}

.lightbox-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-family: var(--font-main);
    letter-spacing: 1px;
}

.meta-album, .meta-date {
    font-weight: 500;
    color: var(--primary-color);
}

.meta-instruction {
    width: 100%;
    margin-top: 5px;
    font-size: var(--font-size-xs);
    color: var(--text-light);
    opacity: 0.7;
    text-transform: uppercase;
}

/* 灯箱删除按钮 */
.lightbox-delete {
    position: absolute;
    top: -60px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    font-size: var(--font-size-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.lightbox-delete::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: width 0.5s, height 0.5s;
    transform: translate(-50%, -50%);
}

.lightbox-delete:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

.lightbox-delete:hover::before {
    width: 150px;
    height: 150px;
}

/* 灯箱缩放控制 */
.lightbox-zoom-controls {
    position: absolute;
    bottom: -60px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border: 1px solid var(--border-color);
    z-index: 10;
}

.zoom-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.zoom-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(0, 255, 65, 0.2);
    transition: width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

.zoom-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.zoom-btn:hover::before {
    width: 100px;
    height: 100px;
}

.zoom-indicator {
    font-size: var(--font-size-sm);
    min-width: 40px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
}

/* 灯箱标题 */
.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    max-width: 60%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid var(--border-color);
    font-family: var(--font-main);
    letter-spacing: 1px;
    z-index: 10;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* 灯箱图片 */
#lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--border-color);
}

/* 懒加载图片样式 */
.photo-container img,
.lazy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
    background-color: var(--card-bg);
    background-size: 30px 30px;
    background-position: center;
}

/* 加载中的图片 */
.photo-container img.loading,
.lazy-img.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%2300ff41' stroke-width='2' stroke-dasharray='50 50' stroke-dashoffset='25' stroke-linecap='round' class='animate-spin'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    animation: pulse 1.5s ease-in-out infinite;
}

/* 加载完成的图片 */
.photo-container img.loaded,
.lazy-img.loaded {
    opacity: 1;
    background-image: none;
}

/* 加载失败的图片 */
.photo-container img.error,
.lazy-img.error {
    background-color: rgba(255, 0, 0, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='%23ff0000'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* 加载动画 */
@keyframes pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.7;
    }
}

/* 故障动画 */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* 滚动到视图时的淡入效果 */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 交错动画延迟 */
.gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-item:nth-child(2) { transition-delay: 0.10s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.20s; }
.gallery-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-item:nth-child(6) { transition-delay: 0.30s; }
.gallery-item:nth-child(7) { transition-delay: 0.35s; }
.gallery-item:nth-child(8) { transition-delay: 0.40s; }
.gallery-item:nth-child(9) { transition-delay: 0.45s; }
.gallery-item:nth-child(10) { transition-delay: 0.50s; }
.gallery-item:nth-child(n+11) { transition-delay: 0.55s; }

#lightbox-image.loading {
    opacity: 0.5;
    background: linear-gradient(45deg, #0a0a0a 25%, #1a1a1a 25%, #1a1a1a 50%, #0a0a0a 50%, #0a0a0a 75%, #1a1a1a 75%, #1a1a1a 100%);
    background-size: 20px 20px;
    animation: loadingAnimation 1s linear infinite;
    border: 1px solid var(--border-color);
}

@keyframes loadingAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

/* 灯箱导航按钮 */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 2001;
    position: relative;
    overflow: hidden;
}

/* 按钮悬停发光效果 */
.lightbox-close::before,
.lightbox-prev::before,
.lightbox-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(0, 255, 65, 0.3);
    transition: width 0.5s, height 0.5s;
    transform: translate(-50%, -50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px) scale(1.05);
}

.lightbox-close:hover::before,
.lightbox-prev:hover::before,
.lightbox-next:hover::before {
    width: 200px;
    height: 200px;
}

.lightbox-close {
    top: -60px;
    right: 0;
}

.lightbox-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

/* 页脚 - 黑客主题 */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

/* 页脚网格背景 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 15px 15px;
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer p {
    font-family: var(--font-main);
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(0, 255, 65, 0.2);
    transition: width 0.5s, height 0.5s;
    transform: translate(-50%, -50%);
}

.social-links a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    transform: translateY(-3px);
}

.social-links a:hover::before {
    width: 80px;
    height: 80px;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 通知组件 */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    z-index: 2000;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
    box-shadow: var(--shadow-hover);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.notification-success {
    background-color: var(--secondary-color);
}

.notification-error {
    background-color: var(--accent-color);
}

.notification-info {
    background-color: var(--primary-color);
}

/* 灯箱响应式设计 */
@media screen and (max-width: 768px) {
    .lightbox-info {
        max-width: 90%;
        font-size: var(--font-size-xs);
    }
    
    .lightbox-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .lightbox-caption {
        max-width: 80%;
        font-size: var(--font-size-sm);
    }
    
    .lightbox-delete {
        top: 10px;
        right: 60px;
        padding: 6px 12px;
        font-size: var(--font-size-xs);
    }
    
    .lightbox-zoom-controls {
        bottom: 10px;
        right: 10px;
        left: 10px;
        justify-content: center;
    }
    
    .lightbox-prev {
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-next {
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links ul {
        flex-direction: column;
        padding: 20px;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .album-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .drop-area {
        padding: 30px 15px;
    }
}

@media screen and (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .upload-section,
    .albums-section,
    .gallery-section {
        padding: var(--spacing-xl) 0;
    }

    .upload-section {
        padding: var(--spacing-md);
    }

    .album-cover {
        height: 150px;
    }

    .gallery-item img {
        height: 200px;
    }
    
    /* 移动端触摸友好设计 */
    .gallery-actions .action-btn,
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
    }
}

/* 黑客特效额外动画定义 */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes pixelGlow {
    0%, 100% { opacity: 0.3; box-shadow: 0 0 5px #0f0; }
    50% { opacity: 0.8; box-shadow: 0 0 20px #0f0, 0 0 30px #0f0; }
}

@keyframes dataFlow {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 1;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.4;
    }
}

@keyframes glitchColor {
    0% { color: #0f0; text-shadow: 0 0 5px #0f0; }
    20% { color: #f00; text-shadow: 0 0 5px #f00; }
    40% { color: #0ff; text-shadow: 0 0 5px #0ff; }
    60% { color: #0f0; text-shadow: 0 0 5px #0f0; }
    80% { color: #f00; text-shadow: 0 0 5px #f00; }
    100% { color: #0f0; text-shadow: 0 0 5px #0f0; }
}

@keyframes scanLine {
    0% { top: -10%; }
    100% { top: 100%; }
}

/* 黑客特效类 */
.glitch-char {
    display: inline-block;
    transition: all 0.1s ease;
}

.typewriter-cursor {
    animation: blink 1s infinite;
    color: #0f0;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 10px 1px rgba(0, 255, 0, 0.5);
    z-index: 999;
    pointer-events: none;
    animation: scanLine 5s linear infinite;
}

.digital-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    font-family: monospace;
    overflow: hidden;
}

.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 255, 0, 0.7);
    box-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: perspective(500px) rotateX(60deg) scale(2);
    transform-origin: center top;
    animation: gridMove 20s linear infinite;
}

.radial-scan {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid #0f0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100;
}

.data-stream {
    font-family: monospace;
    font-size: 12px;
    line-height: 1;
    color: #0f0;
    text-align: center;
    user-select: none;
}

.data-stream-char {
    display: inline-block;
}

/* ====== 黑客特效移动端适配 ====== */
@media (max-width: 768px) {
  /* 优化特效性能 */
  .digital-rain {
    font-size: 12px !important;
    opacity: 0.2 !important;
  }
  
  .glitch-text {
    font-size: 20px !important;
  }
  
  .typing-effect {
    font-size: 14px !important;
  }
  
  .scan-line {
    height: 2px !important;
    animation-duration: 6s !important;
  }
  
  .terminal-animation {
    font-size: 12px !important;
    padding: 15px !important;
  }
  
  .data-flow {
    font-size: 10px !important;
  }
  
  .grid-background {
    background-size: 25px 25px !important;
    animation-duration: 30s !important;
  }
  
  .cursor-trail {
    width: 8px !important;
    height: 8px !important;
  }
  
  .particle {
    display: none !important; /* 移动端禁用粒子效果以提高性能 */
  }
  
  /* 优化交互元素 */
  .mobile-menu-btn {
    position: relative;
    z-index: 1000;
    background: transparent;
    border: 1px solid #0f0;
    color: #0f0;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
  }
  
  /* 模态框优化 */
  .modal, .lightbox {
    padding: 10px;
  }
  
  /* 通知优化 */
  .hack-notification {
    max-width: 90% !important;
    margin: 5px !important;
    font-size: 12px !important;
    padding: 10px !important;
  }
  
  /* 加载指示器优化 */
  #hack-loader {
    font-size: 18px !important;
  }
  
  #hack-loader .progress-container {
    width: 200px !important;
  }
  
  /* 键盘提示优化 */
  #key-hint {
    font-size: 12px !important;
    padding: 8px 12px !important;
    bottom: 80px !important;
  }
  
  /* 图片查看器优化 */
  .image-viewer {
    padding: 5px;
  }
  
  /* 滚动进度条优化 */
  #scroll-progress {
    height: 4px !important;
  }
  
  /* 减少动画复杂度 */
  * {
    animation-duration: 1.5s !important;
    animation-timing-function: linear !important;
  }
}

/* 小屏幕设备（320px-480px）进一步优化 */
@media (max-width: 480px) {
  /* 简化特效 */
  .digital-rain {
    display: none !important; /* 最小屏幕完全禁用数字雨以提高性能 */
  }
  
  .grid-scan {
    animation-duration: 4s !important;
  }
  
  /* 简化终端动画 */
  .terminal-animation {
    font-size: 10px !important;
    max-height: 200px !important;
  }
  
  /* 优化加载指示器 */
  #hack-loader .progress-container {
    width: 150px !important;
    height: 15px !important;
  }
  
  /* 简化通知 */
  .hack-notification {
    font-size: 11px !important;
    padding: 8px !important;
  }
  
  /* 禁用更耗资源的特效 */
  .circuit-effects, .data-transfer-animation, .data-loading {
    display: none !important;
  }
  
  /* 简化导航交互 */
  .nav-item {
    padding: 8px 0 !important;
  }
  
  /* 键盘提示优化 */
  #key-hint {
    bottom: 60px !important;
  }
  
  /* 按钮优化 */
  button, .btn {
    padding: 8px 16px !important;
    font-size: 14px !important;
  }
  
  /* 减小技术指标显示 */
  .tech-stats {
    font-size: 10px !important;
    padding: 5px !important;
  }
  
  /* 进一步减少动画频率 */
  .scan-line {
    animation-duration: 8s !important;
  }
  
  .grid-background {
    animation-duration: 40s !important;
  }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* 提高网格背景清晰度 */
  .grid-background {
    background-size: 10px 10px;
  }
  
  /* 优化扫描线效果 */
  .scan-line {
    height: 1px;
  }
  
  /* 提高像素特效清晰度 */
  .pixel-effect img {
    image-rendering: crisp-edges;
  }
}

/* 认证相关样式 - 黑客主题 */
/* 模态框基础样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease, glitch 5s infinite;
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--scanline-color) 50%,
    transparent 51%
  );
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.2;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  background-color: rgba(0, 255, 65, 0.1);
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-color);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  text-shadow: 0 0 5px var(--primary-color);
}

.modal-close {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px var(--primary-color);
}

.modal-close:hover {
  background-color: rgba(0, 255, 65, 0.1);
  box-shadow: 0 0 10px var(--primary-color);
  transform: scale(1.1);
}

.modal-body {
  padding: 20px;
  position: relative;
}

/* 表单样式 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.form-group label {
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.form-group input {
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  font-family: var(--font-main);
  box-shadow: inset 0 0 5px rgba(0, 255, 65, 0.1);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3), inset 0 0 5px rgba(0, 255, 65, 0.2);
  background-color: rgba(0, 0, 0, 0.7);
}

.form-group input::placeholder {
  color: rgba(0, 204, 204, 0.5);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--text-light);
}

.form-options input[type="checkbox"] {
  accent-color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.form-options a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 0 3px rgba(0, 255, 65, 0.5);
}

.form-options a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
  text-shadow: 0 0 5px rgba(0, 191, 255, 0.7);
}

.form-actions {
  margin-top: 10px;
}

.auth-footer {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 0 0 3px rgba(0, 255, 65, 0.5);
}

.auth-footer a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
  text-shadow: 0 0 5px rgba(0, 191, 255, 0.7);
}

/* 用户下拉菜单 */
#user-menu-button {
  position: relative;
  list-style: none;
}

#user-menu-button a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 15px;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
}

#user-menu-button a:hover {
  background-color: rgba(0, 255, 65, 0.1);
  color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  min-width: 250px;
  z-index: 100;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
}

.dropdown-menu[style*="display: block"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-content {
  padding: 10px 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(0, 255, 65, 0.05);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 255, 65, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.user-details p {
  margin: 0;
}

.username {
  font-weight: 500;
  color: var(--primary-color);
  text-shadow: 0 0 3px rgba(0, 255, 65, 0.5);
}

.email {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2px;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 5px 0;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.dropdown-content a:hover {
  background-color: rgba(0, 255, 65, 0.1);
  color: var(--primary-color);
  text-shadow: 0 0 3px rgba(0, 255, 65, 0.5);
  padding-left: 20px;
}

/* 登录提示 */
.login-required {
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.login-required::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(0, 255, 65, 0.05) 50%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: loginBgMove 10s linear infinite;
}

@keyframes loginBgMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.login-required i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  position: relative;
  z-index: 1;
}

.login-required h3 {
  margin: 0 0 10px 0;
  color: var(--primary-color);
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-required p {
  color: var(--text-light);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* 按钮样式覆盖 */
.btn-primary {
  background-color: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-shadow: 0 0 3px rgba(0, 255, 65, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 65, 0.2),
    transparent
  );
  transition: all 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background-color: rgba(0, 255, 65, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--text-light);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(0, 204, 204, 0.1);
  box-shadow: 0 0 10px rgba(0, 204, 204, 0.3);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn-danger {
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: rgba(255, 0, 0, 0.2);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}