/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Source Han Sans CN', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* Search Form Styles */
.search-form {
    display: flex;
    align-items: center;
    background-color: #f5f7fa;
    border-radius: 20px;
    padding: 0.3rem 0.6rem;
    margin-left: 1rem;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 0.4rem;
    font-size: 0.9rem;
    width: 150px;
    color: #2c3e50;
}

.search-btn {
    background: transparent;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.4rem;
    transition: color 0.3s;
}

.search-btn:hover {
    color: #3498db;
}

/* Hero Section for Homepage */
.hero {
    flex: 1;
    background-image: url('/static/images/appearance.jpg');
    background-size: 75% auto;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.start-btn {
    padding: 1rem 3rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.start-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

/* Footer Styles */
footer {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin-right: 2rem;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-title {
    font-weight: bold;
    color: #2c3e50;
}

.footer-link {
    color: #7f8c8d;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #3498db;
}

/* Auth Forms */
.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #7f8c8d;
}

.auth-footer a {
    color: #3498db;
    font-weight: 500;
}

/* Flash Messages */
.flash-messages {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
}

.flash-warning {
    background-color: #fff3cd;
    color: #856404;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
} 