/* Static/Templates/Layui/Index.css */

body {
    background-color: #f2f3f5;
    padding: 20px;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
}

.title-section {
    text-align: center;
    margin: 30px 0;
}

.main-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #009688;
}

.stat-label {
    color: #666;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 30px;
}

.layui-input-group {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 2;
    font-size: 16px;
}

.search-box {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}

.search-box:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 150, 136, 0.2);
}

.search-box::placeholder {
    color: #aaa;
    font-weight: 300;
}

.api-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.api-card {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.api-card:hover {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.api-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.api-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.api-calls {
    color: #009688;
    font-size: 14px;
}

.api-description {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.pagination {
    text-align: center;
    margin-bottom: 30px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.footer {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* 友情链接样式 */
.friend-links {
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.friend-links-container {
    max-width: 1000px;
    margin: 0 auto;
}

.friend-links-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-list a {
    color: #009688;
    text-decoration: none;
    transition: color 0.3s;
}

.friend-links-list a:hover {
    color: #007d71;
    text-decoration: underline;
}