/* 现代科技简洁风格 - 银行大全 */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #4285f4;
    --accent-color: #34a853;
    --danger-color: #ea4335;
    --warning-color: #fbbc04;
    --dark-bg: #0d1117;
    --light-bg: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #e8eaed;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15), 0 6px 10px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(100px);
    z-index: -1;
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* 标题样式 */
.tit {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 40px 0 50px;
    letter-spacing: 2px;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.tit::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

/* 银行卡片网格 */
.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* 银行卡片 */
.box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    color: var(--text-primary);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    position: relative;
    cursor: pointer;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.4);
}

.box:hover::before {
    opacity: 1;
}

/* 银行Logo */
.navlogo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.navlogo img {
    max-width: 180px;
    max-height: 60px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.box:hover .navlogo img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* 银行操作链接 */
.navGo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.navGo a {
    display: block;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.navGo a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.navGo a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.navGo a:hover::before {
    left: 100%;
}

/* 现代标签页设计 */
.modern-tabs {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 50px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease-out 0.4s both;
}

#tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

#tabs li {
    flex: 1;
    min-width: 150px;
}

#tabs a {
    display: block;
    padding: 15px 20px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    position: relative;
    font-size: 14px;
}

#tabs a:hover {
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.1);
    border-color: rgba(26, 115, 232, 0.2);
}

#tabs #current a {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* 标签内容区 */
#content {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    padding: 30px;
    min-height: 400px;
    position: relative;
}

/* 银行列表样式 */
.c-ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.c-ul li {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    overflow: hidden;
}

.c-ul li:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.c-ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
}

.c-ul li:hover a {
    color: white;
    transform: scale(1.05);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    margin: 0 15px;
    transition: var(--transition);
    display: inline-block;
}

.footer a:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .banks-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .banks-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 15px;
    }
    
    .container {
        padding: 10px;
    }
    
    .tit {
        font-size: 2rem;
        margin: 20px 0 30px;
    }
    
    #tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    #tabs li {
        width: 100%;
    }
    
    .modern-tabs {
        padding: 20px;
        margin-top: 30px;
    }
    
    #content {
        padding: 20px;
    }
    
    .c-ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .navGo a {
        font-size: 13px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .banks-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tit {
        font-size: 1.5rem;
        margin: 15px 0 25px;
    }
    
    .box {
        padding: 20px;
    }
    
    .modern-tabs {
        padding: 15px;
    }
    
    #content {
        padding: 15px;
    }
    
    .footer {
        padding: 20px 10px;
    }
    
    .footer a {
        display: block;
        margin: 5px 0;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: rgba(30, 30, 30, 0.95);
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
        --border-color: rgba(255, 255, 255, 0.1);
    }
    
    body {
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    }
    
    .box,
    .modern-tabs {
        background: rgba(30, 30, 30, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .navGo a {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--text-primary);
    }
    
    .c-ul li {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .c-ul li a {
        color: var(--text-primary);
    }
    
    #content {
        background: rgba(20, 20, 20, 0.8);
    }
}

/* 性能优化 */
.box,
.navGo a,
.c-ul li,
#tabs a {
    will-change: transform;
}

/* 可访问性增强 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .box {
        border: 2px solid var(--text-primary);
    }
    
    .navGo a,
    .c-ul li {
        border: 2px solid var(--text-primary);
    }
}