/* static/css/style.css */
:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --success: #2ecc71;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #34495e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* 使用绝对路径确保正确 */
    background: url('/static/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--success));
    border-radius: 3px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
}

input, button, .file-input {
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

button {
    background: linear-gradient(to right, var(--primary), var(--success));
    color: white;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: linear-gradient(to right, var(--secondary), var(--dark));
}

.btn-danger {
    background: linear-gradient(to right, var(--danger), #c0392b);
}

.file-input {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.file-input span {
    color: #7f8c8d;
}

ul {
    list-style: none;
    margin: 20px 0;
}

li {
    margin-bottom: 15px;
}

li a {
    display: block;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

li a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(10px);
}

.error {
    color: #ff6b6b;
    background: rgba(231, 76, 60, 0.2);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
    
    input, button {
        padding: 12px;
    }
}
