/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

/* 登录和注册页面样式 */
.login-container,
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box,
.register-box {
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* 仪表板样式 */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.menu {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
}

/* 菜单头部样式 */
.menu-header {
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* 菜单列表容器 */
.menu-list {
    list-style: none;
    padding: 0.75rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 0.25rem;
}

.menu-list li {
    margin-bottom: 0.5rem;
}

.menu-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu-list li i {
    margin-right: 0.75rem;
    font-size: 1.125rem;
    color: #64748b;
}

.menu-list li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    flex: 1;
}

/* 悬停和激活状态 */
.menu-list li:hover {
    background: #f1f5f9;
}

.menu-list li:hover i,
.menu-list li:hover a {
    color: #2563eb;
}

.menu-list li.active {
    background: #f1f5f9;
}

.menu-list li.active i,
.menu-list li.active a {
    color: #2563eb;
}

/* 标签和底部菜单项特殊处理 */
.menu-list li.menu-label,
.menu-list li.menu-bottom {
    padding: 0;
    background: none;
}

.menu-list li.menu-bottom {
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem;
}

/* 响应式调整 */
@media (max-height: 600px) {
    .menu-list li {
        padding: 0.375rem 0.5rem;
    }

    .menu-list li i {
        margin-right: 0.5rem;
        font-size: 1rem;
    }

    .menu-list li a {
        font-size: 0.8125rem;
    }
}

/* 菜单标签样式优化 */
.menu-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    position: relative;
    display: flex;
    align-items: center;
}

/* 添加装饰线 */
.menu-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
    margin-left: 0.5rem;
}

/* 第一个菜单标签特殊处理 */
.menu-list li:first-child.menu-label {
    margin-top: 0;
}

/* 菜单标签前的小图标 */
.menu-label::before {
    content: '•';
    margin-right: 0.375rem;
    color: #6366F1;
    font-size: 1.2em;
    line-height: 1;
}

/* 底部菜单项样式 */
.menu-bottom {
    margin-top: auto !important;
    padding: 0.75rem 0.75rem 1rem 0.75rem;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: white;
}

/* 主内容区域 */
.content {
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
    background: #f8fafc;
    width: calc(100% - 250px);
    box-sizing: border-box;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-box input {
    border: none;
    padding: 0.5rem;
    margin-left: 0.5rem;
    outline: none;
}

/* 卡片样式 */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.card-icon {
    background: #f0f7ff;
    padding: 1rem;
    border-radius: 10px;
    margin-right: 1rem;
}

.card-icon i {
    color: #007bff;
    font-size: 2rem;
}

.card-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.card-info p {
    color: #666;
}

/* 节点网格布局 */
.section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.node-item,
.live-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.node-item:hover,
.live-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.active {
    background: #e3f2fd;
    color: #1976d2;
}

.node-details {
    margin-bottom: 1rem;
}

.node-details p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #666;
}

.node-details i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    color: #007bff;
}

