/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部 */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 现代导航菜单 */
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: #1a1a1a;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.nav-link.active::before {
    opacity: 0;
}

.nav-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link.active i {
    color: #667eea;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 主要内容 */
.main {
    padding: 3rem 0;
}

/* 英雄区域 */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
}

/* 银行区域 */
.banks-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title i {
    color: #ffd700;
    margin-right: 0.5rem;
}

/* 银行卡片网格 */
.banks-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 银行卡片 */
.bank-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.bank-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.bank-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid #ffd700;
}

.bank-card.featured::before {
    background: #ffd700;
}

.bank-card.featured:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* 银行图标 */
.bank-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Favicon图片样式 */
.favicon-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
    background: white;
    padding: 3px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* 降级文本样式 */
.fallback-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bank-card.featured .bank-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.bank-card:hover .bank-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Favicon图片悬停效果 */
.bank-card:hover .favicon-img {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1) contrast(1.1);
}

/* 特殊悬停效果 */
.bank-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(-45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.bank-card:hover .bank-icon::before {
    transform: rotate(-45deg) translateX(100%);
}

/* 图标成功加载后的脉冲效果 */
.favicon-img.loaded {
    animation: fadeInScale 0.5s ease forwards, pulse 2s ease-in-out 0.5s;
}

/* 降级文本的特殊效果 */
.fallback-text {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* 加载动画的增强效果 */
.favicon-img.loading {
    position: relative;
}

.favicon-img.loading::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    background-size: 200% 200%;
    animation: gradientShift 2s linear infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 图片加载失败时的样式 */
.favicon-img.error {
    opacity: 0;
}

.favicon-img.error + .fallback-text {
    opacity: 1;
}

/* 图片加载成功时隐藏降级文本 */
.favicon-img.loaded + .fallback-text {
    opacity: 0;
}

/* 加载状态指示器 */
.favicon-img.loading {
    opacity: 0.5;
}

.favicon-img.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s linear infinite;
}

/* 银行名称 */
.bank-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.4rem;
    color: #333;
    line-height: 1.3;
}

.bank-card.featured .bank-name {
    color: white;
}

/* 银行描述 */
.bank-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    opacity: 0.8;
    line-height: 1.4;
}

.bank-card.featured .bank-description {
    color: rgba(255, 255, 255, 0.9);
}

/* 银行链接 */
.bank-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.bank-card.featured .bank-link {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.bank-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.bank-card.featured .bank-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.bank-link i {
    margin-left: 0.5rem;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 0.3rem 0;
    opacity: 0.8;
}

.footer-section li:before {
    content: '✓';
    color: #ffd700;
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
        padding: 6px;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        margin: 0;
        font-size: 1.1rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .banks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .bank-card {
        padding: 1.5rem;
    }
    
    .bank-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .favicon-img {
        width: 36px;
        height: 36px;
        padding: 3px;
    }
    
    .fallback-text {
        font-size: 1.5rem;
    }
    
    .bank-name {
        font-size: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .banks-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.3rem;
    }
}

@media (max-width: 992px) {
    .banks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .banks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .bank-card {
        margin: 0 5px;
        padding: 1rem;
    }
    
    .bank-icon {
        width: 50px;
        height: 50px;
    }
    
    .favicon-img {
        width: 30px;
        height: 30px;
        padding: 2px;
    }
    
    .fallback-text {
        font-size: 1.2rem;
    }
    
    .bank-name {
        font-size: 1.1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.bank-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 特殊效果 */
.bank-card::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;
}

.bank-card:hover::after {
    left: 100%;
}

/* 搜索功能（如果需要） */
.search-box {
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
} 