/* API 文档页面样式 - 黑金风格 */

/* 头部横幅 */
.api-header {
    height: 300px;
    margin-top: 110px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
    width: 100%;
}

.api-header__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.api-header__title {
    font-size: 36px;
    color: #e6edf3;
    margin-bottom: 20px;
    font-weight: 600;
}

.api-header__desc {
    font-size: 16px;
    color: #8b949e;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 搜索框 */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-container form {
    display: flex;
    align-items: center;
    border: 1px solid #30363d;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s;
}

.search-container form:focus-within {
    border-color: #efc49b;
}

.search-input {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 16px;
    color: #e6edf3;
    outline: none;
}

.search-input::placeholder {
    color: #8b949e;
}

.search-btn {
    padding: 10px 30px;
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #f4d4b4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 196, 155, 0.35);
}

/* 应用筛选标签 */
.app-filter {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tag {
    padding: 8px 20px;
    color: #8b949e;
    border: 1px solid #30363d;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-tag:hover {
    border-color: #efc49b;
    color: #efc49b;
}

.filter-tag.active {
    background: rgba(239, 196, 155, 0.1);
    border-color: #efc49b;
    color: #efc49b;
}

/* 主内容区 */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.api-section {
    margin-bottom: 48px;
}

.api-section__title {
    font-size: 24px;
    color: #e6edf3;
    margin-bottom: 24px;
    font-weight: 600;
    padding-bottom: 12px;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.api-card {
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.api-card:hover {
    border-color: #efc49b;
    box-shadow: 0 0 20px rgba(239, 196, 155, 0.15);
    transform: translateY(-2px);
}

.api-card__title {
    font-size: 18px;
    color: #e6edf3;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-method-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(239, 196, 155, 0.3);
    color: #efc49b;
}

.api-card__desc {
    font-size: 14px;
    color: #8b949e;
    line-height: 1.6;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #8b949e;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

/* 响应式 */
@media (max-width: 768px) {
    .api-header {
        height: 250px;
        margin-top: 80px;
    }

    .api-header__title {
        font-size: 28px;
    }

    .api-grid {
        grid-template-columns: 1fr;
    }
}
