/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding-bottom: 20px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    position: relative;
}

/* 头部广告 */
.header-ad {
    text-align: center;
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: bold;
    display: none;
}

/* 主要内容区域 */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Logo 区域 */
.logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo h1 {
    font-size: 4em;
    color: #2c3e50;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    color: #7f8c8d;
    font-size: 0.95em;
}

/* 搜索容器 */
.search-container {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: white;
}

.password-toggle {
    position: absolute;
    right: 60px;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #7f8c8d;
    z-index: 1;
}

.search-button {
    position: absolute;
    right: 5px;
    padding: 15px 20px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* 结果容器 */
.results-container {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    overflow-x: auto;
}

.results-container h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 300px;
}

.results-table th,
.results-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

.results-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.results-table tr:hover {
    background-color: #e8f4fc;
}

.refresh-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* 热搜榜 */
.hot-search {
    margin-top: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin: 20px auto;
    max-width: 800px; 
}

.hot-search h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.hot-titles {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.hot-title {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.hot-title:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

/* 银行服务部分 */
.banks-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.banks-section h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
}

.banks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.bank {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.bank:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 15px;
    color: #7f8c8d;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px 10px 0;
}

/* 底部广告 */
.footer-ads {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-ad {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 10px;
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
    display: none;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        padding: 5px;
    }
    
    .main-content,
    .banks-section {
        padding: 15px;
        margin: 10px;
    }
    
    .logo h1 {
        font-size: 1.8em;
    }
    
    .search-input {
        padding: 12px 45px 12px 12px;
        font-size: 1em;
    }
    
    .password-toggle {
        right: 55px;
        font-size: 1.1em;
    }
    
    .search-button {
        right: 3px;
        padding: 12px 15px;
        font-size: 0.95em;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 6px;
        font-size: 0.85em;
    }
    
    .hot-title {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .banks {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .bank {
        padding: 10px 6px;
        font-size: 0.8em;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-bottom: 10px;
    }
    
    .logo h1 {
        font-size: 1.6em;
    }
    
    .logo p {
        font-size: 0.85em;
    }
    
    .search-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input {
        width: 100%;
        padding: 15px;
        border-radius: 50px;
    }
    
    .password-toggle {
        position: static;
        margin-left: 10px;
    }
    
    .search-button {
        position: static;
        width: 100%;
        margin-top: 10px;
        border-radius: 50px;
    }
    
    .banks {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-ad {
        min-width: 70px;
        padding: 8px;
        font-size: 0.8em;
    }
}

.hidden {
    display: none;
}

.show {
    display: block;
}