/* static/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    margin: 0;
    padding-top: 80px;
}

.navbar {
    background: linear-gradient(90deg, #dc2626, #16a34a) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: #fcd34d !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: #fcd34d;
}

.btn-primary {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220,38,38,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220,38,38,0.6);
}

.form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 12px;
    padding: 12px 20px;
}

.form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: #fcd34d;
    box-shadow: 0 0 0 3px rgba(252,211,77,0.3);
    color: white;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.like-btn {
    background: linear-gradient(45deg, #16a34a, #22c55e);
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
}

.like-btn:hover {
    transform: scale(1.05);
}

/* 雪花 */
.snowflake {
    position: fixed;
    top: -10px;
    color: #fff;
    font-size: 1.5em;
    pointer-events: none;
    animation: fall linear infinite;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

@keyframes fall {
    to { transform: translateY(100vh) rotate(360deg); }
}

/* 表单完美对齐 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fcd34d;
}