/* 现代标签页设计 */

/* 标签页容器 */
.modern-tabs {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 6px 10px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 1s ease-out 0.4s both;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 标签导航 */
#tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    border-bottom: 2px solid var(--border-color, #e8eaed);
    padding-bottom: 20px;
    position: relative;
}

#tabs::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color, #1a73e8), var(--secondary-color, #4285f4));
    transition: width 0.3s ease;
    width: 0;
}

#tabs li {
    flex: 1;
    min-width: 140px;
    position: relative;
}

#tabs a {
    display: block;
    padding: 16px 24px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary, #5f6368);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 标签悬停效果 */
#tabs a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

#tabs a:hover {
    color: var(--primary-color, #1a73e8);
    background: rgba(26, 115, 232, 0.05);
    border-color: rgba(26, 115, 232, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

#tabs a:hover::before {
    left: 100%;
}

/* 活动标签 */
#tabs #current a {
    color: white;
    background: linear-gradient(135deg, var(--primary-color, #1a73e8), var(--secondary-color, #4285f4));
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
    transform: translateY(-2px);
}

#tabs #current a::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #1a73e8), var(--secondary-color, #4285f4));
    border-radius: 2px;
}

#tabs #current:hover a {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

/* 标签内容区域 */
#content {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    padding: 30px;
    min-height: 300px;
    position: relative;
    border: 1px solid var(--border-color, #e8eaed);
    backdrop-filter: blur(10px);
}

#content > div {
    display: none;
    animation: fadeInScale 0.5s ease-out;
}

#content > div:first-child {
    display: block;
}

/* 银行列表网格 */
.c-ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.c-ul li {
    background: white;
    border: 1px solid var(--border-color, #e8eaed);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    position: relative;
}

.c-ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.1), transparent);
    transition: left 0.6s ease;
}

.c-ul li:hover {
    background: linear-gradient(135deg, var(--primary-color, #1a73e8), var(--secondary-color, #4285f4));
    border-color: var(--primary-color, #1a73e8);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.25);
}

.c-ul li:hover::before {
    left: 100%;
}

.c-ul li a {
    display: block;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-primary, #202124);
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-ul li:hover a {
    color: white;
    transform: scale(1.05);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-tabs {
        padding: 20px;
        margin-top: 30px;
    }
    
    #tabs {
        flex-direction: column;
        gap: 8px;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    #tabs li {
        width: 100%;
    }
    
    #tabs a {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    #tabs #current a::after {
        display: none;
    }
    
    #content {
        padding: 20px;
    }
    
    .c-ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .c-ul li a {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modern-tabs {
        padding: 15px;
    }
    
    #content {
        padding: 15px;
    }
    
    #tabs a {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .c-ul li a {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .modern-tabs {
        background: rgba(30, 30, 30, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    #tabs {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    #tabs a {
        color: rgba(255, 255, 255, 0.7);
    }
    
    #tabs a:hover {
        color: rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    #content {
        background: rgba(20, 20, 20, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .c-ul li {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .c-ul li a {
        color: rgba(255, 255, 255, 0.9);
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    #tabs a {
        border-width: 3px;
    }
    
    .c-ul li {
        border-width: 2px;
    }
    
    .c-ul li a {
        font-weight: 700;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}