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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* 科技感背景效果 */
.bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 网格背景 */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 15s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(30px, 30px);
    }
}

/* 发光线条 */
.glow-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glow-line {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: glowLineMove 4s ease-in-out infinite;
}

.glow-line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.glow-line:nth-child(2) {
    top: 40%;
    animation-delay: 1s;
}

.glow-line:nth-child(3) {
    top: 60%;
    animation-delay: 2s;
}

.glow-line:nth-child(4) {
    top: 80%;
    animation-delay: 3s;
}

@keyframes glowLineMove {
    0% {
        transform: translateX(-200px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* 登录容器 */
.login-container {
    background: rgba(10, 15, 25, 0.9);
    padding: 56px;
    border-radius: 20px;
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.4),
        inset 0 0 50px rgba(0, 255, 255, 0.1);
    width: 460px;
    max-width: 90%;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

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

/* 动态发光边框 */
.login-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #00ffff, #0066ff, #00ffff, #0066ff);
    z-index: -1;
    border-radius: 20px;
    animation: borderGlow 2s linear infinite;
    opacity: 0.8;
}

@keyframes borderGlow {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* 内部发光效果 */
.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
    border-radius: 20px;
}

/* 登录头部 */
.login-header {
    text-align: center;
    margin-bottom: 48px;
}

.login-title {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    letter-spacing: -0.5px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 255, 255, 0.9), 0 0 40px rgba(0, 255, 255, 0.5);
    }
}

.login-subtitle {
    color: #88ffff;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 表单样式 */
.form-group {
    margin-bottom: 30px;
    position: relative;
    animation: slideIn 0.6s ease-out;
}

.form-group:nth-child(1) {
    animation-delay: 0.15s;
}

.form-group:nth-child(2) {
    animation-delay: 0.3s;
}

.form-group label {
    position: absolute;
    top: 20px;
    left: 20px;
    font-weight: 500;
    color: #88ffff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.form-group input {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(10, 15, 25, 0.8);
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group.focused label {
    top: -12px;
    left: 16px;
    font-size: 12px;
    color: #00ffff;
    background: rgba(10, 15, 25, 0.9);
    padding: 0 8px;
    border-radius: 4px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.form-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
    background: rgba(10, 15, 25, 0.95);
    transform: translateY(-3px);
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #0066ff, #00ffff);
    color: #050505;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    animation: slideIn 0.6s ease-out 0.45s both;
}

.login-btn:hover {
    background: linear-gradient(135deg, #0044cc, #00cccc);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.7);
}

.login-btn:active {
    transform: translateY(-2px);
}

/* 按钮点击效果 */
.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.8s ease;
}

.login-btn:active::before {
    width: 400px;
    height: 400px;
    opacity: 1;
}

/* 错误信息 */
.error-msg {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 24px;
    padding: 14px;
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    font-size: 14px;
    animation: shake 0.5s ease-in-out;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #88ffff;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

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

/* 加载动画 */
.login-btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(5, 5, 5, 0.3);
    border-top-color: #050505;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 粒子效果 */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 1;
    }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 128, 255, 0.3);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 128, 255, 0.2);
}

.header h1 {
    font-size: 24px;
    color: #00ff80;
    text-shadow: 0 0 10px rgba(0, 255, 128, 0.5);
}

.header .nav {
    display: flex;
    gap: 20px;
}

.header .nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.header .nav a:hover {
    background: rgba(0, 128, 255, 0.2);
    border-color: rgba(0, 128, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
}

/* 成功信息 */
.success {
    background: rgba(0, 255, 128, 0.2);
    border: 1px solid rgba(0, 255, 128, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    color: #00ff80;
    position: relative;
    z-index: 1;
}

/* 文件列表样式 */
.file-list {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.2);
}

.file-list h2 {
    margin-bottom: 20px;
    color: #00ff80;
    text-shadow: 0 0 10px rgba(0, 255, 128, 0.5);
}

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

.file-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 128, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.file-item:hover {
    transform: translateY(-5px);
    border-color: #00ff80;
    box-shadow: 0 5px 15px rgba(0, 255, 128, 0.3);
}

.file-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #0066cc;
}

.file-name {
    font-size: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 12px;
    color: #999999;
    margin-bottom: 15px;
}

.file-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.file-actions a {
    padding: 6px 12px;
    background: rgba(0, 128, 255, 0.2);
    border: 1px solid rgba(0, 128, 255, 0.5);
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.file-actions a:hover {
    background: rgba(0, 128, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
}

/* 管理员界面样式 */
.admin-panel {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.2);
}

.admin-panel h2 {
    margin-bottom: 20px;
    color: #00ff80;
    text-shadow: 0 0 10px rgba(0, 255, 128, 0.5);
}

.admin-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 128, 255, 0.2);
    border-radius: 8px;
}

.admin-section h3 {
    margin-bottom: 15px;
    color: #0066cc;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 128, 255, 0.2);
}

table th {
    background: rgba(0, 128, 255, 0.2);
    color: #00ff80;
    font-weight: bold;
}

table tr:hover {
    background: rgba(0, 128, 255, 0.1);
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    background: linear-gradient(45deg, #0066cc, #00cc66);
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 128, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .login-container {
        padding: 40px;
    }
    
    .login-title {
        font-size: 30px;
    }
    
    .form-group input {
        padding: 16px 20px;
    }
    
    .admin-panel {
        padding: 15px;
    }
}
