
/* 现代化API生成器样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    text-align: left !important;
    min-width: auto !important;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    text-align: left !important;
}

section.section {
    margin: 45px 0 70px 0 !important;
    width: 100% !important;
    max-width: 1800px !important;
}

/* 强制左对齐所有元素 */
.getapi-page,
.getapi-page html,
.getapi-page body,
.getapi-page section,
.getapi-page .col-main {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.getapi-page .region,
.getapi-page .region_list,
.getapi-page .right {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.getapi-page .region_list .right {
    flex: 1;
}

/* 覆盖 common.css 中的居中样式 */
.getapi-page .section {
    margin: 45px 0 70px 0 !important;
    width: 100% !important;
    max-width: 1800px !important;
}

.getapi-page #scrollBar {
    justify-content: flex-start !important;
}

.dial_left {
    max-width: 1800px;
    margin: 0;
    padding: 30px 20px;
}

.user_dingdantitle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.title-icon {
    font-size: 28px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.title-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.region {
    background: white;
    border-radius: 0 0 12px 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.region_list {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.region_list:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

    .region_list h1.left {
        width: 140px;
        font-size: 16px;
        color: #333;
        font-weight: 600;
        margin: 0;
        padding: 10px 0;
        padding-left: 15px;
    }

.region_list .right {
    flex: 1;
}

/* 订单选择区域 */
#OrderNumber {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    color: #333 !important;
    background-color: #fff !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#OrderNumber option {
    color: #333 !important;
    background-color: #fff !important;
}

#OrderNumber:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* 数量选择器 */
#Demo {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

#Main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    gap: 20px;
}

.img_1, .img_3, .img_4 {
    color: #666;
    font-size: 13px;
}

.img_1 i, .img_3 i, .img_4 i {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    margin-right: 6px;
}

#count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#count {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

#count i {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-style: normal !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

#count i:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#qtyNumber {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    min-width: 80px;
    text-align: left;
}

/* 按钮样式 */
.agent label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
}

.agent input[type="radio"] {
    display: none;
}

.agent .radios {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.agent input[type="radio"]:checked + .radios {
    border-color: #667eea;
}

.agent input[type="radio"]:checked + .radios::after {
    content: '';
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 按钮组 */
.buttons {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-right: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buttons:hover {
    background: #e9ecef;
}

.buttons input[type="radio"]:checked + .radios {
    border-color: #667eea;
}

.buttons input[type="radio"]:checked ~ span,
.buttons input[type="radio"]:checked + .radios ~ * {
    color: #667eea;
}

/* 分隔符选择 */
#SplitFormat {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#SplitFormat label {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#SplitFormat label:hover {
    background: #e9ecef;
}

#SplitFormat input[type="text"] {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    width: 120px;
    margin-left: 8px;
}

#SplitFormat input[type="text"]:focus {
    border-color: #667eea;
    outline: none;
}

/* 地区选择 */
.appointe {
    margin-bottom: 15px;
}

.appointe label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 10px;
    padding: 10px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.appointe label:hover {
    background: #e9ecef;
}

.appointe-city {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.appointe-city label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.appointe-city label:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* API链接区域 */
.link {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.link label {
    min-width: 140px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.link .api_link {
    flex: 1;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    transition: all 0.3s ease;
}

.link .api_link:focus {
    border-color: #667eea;
    outline: none;
}

.link .butNext {
    margin-left: 15px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.link .butNext:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.link .butNext.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: copySuccess 0.5s ease;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 返回顶部 */
.return_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.return_top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* 动画效果 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .region_list {
        flex-direction: column;
    }
    
    .region_list h1.left {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .link {
        flex-direction: column;
        align-items: stretch;
    }
    
    .link label {
        margin-bottom: 10px;
    }
    
    .link .butNext {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .appointe-city {
        flex-direction: column;
    }
}

/* 卡片悬停效果 */
.agent label,
.appointe label,
.buttons {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agent label:hover,
.appointe label:hover,
.buttons:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 选中状态高亮 */
.agent input[type="radio"]:checked ~ * {
    color: #667eea;
    font-weight: 500;
}

.appointe input[type="radio"]:checked ~ * {
    color: #667eea;
    font-weight: 500;
}

.buttons input[type="radio"]:checked ~ * {
        color: #667eea;
        font-weight: 500;
    }

/* 复选框样式 */
.appointe-city input[type="checkbox"] {
    display: none;
}

.appointe-city .radios {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.appointe-city input[type="checkbox"]:checked + .radios {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.appointe-city input[type="checkbox"]:checked + .radios::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* API文档区域样式 */
.api-doc-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 让表格更美观 */
.api-doc-content table {
    transition: all 0.3s ease;
}

.api-doc-content table tr:hover {
    background-color: #f1f5f9;
}

.api-doc-content table tr:hover td {
    color: #667eea;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 让代码高亮区域更美观 */
.api-doc-content pre {
    line-height: 1.6;
    transition: all 0.3s ease;
}

.api-doc-content pre:hover {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

/* Layer 对话框美化 */
.layui-layer {
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.25) !important;
    overflow: hidden !important;
    border: none !important;
}

.layui-layer-shade {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px);
}

.layui-layer-content {
    padding: 24px !important;
    text-align: center !important;
}

.layui-layer-dialog {
    border-radius: 16px !important;
}

.layui-layer-ico1 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v2m0 4h.01M12 17h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z'/%3E%3C/svg%3E") no-repeat center center !important;
    background-size: 48px 48px !important;
    width: 48px !important;
    height: 48px !important;
}

.layui-layer-ico2 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='16 10 10 16 8 14'/%3E%3C/svg%3E") no-repeat center center !important;
    background-size: 48px 48px !important;
    width: 48px !important;
    height: 48px !important;
}

.layui-layer-ico3 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E") no-repeat center center !important;
    background-size: 48px 48px !important;
    width: 48px !important;
    height: 48px !important;
}

.layui-layer-ico4 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='12' cy='4' r='1'/%3E%3Ccircle cx='12' cy='20' r='1'/%3E%3Ccircle cx='4' cy='12' r='1'/%3E%3Ccircle cx='20' cy='12' r='1'/%3E%3C/svg%3E") no-repeat center center !important;
    background-size: 48px 48px !important;
    width: 48px !important;
    height: 48px !important;
}

.layui-layer-dialog .layui-layer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
}

.layui-layer-dialog .layui-layer-content p {
    margin: 0 !important;
    font-size: 15px !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
}

.layui-layer-btn {
    padding: 16px 24px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
}

.layui-layer-btn a {
    padding: 12px 28px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.layui-layer-btn a:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.layui-layer-btn a:first-child:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.layui-layer-btn a:last-child {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}

.layui-layer-btn a:last-child:hover {
    background: #e5e7eb !important;
}

.layui-layer-close {
    right: 12px !important;
    top: 12px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.05) !important;
    color: #6b7280 !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.layui-layer-close:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
}

/* 自定义图标样式 */
.layui-layer .custom-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.layui-layer .icon-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.layui-layer .icon-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.layui-layer .icon-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.layui-layer .icon-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

/* 滑块样式 */
#scrollBar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    margin: 30px auto 0;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

#MyscrollTrack {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 0;
}

#MyScrollThumb {
    height: 28px;
    width: 28px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    position: absolute;
    margin-top: -10px;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 100;
    transition: all 0.2s ease;
}

#MyScrollThumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#MyScrollThumb:active {
    cursor: grabbing;
}