.node-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* 按钮样式 */
.add-button {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.add-button i {
    margin-right: 0.5rem;
}

.add-button:hover {
    background: #0056b3;
}

.icon-button {
    padding: 0.5rem;
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.icon-button:hover {
    background: #f5f5f5;
    color: #007bff;
    border-color: #007bff;
}

/* 消息提示样式 */
.messages {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert i {
    font-size: 1.5rem;
}

.alert-success {
    border-left: 4px solid #10b981;
}

.alert-success i {
    color: #10b981;
}

.alert-error {
    border-left: 4px solid #ef4444;
}

.alert-error i {
    color: #ef4444;
}

/* 添加动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* 添加遮罩层 */
.messages::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.messages.show::before {
    opacity: 1;
}

/* 品牌和用户信息 */
.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem;
    margin: 0;
}

.logo {
    width: 32px;
    height: 32px;
}

.brand h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.user-info {
    background: white;
    border-radius: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: none;
    width: 100%;
}

.user-details {
    width: 100%;
}

/* 用户名和角色样式优化 */
.user-main {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.user-name h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-role {
    font-size: 0.675rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
    letter-spacing: 0.02em;
}

/* 用户统计信息样式优化 */
.user-stats {
    padding: 0.375rem;
    background: #f8fafc;
}

/* 余额和收益行 */
.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 0.375rem;
}

/* 统计框样式 */
.stat-box {
    flex: 1;
    background: white;
    border-radius: 4px;
    padding: 0.25rem 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #e2e8f0;
    min-width: 0;
}

.stat-box:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

/* 图标容器 */
.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 0.875rem;
}

/* 内容区域 */
.stat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-content label {
    display: block;
    font-size: 0.625rem;
    color: #64748b;
    margin-bottom: 0.125rem;
    width: 100%;
}

.stat-content span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* 响应式调整 */
@media (max-height: 700px) {
    .stats-row {
        gap: 0.25rem;
    }

    .stat-box {
        padding: 0.25rem;
        gap: 0.25rem;
    }

    .stat-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* 菜单标签 */
.menu-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 0.375rem 0.5rem;
    margin-top: 0.5rem;
}

/* 容头部 */
.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.breadcrumb {
    font-size: 0.875rem;
    color: #64748b;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.refresh-button {
    padding: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
}

.refresh-button:hover {
    background: #f1f5f9;
    color: #0ea5e9;
}

.rotating {
    animation: rotate 1s linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 卡片样式更新 */
.card {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    background: #e0f2fe;
    color: #0ea5e9;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.card-progress {
    margin-top: 1rem;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #0ea5e9;
    border-radius: 2px;
    transition: width 0.3s ease;
    min-width: 0%;
    max-width: 100%;
}

.progress-bar.purple {
    background: #9333ea;
}

/* 节点卡片更新 */
.section-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

.node-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.status-badge i {
    font-size: 0.75rem;
}

.status-badge.stream {
    background: #f0fdf4;
    color: #16a34a;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.detail-content {
    flex: 1;
    min-width: 0; /* 确保文本可以正确截断 */
}

.detail-content label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.detail-content span {
    display: block;
    word-break: break-all; /* 允许在任何字符间断行 */
    line-height: 1.4;
}

/* 添加悬停提示效果 */
.detail-content span[title] {
    cursor: help;
    border-bottom: 1px dotted #cbd5e1;
}

.detail-content span[title]:hover {
    color: #0ea5e9;
    border-bottom-color: #0ea5e9;
}

.url-text {
    font-family: monospace;
    font-size: 0.875rem;
    color: #0ea5e9;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: #f8fafc;
    color: #0ea5e9;
    border-color: #0ea5e9;
}

.action-button.delete:hover {
    color: #ef4444;
    border-color: #ef4444;
}

/* 登录和注册页面的新样式 */
.login-container,
.register-container {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box,
.register-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #64748b;
    font-size: 1rem;
}

.login-form,
.register-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-group label i {
    font-size: 1.25rem;
    color: #64748b;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0;
}

.toggle-password:hover {
    color: #0ea5e9;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.forgot-password {
    color: #0ea5e9;
    font-size: 0.875rem;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    padding: 0.875rem;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background: #0284c7;
}

.submit-button i {
    font-size: 1.25rem;
}

.login-footer {
    text-align: center;
    color: #64748b;
}

.login-footer a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

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

.form-agreement {
    margin-bottom: 1.5rem;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.agreement-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
}

.agreement-checkbox a {
    color: #0ea5e9;
    text-decoration: none;
}

.agreement-checkbox a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .login-box,
    .register-box {
        padding: 2rem;
        margin: 1rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }
}

/* 在现有样式后添加设置页面的样式 */

.settings-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
}

.settings-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.settings-section h2 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.settings-form {
    display: grid;
    gap: 1.5rem;
}

.settings-form .form-group {
    margin-bottom: 0;
}

.settings-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.settings-form label i {
    color: #64748b;
}

.settings-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.settings-form input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
}

.settings-form .submit-button {
    justify-self: start;
    min-width: 150px;
}

/* 添加新的状态样式 */
.status-badge.offline {
    background: #fee2e2;
    color: #dc2626;
}

.status-text {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status-text.running {
    background: #f0fdf4;
    color: #16a34a;
}

.status-text.stopped {
    background: #fee2e2;
    color: #dc2626;
}

/* 添加按钮状态样式 */
.action-button.start {
    color: #16a34a;
}

.action-button.start:hover {
    background: #f0fdf4;
    border-color: #16a34a;
}

.action-button.stop {
    color: #dc2626;
}

.action-button.stop:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

.action-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-button[disabled]:hover {
    background: white;
    border-color: #e2e8f0;
    color: #64748b;
}

/* 调整节点详情布局 */
.node-details {
    display: grid;
    gap: 0.75rem;
}

.detail-item {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.node-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

/* 添加用户标签样式 */
.node-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 20px;
    font-size: 0.75rem;
}

.user-badge i {
    font-size: 0.875rem;
}

/* 添加长文本处理样式 */
.id-text, .domain-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.875rem;
}

