/* 产品功能样式 */
.product-features .feature-list {
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.feature-item i {
    font-size: 24px;
    margin-right: 15px;
    margin-top: 5px;
}

.feature-content h5 {
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.feature-content p {
    margin-bottom: 0;
    color: #666;
    line-height: 1.6;
}

/* 应用场景样式 */
.application-scenarios {
    margin-top: 15px;
}

.scenario-item {
    margin-bottom: 15px;
}

.scenario-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin: 3px 5px 3px 0;
    border: 1px solid #bbdefb;
}

/* 接口文档样式 */
.api-documentation .info-item {
    margin-bottom: 10px;
}

.api-documentation .info-item strong {
    color: #333;
    margin-right: 8px;
}

.api-documentation code {
    background: #f1f3f4;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #e91e63;
}

.api-documentation .table {
    margin-top: 15px;
    font-size: 14px;
}

.api-documentation .table th {
    background: #f8f9fa;
    border-color: #dee2e6;
    font-weight: 600;
}

.api-documentation .table td {
    vertical-align: middle;
}

.code-example {
    margin-top: 15px;
}

.code-example pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    font-size: 13px;
    overflow-x: auto;
}

.code-example code {
    background: transparent;
    color: #333;
    padding: 0;
}

/* 产品详情整体布局 */
.product-detail {
    padding: 30px 0;
}

.product-detail-outer {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 主要内容区域 - 左图右信息布局 */
.product-main-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* 左侧单张图片 */
.product-image {
    flex: 0 0 200px;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* 右侧产品信息 */
.product-info {
    flex: 1;
}

/* SKU选择样式 */
.service-header {
    margin-bottom: 15px;
}

.service-badges {
    margin-bottom: 10px;
}

.service-badges .badge {
    margin-right: 6px;
    padding: 4px 8px;
    font-size: 11px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.service-description {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 14px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.service-features .feature-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 11px;
    color: #333;
    border: 1px solid #e9ecef;
}

.service-features .feature-item i {
    margin-right: 4px;
    font-size: 12px;
    color: #28a745;
}

/* 当前价格显示 */
.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
    margin-top: 10px;
    line-height: 1;
}

.price-symbol {
    font-size: 24px;
    vertical-align: top;
}

/* 购买区域整体布局 */
.purchase-area {
    padding: 25px 0;
    width: 100%;
}

/* SKU选择区域 */
.sku-selection {
    margin-bottom: 20px;
    margin-top: 0;
}

.sku-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.sku-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    text-align: center;
    position: relative;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sku-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.sku-item.selected {
    border-color: #007bff;
    background: #f8fcff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.sku-item.selected::before {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.sku-header {
    margin-bottom: 8px;
}

.sku-name {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    margin-bottom: 3px;
}

.sku-price {
    font-weight: 700;
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 3px;
}

.sku-details {
    margin-bottom: 2px;
}

.sku-calls {
    color: #666;
    font-size: 10px;
    margin-bottom: 1px;
}

.sku-unit {
    color: #999;
    font-size: 9px;
}

.sku-note {
    color: #28a745;
    font-size: 8px;
    margin-top: 3px;
    font-weight: 500;
}

/* 购买按钮 */
.purchase-section {
    margin-bottom: 15px;
}

.btn-purchase {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-purchase:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-purchase:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.purchase-note {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 8px;
    margin-bottom: 0;
}

/* 服务说明 */
.service-info {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.service-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.service-info .info-item i {
    margin-right: 8px;
    color: #007bff;
    font-size: 14px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .api-basic-info .row {
        flex-direction: column;
    }
    
    .product-detail {
        padding: 20px 0;
    }
    
    .product-detail-outer {
        margin: 0 10px;
        padding: 20px;
        gap: 15px;
    }
    
    .product-main-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .product-image {
        flex: none;
        align-self: center;
    }
    
    .product-image img {
        width: 150px;
        height: 150px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .sku-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .sku-item {
        min-height: 60px;
        padding: 8px 6px;
    }
    
    .sku-name {
        font-size: 10px;
    }
    
    .sku-price {
        font-size: 12px;
    }
    
    .sku-calls {
        font-size: 8px;
    }
    
    .sku-unit {
        font-size: 7px;
    }
    
    .purchase-area {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .product-detail-outer {
        margin: 0 5px;
        padding: 15px;
        gap: 12px;
    }
    
    .product-image img {
        width: 120px;
        height: 120px;
    }
    
    .sku-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .purchase-area {
        padding: 15px 0;
    }
}
