/* ========================================
   哇哇智能健身房系统 - 功能详情页样式
   ======================================== */

/* ====== 面包屑 ====== */
.breadcrumb-bar {
    background: #f9fafb;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb .sep {
    color: var(--text-light);
}
.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ====== Hero区 ====== */
.feature-hero {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
}
.hero-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: center;
}
.hero-thumb {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    aspect-ratio: 4/3;
}
.hero-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    opacity: 1;
    z-index: 2;
    position: absolute;
    inset: 0;
}
.hero-thumb img.is-loading {
    opacity: 0;
}
.hero-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    font-size: 64px;
    z-index: 1;
}
.hero-thumb.no-image::before {
    content: '✨';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    z-index: 1;
}

.info-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.info-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.cat-tag {
    background: var(--primary-bg);
    color: var(--primary);
}
.type-tag {
    background: #FFF3E0;
    color: #F57C00;
}
.hero-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
    line-height: 1.3;
}
.hero-desc {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0 0 24px;
}

/* 高亮特性 */
.hero-highlights {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.highlight-icon {
    font-size: 24px;
}
.highlight-text {
    display: flex;
    flex-direction: column;
}
.highlight-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}
.highlight-text span {
    font-size: 12px;
    color: var(--text-gray);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.feature-hero .btn-outline {
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.feature-hero .btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ====== 主内容 ====== */
.detail-container {
    padding: 0 0 80px;
}
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: flex-start;
}

.detail-main {
    min-width: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px;
}
.heading-bar {
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

/* 功能详情 */
.content-section {
    margin-bottom: 48px;
}
.content-body {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-dark);
}
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}
.content-body p {
    margin: 0 0 16px;
}
.content-body h1, .content-body h2, .content-body h3 {
    color: var(--text-dark);
    margin: 24px 0 12px;
}
.content-body ul, .content-body ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

/* 核心亮点 */
.highlights-section {
    margin-bottom: 48px;
}
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.highlight-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s;
}
.highlight-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.card-icon {
    font-size: 36px;
    margin-bottom: 10px;
}
.highlight-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}
.highlight-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* 咨询卡片 */
.action-section {
    margin-bottom: 40px;
}
.action-card {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE8E8 100%);
    border: 1px solid rgba(200,22,29,0.2);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.action-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
}
.action-content p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.action-card .btn-outline {
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.action-card .btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* 上下篇导航 */
.nav-section {
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s;
}
.nav-link:hover:not(.disabled) {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.nav-link.next {
    text-align: right;
}
.nav-label {
    font-size: 12px;
    color: var(--text-gray);
}
.nav-link.disabled .nav-label {
    color: var(--text-light);
}
.nav-name {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}
.nav-link:hover:not(.disabled) .nav-name {
    color: var(--primary);
}

/* ====== 侧边栏 ====== */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 80px;
}
.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-title svg {
    color: var(--primary);
}

.sidebar-menu {
    padding: 12px 0;
}

/* 侧边栏导航树样式 */
.product-treeBox,
.treeBox {
    font-size: 14px;
}
.product-treeBox h3,
.treeBox h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}
.product-treeBox .title-name,
.treeBox .title-name {
    font-size: 14px;
    font-weight: 600;
}
.product-treeBox .item-area,
.treeBox .item-area {
    padding: 0;
}
.product-treeBox .item,
.treeBox .item {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}
.product-treeBox .item a,
.treeBox .item a {
    display: block;
    padding: 10px 20px;
    color: var(--text-gray);
    font-size: 14px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}
.product-treeBox .item a:hover,
.treeBox .item a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}
.product-treeBox .item.active a,
.treeBox .item.active a {
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
    background: var(--primary-bg);
}
.product-treeBox .item.active {
    background: none;
}

/* 联系我们 */
.contact-card {
    padding-bottom: 20px;
}
.contact-list {
    padding: 16px 20px;
}
.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}
.contact-item:last-child {
    border-bottom: none;
}
.contact-label {
    font-size: 13px;
    color: var(--text-gray);
}
.contact-value {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.contact-value:hover {
    text-decoration: underline;
}

.qr-box {
    margin: 16px 20px 0;
    text-align: center;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    padding: 20px;
}
.qr-box img {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.qr-box p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* 相关功能 */
.related-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s;
}
.related-item:hover {
    background: var(--primary-bg);
}
.related-item:hover .related-name {
    color: var(--primary);
}
.related-dir {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
}
.related-name {
    font-size: 13px;
    color: var(--text-dark);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-thumb img {
        aspect-ratio: 16/9;
    }
    .highlight-item {
        gap: 16px;
    }
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-sidebar {
        position: static;
    }
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 26px;
    }
    .hero-highlights {
        flex-direction: column;
        gap: 12px;
    }
    .highlight-item {
        width: 100%;
    }
    .content-body {
        padding: 20px;
    }
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        grid-template-columns: 1fr;
    }
    .nav-link.next {
        text-align: left;
    }
    .action-card {
        flex-direction: column;
        text-align: center;
    }
    .action-buttons {
        justify-content: center;
    }
}