.id-text:hover, .domain-text:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

/* 添加等宽字体和小字体样式 */
.monospace-text {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: -0.5px;
}

.small-text {
    font-size: 0.75rem;
    color: #475569;
}

/* 添加模态页面样式 */
.modal-page {
    background: transparent;
    padding: 0;
    margin: 0;
}

.modal-content-inner {
    padding: 1.5rem;
}

/* 确保表单在模态框中正确显示 */
.modal-page .settings-form {
    margin: 0;
    padding: 0;
}

.modal-page .form-group {
    margin-bottom: 1rem;
}

/* 单菜单图标样式 */
.menu-list li i.material-icons.receipt {
    color: #6366F1;
}

.menu-list li:hover i.material-icons.receipt {
    color: #4F46E5;
}

/* 账单卡片样式优化 */
.bill-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.bill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 账单列表容器样式 */
.bills-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

/* 账单卡片网格布局优化 */
@media (min-width: 1024px) {
    .bills-list {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media (max-width: 1023px) {
    .bills-list {
        grid-template-columns: 1fr;
    }
}

/* 响应式调整 */
@media (max-height: 600px) {
    .menu-header {
        padding: 0.75rem;
    }
    
    .brand {
        padding: 0.75rem;
    }
    
    .brand h2 {
        font-size: 1rem;
    }
    
    .user-info {
        padding: 0.375rem;
    }
    
    .user-info .avatar {
        width: 24px;
        height: 24px;
    }
    
    .user-details h3 {
        font-size: 0.75rem;
    }
    
    .user-role {
        font-size: 0.675rem;
    }
    
    .menu-list {
        padding: 0.5rem;
        gap: 0.125rem;
    }
    
    .menu-list li a {
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .menu-list li i {
        font-size: 1rem;
    }
    
    .menu-label {
        padding: 0.375rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .menu-bottom {
        padding: 0.5rem;
    }
}

/* 滚动条样式优化 */
.menu-list::-webkit-scrollbar {
    width: 4px;
}

.menu-list::-webkit-scrollbar-track {
    background: transparent;
}

.menu-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.menu-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 用户信息卡片样式 */
.user-info {
    background: white;
    border-radius: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: none;
    width: 100%;
}

/* 用户头部区域 */
.user-header {
    padding: 0.5rem;
    background: linear-gradient(135deg, #4F46E5 0%, #3b7a7e 100%);
    color: white;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.user-name i {
    font-size: 0.875rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.user-name h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0;
}

/* 统计信息区域 */
.user-stats {
    padding: 0.375rem;
    background: #f8fafc;
}

/* 余额和收益行 */
.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 0.375rem;
}

/* 统计框样式 */
.stat-box {
    flex: 1;
    background: white;
    border-radius: 4px;
    padding: 0.25rem 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #e2e8f0;
    min-width: 0;
}

.stat-box:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

/* 图标样式 */
.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 0.875rem;
}

/* 余额图标 */
.stat-box:nth-child(1) .stat-icon {
    background: #e0f2fe;
    color: #0ea5e9;
}

/* 收益图标 */
.stat-box:nth-child(2) .stat-icon {
    background: #dcfce7;
    color: #10b981;
}

/* 到期时间样式 */
.expiry-info {
    background: white;
    border-radius: 4px;
    padding: 0.25rem 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #e2e8f0;
    margin-top: 0.25rem;
}

.expiry-info:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.expiry-info .stat-icon {
    background: #eef2ff;
    color: #6366f1;
}

/* 统计内容样式 */
.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-content label {
    display: block;
    font-size: 0.625rem;
    color: #64748b;
    margin-bottom: 0.125rem;
}

.stat-content span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式调整 */
@media (max-height: 700px) {
    .user-info {
        margin: 0.5rem 0;
    }

    .user-header,
    .user-stats,
    .stat-box,
    .expiry-info {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
 