* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', '微软雅黑', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏 - 财报风格 + 现代化玻璃态效果 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(225, 232, 237, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

/* 添加底部渐变装饰线 */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 107, 107, 0.3), 
        rgba(255, 165, 0, 0.3),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.navbar:hover::after {
    opacity: 1;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
}

/* 导航栏品牌 */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    z-index: 1001;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

/* 添加品牌文字下划线效果 */
.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    transition: width 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand:hover::after {
    width: 100%;
}

/* 汉堡菜单按钮 */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
}

/* 导航菜单 */
.navbar-nav {
    flex: 1;
    justify-content: flex-end;
    margin-right: 1rem; /* 与用户按钮保持间距 */
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.navbar-nav a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: block;
    position: relative;
    overflow: hidden;
}

.navbar-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.navbar-nav a:hover::before {
    left: 0;
}

.navbar-nav a:hover {
    color: #007bff;
    transform: translateY(-2px);
}

/* 用户菜单容器（独立于汉堡菜单） */
.user-menu-container {
    position: relative;
    margin-left: auto;
    z-index: 1001;
    flex-shrink: 0;
    order: 999; /* 确保在最右侧 */
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    background: rgba(248, 249, 250, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 232, 237, 0.3);
}

.user-menu-toggle:hover {
    background-color: rgba(248, 249, 250, 0.9);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
}

.user-icon-svg svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.user-menu-container .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
    margin-left: 0.25rem;
    color: #666;
    flex-shrink: 0;
}

.user-menu-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 地区切换组件 */
.region-selector-container {
    position: relative;
    margin-right: 1rem;
    z-index: 1001;
    flex-shrink: 0;
    order: 998; /* 在用户菜单之前 */
}

.region-selector-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    background: rgba(74, 144, 226, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.region-selector-toggle:hover {
    background-color: rgba(74, 144, 226, 0.15);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.region-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.region-icon-svg svg {
    width: 100%;
    height: 100%;
}

.region-name {
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2c3e50;
    font-size: 0.9rem;
}

.region-selector-container .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
    margin-left: 0.25rem;
    color: #666;
    flex-shrink: 0;
}

.region-selector-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

.region-selector-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    min-width: 250px;
    max-width: 350px;
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    border: 1px solid rgba(225, 232, 237, 0.5);
}

.region-selector-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.region-selector-dropdown li {
    margin: 0;
    padding: 0;
}

.region-selector-dropdown .region-item {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(225, 232, 237, 0.3);
}

.region-selector-dropdown .region-item:last-child {
    border-bottom: none;
}

.region-selector-dropdown .region-item:hover {
    background-color: rgba(74, 144, 226, 0.1);
    color: #007bff;
}

.region-selector-dropdown .region-item.selected {
    background-color: rgba(74, 144, 226, 0.15);
    color: #007bff;
    font-weight: 600;
}

