.dashboard {
    min-height: 100vh;
    padding: 20px;
    background-color: white;
    position: relative;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.back-button,
.user-button {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.back-button svg,
.user-button svg {
    width: 24px;
    height: 24px;
    stroke: #27115F;
    transition: stroke 0.3s ease;
}

.back-button:hover svg,
.user-button:hover svg {
    stroke: #22D3C5;
}

.dashboard-logo {
    text-align: center;
    margin: 120px 0 0 0;
}

.dashboard-logo a.action-button.echoo {
    color: #27115F;
    font-size: 52px;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(45deg, #27115F, #22D3C5);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientBG 5s ease infinite;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.dashboard-logo .text-part {
    margin-right: -14px;
}

.dashboard-logo .faces-part {
    position: relative;
}

.dashboard-logo .faces-part::before {
    content: 'oo';
    background: linear-gradient(45deg, #27115F, #22D3C5);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientBG 5s ease infinite;
}

.dashboard-logo .face {
    position: absolute;
    width: 42px;
    height: 42px;
    opacity: 0;
    transition: all 0.3s ease;
    top: 1px;
}

.dashboard-logo .face svg {
    width: 100%;
    height: 100%;
    stroke: #22D3C5;
    stroke-width: 2.2;
}

.dashboard-logo .face1 {
    left: -2px;
}

.dashboard-logo .face2 {
    left: 32px;
}

/* 悬停状态 */
.dashboard-logo a.action-button.echoo:hover .faces-part::before {
    opacity: 0;
}

.dashboard-logo a.action-button.echoo:hover .face {
    opacity: 1;
}

.dashboard-logo a.action-button.echoo:hover .face1 {
    transform: rotate(-15deg);
    left: -8px;
}

.dashboard-logo a.action-button.echoo:hover .face2 {
    transform: rotate(15deg);
    left: 28px;
}

/* 表情动画 */
.dashboard-logo .face svg .mouth {
    transform-origin: center;
    animation: talk 1s ease-in-out infinite;
}

@keyframes talk {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.8); }
}

.actions-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 100px;
    max-width: 800px;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #27115F;
    gap: 12px;
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
}

.action-button:hover {
    transform: translateY(-5px);
}

.action-button:active {
    transform: scale(0.95);
}

.action-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.action-icon svg {
    width: 48px;
    height: 48px;
    stroke: #27115F;
    stroke-width: 1.5;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.action-button:hover .action-icon svg {
    stroke: #22D3C5;
    transform: scale(1.1);
}

.action-label {
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.action-button:hover .action-label {
    color: #22D3C5;
}

/* 添加点击波纹效果 */
.action-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(34, 211, 197, 0.2) 0%, rgba(34, 211, 197, 0) 70%);
    opacity: 0;
    transform: scale(1.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.action-button:active::after {
    opacity: 1;
    transform: scale(1);
}

.version-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(39, 17, 95, 0.5);
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    .top-nav {
        margin-bottom: 40px;
    }

    .nav-left-links {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .customization-link {
        font-size: 12px;
        padding: 4px;
        line-height: 1.3;
    }

    .dashboard-logo {
        margin-top: 80px;
    }

    .dashboard-logo a.action-button.echoo {
        font-size: 42px;
    }

    .dashboard-logo .face {
        width: 35px;
        height: 35px;
    }

    .actions-grid {
        flex-direction: column;
        gap: 50px;
        top: 60%;
    }

    .action-icon svg {
        width: 40px;
        height: 40px;
    }

    .action-label {
        font-size: 14px;
    }

    /* 用户下拉菜单移动端优化 */
    .user-dropdown {
        right: 0;
        min-width: 160px;
    }

    .dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* 模态框移动端适配 */
    .credit-modal-content,
    .help-modal-content {
        width: 95%;
        max-width: 95%;
        margin: 5% auto;
    }

    .balance-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .history-section h4 {
        font-size: 14px;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .history-time {
        width: 100%;
    }

    /* 问题反馈表单移动端适配 */
    #helpForm input[type="text"],
    #helpForm input[type="email"],
    #helpForm input[type="tel"],
    #helpForm textarea {
        font-size: 16px; /* 防止iOS自动缩放 */
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    #helpForm .btn-primary,
    #helpForm .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard {
        padding: 15px;
    }

    .top-nav {
        margin-bottom: 30px;
    }

    .customization-link {
        font-size: 10px;
    }

    .dashboard-logo {
        margin-top: 60px;
    }

    .dashboard-logo a.action-button.echoo {
        font-size: 36px;
    }

    .actions-grid {
        gap: 40px;
        top: 55%;
    }

    .action-icon svg {
        width: 36px;
        height: 36px;
    }

    .action-label {
        font-size: 13px;
    }

    .version-info {
        font-size: 10px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .balance-value {
        font-size: 20px;
    }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-left-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.about-link {
    color: #27115F;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    padding: 8px;
    letter-spacing: 0.5px;
}

.about-link:hover {
    color: #22D3C5;
    transform: translateY(-1px);
}

.customization-link {
    color: #27115F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    padding: 8px;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.customization-link div {
    margin: 0;
}

.customization-link:hover {
    color: #22D3C5;
    transform: translateY(-1px);
}

/* 添加折叠栏样式 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-button:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #27115F;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    word-break: keep-all;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background: rgba(34, 211, 197, 0.1);
    color: #22D3C5;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    stroke: currentColor;
}

/* 余额管理弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.credit-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .credit-modal-content {
    transform: translateY(0);
}

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

.modal-header h3 {
    margin: 0;
    color: #27115F;
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #27115F;
}

.credit-modal-body {
    padding: 24px;
}

.balance-info {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #27115F 0%, #22D3C5 100%);
    border-radius: 8px;
    color: white;
}

.balance-label {
    font-size: 16px;
    margin-right: 12px;
}

.balance-value {
    font-size: 24px;
    font-weight: bold;
}

.recharge-section {
    margin-bottom: 24px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #27115F 0%, #22D3C5 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 211, 197, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f5f5f5;
    color: #27115F;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.history-section h4 {
    margin: 0 0 16px 0;
    color: #27115F;
    font-size: 16px;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.history-item:last-child {
    border-bottom: none;
}

.history-type {
    font-weight: bold;
    color: #27115F;
    margin-right: 12px;
}

.history-amount {
    font-weight: bold;
    color: #22D3C5;
    margin-right: 12px;
}

.history-balance {
    color: #666;
    margin-right: 12px;
    font-size: 14px;
}

.history-time {
    color: #999;
    font-size: 12px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

/* 退出登录模态框样式 - 确保居中显示 */
#logoutModal.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

#logoutModal.modal.show {
    display: flex;
    opacity: 1;
}

#logoutModal .modal-content {
    background-color: white;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

#logoutModal.modal.show .modal-content {
    transform: translateY(0);
}

/* 退出登录模态框按钮样式 - 使用纯色而不是渐变色 */
#logoutModal .modal-footer .btn-primary {
    background-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#logoutModal .modal-footer .btn-primary:hover {
    background-color: var(--primary-color);
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 211, 197, 0.2);
}

#logoutModal .modal-footer .btn-secondary {
    background: #f5f5f5;
    color: #27115F;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#logoutModal .modal-footer .btn-secondary:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* 问题反馈模态框样式 */
#helpModal.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

#helpModal.modal.show {
    display: flex;
    opacity: 1;
}

.help-modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

#helpModal.modal.show .help-modal-content {
    transform: translateY(0);
}

.help-modal-content .modal-body {
    padding: 24px;
}

.modal-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

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

#helpForm label {
    display: block;
    margin-bottom: 8px;
    color: #27115F;
    font-size: 14px;
    font-weight: 600;
}

#helpForm .required {
    color: #ff6b6b;
}

#helpForm input[type="text"],
#helpForm input[type="email"],
#helpForm input[type="tel"],
#helpForm textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#helpForm input[type="text"]:focus,
#helpForm input[type="email"]:focus,
#helpForm input[type="tel"]:focus,
#helpForm textarea:focus {
    outline: none;
    border-color: #22D3C5;
}

#helpForm textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

#helpForm .btn-primary {
    background: linear-gradient(135deg, #27115F 0%, #22D3C5 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#helpForm .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 211, 197, 0.4);
}

#helpForm .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#helpForm .btn-secondary {
    background: #f5f5f5;
    color: #27115F;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#helpForm .btn-secondary:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

