/* ========= 产品页面公共样式 ========= */

.page-hero {
    padding: 80px 0 30px;
    background-color: var(--bg-alt);
    text-align: left;
}
.page-hero h1 {
    font-size: 2.875rem;
    font-weight: 800;
    margin-bottom: 0;
    color: #201C5C;
}

.product-detail {
    padding: 40px 0 80px;
    background-color: var(--bg-alt);
}
.detail-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.detail-main {
    flex: 2;
}
.detail-sidebar {
    flex: 1;
    background: #FFFFFF;
    border-radius: 32px;
    padding: 32px;
    border: 1px solid #E8E2FF;
    position: sticky;
    top: 100px;
}
.detail-main h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 16px 0;
    color: #201C5C;
}
.detail-main h2:first-of-type {
    margin-top: 0;
}
.detail-main h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 24px 0 12px 0;
    color: #2B257A;
}
.detail-main p {
    color: #5E58A5;
    line-height: 1.7;
    margin-bottom: 16px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0 32px 0;
}
.feature-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #E8E2FF;
    transition: all 0.2s;
}
.feature-item:hover {
    transform: translateY(-4px);
    border-color: #CBC0FF;
}
.feature-item i {
    font-size: 1.8rem;
    color: #3B22E9;
    margin-bottom: 12px;
}
.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}
.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #201C5C;
}
.sidebar-list {
    list-style: none;
}
.sidebar-list li {
    margin-bottom: 16px;
    border-bottom: 1px solid #E8E2FF;
    padding-bottom: 12px;
}
.sidebar-list a {
    text-decoration: none;
    color: #5E58A5;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-list a:hover {
    color: #3B22E9;
    transform: translateX(4px);
}
.sidebar-list a i {
    width: 24px;
    color: #3B22E9;
}

/* 移动端下方卡片样式（替代右侧边栏） */
.mobile-hot-section {
    display: none;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E8E2FF;
}
.mobile-hot-section .sidebar-title {
    margin-bottom: 20px;
}
.mobile-hot-section .sidebar-list {
    margin-bottom: 30px;
}
.mobile-hot-section .btn-primary {
    width: 100%;
    margin-top: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.25rem;
    }
    .detail-main h2 {
        font-size: 1.5rem;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    /* 移动端隐藏右侧边栏，显示下方卡片 */
    .detail-sidebar {
        display: none;
    }
    .mobile-hot-section {
        display: block;
    }
}