/* 共用头部和登录样式 */

/* 头部样式 */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e1e5e9;
    padding: 1px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #6b7280;
    margin-right: 32px;
}

.header-title {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f9fafb;
    border-radius: 20px;
    cursor: pointer;
}

.user-avatar-header {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.user-phone-header {
    font-size: 14px;
    color: #374151;
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
}

.login-btn-header {
    background-color: #10b981;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-btn-header:hover {
    background-color: #059669;
}

.user-dropdown {
    position: absolute;
    top: 60px;
    right: 24px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px;
    width: 200px;
    z-index: 1000;
    display: none;
}

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

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

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

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

.vip-badge {
    background-color: #fbbf24;
    color: #111827;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* 登录弹窗样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    display: none;
}

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

.login-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 32px;
    width: 400px;
    position: relative;
}

.login-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
    text-align: center;
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
}

.login-modal-btn {
    width: 100%;
    background-color: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-modal-btn:hover {
    background-color: #059669;
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
}

.register-link {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.register-link a {
    color: #10b981;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}