/* AI API 样式文件 - 精简版 */
:root {
    --ai-gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --ai-shadow-light: 0 4px 20px rgba(124, 58, 237, 0.1);
    --ai-shadow-medium: 0 8px 30px rgba(124, 58, 237, 0.15);
    --ai-card-border: rgba(124, 58, 237, 0.1);
    --ai-card-bg: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    --ai-card-hover-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
    --ai-card-hover-transform: translateY(-10px) scale(1.02);
    --ai-card-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body { font-family: 'Nunito', 'Segoe UI', Roboto, sans-serif; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }
@keyframes pulse { 0% { opacity: 0.1; } 100% { opacity: 0.2; } }
@keyframes pulse-shadow { 0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); } }
.hero-section {
    background: var(--ai-gradient-primary);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.hero-bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>');
    background-size: cover; opacity: 0.15; animation: pulse 8s infinite alternate;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.counter {
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: calc(var(--animation-order) * 0.2s);
}

.hero-stats .stat-item:nth-child(1) .counter { --animation-order: 1; }
.hero-stats .stat-item:nth-child(2) .counter { --animation-order: 2; }
.hero-stats .stat-item:nth-child(3) .counter { --animation-order: 3; }

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.filter-card { border-radius: 16px; background: #ffffff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; }
.filter-card:hover { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); }
.filter-title { color: var(--primary-color); font-weight: 700; font-size: 1.3rem; }
.custom-select { border: 2px solid #e9ecef; border-radius: 10px; padding: 0.6rem 1rem; transition: all 0.3s ease; }
.custom-select:focus { border-color: var(--primary-color, #4361ee); box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25); }

.filter-btn {
    border-radius: 30px;
    font-weight: 700;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--primary-color, #4361ee), var(--secondary-color, #3f37c9));
    border: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
    animation: pulse-shadow 2s infinite;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
    background: linear-gradient(45deg, var(--secondary-color, #3f37c9), var(--primary-color, #4361ee));
}

/* 卡片样式 - 列表页 */
.card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.95);
}

.shadow-hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.shadow-hover:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15) !important;
}

.shadow-hover:hover .card-glow {
    opacity: 1;
}

.card-body {
    padding: 2rem;
    font-size: 1rem;
    background: #ffffff;
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 2rem;
}

/* 厂商LOGO容器 - 列表页 */
.vendor-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 80px;
    min-height: 45px;
}

.vendor-logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vendor-logo {
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: filter 0.3s ease;
    width: 70px;
    height: 40px;
}

.vendor-logo:hover {
    filter: brightness(1.2) contrast(1.2);
}

/* API标签 - 列表页 */
.api-tags {
    min-height: 2.2rem;
    margin-bottom: 1.25rem;
}

.api-tags .badge {
    padding: 0.6em 1em;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.api-type-badge {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    box-shadow: 0 3px 10px rgba(67, 97, 238, 0.3);
}

.model-badge {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    color: white;
    box-shadow: 0 3px 10px rgba(76, 201, 240, 0.3);
}

.api-tags .badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 产品描述 - 列表页 */
.description-text {
    min-height: 2.8rem;
    max-height: 2.8rem;
    overflow: hidden;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* 价格信息区域 - 列表页 */
.pricing-info {
    margin-bottom: 0.5rem !important;
}

/* 价格项目 - 列表页 */
.price-item-list {
    font-size: 0.9rem;
    padding: 0.25rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    line-height: 1.3;
}

.price-item-list:last-child {
    border-bottom: none;
}

.price-item-list .text-danger {
    font-weight: 700;
    color: var(--ai-danger-color, #ff5a5f) !important;
    font-size: 1rem;
}

/* 按钮样式 - 列表页 */
.btn-outline-primary {
    border-radius: 30px;
    font-weight: 600;
    border-width: 2px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color, #4361ee);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
}

/* 分页样式 - 列表页 */
.pagination {
    gap: 5px;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    border-radius: 8px;
    color: var(--primary-color, #4361ee);
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color, #4361ee);
    color: #fff;
    box-shadow: 0 5px 10px rgba(67, 97, 238, 0.3);
}

.bg-light { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important; position: relative; overflow: hidden; }
.bg-light::before { content: ''; position: absolute; width: 300px; height: 300px; background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1)); border-radius: 50%; top: -150px; left: -150px; z-index: 0; }
.bg-light::after { content: ''; position: absolute; width: 400px; height: 400px; background: linear-gradient(135deg, rgba(76, 201, 240, 0.1), rgba(67, 97, 238, 0.1)); border-radius: 50%; bottom: -200px; right: -200px; z-index: 0; }

/* 卡片悬停光效 - 列表页 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
                               rgba(255,255,255,0) 0%,
                               rgba(255,255,255,0.05) 40%,
                               rgba(255,255,255,0.1) 60%,
                               rgba(255,255,255,0) 100%);
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.card:hover::before {
    transform: translateY(100%);
}

/* 价格标签效果 - 列表页 */
.text-danger {
    background: linear-gradient(90deg, #ff5a5f, #ff3a5f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 增强可访问性 */
.z-index-1 {
    z-index: 1;
    position: relative;
}

/* 产品卡片标题和LOGO布局优化 */
.card-title.flex-grow-1 {
    font-weight: 700;
    color: var(--dark-color);
    margin-right: 1rem;
    min-width: 0; /* 允许文本截断 */
    font-size: 1.2rem;
    line-height: 1.3;
}

/* 卡片3D效果 - 列表页 */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.detail-btn {
    border-radius: 30px;
    font-weight: 600;
    border-width: 2px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(to right, transparent 50%, var(--primary-color) 50%);
    background-size: 200% 100%;
    background-position: left bottom;
}

.detail-btn:hover {
    background-position: right bottom;
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
}

/* ========== 详情页样式 (detail.php) ========== */

/* 全局样式优化 - 详情页 */
body.detail-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* 英雄区域 - 详情页 */
.hero-section-detail {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.hero-bg-overlay-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}
/* 面包屑导航 - 详情页 */
.breadcrumb-custom {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

/* 产品标题区域 - 详情页 */
.product-header {
    color: white;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
}

.vendor-logo-large {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 120px;
    transition: all 0.3s ease;
}

.vendor-logo-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.vendor-logo-large img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* 产品徽章 - 详情页 */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge-api-type {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-model {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-views {
    background: linear-gradient(135deg, #f77f00, #d62828);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(247, 127, 0, 0.3);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 购买按钮 - 详情页 */
.btn-glow {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(67, 97, 238, 0.5);
}

/* 现代卡片样式 - 详情页 */
.card-modern {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-header-gradient {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.card-header-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}
/* 价格项目样式 - 详情页 */
.price-item-detail {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(67, 97, 238, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.price-item-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ai-gradient-primary);
    opacity: 0.8;
}

.price-item-detail:hover {
    transform: translateY(-3px);
    box-shadow: var(--ai-shadow-light);
    border-color: var(--primary-color, #4361ee);
}

.price-item-detail:hover::before {
    opacity: 1;
}

.price-icon {
    width: 60px;
    height: 60px;
    background: var(--ai-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: var(--ai-shadow-light);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.price-icon-fixed {
    background: linear-gradient(135deg, #38b2ac, #48bb78);
}

.price-item-detail:hover .price-icon {
    transform: scale(1.1) rotate(10deg);
}

.price-icon i {
    font-size: 1.5rem;
    color: white;
}

.price-content {
    flex: 1;
    min-width: 0;
}

.price-label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e53e3e;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.price-value-fixed {
    color: #38b2ac;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.price-unit {
    font-size: 0.8rem;
    color: #4a5568;
    font-weight: 500;
}

/* 规格项目样式 - 详情页 */
.spec-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color, #4361ee);
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.spec-item:hover {
    transform: translateX(5px);
    box-shadow: var(--ai-shadow-light);
}

.spec-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color, #4361ee), var(--accent-color, #4cc9f0));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.spec-item:hover .spec-icon {
    transform: scale(1.1) rotate(10deg);
}

.spec-icon i {
    font-size: 1.25rem;
    color: white;
}

.spec-content {
    flex: 1;
    min-width: 0;
}

.spec-label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
}

/* 产品描述和功能特点 - 详情页 */
.product-description,
.product-features {
    line-height: 1.8;
    color: #4a5568;
}

.product-description img,
.product-features img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    margin: 1rem 0;
}

.product-description h1,
.product-description h2,
.product-description h3,
.product-features h1,
.product-features h2,
.product-features h3 {
    color: #2d3748;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.product-description p,
.product-features p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.product-description ul,
.product-features ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-description li,
.product-features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.product-description li::before,
.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #38b2ac;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 相关产品卡片 - 详情页 */
.related-product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(67, 97, 238, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.related-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ai-gradient-primary);
    opacity: 0.8;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ai-shadow-medium);
    border-color: var(--primary-color, #4361ee);
}

.related-product-card:hover::before {
    opacity: 1;
}

.related-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.related-product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    flex: 1;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.related-product-card:hover .related-product-title {
    color: var(--primary-color, #4361ee);
}

.related-product-desc {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.related-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 厂商信息样式 - 详情页 */
.vendor-info {
    text-align: center;
}

.vendor-header {
    margin-bottom: 1.5rem;
}

.vendor-logo-sidebar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ai-shadow-light);
    border: 3px solid white;
    transition: all 0.3s ease;
}

.vendor-logo-sidebar:hover {
    transform: translateY(-5px);
    box-shadow: var(--ai-shadow-medium);
}

.vendor-logo-sidebar img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.vendor-logo-sidebar:hover img {
    transform: scale(1.1);
}

.vendor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.vendor-desc {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

.vendor-details {
    text-align: left;
    margin: 1.5rem 0;
}

.vendor-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vendor-detail-item:hover {
    background: rgba(67, 97, 238, 0.1);
    transform: translateX(5px);
}

.vendor-detail-item i {
    color: var(--primary-color, #4361ee);
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.vendor-detail-item span {
    font-size: 0.9rem;
    color: #2d3748;
}

/* 侧边栏产品列表 - 详情页 */
.sidebar-product-list {
    max-height: 400px;
    overflow-y: auto;
}

.sidebar-product-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar-product-item:last-child {
    border-bottom: none;
}

.sidebar-product-item:hover {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
}

.sidebar-product-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.sidebar-product-link:hover {
    color: var(--primary-color, #4361ee);
    text-decoration: none;
}

.sidebar-product-content {
    flex: 1;
    min-width: 0;
}

.sidebar-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-product-link:hover .sidebar-product-title {
    color: var(--primary-color, #4361ee);
}

.sidebar-product-desc {
    font-size: 0.8rem;
    color: #4a5568;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-product-meta {
    font-size: 0.75rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-product-arrow {
    color: #dee2e6;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.sidebar-product-link:hover .sidebar-product-arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* 徽章样式 - 详情页 */
.badge-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
}

/* 滚动条样式 */
.sidebar-product-list::-webkit-scrollbar {
    width: 6px;
}

.sidebar-product-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar-product-list::-webkit-scrollbar-thumb {
    background: var(--primary-color, #4361ee);
    border-radius: 3px;
}

.sidebar-product-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color, #4cc9f0);
}

/* 动画效果 - 详情页 */
.card-modern {
    animation: fadeInUp 0.6s ease-out;
}

.card-modern:nth-child(1) { animation-delay: 0.1s; }
.card-modern:nth-child(2) { animation-delay: 0.2s; }
.card-modern:nth-child(3) { animation-delay: 0.3s; }
.card-modern:nth-child(4) { animation-delay: 0.4s; }

/* ========== 响应式调整 ========== */
@media (max-width: 767.98px) {
    /* 移动端隐藏页脚 */
    footer.footer {
        display: none !important;
    }

    /* 列表页响应式 */
    .hero-section {
        padding: 3rem 0;
    }

    .hero-stats {
        padding: 1rem;
    }

    .hero-stats .stat-value {
        font-size: 2rem;
    }

    /* 移动端筛选区域优化 */
    .filter-card .row.align-items-end {
        align-items: stretch !important;
    }

    .filter-card .col-md-4:last-child {
        margin-top: 1rem;
    }

    .filter-card .col-md-4:last-child .btn {
        margin-top: 1.5rem;
    }

    /* 移动端产品卡片标题优化 */
    .card-title.flex-grow-1 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .card-body {
        padding: 1.5rem;
        font-size: 0.95rem;
    }

    .card-footer {
        padding: 1rem 1.5rem;
    }

    .vendor-logo-container {
        margin-left: 0.5rem !important;
        min-width: 65px !important;
        min-height: 35px !important;
        padding: 0.3rem 0.5rem !important;
    }

    .vendor-logo {
        width: 55px !important;
        height: 30px !important;
    }

    .api-tags .badge {
        font-size: 0.8rem;
        padding: 0.5em 0.8em;
    }

    .price-item-list {
        font-size: 0.85rem;
    }

    .price-item-list .text-danger {
        font-size: 0.9rem;
    }

    /* 详情页响应式 */
    .product-title {
        font-size: 1.8rem;
    }

    .vendor-logo-large {
        max-width: 80px;
        padding: 0.75rem;
    }

    .vendor-logo-large img {
        max-height: 35px;
    }

    .price-item-detail,
    .spec-item {
        padding: 1rem;
    }

    .price-icon,
    .spec-icon {
        width: 45px;
        height: 45px;
        margin-right: 0.75rem;
    }

    .price-icon i,
    .spec-icon i {
        font-size: 1.2rem;
    }

    .btn-glow {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* 新版样式的响应式调整 */
    .vendor-logo-container-new {
        padding: 4px 8px;
    }

    .vendor-logo-new {
        max-width: 50px;
        max-height: 28px;
    }

    .pricing-info-new {
        padding: 10px;
    }

    .price-item-new {
        padding: 6px 8px;
    }

    .price-icon-new {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    .price-icon-new i {
        font-size: 10px;
    }

    .price-value-new {
        font-size: 12px;
    }

    .price-label-new {
        font-size: 10px;
    }

    .price-unit-new {
        font-size: 9px;
    }
}

/* ===== 通用动画类 ===== */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 新版厂商Logo样式 ===== */
.vendor-logo-container-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(67, 97, 238, 0.1);
    backdrop-filter: blur(4px);
}

.vendor-logo-container-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
    border-color: rgba(67, 97, 238, 0.2);
}

.vendor-logo-new {
    max-width: 60px;
    max-height: 32px;
    object-fit: contain;
    filter: brightness(1.05) contrast(1.05);
    transition: filter 0.3s ease;
}

.vendor-logo-new:hover {
    filter: brightness(1.1) contrast(1.1);
}

/* ===== 新版价格信息样式 ===== */
.pricing-info-new {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(67, 97, 238, 0.08);
}

.price-item-new {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.price-item-new:hover {
    background: rgba(255, 255, 255, 0.9);
    border-left-color: var(--primary-color, #4361ee);
    transform: translateX(3px);
}

.price-icon-new {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color, #4361ee) 0%, var(--accent-color, #4cc9f0) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.price-icon-new i {
    font-size: 12px;
    color: white;
}

.price-content-new {
    flex: 1;
    min-width: 0;
}

.price-label-new {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.price-value-new {
    font-size: 14px;
    font-weight: 700;
    color: #dc3545;
    line-height: 1.2;
}

.price-unit-new {
    font-size: 10px;
    color: #adb5bd;
    font-weight: 500;
}

/* ===== 全新现代化API卡片样式 ===== */
.api-card-modern {
    background: var(--ai-card-bg);
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--ai-shadow-light);
    border: 1px solid var(--ai-card-border);
    transition: var(--ai-card-transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, box-shadow;
}

.api-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ai-gradient-primary);
    z-index: 1;
    opacity: 0.8;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.api-card-modern:hover {
    transform: var(--ai-card-hover-transform);
    box-shadow: var(--ai-card-hover-shadow);
    border-color: rgba(67, 97, 238, 0.3);
}

.api-card-modern:hover::before {
    height: 6px;
    opacity: 1;
}

/* 卡片3D效果 */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* 徽章样式 */
.api-card-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.api-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: badge-pulse 2s infinite alternate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.api-badge:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.api-badge-top {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(255, 107, 107, 0.9));
    color: white;
}

.api-badge-featured {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(72, 187, 120, 0.9));
    color: white;
}

/* 卡片头部 */
.api-card-header {
    padding: 20px 20px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.api-vendor-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(67, 97, 238, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.api-vendor-logo img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.api-vendor-placeholder {
    background: linear-gradient(135deg, var(--primary-color, #4361ee), var(--accent-color, #4cc9f0));
    color: white;
    font-size: 18px;
}

.api-card-modern:hover .api-vendor-logo {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(67, 97, 238, 0.3);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.15);
}

.api-card-modern:hover .api-vendor-logo img {
    transform: scale(1.1);
}

.api-card-title {
    flex: 1;
    min-width: 0;
}

.api-card-title h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.api-card-modern:hover .api-card-title h5 {
    color: var(--primary-color, #4361ee);
}

.api-vendor-name {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 标签区域 */
.api-card-tags {
    padding: 0 20px 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.api-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.api-tag-type {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
}

.api-tag-model {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    color: white;
}

.api-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 价格区域 */
.api-card-pricing {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(233, 236, 239, 0.5));
    margin: 0 15px 15px;
    border-radius: 12px;
    border: 1px solid rgba(67, 97, 238, 0.08);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.api-card-modern:hover .api-card-pricing {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.1);
    border-color: rgba(67, 97, 238, 0.15);
}

.api-price-row {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.api-price-item {
    flex: 1;
    text-align: center;
    transition: transform 0.3s ease;
}

.api-price-item:hover {
    transform: translateY(-2px);
}

.api-price-label {
    font-size: 10px;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.api-price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e53e3e;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.api-price-value-fixed {
    color: #38b2ac;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.api-price-unit {
    text-align: center;
    font-size: 10px;
    color: #a0aec0;
    font-weight: 500;
}

.api-price-fixed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 178, 172, 0.1));
    border-radius: 8px;
    border: 1px solid rgba(72, 187, 120, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.api-price-fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.15);
}

.api-price-fixed-label {
    font-size: 11px;
    color: #38b2ac;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.api-price-fixed-value {
    font-size: 16px;
    font-weight: 700;
    color: #38b2ac;
    text-shadow: 0 1px 2px rgba(56, 178, 172, 0.1);
}

/* 描述区域 */
.api-card-description {
    padding: 0 20px 20px;
    flex: 1;
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    font-style: italic;
}

.api-card-modern:hover .api-card-description {
    color: #4a5568;
}

/* 操作按钮 */
.api-card-actions {
    padding: 0 20px 20px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.api-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.api-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.api-btn-primary:hover::before {
    left: 100%;
}

.api-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
    color: white;
    text-decoration: none;
}

.api-btn-primary i {
    transition: transform 0.3s ease;
}

.api-btn-primary:hover i {
    transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 767.98px) {
    .api-card-modern {
        border-radius: 16px;
    }

    .api-card-header {
        padding: 15px 15px 12px;
        gap: 12px;
    }

    .api-vendor-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .api-vendor-logo img {
        max-width: 28px;
        max-height: 28px;
    }

    .api-vendor-placeholder {
        font-size: 14px;
    }

    .api-card-title h5 {
        font-size: 14px;
    }

    .api-vendor-name {
        font-size: 11px;
    }

    .api-card-tags {
        padding: 0 15px 12px;
        gap: 6px;
    }

    .api-tag {
        padding: 4px 8px;
        font-size: 10px;
    }

    .api-card-pricing {
        padding: 12px 15px;
        margin: 0 12px 12px;
        border-radius: 10px;
    }

    .api-price-row {
        gap: 10px;
        margin-bottom: 6px;
    }

    .api-price-label {
        font-size: 9px;
    }

    .api-price-value {
        font-size: 12px;
    }

    .api-price-unit {
        font-size: 9px;
    }

    .api-price-fixed {
        padding: 6px 10px;
    }

    .api-price-fixed-label {
        font-size: 10px;
    }

    .api-price-fixed-value {
        font-size: 12px;
    }

    .api-card-description {
        padding: 0 15px 15px;
        font-size: 12px;
    }

    .api-card-actions {
        padding: 0 15px 15px;
    }

    .api-btn-primary {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 10px;
    }

    .api-card-badges {
        top: 12px;
        right: 12px;
        gap: 6px;
    }

    .api-badge {
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 10px;
    }
}

/* 详情页价格项目样式 */
.api-price-item-detail {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(67, 97, 238, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.api-price-item-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ai-gradient-primary);
    opacity: 0.8;
}

.api-price-item-detail:hover {
    transform: translateY(-3px);
    box-shadow: var(--ai-shadow-light);
    border-color: var(--primary-color, #4361ee);
}

.api-price-item-detail:hover::before {
    opacity: 1;
}

.api-price-icon {
    width: 60px;
    height: 60px;
    background: var(--ai-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: var(--ai-shadow-light);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.api-price-icon-fixed {
    background: linear-gradient(135deg, #38b2ac, #48bb78);
}

.api-price-item-detail:hover .api-price-icon {
    transform: scale(1.1) rotate(10deg);
}

.api-price-icon i {
    font-size: 1.5rem;
    color: white;
}

.api-price-content {
    flex: 1;
    min-width: 0;
}

.api-price-label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e53e3e;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.api-price-value-fixed {
    color: #38b2ac;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.api-price-unit {
    font-size: 0.8rem;
    color: #4a5568;
    font-weight: 500;
}

/* 详情页规格项目样式 */
.api-spec-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color, #4361ee);
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.api-spec-item:hover {
    transform: translateX(5px);
    box-shadow: var(--ai-shadow-light);
}

.api-spec-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color, #4361ee), var(--accent-color, #4cc9f0));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.api-spec-item:hover .api-spec-icon {
    transform: scale(1.1) rotate(10deg);
}

.api-spec-icon i {
    font-size: 1.25rem;
    color: white;
}

.api-spec-content {
    flex: 1;
    min-width: 0;
}

.api-spec-label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
}

/* 详情页相关产品卡片 */
.api-related-product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(67, 97, 238, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.api-related-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ai-gradient-primary);
    opacity: 0.8;
}

.api-related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ai-shadow-medium);
    border-color: var(--primary-color, #4361ee);
}

.api-related-product-card:hover::before {
    opacity: 1;
}

.api-related-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.api-related-product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    flex: 1;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.api-related-product-card:hover .api-related-product-title {
    color: var(--primary-color, #4361ee);
}

.api-related-product-desc {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.api-related-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 详情页按钮样式 */
.api-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: #4361ee;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid #4361ee;
}

.api-btn-outline:hover {
    background: #4361ee;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.api-btn-outline i {
    transition: transform 0.3s ease;
}

.api-btn-outline:hover i {
    transform: translateX(3px);
    color: white;
}

/* 详情页厂商信息 */
.api-vendor-info {
    text-align: center;
}

.api-vendor-header {
    margin-bottom: 1.5rem;
}

.api-vendor-logo-sidebar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ai-shadow-light);
    border: 3px solid white;
    transition: all 0.3s ease;
}

.api-vendor-logo-sidebar:hover {
    transform: translateY(-5px);
    box-shadow: var(--ai-shadow-medium);
}

.api-vendor-logo-sidebar img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.api-vendor-logo-sidebar:hover img {
    transform: scale(1.1);
}

.api-vendor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.api-vendor-desc {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

.api-vendor-details {
    text-align: left;
    margin: 1.5rem 0;
}

.api-vendor-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.api-vendor-detail-item:hover {
    background: rgba(67, 97, 238, 0.1);
    transform: translateX(5px);
}

.api-vendor-detail-item i {
    color: var(--primary-color, #4361ee);
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.api-vendor-detail-item span {
    font-size: 0.9rem;
    color: #2d3748;
}

/* 详情页侧边栏产品列表 */
.api-sidebar-product-list {
    max-height: 400px;
    overflow-y: auto;
    background: #ffffff;
}

.api-sidebar-product-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #ffffff;
}

.api-sidebar-product-item:last-child {
    border-bottom: none;
}

.api-sidebar-product-item:hover {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
}

.api-sidebar-product-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.api-sidebar-product-link:hover {
    color: var(--primary-color, #4361ee);
    text-decoration: none;
}

.api-sidebar-product-content {
    flex: 1;
    min-width: 0;
}

.api-sidebar-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.api-sidebar-product-link:hover .api-sidebar-product-title {
    color: var(--primary-color, #4361ee);
}

.api-sidebar-product-desc {
    font-size: 0.8rem;
    color: #4a5568;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.api-sidebar-product-meta {
    font-size: 0.75rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-sidebar-product-arrow {
    color: #dee2e6;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.api-badge-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
}

/* 滚动条样式 */
.api-sidebar-product-list::-webkit-scrollbar {
    width: 6px;
}

.api-sidebar-product-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.api-sidebar-product-list::-webkit-scrollbar-thumb {
    background: var(--primary-color, #4361ee);
    border-radius: 3px;
}

.api-sidebar-product-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color, #4cc9f0);
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .api-price-item-detail {
        padding: 1rem;
    }
    
    .api-price-icon {
        width: 45px;
        height: 45px;
        margin-right: 0.75rem;
    }
    
    .api-price-icon i {
        font-size: 1.2rem;
    }
    
    .api-price-value {
        font-size: 1.4rem;
    }
    
    .api-spec-item {
        padding: 1rem;
    }
    
    .api-spec-icon {
        width: 40px;
        height: 40px;
    }
    
    .api-spec-icon i {
        font-size: 1rem;
    }
    
    .api-spec-value {
        font-size: 1rem;
    }
    
    .api-related-product-card {
        padding: 1rem;
    }
    
    .api-vendor-logo-sidebar {
        width: 60px;
        height: 60px;
    }
    
    .api-vendor-logo-sidebar img {
        max-width: 45px;
        max-height: 45px;
    }
    
    .api-vendor-name {
        font-size: 1.1rem;
    }
    
    .api-sidebar-product-link {
        padding: 0.75rem 1rem;
    }
}