/* 开放平台页面专用样式 */
.api-card {
    position: relative;
    overflow: hidden;
}

.api-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #0063F7 0%, #0063F7 100%);
    transition: height 0.4s ease;
}

.api-card:hover::before {
    height: 100%;
}

.api-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.api-card h3 i {
    font-size: 32px;
    color: #0063F7;
    transition: all 0.3s;
}

.api-card:hover h3 i {
    transform: scale(1.15) rotate(-10deg);
    color: #0063F7;
}

.api-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.api-list li {
    padding: 14px 0;
    padding-left: 32px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-size: 15px;
    position: relative;
    transition: all 0.3s;
}

.api-list li:last-child {
    border-bottom: none;
}

.api-list li:hover {
    color: #0063F7;
    padding-left: 36px;
    background: rgba(102, 126, 234, 0.03);
}

.api-list li:before {
    content: '';
    position: absolute;
    left: 8px;
    top: 18px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #0063F7 0%, #0063F7 100%);
    border-radius: 50%;
    transition: transform 0.3s;
}

.api-list li:after {
    content: '⚡';
    position: absolute;
    left: 10px;
    top: 14px;
    font-size: 12px;
}

.api-list li:hover:before {
    transform: scale(1.2);
}

.api-code {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 30px;
    border-radius: 16px;
    margin: 40px 0;
    overflow-x: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.api-code::before {
    content: 'CODE';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    letter-spacing: 2px;
}

.api-code pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #ecf0f1;
}

.contact-box {
    background: linear-gradient(135deg, #0063F7 0%, #0063F7 100%);
    color: #fff;
    padding: 60px 50px;
    border-radius: 24px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.contact-box h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.contact-box p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.contact-box .btn {
    background: #fff;
    color: #0063F7 !important;
    font-weight: 700;
    padding: 16px 50px;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.contact-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    background: #fff !important;
    color: #0063F7 !important;
}
