﻿/* API接口提取页面专用样式 */
.HttpBannerBox {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.HttpBannerText {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: white;
}

    .HttpBannerText h1 {
        font-size: 2.8rem;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1.3;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

/* 面包屑导航 */
.wherebg {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.whereBox {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

    .whereBox a {
        color: #3498db;
        text-decoration: none;
    }

        .whereBox a:hover {
            text-decoration: underline;
        }

/* 主内容区 */
.IPGetBox {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 表单区域 */
.IPGet_select {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

/* 表单标题 */
.IP_select_bt {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: block;
}

/* 下拉选择框 */
.IPTC_Select, .IP_PCA_Select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    color: #333;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

    .IPTC_Select:focus, .IP_PCA_Select:focus {
        border-color: #3498db;
        outline: none;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }

/* 滑动条样式 */
.scroll-bar {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    position: relative;
    margin: 30px 0 15px;
    cursor: pointer;
}

.entire-bar {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.action-bar {
    height: 100%;
    background: #3498db;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
}

.action-block {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #3498db;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
}

.scale-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.marker {
    font-size: 0.8rem;
    color: #7f8c8d;
    position: absolute;
    transform: translateX(-50%);
}

/* 数量控制 */
.quantity-control {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.IPTC_Num {
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

    .IPTC_Num:hover {
        background: #2980b9;
    }

.IPTC_Num_Text {
    width: 100px;
    height: 40px;
    margin: 0 10px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
}

/* 单选按钮组 */
.radio_type {
    margin-right: 8px;
}

label {
    margin-right: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

/* 自定义分隔符输入框 */
.Other_Text {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

/* 生成按钮 */
.GenerateAPI {
    margin: 30px 0;
    text-align: center;
}

    .GenerateAPI input {
        padding: 14px 30px;
        background: #2ecc71;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }

        .GenerateAPI input:hover {
            background: #27ae60;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
        }

/* API结果输出区 */
.GenerateAPI_Box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.API_Keywords {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 15px;
}

.API_Sbtn {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

    .API_Sbtn:hover {
        background: #2980b9;
    }

/* 使用说明区域 */
.API_Explanation_BT {
    margin: 40px 0 20px;
}

    .API_Explanation_BT h2 {
        font-size: 1.8rem;
        color: #2c3e50;
        border-bottom: 2px solid #3498db;
        padding-bottom: 10px;
        display: inline-block;
    }

.API_bt {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 20px 0 15px;
}

.API_nrBox {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

    .API_nrBox p {
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .API_nrBox a {
        color: #3498db;
        text-decoration: none;
    }

        .API_nrBox a:hover {
            text-decoration: underline;
        }

/* 状态码表格 */
.status-code-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

    .status-code-table th, .status-code-table td {
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .status-code-table th {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #2c3e50;
    }

    .status-code-table tr:hover {
        background-color: #f1f8ff;
    }

/* API文档样式 */
.api-documentation {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.api-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.response-format {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

pre {
    background: #1e1e1e;
    color: #dcdcdc;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

.parameter-list dt {
    color: #2c3e50;
    font-weight: 600;
    margin-top: 15px;
}

.parameter-list dd {
    margin-left: 20px;
    color: #666;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .HttpBannerText h1 {
        font-size: 2.2rem;
    }

    .IPGet_select {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .HttpBannerText h1 {
        font-size: 1.8rem;
    }

    .IP_select_bt {
        font-size: 1.1rem;
    }

    .scroll-bar {
        margin: 20px 0 10px;
    }

    .status-code-table {
        font-size: 0.9rem;
    }

        .status-code-table th,
        .status-code-table td {
            padding: 8px 10px;
        }
}

@media (max-width: 576px) {
    .HttpBannerBox {
        padding: 60px 0;
    }

    .IPGet_select {
        padding: 15px;
    }

    .radio_type + span {
        font-size: 0.9rem;
    }

    label {
        margin-right: 10px;
        margin-bottom: 8px;
        display: inline-block;
    }

    .GenerateAPI input {
        width: 100%;
        padding: 12px;
    }

    .API_Sbtn {
        width: 100%;
        margin-bottom: 10px;
    }

    .api-documentation {
        padding: 10px;
    }

    pre {
        padding: 10px;
        font-size: 0.8rem;
    }
}
