/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f8fa;
    color: #333;
    padding-top: 60px; /* 为固定导航栏留出空间 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    height: 56px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-brand-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-logo {
    height: 32px;
    width: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.navbar-brand {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

/* 语言切换图标容器 */
.language-icon-container {
    display: flex;
    align-items: center;
    height: 32px; /* 与navbar-logo同高度 */
    position: relative;
}

/* 语言切换图标按钮 */
.language-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    position: relative;
    white-space: nowrap;
}

.language-icon-button:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-1px);
}

.language-icon-button.active {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    color: #374151;
}

/* 语言切换下拉菜单 */
.language-icon-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 101;
}

.language-icon-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-icon-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

.language-icon-option:first-child {
    border-radius: 7px 7px 0 0;
}

.language-icon-option:last-child {
    border-radius: 0 0 7px 7px;
}

.language-icon-option:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.language-icon-option.active {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.language-icon-option .language-code {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    min-width: 24px;
}

.language-icon-option .language-name {
    font-size: 0.875rem;
}

.brand-links {
    display: flex;
    gap: 8px;
    align-items: center; /* 确保垂直居中对齐 */
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px; /* 与语言图标同高度 */
    min-width: 32px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0 12px;
    border-radius: 6px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.brand-link:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-1px);
}

/* 汉堡菜单按钮 */
.navbar-toggle {
    display: none;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px 16px;
    z-index: 102;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.navbar-toggle:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.navbar-toggle.active {
    background-color: #f3f4f6;
    color: #1f2937;
}

/* 移除汉堡菜单图标相关样式 */
.navbar-toggle-icon {
    display: none;
}

/* 导航菜单样式 */
.navbar-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* 导航分组 */
.nav-group {
    position: relative;
}

.nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative; /* 添加相对定位 */
}

.nav-group-toggle:hover {
    background-color: #f9fafb;
    color: #1f2937;
}

.nav-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.nav-group.active .nav-arrow {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 101;
}

/* 只在hover时显示下拉菜单，移除.active状态的自动展开 */
.nav-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 添加下拉菜单动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-group:hover .nav-dropdown {
    animation: slideDown 0.2s ease forwards;
}

.nav-dropdown .nav-link {
    display: block;
    padding: 10px 16px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

.nav-dropdown .nav-link:first-child {
    border-radius: 7px 7px 0 0;
}

.nav-dropdown .nav-link:last-child {
    border-radius: 0 0 7px 7px;
}

.nav-dropdown .nav-link:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.nav-dropdown .nav-link.active {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

/* 移动端导航遮罩 */
.navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-overlay.active {
    display: block;
    opacity: 1;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    /* 调整导航栏容器布局 */
    .navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
        height: 56px;
    }
    
    /* 导航栏左侧保持不变 */
    .navbar-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .navbar-brand-container {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-logo {
        height: 24px;
        width: 24px;
    }
    
    /* 移动端显示品牌链接，但调整样式使其更紧凑 */
    .navbar-left .brand-links {
        display: flex !important;
        gap: 4px;
        margin-left: auto; /* 推到右边 */
        margin-right: 8px; /* 与菜单按钮保持间距 */
        align-items: center;
    }
    
    /* 移动端品牌链接样式调整 */
    .brand-links .brand-link {
        height: 24px; /* 移动端稍小 */
        min-width: 24px;
        font-size: 0.625rem; /* 更小的字体 */
        padding: 0 8px;
        border-radius: 4px;
    }

    /* 极小屏幕优化：保持显示文字和图标 */
    @media (max-width: 480px) {
        .brand-links .brand-link {
            min-width: 24px;
            padding: 0 6px;
            font-size: 0.5rem;
        }
    }
    
    /* 移动端语言图标调整 */
    .language-icon-container {
        height: 24px; /* 移动端稍小 */
    }
    
    .language-icon-button {
        min-width: 24px;
        height: 24px;
        font-size: 0.6rem;
        padding: 0 6px;
    }
    
    .language-icon-dropdown {
        min-width: 120px;
        margin-top: 4px;
    }
    
    .language-icon-option {
        padding: 8px 10px;
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .language-icon-option .language-code {
        font-size: 0.7rem;
        min-width: 20px;
    }
    
    .language-icon-option .language-name {
        font-size: 0.75rem;
    }
    

    
  
    
    /* 菜单按钮样式 */
    .navbar-toggle {
        display: block;
        order: 2;
        flex-shrink: 0;
    }
    
    /* 菜单文字内容 */
    .navbar-toggle::before {
        content: '菜单';
    }
    
    .navbar-toggle.active::before {
        content: '关闭';  /* 激活时显示关闭 */
    }
    
    /* 导航菜单样式 */
    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        display: block !important;
        padding: 80px 0 20px 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 100;
    }
    
    .navbar-nav.active {
        right: 0;
    }
    
    /* 导航菜单顶部区域 */
    .navbar-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background-color: #fff;
        border-bottom: 1px solid #e5e7eb;
    }
    
    /* 在移动端导航菜单中显示品牌链接 */
    .navbar-nav .mobile-brand-links {
        display: flex;
        flex-direction: column;
        padding: 0 24px 16px;
        border-bottom: 1px solid #e5e7eb;
        gap: 12px;
    }
    
    .navbar-nav .mobile-brand-links .brand-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background-color: #f9fafb;
        border-radius: 8px;
        color: #374151;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    .navbar-nav .mobile-brand-links .brand-link:hover {
        background-color: #f3f4f6;
        color: #1f2937;
    }
    
    /* 移动端语言切换器样式 */
    .navbar-nav .mobile-language-switcher {
        padding: 16px 24px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .navbar-nav .mobile-language-switcher .language-label {
        font-size: 0.875rem;
        color: #6b7280;
        margin-bottom: 8px;
        font-weight: 500;
    }
    
    .navbar-nav .mobile-language-switcher .language-options {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .navbar-nav .mobile-language-switcher .language-btn {
        padding: 8px 12px;
        background-color: #f3f4f6;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        color: #6b7280;
        font-size: 0.75rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .navbar-nav .mobile-language-switcher .language-btn:hover {
        background-color: #e5e7eb;
        color: #374151;
    }
    
    .navbar-nav .mobile-language-switcher .language-btn.active {
        background-color: #fef3c7;
        color: #92400e;
        border-color: #fbbf24;
        font-weight: 600;
    }
    
    /* 添加关闭按钮 */
    /* 删除了菜单内的关闭按钮，因为现在使用菜单按钮切换显示文字 */
    
    .nav-group {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
        margin: 0;
        padding: 0;
        display: block; /* 确保是block布局 */
        position: relative; /* 确保定位正确 */
    }
    
    .nav-group:last-child {
        border-bottom: none;
    }
    
    .nav-group-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 0;
        background: transparent;
        margin: 0;
        display: flex; /* 保持flex以便箭头对齐 */
    }
    
    .nav-group-toggle:hover {
        background-color: #f9fafb;
    }
    
    /* 移动端下拉菜单样式 */
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin: 0;
        background: #f9fafb;
        display: none;
        width: 100%;
        min-width: auto;
        border-radius: 0;
    }
    
    /* 移动端不再hover展开，只通过点击展开 */
    .nav-group:hover .nav-dropdown {
        display: none;
        animation: none;
    }
    
    .nav-group.active .nav-dropdown {
        display: block;
    }
    
    .nav-dropdown .nav-link {
        padding: 14px 24px 14px 48px;
        font-size: 15px;
        border-radius: 0;
        display: block; /* 确保链接是block */
    }
    
    .nav-dropdown .nav-link:hover {
        background-color: #f3f4f6;
        color: #1f2937;
    }
    
    .nav-dropdown .nav-link.active {
        background-color: #fef3c7;
        color: #92400e;
        position: relative;
    }
    
    .nav-dropdown .nav-link.active::before {
        content: '';
        position: absolute;
        left: 24px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 24px;
        background-color: #f59e0b;
        border-radius: 2px;
    }
    
    /* 在移动端隐藏品牌链接，在桌面端显示 */
    .brand-links {
        display: none;
    }
    
    /* 确保body在菜单打开时不能滚动 */
    body.nav-open {
        overflow: hidden;
    }
    
    /* 移动端遮罩层样式调整 */
    .navbar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .navbar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* 移动端导航组active状态样式 */
    .nav-group.active .nav-group-toggle {
        background-color: #f3f4f6;
        color: #1f2937;
    }
    
    /* 移动端箭头动画 */
    .nav-group .nav-arrow {
        transition: transform 0.3s ease;
    }
    
    .nav-group.active .nav-arrow {
        transform: rotate(180deg);
    }
    
    /* 移除hover时的箭头旋转 */
    .nav-group:hover .nav-arrow {
        transform: rotate(0deg);
    }
    
    /* 移动端active分组的底部边框移除 */
    .nav-group.active .nav-group-toggle::after {
        display: none;
    }
    
    /* 其他移动端样式调整 */
    .search-form {
        flex-direction: column;
    }
    
    .search-form input {
        margin-bottom: 10px;
    }
    
    .address-label .label-text {
        max-width: 120px;
    }
    
    body {
        padding-top: 60px;
    }
    
    /* 移动端容器padding调整 */
    .container {
        padding: 16px;
        margin: 16px auto;
    }
}

/* 平板设备样式调整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar-nav {
        gap: 8px;
    }
    
    .nav-group-toggle {
        padding: 8px 12px;
        font-size: 0.813rem;
    }
    
    .nav-dropdown {
        min-width: 160px;
    }
}

/* 语言切换器特定样式 */
.brand-link.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}

