/* ==================== CSS Variables ==================== */
:root {
    --bg-black: #0a0a0a;
    --bg-dark: #1a1a1a;
    --bg-darker: #151515;
    --text-white: #ffffff;
    --text-gray: #9e9e9e;
    --accent-red: #e94560;
    --accent-pink: #ff6b9d;
    --green-badge: #00c853;
    --hover-bg: #2a2a2a;
    --gradient-red: linear-gradient(135deg, #e94560 0%, #ff6b9d 100%);
    --border-color: #2a2a2a;
}
a {
	text-decoration: none;
}
/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

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

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #1a1a1a;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu {
    position: relative;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #333;
    transition: border-color 0.2s;
}

.avatar:hover {
    border-color: #555;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #0A0E17;
    border: 0.5px solid rgba(255, 255, 255, 0.5); /* 更细更柔和的边框 */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: #2b2e39;
}

.dropdown-divider {
    height: 1px;
    background-color: #333;
    margin: 5px 0;
}

.dropdown-item.danger {
    color: #ff3366;
}

.dropdown-item.email {
    color: #666;
    font-size: 12px;
}

.dropdown-item input[type="checkbox"] {
    margin-right: 8px;
}
/* ==================== Login Modal Styles ==================== */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background-color: #2a2a2a;
    border-radius: 20px;
    padding: 50px 40px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-white);
}

.login-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 40px;
}

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

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-red);
    background-color: #1f1f1f;
}

.form-input::placeholder {
    color: var(--text-gray);
}

.form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 16px;
}

.verification-group {
    display: flex;
    gap: 12px;
}

.verification-input {
    flex: 1;
}

.send-code-btn {
    padding: 16px 24px;
    background-color: #3a3a3a;
    border: none;
    border-radius: 12px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.send-code-btn:hover {
    background-color: #4a4a4a;
    color: var(--text-white);
}

.send-code-btn.sent {
    background-color: var(--accent-red);
    color: var(--text-white);
}

.login-submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #4a4a4a;
    border: none;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-submit-btn:hover {
    background-color: #5a5a5a;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #3a3a3a;
}

.login-divider span {
    color: var(--text-gray);
    font-size: 14px;
}

.guest-login-btn,
.google-login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guest-login-btn {
    background-color: #3a3a3a;
    color: var(--text-white);
    margin-bottom: 12px;
}

.guest-login-btn:hover {
    background-color: #4a4a4a;
}

.google-login-btn {
    background-color: #1a1a1a;
    color: var(--text-white);
    border: 1px solid #3a3a3a;
}

.google-login-btn:hover {
    background-color: #2a2a2a;
}

.google-icon {
    width: 20px;
    height: 20px;
}

.login-terms {
    text-align: center;
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-top: 25px;
}

.login-terms a {
    color: var(--text-white);
    text-decoration: none;
}

.login-terms a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-modal-content {
        padding: 40px 30px;
        width: 95%;
    }

    .login-modal-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .form-input {
        padding: 14px 14px 14px 40px;
        font-size: 14px;
    }

    .send-code-btn {
        padding: 14px 20px;
        font-size: 13px;
    }
}
.download-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.download-btn svg {
    width: 18px;
    height: 18px;
}
.gallery-item-title {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    margin: 0 15px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-title {
    opacity: 1;
}