:root {
    --bg-dark: #111113;
    --bg-darker: #09090c;
    --bg-card: #1a1a1a;
    --bg-input: #2a2a2a;
    --divider-color: #333;

    --card-select:rgba(28, 27, 27, 0.5);
    --card-border: rgba(255, 255, 255, 0.08);

    --text-header: #e0e0e0;
    --text-primary: #f5f5f5;
    --text-secondary: #aaaaaa;
    
    --gradient-start: #ff2a6d;
    --gradient-end: #05d9e8;

    --accent: #ff2a6d;
    --accent-hover: #ff4d85;
    --accent-secondary: #05d9e8;

    --add-fund: #f9e550;

    /* 定义椭圆的长轴和短轴 */
    --ellipse-radius-x: 140px;
    /* 椭圆的水平半径 */
    --ellipse-radius-y: 100px;
    /* 椭圆的垂直半径 */
    /* 小屏幕下椭圆的长轴和短轴 */
    --ellipse-radius-x-small: 110px;
    --ellipse-radius-y-small: 80px;

    --sidebar-bg: #1a1a1a;
    --sidebar-hover: #2a2a2a;
    --sidebar-active: #3a3a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background-color: var(--bg-darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    height: 60px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-header);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}

.nav-link:hover {
    color: var(--accent);
}

.signup-btn {
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 5px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), #15e9f8);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.3);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 1px;
    background-color: var(--bg-darker);
    min-width: 120px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--bg-card);
    /* justify-content: center; */
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--bg-darker);
    color: var(--accent);
}


/* 修复输入框背景色问题 */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-input) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.form-control:autofill,
.form-control:autofill:hover,
.form-control:autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-input) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* 确保输入框在所有状态下保持正确样式 */
.form-control,
.form-control:focus,
.form-control:active,
.form-control:hover {
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;
}

/* Contact us tooltip styles */
.contact-item {
    position: relative;
    display: inline-block;
}

.contact-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 120px;
    background-color: rgba(40, 40, 40, 0.95);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 70%;
    left: 60%;
    transform: translateX(-50%);
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-tooltip .email-text {
    font-size: 14px;
    color: #f0f0f0;
    word-break: break-all;
}

.contact-item:hover .contact-tooltip {
    visibility: visible;
    opacity: 1;
}