/* 默认隐藏移动端专用元素 */
.mobile-language-switcher,
.mobile-brand-links {
    display: none;
}

.brand-link.language-switch .language-flag {
    font-size: 14px;
    line-height: 1;
}

.brand-link.language-switch .language-name {
    font-size: 0.75rem;
}

.brand-link.language-switch .language-arrow {
    font-size: 10px;
    color: #9ca3af;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

/* 紧凑的语言切换器容器 */
.language-switcher-compact {
    position: relative;
    display: inline-block;
}

/* 紧凑的下拉菜单 */
.language-dropdown-compact {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    min-width: 120px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.language-dropdown-compact.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 语言选项样式 */
.language-dropdown-compact .language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.language-dropdown-compact .language-option:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.language-dropdown-compact .language-option.active {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.language-dropdown-compact .language-option .language-flag {
    font-size: 14px;
}

.language-dropdown-compact .language-option .language-name {
    flex: 1;
}

/* 当下拉菜单打开时旋转箭头 */
.brand-link.language-switch.active .language-arrow {
    transform: rotate(180deg);
}

.navbar-nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #1f2937;
    background-color: #f9fafb;
}

.nav-link.active {
    color: #1f2937;
    background-color: #f3f4f6;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #f59e0b;
    border-radius: 50%;
}

/* 主容器样式 */
.container {
    width: 100%;
    max-width: none;  /* 移除最大宽度限制 */
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* runtime页面特殊容器样式 */
.runtime-container {
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    max-width: none !important;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
}

.btn-primary {
    background-color: #f0b90b;
    color: #000;
}

.btn-primary:hover {
    background-color: #e3af0a;
}

.btn-secondary {
    background-color: #3498db;
    color: white;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-link {
    background: none;
    color: #3498db;
    text-decoration: underline;
    padding: 0;
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 6px;
}

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

/* 通知提示 */
.notification {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 4px;
    background-color: #f0b90b;
    color: #000;
    z-index: 1001;
    max-width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: none;
    transition: opacity 0.3s, transform 0.3s;
}

.notification.error {
    background-color: #e74c3c;
    color: #fff;
}

.notification.success {
    background-color: #2ecc71;
    color: #fff;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #7f8c8d;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer button {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.modal-footer button.primary {
    background-color: #f0b90b;
    color: #000;
}

.modal-footer button.cancel {
    background-color: #ddd;
    color: #333;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 10px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 10px;
}

th {
    background-color: #f0b90b;
    color: #000;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f5f5f5;
}

/* 地址标签样式 */
.address-label {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 14px;
}

.address-label .label-text {
    margin-right: 5px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.address-label .remove-button {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin-left: 5px;
}

/* 代币徽章样式 */
.token-badge {
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    margin-right: 5px;
    margin-bottom: 5px;
}

.token-badge.inflow {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
    color: #2ecc71;
}

.token-badge.outflow {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: #e74c3c;
}

.token-badge.difference {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    color: #3498db;
    margin-top: 5px;
}

.token-badge.value {
    background-color: rgba(155, 89, 182, 0.1);
    border-color: #9b59b6;
    color: #9b59b6;
}

.token-badge.point {
    background-color: rgba(241, 196, 15, 0.1);
    border-color: #f1c40f;
    color: #f1c40f;
}

.token-amount {
    margin-left: 5px;
}

/* Tab样式 */
.tab-container {
    margin-bottom: 20px;
}

.tab-header {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.tab-header::-webkit-scrollbar {
    height: 6px;
}

.tab-header::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tab-header::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.tab-header::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.tab-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    flex-shrink: 0;
    white-space: nowrap;
}

.tab-button:hover {
    background-color: #eee;
}

.tab-button.active {
    background-color: #f0b90b;
    color: #000;
    border-color: #f0b90b;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 摘要与展开块 */
.collapsible-section {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.section-header {
    padding: 12px 15px;
    background-color: #f0b90b;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header:hover {
    background-color: #e3af0a;
}

.section-header .arrow {
    transition: transform 0.3s;
}

.section-header.expanded .arrow {
    transform: rotate(180deg);
}

.section-content {
    padding: 15px;
    background-color: #fff;
    display: none;
}

.section-content.expanded {
    display: block;
}

/* 日汇总视图样式 */
.day-summary {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.day-header {
    padding: 12px 15px;
    background-color: #f0b90b;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header:hover {
    background-color: #e3af0a;
}

.day-header > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-header .arrow {
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
}

.day-header.expanded .arrow {
    transform: rotate(180deg);
}

/* 日期头部中的流出统计 */
.day-outflow-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

/* 日期头部中的差额概览 */
.day-summary-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.day-content {
    display: none;
    padding: 15px;
    background-color: #fff;
}

.day-content.expanded {
    display: block;
}

/* 全屏覆盖层样式 */
.cover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cover-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cover-content h2 {
    font-size: 24px;
    color: #213547;
    margin-bottom: 20px;
}

.cover-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.twitter-link {
    display: inline-block;
    background-color: #1DA1F2;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.twitter-link:hover {
    background-color: #0c85d0;
}

.countdown {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    display: none;
}

/* 覆盖层语言选择器样式 */
.cover-language-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.cover-lang-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
}

.cover-lang-btn:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cover-lang-btn.active {
    background-color: #1DA1F2;
    color: #fff;
    border-color: #1DA1F2;
}

.cover-lang-btn.active:hover {
    background-color: #0c85d0;
    border-color: #0c85d0;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .cover-language-selector {
        gap: 8px;
    }
    
    .cover-lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.address-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    color: #3498db;
}

.address-cell:hover {
    text-decoration: underline;
}

.token-flow {
    color: #2ecc71;
}

.token-flow.outflow {
    color: #e74c3c;
}

.hash-link {
    color: #3498db;
    text-decoration: none;
}

.hash-link:hover {
    text-decoration: underline;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* 摘要内容样式 */
.summary-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.summary-content .summary-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

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

.summary-content .summary-item span:first-child {
    color: #666;
    font-weight: normal;
}

.summary-content .summary-item span:last-child {
    color: #333;
    font-weight: bold;
}

.summary-content #token-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.summary-content .total-value {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #333;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 注释掉旧的样式，避免与新的移动端响应式样式冲突
    .navbar-container {
        flex-direction: column;
        padding: 12px 16px;
        height: auto;
        gap: 12px;
    }
    
    .navbar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-logo {
        height: 24px;
        width: 24px;
    }
    
    .brand-links {
        gap: 6px;
    }
    
    .brand-link {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .brand-link.language-switch .language-flag {
        font-size: 12px;
    }
    
    .brand-link.language-switch .language-name {
        font-size: 0.7rem;
    }
    
    .brand-link.language-switch .language-arrow {
        font-size: 8px;
    }
    
    .language-dropdown-compact {
        min-width: 100px;
    }
    
    .language-dropdown-compact .language-option {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .language-dropdown-compact .language-option .language-flag {
        font-size: 12px;
    }
    
    .navbar-nav {
        width: 100%;
        justify-content: space-between;
        gap: 2px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 6px 8px;
        flex: 1;
        text-align: center;
        min-width: 44px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input {
        margin-bottom: 10px;
    }
    
    .address-label .label-text {
        max-width: 120px;
    }
    
    body {
        padding-top: 120px;
    }
    
    移动端容器padding调整
    .container {
        padding: 16px;
        margin: 16px auto;
    }
    */
}

/* 地址备注管理样式 */
.form-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.address-notes-list {
    margin-bottom: 20px;
}

.address-notes-table {
    width: 100%;
    border-collapse: collapse;
}

.address-notes-table th,
.address-notes-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.description-cell {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;  /* 添加字体大小设置 */
}

.tag-badge {
    display: inline-block;
    padding: 2px 6px;  /* 减小内边距从3px 8px到2px 6px */
    background-color: #f0f0f0;
    color: #333;
    border-radius: 12px;
    font-size: 11px;  /* 减小字体大小从12px到11px */
    margin-right: 4px;  /* 减小右边距从5px到4px */
    margin-bottom: 2px;  /* 减小底部边距从3px到2px */
}

.actions-cell {
    white-space: nowrap;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px;  /* 减小内边距从5px到3px */
    margin-right: 3px;  /* 减小右边距从5px到3px */
    border-radius: 4px;
    font-size: 14px;  /* 添加字体大小设置 */
}

.btn-icon:hover {
    background-color: #f0f0f0;
}

.edit-icon {
    color: #3498db;
}

.delete-icon {
    color: #e74c3c;
}

.bulk-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* 地址显示组件样式 */
.address-display {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.address-link,
.address-text {
    color: #3498db;
    text-decoration: none;
}

.address-link:hover {
    text-decoration: underline;
}

.address-note-name {
    background-color: #f0b90b;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.address-note-tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
}

/* 添加这些紧凑表格样式 */

/* 更紧凑的表格样式 */
.tab-content table {
    font-size: 0.9rem;  /* 稍微减小字体 */
    border-collapse: collapse;
    width: 100%;
}

.tab-content th, 
.tab-content td {
    padding: 8px 10px;  /* 减小内边距 */
    text-align: left;
    border: 1px solid #ddd;
    white-space: nowrap;  /* 防止文本换行 */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;  /* 限制最大宽度 */
}

.tab-content th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

/* 为不同的列设置宽度 */
.tab-content table th:nth-child(1) { width: 6%; }   /* 地址列 */
.tab-content table th:nth-child(2) { width: 6%; }   /* 地址列 */
.tab-content table th:nth-child(3) { width: 6%; }   /* 交易数量列 */
.tab-content table th:nth-child(4) { width: 22%; }  /* 消耗BNB列 */
.tab-content table th:nth-child(5) { width: 22%; }  /* 流出代币列 */
.tab-content table th:nth-child(6) { width: 22%; }  /* 净流出列 */
.tab-content table th:nth-child(7) { width: 10%; }  /* USD价值列 */
.tab-content table th:nth-child(8) { width: 6%; }  /* 积分列 */

/* 悬停效果 */
.tab-content tr:hover {
    background-color: #f5f5f5;
}

/* 去除地址单元格的特殊样式，使其与其他单元格一致 */
.address-cell {
    max-width: initial;
    color: #3498db;
}

/* 地址链接样式 */
.address-cell a {
    color: #3498db;
    text-decoration: none;
}

.address-cell a:hover {
    text-decoration: underline;
}

/* 批量导入相关样式 */
#bulk-import-text {
    font-family: monospace;
    white-space: pre;
    min-height: 150px;
    line-height: 1.4;
}

.collapsible-section {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.section-header {
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header:hover {
    background-color: #f0f0f0;
}

.section-header .arrow {
    transition: transform 0.3s;
}

.section-header.expanded .arrow {
    transform: rotate(180deg);
}

.section-content {
    padding: 15px;
    background-color: #fff;
    display: none;
}

.section-content.expanded {
    display: block;
}

/* 地址备注表格样式优化 */
.address-notes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.address-notes-table th, 
.address-notes-table td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.address-notes-table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

.address-notes-table tr:hover {
    background-color: #f5f5f5;
}

/* 定义列宽 */
.address-notes-table th:nth-child(1) { width: 30%; } /* 地址列 - 增加到30% */
.address-notes-table th:nth-child(2) { width: 20%; } /* 名称列 */
.address-notes-table th:nth-child(3) { width: 25%; } /* 描述列 */
.address-notes-table th:nth-child(4) { width: 15%; } /* 标签列 - 减少到15% */
.address-notes-table th:nth-child(5) { width: 10%; } /* 操作列 */

/* 地址选择相关样式 */
.address-filter {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.filter-actions {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-actions label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.filter-actions input[type="checkbox"] {
    margin-right: 5px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-sm:hover {
    background-color: #e0e0e0;
}

.address-selection-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.address-selection-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #eee;
    background-color: #fff;
}

.address-selection-item:hover {
    background-color: #f5f5f5;
}

.address-selection-item.has-note {
    border-left: 3px solid #3498db;
}

.address-selection-item.no-note {
    border-left: 3px solid #e74c3c;
}

.address-checkbox {
    margin-right: 10px;
}

.address-selection-label {
    flex: 1;
    cursor: pointer;
    margin-bottom: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.address-hash {
    color: #7f8c8d;
    font-size: 12px;
}

.address-selection-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    border-radius: 4px;
    color: #7f8c8d;
}

.btn-icon:hover {
    background-color: #f0f0f0;
    color: #333;
}

.progress-info {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 修改原有样式，确保地址列表在添加表单下方 */
.header-controls {
    margin-bottom: 0;
}

#address-input {
    max-width: 500px;
}

.view-icon {
    color: #3498db;
}

.remove-icon {
    color: #e74c3c;
}

.icon-eye, .icon-delete, .icon-edit {
    font-style: normal;
}

/* 代币价格底部栏样式 */
.token-price-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 2px solid #f0b90b;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
}

.price-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.price-bar-header h4 {
    margin: 0;
    color: #333;
    font-size: 14px;
}

.price-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-bar-actions span {
    font-size: 12px;
    color: #666;
}

.price-bar-content {
    padding: 10px 20px;
}

.price-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #ddd;
    min-width: 80px;
}

.price-item.success {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

.price-item.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.price-symbol {
    font-weight: bold;
    font-size: 12px;
    color: #333;
    margin-bottom: 4px;
}

.price-value {
    font-size: 11px;
    color: #666;
}

.price-value.error {
    color: #e74c3c;
}

.price-loading, .price-error, .no-price-data {
    text-align: center;
    padding: 15px;
    color: #666;
    font-style: italic;
}

.price-error {
    color: #e74c3c;
}

/* 为主内容添加底部间距，避免被价格栏遮挡 */
.container {
    margin-bottom: 220px;
}

/* 表格排序样式 */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s;
}

.sortable:hover {
    background-color: #e3af0a !important;
}

.sortable.sort-asc {
    background-color: rgba(240, 185, 11, 0.3) !important;
}

.sortable.sort-desc {
    background-color: rgba(240, 185, 11, 0.3) !important;
}

.sort-indicator {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.sortable:hover .sort-indicator {
    color: #000;
}

/* 移除之前的底部栏样式，改为弹窗样式 */
.token-price-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.price-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.price-modal-header span {
    font-size: 14px;
    color: #666;
}

.price-modal-content {
    max-height: 400px;
    overflow-y: auto;
}

.price-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.price-item-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.price-item-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.price-item-modal.success {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

.price-item-modal.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.price-symbol-modal {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.price-value-modal {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.price-value-modal.error {
    color: #e74c3c;
    font-weight: normal;
}

.price-loading, .price-error, .no-price-data {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
    font-size: 16px;
}

.price-error {
    color: #e74c3c;
}

/* 移除之前给 container 添加的底部间距 */
.container {
    margin-bottom: 20px; /* 恢复正常间距 */
}
/* ============= 排序样式优化 ============= */

/* 可排序的表头样式 */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
    padding-right: 24px !important; /* 为箭头留出空间 */
}

.sortable:hover {
    background-color: #e3af0a !important;
    color: #000;
}

/* 排序箭头样式 */
.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.3;
    transition: all 0.2s ease;
}

/* 默认状态 - 显示双向箭头效果 */
.sortable::after {
    border-top: 4px solid #666;
    border-bottom: 4px solid #666;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    height: 8px;
}

/* 升序状态 - 向上箭头 */
.sortable.sort-asc {
    background-color: rgba(240, 185, 11, 0.2) !important;
    color: #000;
}

.sortable.sort-asc::after {
    border-bottom: 6px solid #f0b90b;
    border-top: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 1;
    height: 0;
}

/* 降序状态 - 向下箭头 */
.sortable.sort-desc {
    background-color: rgba(240, 185, 11, 0.2) !important;
    color: #000;
}

.sortable.sort-desc::after {
    border-top: 6px solid #f0b90b;
    border-bottom: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 1;
    height: 0;
}

/* 悬停时的箭头效果 */
.sortable:hover::after {
    opacity: 0.8;
    border-color: #000 transparent transparent transparent;
}

.sortable.sort-asc:hover::after {
    border-bottom-color: #000;
}

.sortable.sort-desc:hover::after {
    border-top-color: #000;
}

/* 移除原有的 sort-indicator 样式，因为现在使用 ::after 伪元素 */
.sort-indicator {
    display: none;
}

/* 表格行过渡效果 */
.tab-content table tbody tr {
    transition: all 0.3s ease;
}

/* 汇总行样式增强 */
.tab-content table tbody tr[style*="background-color"] {
    border-top: 2px solid #f0b90b !important;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

/* 排序动画 */
@keyframes sortingAnimation {
    0% { opacity: 0.7; transform: translateY(-2px); }
    100% { opacity: 1; transform: translateY(0); }
}

.tab-content table tbody tr {
    animation: sortingAnimation 0.3s ease-out;
}


.tab-content table tbody tr[style*="background-color"] td {
    white-space: normal !important;
    vertical-align: top !important;
    line-height: 1.4 !important;
    min-height: auto !important;
    height: auto !important;
}

/* 空投页面样式 */
.featured-airdrop {
    margin-bottom: 30px;
}

.airdrops-table-container {
    overflow-x: auto;
}

.airdrops-table-container table {
    min-width: 1200px;
}

.airdrops-table-container th,
.airdrops-table-container td {
    padding: 12px 8px;
    white-space: nowrap;
}

.airdrops-table-container th:nth-child(1) { width: 8%; }   /* 优先级 */
.airdrops-table-container th:nth-child(2) { width: 15%; }  /* 代币名称 */
.airdrops-table-container th:nth-child(3) { width: 10%; }  /* 每人数量 */
.airdrops-table-container th:nth-child(4) { width: 12%; }  /* 符合规则人数 */
.airdrops-table-container th:nth-child(5) { width: 10%; }  /* 已领取人数 */
.airdrops-table-container th:nth-child(6) { width: 10%; }  /* 未领取人数 */
.airdrops-table-container th:nth-child(7) { width: 15%; }  /* 领取进度 */
.airdrops-table-container th:nth-child(8) { width: 12%; }  /* 剩余数量 */
.airdrops-table-container th:nth-child(9) { width: 18%; }  /* 二次空投潜力 */

/* 空投表格在滚动容器中的最小宽度 */
#airdrops-table-container .table-scroll-container table {
    min-width: 1200px;
}

@media (max-width: 768px) {
    .featured-airdrop > div {
        padding: 15px !important;
    }
    
    .featured-airdrop h3 {
        font-size: 20px !important;
    }
    
    /* 移动端空投表格最小宽度 */
    #airdrops-table-container .table-scroll-container table {
        min-width: 900px;
    }
}

/* ============= 用户管理页面样式 ============= */

.user-view {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.view-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0b90b;
}

.view-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
}

.view-description {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 25px;
}

.section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 20px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

.count-badge {
    background: #f0b90b;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

/* 登录状态样式 */
.login-status {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.login-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.login-required {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.status-icon {
    font-size: 20px;
}

.login-help {
    margin: 10px 0 0 0;
    font-size: 14px;
    opacity: 0.8;
}

/* 地址操作区域 */
.address-operations {
    margin-bottom: 25px;
}

.add-address-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #f0b90b;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

.operation-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #f0b90b 0%, #e6a500 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e6a500 0%, #cc9500 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #545b62 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* 地址列表样式 */
.address-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}

.address-list {
    background: white;
}

.address-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

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

.address-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.address-info {
    flex: 1;
}

.address-info .address {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 5px;
    word-break: break-all;
}

.address-info .note {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.address-actions {
    display: flex;
    gap: 8px;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* 使用说明样式 */
.help-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f0b90b;
}

.help-content ol {
    margin: 0;
    padding-left: 20px;
}

.help-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.help-content code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #c7254e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-view {
        padding: 15px;
    }
    
    .view-header h2 {
        font-size: 24px;
    }
    
    .section {
        padding: 20px 15px;
    }
    
    .add-address-form {
        flex-direction: column;
    }
    
    .form-input {
        min-width: auto;
    }
    
    .operation-buttons {
        flex-direction: column;
    }
    
    .address-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .address-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .login-success {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============= 实时监控页面样式 ============= */

.runtime-view {
    max-width: none; /* 移除最大宽度限制 */
    margin: 0; /* 移除边距 */
    padding: 0; /* 移除内边距 */
    width: 100vw; /* 占据整个视口宽度 */
    margin-left: calc(-50vw + 50%); /* 突破父容器限制 */
}

/* 紧凑控制面板样式 */
.control-panel-compact {
    background: white;
    border-bottom: 1px solid #e1e8ed;
    padding: 8px 20px; /* 缩小内边距 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px; /* 缩小间距 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.control-panel-compact .control-left {
    display: flex;
    align-items: center;
    gap: 8px; /* 缩小间距 */
    flex-wrap: wrap;
}

.control-panel-compact .control-right {
    display: flex;
    align-items: center;
}

.control-panel-compact label {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.date-input-compact {
    padding: 4px 8px; /* 缩小输入框 */
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    font-size: 12px;
    width: 130px; /* 固定宽度 */
}

.btn-sm {
    padding: 4px 12px; /* 缩小按钮 */
    font-size: 12px;
}

.refresh-info {
    font-size: 11px;
    color: #666;
}

#countdown-display {
    color: #f0b90b;
    font-weight: 600;
}

/* 全宽表格容器 */
.table-container-fullwidth {
    width: 100%;
    overflow-x: auto;
    background: white;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

/* 紧凑section样式 */
.section-compact {
    background: white;
    margin: 0;
    padding: 10px 0 0 0; /* 移除左右padding */
    border-top: 1px solid #e1e8ed;
}

.section-compact h4 {
    margin: 0 0 10px 20px; /* 只给标题左边距 */
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

/* 错误消息紧凑样式 */
#runtime-content .error-message {
    margin: 0 20px 10px 20px;
    padding: 8px 15px;
    font-size: 12px;
}

/* 登录状态样式 */
.login-required {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #721c24;
    margin: 40px 0;
}

.login-required .status-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.login-required h3 {
    color: #721c24;
    margin-bottom: 15px;
    font-size: 24px;
}

.login-required p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.login-required .login-help {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.login-required code {
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #721c24;
    font-weight: bold;
}

/* 控制面板样式 */
.control-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.control-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-right {
    display: flex;
    align-items: center;
}

.date-input {
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
}

.refresh-info {
    font-size: 14px;
    color: #666;
}

/* 错误消息样式 */
.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #f0b90b;
    transition: transform 0.3s ease;
}

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

.stats-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.stats-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #2c3e50;
}

.stats-value.buy {
    color: #27ae60;
}

.stats-value.sell {
    color: #e74c3c;
}

.stats-value.positive {
    color: #27ae60;
}

.stats-value.negative {
    color: #e74c3c;
}

.stats-subtitle {
    font-size: 12px;
    color: #95a5a6;
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
}

/* 统计表格样式 */
.runtime-container .stats-table,
.runtime-container .transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 0;
}

.runtime-container .stats-table th,
.runtime-container .transactions-table th {
    background: linear-gradient(135deg, #f0b90b 0%, #e6a500 100%);
    color: white;
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 11px;
}

.runtime-container .stats-table td,
.runtime-container .transactions-table td {
    padding: 6px 6px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    font-size: 11px;
    line-height: 1.2;
}

.stats-table tbody tr:hover, .transactions-table tbody tr:hover {
    background: #f8f9fa;
}

/* 地址相关样式优化 */
.address-hash {
    font-family: 'Courier New', monospace;
    font-size: 10px; /* 地址字体更小 */
    color: #2c3e50;
    font-weight: 500;
}

.address-note {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    max-width: 100px; /* 限制备注列宽度 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 值单元格样式 */
.value-cell {
    text-align: right;
    font-weight: 600;
    font-size: 10px; /* 数值字体更小 */
}

.value-cell.buy {
    color: #27ae60;
}

.value-cell.sell {
    color: #e74c3c;
}

.value-cell.positive {
    color: #27ae60;
}

.value-cell.negative {
    color: #e74c3c;
}

/* 时间单元格 */
.time-cell {
    font-size: 9px; /* 时间字体最小 */
    color: #666;
    white-space: nowrap;
}

/* 表格列宽重新分配 */
.stats-table th:nth-child(1) { width: 6%; }   /* 排名 */
.stats-table th:nth-child(2) { width: 25%; }  /* 地址 */
.stats-table th:nth-child(3) { width: 15%; }  /* 备注 */
.stats-table th:nth-child(4) { width: 18%; }  /* 买入 */
.stats-table th:nth-child(5) { width: 18%; }  /* 卖出 */
.stats-table th:nth-child(6) { width: 12%; }  /* 净盈亏 */
.stats-table th:nth-child(7) { width: 16%; }  /* 最后交易 */

/* 排名单元格样式 */
.rank-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
}

.rank-number {
    font-weight: 600;
    font-size: 10px;
}

/* 更新按钮样式 */
.update-btn {
    background: none;
    border: none;
    font-size: 8px;
    padding: 1px 2px;
    cursor: pointer;
    border-radius: 2px;
    color: #666;
    transition: all 0.2s ease;
    line-height: 1;
    min-width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-btn:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.update-btn:active {
    transform: scale(0.9);
}

/* 类型单元格样式 */
.type-cell {
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
}

.type-cell.buy {
    color: #27ae60;
}

.type-cell.sell {
    color: #e74c3c;
}

/* 代币单元格 */
.token-cell {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: #666;
}

/* 代币信息样式 */
.token-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 代币 logo 样式 */
.token-logo {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

/* 代币交换箭头 */
.token-swap-arrow {
    margin: 0 4px;
    color: #999;
}

/* 对刷交易样式 */
.type-cell.buy-sell {
    color: #f39c12;
    font-weight: 600;
}

.value-cell.buy-sell {
    color: #f39c12;
}

/* 交易链接 */
.tx-link {
    color: #3498db;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 9px;
}

.tx-link:hover {
    text-decoration: underline;
}

/* 无数据状态 */
.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px 10px; /* 缩小padding */
    font-size: 12px;
}

/* 加载指示器 */
.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 6px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .runtime-view {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .stats-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-left, .control-right {
        justify-content: center;
    }
    
    .control-left {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-value {
        font-size: 24px;
    }
    
    .table-container {
        font-size: 12px;
    }
    
    .stats-table th, .transactions-table th,
    .stats-table td, .transactions-table td {
        padding: 8px 6px;
    }
}

/* 交易表格列宽 */
.transactions-table th:nth-child(1) { width: 15%; }  /* 时间 */
.transactions-table th:nth-child(2) { width: 20%; }  /* 地址 */
.transactions-table th:nth-child(3) { width: 10%; }  /* 类型 */
.transactions-table th:nth-child(4) { width: 12%; }  /* 价值 */
.transactions-table th:nth-child(5) { width: 28%; }  /* 代币交换 */
.transactions-table th:nth-child(6) { width: 15%; }  /* 交易哈希 */

/* 表格横向滚动容器 */
.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: white;
    margin-bottom: 15px;
}

.table-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 确保表格在容器内不会缩小 */
.table-scroll-container table {
    min-width: 800px; /* 设置表格最小宽度 */
    width: 100%;
    margin: 0;
}

/* Tab容器内的表格 */
.tab-content .table-scroll-container table {
    min-width: 1000px; /* Tab内表格需要更宽 */
}

/* 地址备注表格容器 */
.address-notes-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
}

.address-notes-container table {
    min-width: 700px;
    width: 100%;
    margin: 0;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .table-scroll-container {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border: 1px solid #ddd;
    }
    
    .table-scroll-container table {
        min-width: 600px;
        font-size: 12px;
    }
    
    .tab-content .table-scroll-container table {
        min-width: 800px;
    }
    
    .table-scroll-container th,
    .table-scroll-container td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* 为移动端表格添加滚动提示 */
    .table-scroll-container::after {
        content: '← 左右滑动查看更多 →';
        display: block;
        text-align: center;
        padding: 8px;
        background: #f8f9fa;
        color: #666;
        font-size: 11px;
        border-top: 1px solid #ddd;
    }
    
    .address-notes-container {
        margin-left: 8px;
        margin-right: 8px;
        border-radius: 0;
        border: 1px solid #ddd;
    }
    
    .address-notes-container table {
        min-width: 500px;
        font-size: 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .table-scroll-container table {
        min-width: 500px;
        font-size: 11px;
    }
    
    .tab-content .table-scroll-container table {
        min-width: 700px;
    }
    
    .table-scroll-container th,
    .table-scroll-container td {
        padding: 6px 4px;
    }
    
    .address-notes-container table {
        min-width: 450px;
        font-size: 11px;
    }
}

/* ============= 多地址管理页面工具栏样式 ============= */

.manager-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0;
    padding: 8px 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.manager-toolbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f0b90b 0%, #3498db 50%, #e74c3c 100%);
}

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

.manager-toolbar-right {
    display: flex;
    align-items: center;
    gap: 1px;
}

.manager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    white-space: nowrap;
    min-height: 32px;
    box-sizing: border-box;
}

.manager-btn:hover {
    background: #f8f9fa;
    color: #212529;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.manager-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.manager-btn-primary {
    background: linear-gradient(135deg, #f0b90b 0%, #e6a500 100%);
    color: #000;
    border-color: #f0b90b;
    font-weight: 600;
}

.manager-btn-primary:hover {
    background: linear-gradient(135deg, #e6a500 0%, #cc9500 100%);
    color: #000;
    border-color: #e6a500;
}

.manager-btn-action {
    background: white;
    color: #3498db;
    border-color: #e9ecef;
}

.manager-btn-action:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.manager-btn-danger {
    background: white;
    color: #e74c3c;
    border-color: #e9ecef;
}

.manager-btn-danger:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* 工具栏按钮组效果 */
.manager-toolbar-right .manager-btn:not(:first-child) {
    border-left: none;
}

.manager-toolbar-right .manager-btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.manager-toolbar-right .manager-btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .manager-toolbar {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        align-items: stretch;
    }
    
    .manager-toolbar-left {
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    
    .manager-toolbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .manager-toolbar-right {
        gap: 4px;
        flex-wrap: wrap;
        max-width: 100%;
        justify-content: center;
    }
    
    /* 移动端隐藏显示选项复选框的文字，只保留复选框 */
    .manager-toolbar-left > div {
        gap: 8px !important;
        margin-left: 8px !important;
    }
    
    .manager-toolbar-left > div label {
        font-size: 10px !important;
    }
    
    .manager-btn {
        font-size: 11px;
        padding: 8px 10px;
        border-radius: 4px !important;
        border: 1px solid #dee2e6 !important;
        min-height: 40px;
        flex: 1 1 calc(33.333% - 4px);
        max-width: calc(33.333% - 4px);
        min-width: 120px;
    }
    
    .manager-toolbar-right .manager-btn:not(:first-child) {
        border-left: 1px solid #dee2e6 !important;
    }
    
    /* 移动端显示图标+文字 */
    .manager-btn-text {
        display: inline;
        font-size: 11px;
    }
    
    .manager-btn-icon {
        display: inline;
        font-size: 14px;
        margin-right: 4px;
    }
    
    /* 地址管理按钮在移动端保持图标+文字 */
    .manager-btn-primary {
        flex: 1 1 auto;
        max-width: none;
        margin-right: 8px;
        margin-bottom: 8px;
    }
    
    .manager-btn-primary .manager-btn-text {
        display: inline;
        font-size: 11px;
    }
    
    .manager-btn-primary .manager-btn-icon {
        display: inline;
        font-size: 12px;
        margin-right: 4px;
    }
    
    /* 左侧工具栏中的筛选按钮样式 */
    .manager-toolbar-left .manager-btn-action {
        flex: 1 1 auto;
        max-width: none;
        margin-bottom: 8px;
    }
    
    /* 工具栏选项在移动端单独一行 */
    .toolbar-options {
        flex: 1 1 100%;
        margin-left: 0 !important;
        margin-top: 8px;
        justify-content: center;
        gap: 20px !important;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .manager-btn {
        font-size: 10px;
        padding: 6px 8px;
        gap: 2px;
        flex: 1 1 calc(50% - 2px);
        max-width: calc(50% - 2px);
        min-width: 90px;
    }
}

.manager-btn-icon {
    font-size: 14px;
}

.manager-btn-text {
    font-size: 12px;
}

/* ============= 地址备注管理页面表格操作栏样式 ============= */

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.actions-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.actions-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 弹窗关闭按钮样式 */
.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-close:active {
    transform: scale(0.95);
}

/* 弹窗内容区域调整 */
.modal-header {
    position: relative;
    padding-right: 50px; /* 为关闭按钮留出空间 */
}

/* 弹窗表单样式优化 */
.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body .form-control {
    width: 100%;
}

.modal-body textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* 批量导入文本框样式 */
#bulk-import-text {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .actions-left,
    .actions-right {
        width: 100%;
        justify-content: center;
    }
    
    .actions-right {
        flex-wrap: wrap;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-close {
        font-size: 24px;
        right: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .table-actions .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
    }
}

/* 交易详情表格样式 */
#list-view .table-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* address.js专用的表格滚动容器样式 */
#list-view .address-table-scroll-container {
    margin-left: 0;
    margin-right: 0;
}

#list-view .table-scroll-container table {
    min-width: 800px;
    width: 100%;
    margin: 0;
}

#list-view .table-scroll-container th {
    background-color: #f0b90b;
    color: #000;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

/* 交易详情表格列宽 */
#transactions-table th:nth-child(1) { width: 15%; }  /* 交易哈希 */
#transactions-table th:nth-child(2) { width: 20%; }  /* From/To */
#transactions-table th:nth-child(3) { width: 12%; }  /* 时间 */
#transactions-table th:nth-child(4) { width: 10%; }  /* Token */
#transactions-table th:nth-child(5) { width: 12%; }  /* 流入数量 */
#transactions-table th:nth-child(6) { width: 12%; }  /* 流出数量 */
#transactions-table th:nth-child(7) { width: 10%; }  /* 消耗BNB */
#transactions-table th:nth-child(8) { width: 9%; }   /* 状态 */

/* 移动端优化 */
@media (max-width: 768px) {
    #list-view .table-scroll-container {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    /* address.js专用的表格滚动容器在移动端保持正常margin */
    #list-view .address-table-scroll-container {
        margin-left: 0;
        margin-right: 0;
        border-radius: 6px;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
    }
    
    #list-view .table-scroll-container table {
        min-width: 700px;
        font-size: 12px;
    }
    
    #list-view .table-scroll-container::after {
        content: '← 左右滑动查看更多 →';
        display: block;
        text-align: center;
        padding: 8px;
        background: #f8f9fa;
        color: #666;
        font-size: 11px;
        border-top: 1px solid #ddd;
    }
}

@media (max-width: 480px) {
    #list-view .table-scroll-container table {
        min-width: 600px;
        font-size: 11px;
    }
    
    #list-view .table-scroll-container th,
    #list-view .table-scroll-container td {
        padding: 6px 8px;
    }
}

/* 地址标签文字样式 */
.address-label-text {
    font-weight: bold;
    color: #666;
    font-size: 12px;
}

/* 币安提现视图样式 */
.binance-withdraw-container {
    max-width: 100%;
    margin: 0;
    padding: 20px;
}

.binance-withdraw-container h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

/* 左右布局容器 */
.binance-layout {
    display: flex;
    gap: 20px;
    height: calc(100vh - 180px); /* 减去导航栏和标题的高度 */
}

/* 左侧栏 */
.binance-left-column {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* 右侧栏 */
.binance-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* 让日志区域占据剩余空间 */
.binance-right-column .section:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.binance-withdraw-container .section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.binance-withdraw-container .section h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
}

.binance-withdraw-container .form-group {
    margin-bottom: 15px;
}

.binance-withdraw-container .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

.binance-withdraw-container .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.binance-withdraw-container .form-control:focus {
    outline: none;
    border-color: #4CAF50;
}

.binance-withdraw-container .input-group {
    display: flex;
    gap: 10px;
}

.binance-withdraw-container .input-group .form-control {
    flex: 1;
}

.binance-withdraw-container .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.binance-withdraw-container .btn-primary {
    background-color: #4CAF50;
    color: white;
}

.binance-withdraw-container .btn-primary:hover {
    background-color: #45a049;
}

.binance-withdraw-container .btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.binance-withdraw-container .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.binance-withdraw-container .btn-secondary:hover {
    background-color: #5a6268;
}

.binance-withdraw-container .btn-danger {
    background-color: #dc3545;
    color: white;
}

.binance-withdraw-container .btn-danger:hover {
    background-color: #c82333;
}

.binance-withdraw-container .btn-danger:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.binance-withdraw-container .large-textarea {
    min-height: 200px;
    resize: vertical;
    font-family: monospace;
}

.binance-withdraw-container .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.binance-withdraw-container .button-group {
    display: flex;
    gap: 10px;
}

.binance-withdraw-container .log-container {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.binance-withdraw-container .log-textarea {
    background-color: #2b2b2b;
    color: #f0f0f0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    min-height: 300px;
    flex: 1;
}

.binance-withdraw-container .form-text {
    font-size: 13px;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .binance-layout {
        flex-direction: column;
        height: auto;
    }
    
    .binance-left-column {
        flex: 1;
        max-width: 100%;
    }
    
    .binance-right-column {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .binance-withdraw-container {
        padding: 10px;
    }
    
    .binance-withdraw-container h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .binance-withdraw-container .section {
        padding: 15px;
    }
    
    .binance-withdraw-container .form-row {
        grid-template-columns: 1fr;
    }
    
    .binance-withdraw-container .button-group {
        flex-direction: column;
    }
    
    .binance-withdraw-container .button-group .btn {
        width: 100%;
    }
    
    .binance-layout {
        gap: 10px;
    }
}

/* 当前页面所在的导航分组高亮样式 */
.nav-group.active .nav-group-toggle {
    background-color: #f3f4f6;
    color: #1f2937;
    font-weight: 600;
}