.region-selector-dropdown .region-item .region-item-name {
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.region-selector-dropdown .region-item .region-item-info {
    font-size: 0.85rem;
    color: #666;
    display: block;
}

.region-selector-dropdown .region-item .region-item-level {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #4A90E2;
    margin-top: 4px;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(221, 221, 221, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    list-style: none;
    display: none;
    z-index: 1002;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-dropdown.active {
    display: block;
}

.user-menu-dropdown li {
    margin: 0;
    border-bottom: none;
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.user-menu-dropdown a:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: none;
}

.menu-icon-svg {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    flex-shrink: 0;
}

.menu-icon-svg svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-icon-svg.icon-profile {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #2563eb;
}

.menu-icon-svg.icon-apply {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.menu-icon-svg.icon-review {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.menu-icon-svg.icon-invite {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.menu-icon-svg.icon-logout {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.menu-label {
    font-size: 0.95rem;
    font-weight: 500;
}

/* 用户菜单容器 */
.team-menu-container {
    position: relative;
}

.team-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.team-menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.team-menu-toggle:hover::before {
    left: 0;
}

.team-menu-toggle:hover {
    color: #007bff;
    transform: translateY(-2px);
}

.team-menu-container .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
    margin-left: 0.25rem;
    color: #666;
}

.team-menu-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

.team-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(221, 221, 221, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    min-width: 150px;
    padding: 0.5rem 0;
    list-style: none;
    display: none;
    z-index: 1002;
    animation: slideDown 0.3s ease;
}

.team-menu-dropdown.active {
    display: block;
}

.team-menu-dropdown li {
    margin: 0;
}

.team-menu-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.team-menu-dropdown a:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: translateX(4px);
}

/* 移动端菜单遮罩层 */
.navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* 在导航菜单之上，汉堡按钮之下 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* 卡片 - 财报风格 + 现代化玻璃态效果 */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(225, 232, 237, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    opacity: 0.3; /* 改为默认显示，但降低透明度 */
    transition: opacity 0.3s ease, height 0.3s ease;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    transform: none;
}

.card:hover::before {
    opacity: 0.3;
    height: 4px;
}

.card-header {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(225, 232, 237, 0.5);
    color: #2c3e50;
    letter-spacing: -0.5px;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    border-radius: 2px;
    transition: width 0.3s ease; /* 添加过渡效果 */
}

.card:hover .card-header::after {
    width: 60px;
}

/* 表单 */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(225, 232, 237, 0.5);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #2c3e50;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1),
                0 4px 12px rgba(255, 107, 107, 0.15);
    background: #ffffff;
    transform: translateY(-2px);
}

.form-control:read-only {
    background: #f8f9fa;
    cursor: not-allowed;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff9800 100%);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.4);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(149, 165, 166, 0.3);
}

.btn-secondary:hover {
    background: #7f8c8d;
    box-shadow: 0 4px 8px rgba(149, 165, 166, 0.4);
    transform: translateY(-1px);
}

/* 统计卡片 - 财报风格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #2c3e50;
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 可提现余额卡片不添加 cursor: pointer，因为内部有按钮 */
.stat-card.balance {
    cursor: default;
}

.stat-card.balance:hover {
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color-start, #3b82f6), var(--card-color-end, #60a5fa));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* 添加背景光效 */
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 107, 107, 0.05) 0%, 
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card:hover::before {
    transform: scaleX(0);
}

.stat-card:hover::after {
    opacity: 0;
}

.stat-card h3 {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    /* 添加渐变文字效果 */
    background: linear-gradient(135deg, var(--card-color-start, #3b82f6), var(--card-color-end, #60a5fa));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.stat-card:hover .value {
    filter: none;
}

/* 现代化卡片图标样式 */
.stat-card-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--icon-bg-start, #3b82f6), var(--icon-bg-end, #60a5fa));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.7; /* 改为默认显示，但降低透明度 */
    transition: all 0.3s ease;
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 卡片副标题样式 */
.stat-card-subtitle {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* 不同卡片的颜色主题 */
.stat-card.sales {
    --card-color-start: #3b82f6;
    --card-color-end: #60a5fa;
    --icon-bg-start: #3b82f6;
    --icon-bg-end: #60a5fa;
}

.stat-card.profit {
    --card-color-start: #10b981;
    --card-color-end: #34d399;
    --icon-bg-start: #10b981;
    --icon-bg-end: #34d399;
}

.stat-card.users {
    --card-color-start: #8b5cf6;
    --card-color-end: #a78bfa;
    --icon-bg-start: #8b5cf6;
    --icon-bg-end: #a78bfa;
}

.stat-card.balance {
    --card-color-start: #f59e0b;
    --card-color-end: #fbbf24;
    --icon-bg-start: #f59e0b;
    --icon-bg-end: #fbbf24;
}

.stat-card.points {
    --card-color-start: #6366f1;
    --card-color-end: #818cf8;
    --icon-bg-start: #6366f1;
    --icon-bg-end: #818cf8;
}

.stat-card.withdrawn {
    --card-color-start: #ec4899;
    --card-color-end: #f472b6;
    --icon-bg-start: #ec4899;
    --icon-bg-end: #f472b6;
}

/* 表格 - 财报风格 + 现代化设计 */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.table th,
.table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.table th {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
    backdrop-filter: blur(20px);
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid rgba(222, 226, 230, 0.5);
    position: relative;
}

/* 添加表头底部装饰线 */
.table th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    transition: width 0.3s ease;
}

.table thead:hover th::after {
    width: 100%;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.5);
}

.table tbody tr {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(232, 244, 248, 0.8);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left-color: #ff6b6b; /* 添加悬停时的左侧装饰条 */
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* 数字列右对齐 */
.table td:has(.stat-value),
.table td:nth-child(4),
.table td:nth-child(5) {
    text-align: right;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-weight: 500;
}

/* 加载状态 - 财报风格 */
.loading {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 107, 0.2);
    border-top-color: #ff6b6b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

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

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 错误提示 - 财报风格 */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.alert-error {
    background: #fff5f5;
    color: #c53030;
    border-left-color: #fc8181;
    border: 1px solid #fed7d7;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border-left-color: #68d391;
    border: 1px solid #c6f6d5;
}

/* 响应式：小屏幕时只显示图标 */
@media (max-width: 480px) {
    .user-menu-toggle {
        padding: 0.5rem;
        gap: 0;
    }
    
    .user-name,
    .user-menu-container .dropdown-arrow {
        display: none;
    }
    
    .user-icon-svg {
        width: 28px;
        height: 28px;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card-icon {
        width: 40px;
        height: 40px;
        top: 1rem;
        right: 1rem;
    }
    
    .stat-card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .stat-card .value {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .navbar-nav a {
        padding: 0.75rem 1rem;
        border-radius: 10px;
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .navbar-brand {
        flex: 0 0 auto;
        order: 1;
        max-width: calc(100% - 120px); /* 为汉堡菜单和用户按钮留出空间 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .navbar-toggle {
        display: flex;
        order: 2;
        flex: 0 0 auto;
        z-index: 1002;
    }
    
    /* 用户菜单容器在移动端 */
    .region-selector-container {
        margin-right: 0.5rem;
        order: 997;
    }
    
    .region-selector-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .region-name {
        max-width: 100px;
        font-size: 0.85rem;
    }
    
    .region-selector-dropdown {
        min-width: 200px;
        max-width: 280px;
        right: 0;
    }
    
    .user-menu-container {
        order: 999; /* 确保在最右侧 */
        margin-left: auto; /* 保持靠右 */
        flex-shrink: 0;
    }
    
    /* 移动端导航菜单不占用空间 */
    .navbar-nav {
        margin-right: 0;
    }
    
    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
        overflow-y: auto;
        display: flex !important;
    }
    
    .navbar-nav.active {
        right: 0;
    }
    
    .navbar-nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
        margin: 0;
        display: block;
    }
    
    .navbar-nav a {
        padding: 1rem;
        display: block;
        width: 100%;
    }
    
    /* 移动端用户菜单下拉框 */
    .user-menu-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .user-menu-dropdown.active {
        display: block !important;
    }
    
    .user-menu-dropdown li {
        border-bottom: 1px solid #eee;
    }
    
    .user-menu-dropdown a {
        padding: 0.75rem 1rem;
    }
    
    /* 移动端遮罩层优化 */
    .navbar-overlay {
        z-index: 999;
    }
    
    .navbar-overlay.active {
        display: block !important;
    }
    
    /* 用户菜单移动端样式 */
    .team-menu-container {
        width: 100%;
    }
    
    .team-menu-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .team-menu-dropdown {
        position: static;
        width: 100%;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(221, 221, 221, 0.3);
        box-shadow: none;
        background: rgba(248, 249, 250, 0.95);
    }
    
    .team-menu-dropdown li {
        border-bottom: 1px solid rgba(221, 221, 221, 0.2);
    }
    
    .team-menu-dropdown a {
        padding: 1rem;
        margin: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* 卡片优化 */
    .card {
        margin-bottom: 16px;
        border-radius: 8px;
    }
    
    .card-header {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* 统计卡片优化 */
    .stat-card {
        padding: 16px;
    }
    
    .stat-card h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .stat-card .value {
        font-size: 24px;
    }
    
    /* 表格优化 - 保持横向滚动，优化显示 */
    .table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .table thead {
        display: table-header-group;
    }
    
    .table tbody {
        display: table-row-group;
    }
    
    .table tr {
        display: table-row;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
        min-width: 80px;
    }
    
    .table th {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .table td {
        font-size: 0.85rem;
    }
    
    /* 表单优化 */
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-control {
        padding: 12px;
        font-size: 16px; /* 防止iOS自动缩放 */
    }
    
    /* 按钮优化 */
    .btn {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    /* 模态框优化 */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* 文本优化 */
    h1, h2, h3 {
        font-size: 1.2em;
    }
    
    /* 操作链接优化 */
    .action-link {
        display: block;
        padding: 8px 0;
        margin-bottom: 4px;
    }
    
    /* 分页优化 */
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* 容器优化 */
    .container {
        padding: 12px;
    }
}

/* 隐藏类 */
.hidden {
    display: none;
}

/* 财报风格增强样式 */
.financial-report {
    background: #ffffff;
}

/* 数据标签样式 */
.data-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.data-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* 趋势指示器 */
.trend-up {
    color: #27ae60;
}

.trend-down {
    color: #e74c3c;
}

.trend-neutral {
    color: #7f8c8d;
}

/* 财报表格增强 */
.table-financial {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
}

.table-financial thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table-financial th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 700;
}

/* 金额格式化 */
.amount {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    color: #2c3e50;
}

.amount.positive {
    color: #27ae60;
}

.amount.negative {
    color: #e74c3c;
}

/* 财报卡片图标（仅财报容器） */
.financial-report .stat-card-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    opacity: 0.1;
}

/* 分隔线 */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e1e8ed, transparent);
    margin: 2rem 0;
}

/* 财报页脚信息 */
.financial-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e1e8ed;
    color: #7f8c8d;
    font-size: 0.85rem;
    text-align: center;
}

/* ==================== Toast 通知样式 ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid #3498db;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #27ae60;
    background: #f0fdf4;
}

.toast-error {
    border-left-color: #e74c3c;
    background: #fef2f2;
}

.toast-warning {
    border-left-color: #f39c12;
    background: #fffbeb;
}

.toast-info {
    border-left-color: #3498db;
    background: #eff6ff;
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #27ae60;
}

.toast-error .toast-icon {
    color: #e74c3c;
}

.toast-warning .toast-icon {
    color: #f39c12;
}

.toast-info .toast-icon {
    color: #3498db;
}

.toast-message {
    flex: 1;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #2c3e50;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* ==================== 确认对话框样式 ==================== */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-overlay.show {
    opacity: 1;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.confirm-overlay.show .confirm-dialog {
    transform: scale(1);
}

.confirm-dialog-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.confirm-dialog-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.confirm-dialog-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.confirm-dialog-body {
    padding: 24px;
    color: #555;
    line-height: 1.6;
}

.confirm-dialog-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e0e0e0;
}

/* ==================== 表单验证样式 ==================== */
.form-control.error {
    border-color: #e74c3c;
    background-color: #fef2f2;
}

.form-control.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.validation-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.validation-error::before {
    content: '⚠';
    font-size: 14px;
}

/* ==================== 加载状态样式 ==================== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 12px;
    color: #7f8c8d;
    font-size: 14px;
}

/* ==================== 空数据占位符样式 ==================== */
.empty-placeholder {
    color: #95a5a6;
    font-style: italic;
}

/* ==================== 按钮禁用状态 ==================== */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==================== 移动端响应式优化 ==================== */

/* 移动端统计卡片优化 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .stat-card .value {
        font-size: 1.75rem;
    }
    
    .stat-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-card-icon {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }
    
    .stat-card-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .stat-card-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .value {
        font-size: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 0.75rem;
    }
    
    .stat-card-icon {
        width: 32px;
        height: 32px;
        top: 0.875rem;
        right: 0.875rem;
    }
    
    .stat-card-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* 移动端表格优化 */
@media (max-width: 768px) {
    .table-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .table {
        min-width: 600px;
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    .table .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .table-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .table {
        font-size: 0.8rem;
        min-width: 500px;
    }
    
    .table th,
    .table td {
        padding: 0.625rem 0.4rem;
    }
    
    .table .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* 移动端筛选栏优化 */
@media (max-width: 768px) {
    .filter-section {
        margin-bottom: 1rem;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-control {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .filter-advanced-content {
        padding: 1rem 0;
    }
    
    .filter-row-advanced {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-group-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .btn-filter {
        flex: 1;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .filter-control {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    
    .btn-filter {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
}

/* ==================== 用户端移动端增强 ==================== */
.page-header {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive .table {
    min-width: 720px;
}

.stat-grid {
    display: grid;
    gap: 16px;
}

.filter-section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(225, 232, 237, 0.5);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 180px;
    min-width: 140px;
}

.filter-label {
    font-size: 0.85rem;
    color: #64748b;
}

.filter-control {
    width: 100%;
}

.filter-group-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.pending-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pending-btn {
    background: #fff1f2;
    color: #b91c1c;
    border: 1px solid #fecdd3;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
    font-weight: 700;
}

.pending-btn:hover {
    background: #fee2e2;
    color: #991b1b;
    transform: translateY(-1px);
}

.pending-badge {
    position: absolute;
    top: -8px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.responsive-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.responsive-row > * {
    flex: 0 0 auto;
}

.responsive-grid {
    display: grid;
}

@media (max-width: 768px) {
    .responsive-grid {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
        gap: 16px !important;
    }
}

img,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .container {
        padding: 14px;
    }

    .page-header {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .page-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .table-responsive {
        margin: 0 -14px;
        padding: 0 14px;
    }

    .table-responsive .table {
        min-width: 640px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .responsive-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .responsive-row > * {
        width: 100%;
        max-width: 100% !important;
    }

    .filter-group-actions {
        width: 100%;
    }

    .filter-group-actions .btn {
        width: 100%;
        margin-bottom: 0;
    }

    .team-list-container {
        padding: 0.5rem;
    }

    .team-stats {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar input,
    .filter-bar select {
        width: 100%;
        min-width: 0;
    }

    .team-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .team-table table {
        min-width: 700px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .table-responsive .table {
        min-width: 560px;
    }
}

/* 移动端商品卡片优化 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .product-name {
        font-size: 1.25rem;
    }
    
    .product-price {
        font-size: 1.75rem;
    }
    
    .product-description {
        font-size: 0.9rem;
    }
    
    .btn-buy {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 1rem;
    }
    
    .product-card {
        padding: 1.25rem;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
    
    .btn-buy {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

/* 移动端导航栏进一步优化 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
        max-width: calc(100% - 140px);
    }
    
    .navbar-toggle {
        padding: 0.5rem;
    }
    
    .user-menu-toggle {
        padding: 0.5rem 0.75rem;
    }
    
    .region-selector-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .region-name {
        max-width: 80px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.1rem;
        max-width: calc(100% - 120px);
    }
    
    .user-menu-toggle {
        padding: 0.4rem 0.5rem;
    }
    
    .region-name {
        max-width: 60px;
        font-size: 0.75rem;
    }
}

/* 移动端模态框优化 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 5% auto;
        max-height: 90vh;
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
    }
    
    .modal-close {
        font-size: 28px;
        width: 32px;
        height: 32px;
    }
    
    .confirm-dialog {
        width: 95%;
        max-width: none;
        padding: 1.5rem;
    }
    
    .confirm-dialog-header {
        padding: 1rem 1.5rem;
    }
    
    .confirm-dialog-title {
        font-size: 1.1rem;
    }
    
    .confirm-dialog-body {
        padding: 1.5rem;
    }
    
    .confirm-dialog-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .confirm-dialog-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
        padding: 1rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(100vh - 100px);
    }
    
    .confirm-dialog {
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 1rem;
    }
    
    .confirm-dialog-header {
        padding: 0.75rem 1rem;
    }
    
    .confirm-dialog-title {
        font-size: 1rem;
    }
    
    .confirm-dialog-body {
        padding: 1rem;
    }
    
    .confirm-dialog-footer {
        padding: 0.75rem 1rem;
    }
}

/* 移动端表单和按钮优化 */
@media (max-width: 768px) {
    .form-control {
        padding: 0.75rem;
        font-size: 1rem; /* 防止iOS自动缩放 */
        border-radius: 8px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px; /* iOS推荐的最小触摸目标 */
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-height: 36px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 0.625rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
}

/* 移动端容器和间距优化 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* 移动端分页优化 */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .pagination button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 36px;
    }
}

/* 移动端图表优化 */
@media (max-width: 768px) {
    .chart-container {
        height: 250px !important;
        margin-bottom: 1rem;
    }
    
    .chart-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .chart-container {
        height: 200px !important;
    }
    
    .chart-card {
        padding: 0.75rem;
    }
}

/* 移动端地区选择器优化 */
@media (max-width: 768px) {
    .region-selector-dropdown {
        max-width: calc(100vw - 40px);
        right: 10px;
        left: auto;
    }
}

@media (max-width: 480px) {
    .region-selector-container {
        order: 998;
    }
    
    .region-selector-toggle {
        padding: 0.35rem 0.5rem;
    }
    
    .region-selector-dropdown {
        max-width: calc(100vw - 20px);
        right: 10px;
    }
}

/* 移动端加载动画优化 */
@media (max-width: 768px) {
    .loading {
        font-size: 0.9rem;
        padding: 2rem 1rem;
    }
    
    .loading::before {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .loading {
        font-size: 0.85rem;
        padding: 1.5rem 0.75rem;
    }
    
    .loading::before {
        width: 16px;
        height: 16px;
    }
}

/* 移动端搜索框优化 */
@media (max-width: 768px) {
    .search-input {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
}

/* 移动端徽章优化 */
@media (max-width: 480px) {
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* 移动端用户菜单下拉优化 */
@media (max-width: 768px) {
    .user-menu-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .user-menu-dropdown {
        right: 0;
        left: auto;
        min-width: 160px;
        max-width: calc(100vw - 20px);
    }
}

/* 全局禁用前端动态效果（动画/过渡） */
html {
    scroll-behavior: auto !important;
}

*,
*::before,
*::after {
    animation: none !important;
    transition: none !important;
}

*:hover,
*:focus,
*:active {
    animation: none !important;
}