* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fef7ff;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

h1 {
    text-align: center;
    color: #ffffff;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

h2 {
    font-weight: 500;
}

h3 {
    font-weight: 500;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

.user-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 15px;
    background: linear-gradient(135deg, #fff0f5 0%, #f0f8ff 100%);
    border-radius: 25px;
    border: 2px solid #ffc1cc;
    box-shadow: 0 2px 8px rgba(255, 107, 139, 0.2);
    transition: all 0.3s ease;
}

.user-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
    border: 2px solid white;
}

.guest-avatar {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b8b;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(255, 107, 139, 0.2);
}

.logout-btn {
    background: linear-gradient(135deg, #ff6b8b 0%, #ff8fab 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 139, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff8fab 0%, #ff6b8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.4);
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: linear-gradient(135deg, #fff0f5 0%, #f0f8ff 100%);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(255, 107, 139, 0.3);
    padding: 10px 0;
    min-width: 140px;
    z-index: 1000;
    display: none;
    border: 2px solid #ffc1cc;
}

.dropdown-menu.active {
    display: block;
    animation: bounceIn 0.3s ease;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #ff6b8b;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
    margin: 0 10px;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #ffc1cc 0%, #ff8fab 100%);
    color: white;
    transform: translateX(5px);
}

.dropdown-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffc1cc, transparent);
    margin: 8px 10px;
}

/* 登出按钮特殊样式 */
#dropdown-logout-btn {
    background: linear-gradient(135deg, #ff6b8b 0%, #ff8fab 100%);
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 6px rgba(255, 107, 139, 0.3);
}

#dropdown-logout-btn:hover {
    background: linear-gradient(135deg, #ff8fab 0%, #ff6b8b 100%);
    box-shadow: 0 4px 10px rgba(255, 107, 139, 0.4);
}

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

.navbar a:hover {
    background-color: #ffc1cc;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,107,139,0.3);
}

.navbar a.active {
    background-color: #ff6b8b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255,107,139,0.3);
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    border-radius: 25px 25px 0 0;
    margin-top: 80px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 182, 193, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background: linear-gradient(135deg, #fff0f5 0%, #f0f8ff 100%);
    border-radius: 25px;
    padding: 40px 30px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(255, 107, 139, 0.3);
    animation: bounceIn 0.4s ease-in-out;
    position: relative;
    border: 3px solid #ffc1cc;
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #ff6b8b;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255, 107, 139, 0.3);
    font-family: 'Noto Serif SC', cursive;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    border: 3px solid white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.modal-close:hover {
    background: linear-gradient(135deg, #ff6b8b 0%, #ff8fab 100%);
    transform: scale(1.2) rotate(90deg);
    box-shadow: 0 6px 16px rgba(255, 107, 139, 0.5);
}

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

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ff6b8b;
    font-size: 14px;
    font-family: 'Noto Sans SC', sans-serif;
}

.modal-content .form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #ffc1cc;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: inset 0 2px 4px rgba(255, 107, 139, 0.1);
}

.modal-content .form-group input:focus {
    outline: none;
    border-color: #ff6b8b;
    box-shadow: 0 0 0 4px rgba(255, 107, 139, 0.2);
    transform: translateY(-2px);
}

.modal-content .submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b8b 0%, #ff8fab 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.modal-content .submit-btn:hover {
    background: linear-gradient(135deg, #ff8fab 0%, #ff6b8b 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 107, 139, 0.4);
    animation: pulse 0.5s ease-in-out;
}

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

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

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 移除登录注册链接的下划线 */
.auth-links a {
    text-decoration: none;
    position: relative;
}

.auth-links a::after {
    display: none;
}