/* 首页 Bento 布局样式 - PC端 */

/* ========== 动态背景球 ========== */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px) saturate(1.2);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
    transition: all 0.8s ease;
}

.bg-blob-1 {
    width: 550px;
    height: 550px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--accent-color) 100%);
    top: -120px;
    right: -120px;
    animation: float 7s ease-in-out infinite;
}

.bg-blob-2 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--gradient-end) 0%, var(--accent-color) 100%);
    bottom: 8%;
    left: -120px;
    animation: float 9s ease-in-out infinite reverse;
}

/* ========== Bento 主布局 ========== */
.bento-layout {
    position: relative;
    display: grid;
    grid-template-columns: 360px 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 60px;
    z-index: 1;
}

/* === 第1行左侧：联系卡片（跨4行） === */
.bento-contact {
    grid-column: 1;
    grid-row: 1 / 5;
    border-radius: 24px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
    position: sticky;
    top: 120px;
    z-index: 2;
}

.bento-contact-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bento-contact-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(5, 175, 181, 0.3);
    box-shadow: 0 0 0 4px rgba(5, 175, 181, 0.12);
}

.bento-contact-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.bento-contact-role {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
}

.bento-contact-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.bento-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bento-contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.bento-contact-info-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.bento-contact-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    gap: 8px;
}

/* === 区块通用样式 === */
.bento-block {
    border-radius: 24px;
}

.bento-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}

.bento-block-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.bento-block-more {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bento-block-more:hover {
    transform: translateX(4px);
    opacity: 0.8;
}

/* === 标签 === */
.bento-tag {
    display: inline-block;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(5, 175, 181, 0.1) 0%, rgba(109, 207, 222, 0.1) 100%);
    color: var(--primary-color);
}

.bento-tag-case {
    background: linear-gradient(135deg, rgba(35, 76, 79, 0.08) 0%, rgba(107, 143, 145, 0.08) 100%);
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== 第1行右侧：最新文章 ========== */
.bento-articles {
    grid-column: 2;
    grid-row: 1;
}

.bento-article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bento-article-card {
    padding: 20px 24px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

.bento-article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.bento-article-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bento-article-title a:hover {
    color: var(--primary-color);
}

.bento-article-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 第2行：推荐产品 ========== */
.bento-products {
    grid-column: 2;
    grid-row: 2;
}

.bento-product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bento-product-card {
    padding: 24px 20px;
    border-radius: 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.bento-product-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(5, 175, 181, 0.1) 0%, rgba(109, 207, 222, 0.1) 100%);
}

.bento-product-icon svg {
    width: 28px;
    height: 28px;
}

.bento-product-card:hover .bento-product-icon {
    background: linear-gradient(135deg, rgba(5, 175, 181, 0.2) 0%, rgba(109, 207, 222, 0.2) 100%);
}

.bento-product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bento-product-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.bento-product-more {
    background: linear-gradient(135deg, rgba(5, 175, 181, 0.05) 0%, rgba(109, 207, 222, 0.03) 100%) !important;
    border: 2px dashed rgba(5, 175, 181, 0.2) !important;
}

.bento-product-more:hover {
    border-color: var(--primary-color) !important;
}

/* ========== 第4行右侧：客户案例 ========== */
.bento-cases {
    grid-column: 2;
    grid-row: 4;
    margin-top: 0;
}

.bento-case-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-case-card {
    padding: 20px 24px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.bento-case-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.bento-case-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 第3行右侧：数据统计 ========== */
.bento-stats {
    grid-column: 2;
    grid-row: 3;
}

.bento-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-stat-item {
    padding: 28px 20px;
    border-radius: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
}

.bento-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.bento-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.bento-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========== 联系销售模态框 ========== */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    position: relative;
    width: 380px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 40px 36px 36px;
    box-shadow:
        0 16px 56px rgba(0, 0, 0, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-modal-overlay.active .contact-modal {
    transform: translateY(0) scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

.contact-modal-body {
    text-align: center;
}

.contact-modal-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(5, 175, 181, 0.15);
    background: rgba(5, 175, 181, 0.03);
}

.contact-modal-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-modal-name {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contact-modal-tip {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-modal-tip strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========== 动画 ========== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1s { animation-delay: 0.2s; }
.delay-2s { animation-delay: 0.4s; }
.delay-3s { animation-delay: 0.6s; }
/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .bento-layout {
        grid-template-columns: 300px 1fr;
        padding: 100px 20px 40px;
        gap: 20px;
    }

    .bento-contact {
        padding: 28px 24px;
    }

    .bento-contact-avatar {
        width: 60px;
        height: 60px;
    }

    .bento-contact-name {
        font-size: 20px;
    }

    .bento-article-grid {
        grid-template-columns: 1fr;
    }

    .bento-product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .bento-layout {
        grid-template-columns: 1fr;
        padding: 90px 16px 40px;
        gap: 16px;
    }

    .bento-contact {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }

    .bento-articles,
    .bento-products,
    .bento-cases,
    .bento-stats {
        grid-column: 1;
        grid-row: auto;
    }

    .bento-article-grid {
        grid-template-columns: 1fr;
    }

    .bento-product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
