/**
 * 智会科技 - 会伴风格主题（仅作用于 .theme-huiban 页面）
 * 首页 / 产品中心 / 案例展示
 */

.theme-huiban {
    --hb-primary: #2563eb;
    --hb-primary-dark: #1d4ed8;
    --hb-primary-light: #3b82f6;
    --hb-teal: #0891b2;
    --hb-orange: #f97316;
    --hb-bg: #ffffff;
    --hb-bg-soft: #f0f4fe;
    --hb-bg-card: #f8faff;
    --hb-bg-case: #f1f8fe;
    --hb-border: #e2e5ff;
    --hb-text: #374151;
    --hb-text-muted: #6b7280;
    --hb-footer-bg: #0f1721;
    --hb-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    --hb-radius: 8px;
}

.theme-huiban,
.theme-huiban body {
    background-color: var(--hb-bg);
    color: var(--hb-text);
}

.theme-huiban #starfield {
    display: none !important;
}

/* ========== 导航栏 ========== */
.theme-huiban #navbar {
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.theme-huiban #navbar.scrolled {
    background: #fff;
    padding: 0;
    backdrop-filter: none;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.theme-huiban #navbar .container {
    height: 64px;
}

.theme-huiban .logo a {
    display: flex;
    align-items: center;
}

.theme-huiban .site-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.theme-huiban .logo .logo-text {
    display: none;
}

.theme-huiban .desktop-nav a {
    color: var(--hb-text);
    font-size: 15px;
}

.theme-huiban .desktop-nav a:hover,
.theme-huiban .desktop-nav a.active {
    color: var(--hb-primary);
}

.theme-huiban .desktop-nav a::after {
    background-color: var(--hb-primary);
}

.theme-huiban .nav-login-btn {
    color: var(--hb-primary) !important;
    border: 1px solid var(--hb-primary);
    background: transparent;
}

.theme-huiban .nav-login-btn:hover {
    background: rgba(37, 99, 235, 0.06);
}

.theme-huiban .nav-register-btn {
    background: var(--hb-primary) !important;
    color: #fff !important;
    border: 1px solid var(--hb-primary);
}

.theme-huiban .nav-register-btn:hover {
    background: var(--hb-primary-dark) !important;
}

.theme-huiban .nav-user-link {
    color: var(--hb-primary) !important;
}

.theme-huiban .nav-user-email {
    color: var(--hb-text-muted) !important;
}

.theme-huiban .nav-logout-btn {
    background: transparent !important;
    color: var(--hb-text-muted) !important;
    border: 1px solid #d1d5db !important;
}

.theme-huiban .menu-icon,
.theme-huiban .menu-icon::before,
.theme-huiban .menu-icon::after {
    background-color: var(--hb-primary);
}

.theme-huiban .mobile-nav {
    background: #fff;
    border-left: 1px solid #e5e7eb;
}

.theme-huiban .mobile-nav a {
    color: var(--hb-text);
}

/* ========== 首页轮播 Hero ========== */
.theme-huiban .hero-section.hero-carousel-wrap {
    min-height: 0;
    padding: 0;
    display: block;
    margin-top: 64px;
}

.theme-huiban .hero-swiper {
    width: 100%;
    height: 240px;
}

@media (min-width: 768px) {
    .theme-huiban .hero-swiper {
        height: 420px;
    }
}

@media (min-width: 1280px) {
    .theme-huiban .hero-swiper {
        height: calc(100vh - 200px);
        min-height: 480px;
        max-height: 720px;
    }
}

.theme-huiban .hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.theme-huiban .slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.theme-huiban .slide-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.theme-huiban .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 33, 0.72) 0%, rgba(15, 23, 33, 0.35) 55%, rgba(15, 23, 33, 0.2) 100%);
}

.theme-huiban .slide-bg-1 {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0891b2 100%);
}

.theme-huiban .slide-bg-2 {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #2563eb 100%);
}

.theme-huiban .slide-bg-3 {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #2563eb 100%);
}

.theme-huiban .slide-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 720px;
    padding: 0 20px;
}

.theme-huiban .slide-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.theme-huiban .slide-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    max-width: 560px;
}

.theme-huiban .slide-content .highlight {
    background: linear-gradient(90deg, #93c5fd, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (min-width: 768px) {
    .theme-huiban .slide-content h1 {
        font-size: 40px;
    }
    .theme-huiban .slide-content p {
        font-size: 18px;
    }
}

@media (min-width: 1280px) {
    .theme-huiban .slide-content h1 {
        font-size: 52px;
    }
    .theme-huiban .slide-content p {
        font-size: 22px;
    }
}

.theme-huiban .hero-swiper-pagination {
    bottom: 20px !important;
}

.theme-huiban .hero-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.theme-huiban .hero-swiper-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* ========== 内页页头 ========== */
.theme-huiban .page-hero-banner {
    margin-top: 64px;
    padding: 48px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f4fe 50%, #f8faff 100%);
    border-bottom: 1px solid var(--hb-border);
    text-align: center;
}

.theme-huiban .page-hero-banner h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--hb-text);
    margin-bottom: 8px;
}

.theme-huiban .page-hero-banner p {
    font-size: 16px;
    color: var(--hb-text-muted);
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .theme-huiban .page-hero-banner {
        padding: 64px 0;
    }
    .theme-huiban .page-hero-banner h1 {
        font-size: 40px;
    }
    .theme-huiban .page-hero-banner p {
        font-size: 18px;
    }
}

/* ========== 首页区块 ========== */
.theme-huiban .home-features {
    padding: 60px 0;
    background: #fff;
}

.theme-huiban .home-features .section-header h2 {
    color: var(--hb-text);
    font-size: 28px;
}

.theme-huiban .home-features .section-header h2::after {
    background: var(--hb-primary);
}

.theme-huiban .home-features .section-header p {
    color: var(--hb-text-muted);
}

.theme-huiban .home-features .section-header {
    margin-bottom: 48px;
}

.theme-huiban .features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .theme-huiban .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .theme-huiban .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.theme-huiban .feature-item {
    background: var(--hb-bg-card);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

.theme-huiban .feature-item:hover {
    box-shadow: var(--hb-shadow);
    transform: translateY(-4px);
}

.theme-huiban .feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-huiban .feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--hb-primary);
}

.theme-huiban .feature-item h3 {
    font-size: 18px;
    color: var(--hb-text);
    margin-bottom: 10px;
}

.theme-huiban .feature-item p {
    font-size: 14px;
    color: var(--hb-text-muted);
    line-height: 1.7;
}

.theme-huiban .home-stats {
    padding: 48px 0;
    background: var(--hb-bg-soft);
}

.theme-huiban .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .theme-huiban .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.theme-huiban .stat-box {
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border-radius: var(--hb-radius);
    border: 1px solid var(--hb-border);
}

.theme-huiban .stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--hb-primary);
    line-height: 1.2;
}

.theme-huiban .stat-label {
    display: block;
    font-size: 14px;
    color: var(--hb-text-muted);
    margin-top: 8px;
}

.theme-huiban .home-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--hb-primary) 0%, var(--hb-primary-dark) 100%);
    text-align: center;
}

.theme-huiban .home-cta h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 12px;
}

.theme-huiban .home-cta .cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.theme-huiban .highlight {
    background: linear-gradient(90deg, var(--hb-primary), var(--hb-teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== 产品中心 ========== */
.theme-huiban .products-section {
    padding: 60px 0 100px;
    background: #fff;
    color: var(--hb-text);
}

.theme-huiban .products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.theme-huiban .products-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    opacity: 0;
    flex-wrap: unset !important;
    max-width: none !important;
    margin-top: 0 !important;
    padding: 0 !important;
    justify-content: stretch !important;
}

@media (min-width: 992px) {
    .theme-huiban .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px 50px !important;
    }
}

.theme-huiban .products-grid.loaded {
    opacity: 1;
}

.theme-huiban .product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%) !important;
    border: 1px solid var(--hb-border) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    display: block !important;
    flex-direction: unset !important;
    align-items: stretch !important;
    min-height: 0 !important;
    max-width: none !important;
    width: 100% !important;
    height: auto !important;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.theme-huiban .product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.theme-huiban .product-card:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12) !important;
    transform: translateY(-2px) !important;
    border-color: #c7d2fe !important;
}

.theme-huiban .product-card-inner {
    display: flex;
    align-items: center;
    padding: 28px 24px;
    gap: 16px;
}

@media (min-width: 768px) {
    .theme-huiban .product-card-inner {
        padding: 40px 36px;
        gap: 24px;
    }
}

@media (min-width: 1280px) {
    .theme-huiban .product-card-inner {
        padding: 48px 40px;
        gap: 32px;
    }
}

.theme-huiban .product-card-image {
    width: 80px !important;
    min-width: 80px !important;
    height: 80px !important;
    flex-shrink: 0;
    background: transparent !important;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .theme-huiban .product-card-image {
        width: 96px !important;
        min-width: 96px !important;
        height: 96px !important;
    }
}

@media (min-width: 1280px) {
    .theme-huiban .product-card-image {
        width: 108px !important;
        min-width: 108px !important;
        height: 108px !important;
    }
}

.theme-huiban .product-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.theme-huiban .product-card-icon {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-huiban .product-card-icon span {
    font-size: 36px;
    font-weight: 700;
    color: var(--hb-primary);
    line-height: 1;
}

.theme-huiban .product-card-content {
    flex: 1;
    padding: 0 !important;
    background: transparent !important;
    display: block !important;
    min-width: 0;
}

.theme-huiban .product-card-content h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--hb-text) !important;
    margin-bottom: 16px !important;
    line-height: 1.3 !important;
    transition: color 0.25s ease;
}

@media (min-width: 1280px) {
    .theme-huiban .product-card-content h3 {
        font-size: 24px !important;
        margin-bottom: 24px !important;
    }
}

.theme-huiban .product-card:hover .product-card-content h3 {
    color: var(--hb-primary) !important;
}

.theme-huiban .product-card-desc {
    font-size: 14px !important;
    color: var(--hb-text-muted) !important;
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex: unset !important;
}

@media (min-width: 1280px) {
    .theme-huiban .product-card-desc {
        font-size: 16px !important;
    }
}

.theme-huiban .product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.theme-huiban .product-card .product-category-tag {
    display: inline-block;
    background: #eff6ff !important;
    color: var(--hb-primary) !important;
    border: none !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.theme-huiban .product-category-tag--muted {
    background: #f3f4f6 !important;
    color: var(--hb-text-muted) !important;
}

.theme-huiban .product-link {
    color: var(--hb-primary) !important;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s;
}

.theme-huiban .product-link:hover {
    opacity: 0.75;
}

.theme-huiban .loading-message,
.theme-huiban .empty-message,
.theme-huiban .error-message {
    color: var(--hb-text-muted);
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    font-size: 16px;
}

/* 产品详情弹窗 - 浅色 */
.theme-huiban .modal-content-wrapper {
    background: #fff !important;
    border: 1px solid var(--hb-border) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.theme-huiban .modal-content {
    color: var(--hb-text) !important;
}

.theme-huiban .modal-close {
    background: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: var(--hb-text) !important;
}

.theme-huiban .product-detail-header {
    border-bottom-color: #e5e7eb !important;
}

.theme-huiban .product-detail-header h2 {
    color: var(--hb-text) !important;
}

.theme-huiban .license-type-item {
    background: var(--hb-bg-card) !important;
    border: 1px solid var(--hb-border) !important;
}

.theme-huiban .btn-buy {
    background: var(--hb-primary) !important;
    color: #fff !important;
}

/* ========== 案例中心 ========== */
.theme-huiban .case-studies-section {
    padding: 60px 0 100px;
    background: #fff;
}

.theme-huiban .case-studies-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 40px !important;
    opacity: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.theme-huiban .case-studies-grid.loaded {
    opacity: 1;
}

.theme-huiban .case-card {
    background: #fff !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: none !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
    backdrop-filter: none !important;
    position: relative;
}

.theme-huiban .case-card:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12) !important;
    transform: translateY(-2px) !important;
}

.theme-huiban .case-card::after {
    display: none !important;
}

.theme-huiban .case-card-media-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.theme-huiban .case-image {
    position: relative !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    border-radius: 4px 4px 0 0 !important;
    background: #e5e7eb;
}

.theme-huiban .case-image img,
.theme-huiban .case-image video,
.theme-huiban .case-media {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.45s ease !important;
    display: block;
}

.theme-huiban .case-card:hover .case-image img,
.theme-huiban .case-card:hover .case-media {
    transform: scale(1.08) !important;
}

.theme-huiban .case-image {
    position: relative;
}

.theme-huiban .case-video-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.theme-huiban .case-video-badge-icon {
    font-size: 10px;
}

.theme-huiban .case-video-poster {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
}

.theme-huiban .case-video-play-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding-left: 4px;
}

.theme-huiban .case-video-poster-text {
    font-size: 14px;
    font-weight: 600;
}

.theme-huiban .case-image .image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-huiban .case-image .image-placeholder svg {
    width: 48px !important;
    height: 48px !important;
    color: var(--hb-primary) !important;
    opacity: 0.4 !important;
}

.theme-huiban .case-overlay {
    display: none !important;
}

.theme-huiban .case-content {
    padding: 16px 20px 20px !important;
    background: var(--hb-bg-case) !important;
    position: relative;
}

.theme-huiban .case-content::before {
    display: none !important;
}

.theme-huiban .case-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hb-text);
    margin-bottom: 10px;
    line-height: 1.5;
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}

.theme-huiban .case-card-title:hover {
    color: var(--hb-primary);
}

.theme-huiban .case-content h3 {
    display: none;
}

.theme-huiban .case-content p {
    display: none !important;
}

.theme-huiban .case-card-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.theme-huiban .case-tag {
    position: relative;
    padding-left: 12px;
    font-size: 13px;
    color: var(--hb-text-muted);
    line-height: 1.4;
}

.theme-huiban .case-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hb-primary);
}

.theme-huiban .case-card-link {
    color: inherit;
    text-decoration: none;
}

/* ========== 页脚 ========== */
.theme-huiban .footer.site-footer {
    background: var(--hb-footer-bg);
    padding: 0;
    border-top: none;
}

.theme-huiban .footer-main {
    padding: 48px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
}

.theme-huiban .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .theme-huiban .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }
}

.theme-huiban .footer-col h5 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.theme-huiban .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theme-huiban .footer-col li {
    margin-bottom: 12px;
}

.theme-huiban .footer-col a {
    font-size: 14px;
    color: #94a3b8;
    transition: color 0.2s;
}

.theme-huiban .footer-col a:hover {
    color: #fff;
    padding-left: 0;
}

.theme-huiban .footer-col .contact-text {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.8;
}

.theme-huiban .footer-brand-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .theme-huiban .footer-brand-mini {
        align-items: flex-start;
    }
}

.theme-huiban .footer-bottom-bar {
    padding: 24px 0;
    text-align: center;
}

.theme-huiban .footer-bottom-bar p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.8;
    margin: 4px 0;
}

.theme-huiban .footer-bottom-bar .footer-desc {
    color: #94a3b8;
    max-width: 720px;
    margin: 0 auto 12px;
}

/* 隐藏旧页脚结构 */
.theme-huiban .footer-content.legacy-footer,
.theme-huiban .footer-bottom.legacy-footer {
    display: none;
}

/* ========== 返回顶部 ========== */
.theme-huiban .back-to-top {
    background: var(--hb-primary);
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.theme-huiban .back-to-top svg {
    color: #fff;
}

.theme-huiban .back-to-top:hover {
    background: var(--hb-primary-dark);
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .theme-huiban .mobile-nav-trigger {
        display: block;
    }

    .theme-huiban .desktop-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .theme-huiban .product-card-inner {
        flex-direction: row;
        align-items: flex-start;
    }

    .theme-huiban .case-studies-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
}

/* ========== 产品详情页（燕岐互动云风格） ========== */
.theme-huiban.page-product-detail {
    --pd-accent: #0d9488;
    --pd-accent-dark: #0f766e;
    --pd-accent-light: #ccfbf1;
    --pd-bg: #f8fafb;
}

.theme-huiban.page-product-detail #navbar {
    background: #fff;
}

.theme-huiban .pd-loading,
.theme-huiban .pd-error {
    margin-top: 64px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--hb-text-muted);
}

.theme-huiban .pd-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--pd-accent);
    border-radius: 50%;
    animation: pd-spin 0.8s linear infinite;
}

@keyframes pd-spin {
    to { transform: rotate(360deg); }
}

.theme-huiban .pd-hero {
    margin-top: 64px;
    padding: 12px 0 60px;
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
}

.theme-huiban .pd-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 28px;
}

.theme-huiban .pd-breadcrumb:hover {
    color: var(--pd-accent);
}

.theme-huiban .pd-hero-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.theme-huiban .pd-hero-title-row h1 {
    margin-bottom: 0;
}

.theme-huiban .pd-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-huiban .pd-hero-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #ff6c37;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1.4;
}

.theme-huiban .pd-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .theme-huiban .pd-hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.theme-huiban .pd-hero-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
}

@media (min-width: 768px) {
    .theme-huiban .pd-hero-text h1 {
        font-size: 36px;
    }
}

.theme-huiban .pd-hero-text p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 32px;
}

.theme-huiban .pd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.theme-huiban .pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.theme-huiban .pd-btn-primary {
    background: var(--pd-accent);
    color: #fff;
}

.theme-huiban .pd-btn-primary:hover {
    background: var(--pd-accent-dark);
}

.theme-huiban .pd-btn-outline {
    background: #fff;
    color: var(--pd-accent);
    border: 1px solid var(--pd-accent);
}

.theme-huiban .pd-btn-outline:hover {
    background: var(--pd-accent-light);
}

.theme-huiban .pd-btn-buy-accent {
    background: #ff6c37;
}

.theme-huiban .pd-btn-buy-accent:hover {
    background: #e85a28;
}

.theme-huiban .pd-btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 20px;
}

.theme-huiban .pd-hero-gallery {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(13, 148, 136, 0.15);
}

.theme-huiban .pd-gallery-swiper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #fff;
}

.theme-huiban .pd-gallery-swiper .swiper-wrapper,
.theme-huiban .pd-gallery-swiper .swiper-slide {
    height: 100%;
}

.theme-huiban .pd-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
}

.theme-huiban .pd-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.theme-huiban .pd-slide-placeholder {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-huiban .pd-slide-placeholder span {
    font-size: 80px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.theme-huiban .pd-slide-a {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.theme-huiban .pd-slide-b {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.theme-huiban .pd-slide-c {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.theme-huiban .pd-gallery-pagination .swiper-pagination-bullet-active {
    background: var(--pd-accent);
}

.theme-huiban .pd-features {
    padding: 60px 0;
    background: #fff;
}

.theme-huiban .pd-content-wide {
    width: 100%;
    max-width: 1400px;
}

.theme-huiban .pd-section-head {
    margin-bottom: 40px;
}

.theme-huiban .pd-section-head--center {
    text-align: center;
}

.theme-huiban .pd-section-head--center .pd-section-title,
.theme-huiban .pd-section-head--center .pd-section-subtitle {
    text-align: center;
}

.theme-huiban .pd-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .theme-huiban .pd-section-title {
        font-size: 30px;
    }
}

.theme-huiban .pd-section-subtitle {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
}

.theme-huiban .pd-section-head .pd-section-title {
    margin-bottom: 8px;
}

.theme-huiban .pd-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

@media (min-width: 768px) {
    .theme-huiban .pd-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .theme-huiban .pd-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.theme-huiban .pd-feature-item {
    padding: 28px 24px;
    background: var(--pd-bg);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s, transform 0.3s;
    text-align: center;
}

.theme-huiban .pd-feature-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.theme-huiban .pd-feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--pd-accent);
}

.theme-huiban .pd-feature-icon svg {
    width: 100%;
    height: 100%;
}

.theme-huiban .pd-feature-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.theme-huiban .pd-feature-item p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
}

.theme-huiban .pd-body {
    padding: 60px 0;
    background: #fff;
}

.theme-huiban .pd-desc-block {
    width: 100%;
}

.theme-huiban .pd-showcase-content {
    width: 100%;
    margin-top: 32px;
}

.theme-huiban .pd-desc-content {
    font-size: 16px;
    color: #4b5563;
    line-height: 2;
}

.theme-huiban .pd-desc-lead {
    margin: 0 0 8px;
    font-size: 17px;
    color: #374151;
    line-height: 2;
    text-align: center;
    max-width: 100%;
}

.theme-huiban .pd-desc-content p {
    margin-bottom: 16px;
}

.theme-huiban .pd-desc-video {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.theme-huiban .pd-desc-video video {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.theme-huiban .pd-desc-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

@media (min-width: 992px) {
    .theme-huiban .pd-desc-gallery--multi {
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
    }

    .theme-huiban .pd-desc-gallery-item--full {
        grid-column: 1 / -1;
    }
}

.theme-huiban .pd-desc-gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: #fff;
    min-height: 0;
}

.theme-huiban .pd-desc-gallery-item img,
.theme-huiban .pd-desc-content > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.theme-huiban .pd-desc-empty {
    color: #9ca3af;
    font-style: italic;
}

/* 版本更新记录 */
.theme-huiban .pd-changelog {
    padding: 0 0 100px;
    background: #fff;
}

.theme-huiban .pd-timeline {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.theme-huiban .pd-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--pd-accent) 0%, #e5e7eb 100%);
}

.theme-huiban .pd-timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 32px;
}

.theme-huiban .pd-timeline-item:last-child {
    padding-bottom: 0;
}

.theme-huiban .pd-timeline-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--pd-accent);
    box-shadow: 0 0 0 4px var(--pd-accent-light);
}

.theme-huiban .pd-timeline-marker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.theme-huiban .pd-timeline-version {
    display: inline-block;
    padding: 4px 12px;
    background: var(--pd-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
}

.theme-huiban .pd-timeline-date {
    font-size: 14px;
    color: #9ca3af;
}

.theme-huiban .pd-timeline-body {
    background: var(--pd-bg);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
}

.theme-huiban .pd-update-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.theme-huiban .pd-update-list li {
    position: relative;
    padding: 8px 0 8px 18px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    border-bottom: 1px dashed #e5e7eb;
}

.theme-huiban .pd-update-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.theme-huiban .pd-update-dot {
    position: absolute;
    left: 0;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pd-accent);
}

/* 版本卡片区域 */
.theme-huiban .pd-versions {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f0fdfa 0%, #f8fafb 100%);
}

.theme-huiban .pd-versions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

@media (min-width: 640px) {
    .theme-huiban .pd-versions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (min-width: 1024px) {
    .theme-huiban .pd-versions-grid--count-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .theme-huiban .pd-versions-grid--count-3 {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1020px;
        margin-left: auto;
        margin-right: auto;
    }

    .theme-huiban .pd-versions-grid--count-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .theme-huiban .pd-versions-grid--count-1 {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .theme-huiban .pd-version-card {
        padding: 28px 20px 24px;
    }

    .theme-huiban .pd-version-name {
        font-size: 18px;
    }

    .theme-huiban .pd-version-price {
        font-size: 30px;
    }
}

.theme-huiban .pd-version-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px 28px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.theme-huiban .pd-version-card:hover {
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.12);
    transform: translateY(-4px);
}

.theme-huiban .pd-version-card--featured {
    border-color: var(--pd-accent);
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.15);
}

.theme-huiban .pd-version-card--featured:hover {
    box-shadow: 0 16px 48px rgba(13, 148, 136, 0.2);
}

.theme-huiban .pd-version-card--trial {
    border-style: dashed;
    border-color: #a7f3d0;
    background: #fafffe;
}

.theme-huiban .pd-version-badge {
    position: absolute;
    top: 0;
    right: 24px;
    transform: translateY(-50%);
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    color: #fff;
}

.theme-huiban .pd-version-badge--hot {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.theme-huiban .pd-version-badge--trial {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.theme-huiban .pd-version-card-head {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.theme-huiban .pd-version-name {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.theme-huiban .pd-version-price {
    font-size: 36px;
    font-weight: 800;
    color: #ef4444;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.theme-huiban .pd-version-card--trial .pd-version-price {
    color: var(--pd-accent);
}

.theme-huiban .pd-version-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    flex: 1;
}

.theme-huiban .pd-version-meta li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    font-size: 14px;
    border-bottom: 1px dashed #f3f4f6;
}

.theme-huiban .pd-version-meta li:last-child {
    border-bottom: none;
}

.theme-huiban .pd-version-meta li span {
    color: #9ca3af;
}

.theme-huiban .pd-version-meta li strong {
    color: #374151;
    font-weight: 600;
}

.theme-huiban .pd-status-active {
    color: var(--pd-accent) !important;
}

.theme-huiban .pd-version-buy {
    margin-top: 24px;
}

.theme-huiban .pd-versions-empty {
    text-align: center;
    padding: 48px 20px;
    color: #9ca3af;
    font-size: 15px;
}

/* ========== 案例详情页 ========== */
.theme-huiban.page-case-detail #navbar {
    background: #fff;
}

.theme-huiban .cd-content-wide {
    max-width: 1200px;
    margin: 0 auto;
}

.theme-huiban .cd-loading,
.theme-huiban .cd-error {
    margin-top: 64px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--hb-text-muted);
    padding: 40px 20px;
}

.theme-huiban .cd-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--hb-primary);
    border-radius: 50%;
    animation: pd-spin 0.8s linear infinite;
}

.theme-huiban .cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.theme-huiban .cd-btn-primary {
    background: var(--hb-primary);
    color: #fff;
}

.theme-huiban .cd-btn-primary:hover {
    background: var(--hb-primary-dark);
}

.theme-huiban .cd-hero {
    margin-top: 64px;
    padding: 12px 0 40px;
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    border-bottom: 1px solid var(--hb-border);
}

.theme-huiban .cd-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--hb-text-muted);
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 24px;
}

.theme-huiban .cd-breadcrumb:hover {
    color: var(--hb-primary);
}

.theme-huiban .cd-hero-head {
    margin-bottom: 16px;
}

.theme-huiban .cd-hero-head h1,
.theme-huiban #case-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--hb-text);
    line-height: 1.35;
    margin: 0 0 16px;
}

.theme-huiban .cd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.theme-huiban .cd-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 10px;
    background: var(--hb-bg-case);
    color: var(--hb-primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid #dbeafe;
}

.theme-huiban .cd-category::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hb-primary);
}

.theme-huiban .cd-date {
    font-size: 14px;
    color: var(--hb-text-muted);
}

.theme-huiban .cd-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--hb-text-muted);
    margin: 0;
    max-width: 900px;
}

.theme-huiban .cd-description:empty {
    display: none;
}

.theme-huiban .cd-gallery-section {
    padding: 48px 0 80px;
    background: #fff;
}

.theme-huiban .cd-video-wrap {
    margin-bottom: 36px;
}

.theme-huiban .cd-video {
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid var(--hb-border);
}

.theme-huiban .cd-video video {
    display: block;
    width: 100%;
    max-height: 560px;
    background: #000;
}

.theme-huiban .cd-section-head {
    margin-bottom: 28px;
}

.theme-huiban .cd-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--hb-text);
    margin: 0;
}

.theme-huiban .cd-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.theme-huiban .cd-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--hb-bg-card);
    border: 1px solid var(--hb-border);
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    aspect-ratio: 16 / 10;
}

.theme-huiban .cd-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}

.theme-huiban .cd-gallery-item-inner {
    width: 100%;
    height: 100%;
    position: relative;
    background: #f3f4f6;
}

.theme-huiban .cd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.theme-huiban .cd-gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.theme-huiban .cd-gallery-item:hover .cd-gallery-item-overlay {
    opacity: 1;
}

.theme-huiban .cd-gallery-item-overlay svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

.theme-huiban .cd-gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--hb-text-muted);
    font-size: 15px;
    background: var(--hb-bg-soft);
    border-radius: 8px;
    border: 1px dashed var(--hb-border);
}

.theme-huiban .cd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-huiban .cd-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
}

.theme-huiban .cd-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-huiban #lightbox-image {
    max-width: 100%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
}

.theme-huiban .cd-lightbox-close,
.theme-huiban .cd-lightbox-prev,
.theme-huiban .cd-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}

.theme-huiban .cd-lightbox-close:hover,
.theme-huiban .cd-lightbox-prev:hover,
.theme-huiban .cd-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.22);
}

.theme-huiban .cd-lightbox-close svg,
.theme-huiban .cd-lightbox-prev svg,
.theme-huiban .cd-lightbox-next svg {
    width: 22px;
    height: 22px;
}

.theme-huiban .cd-lightbox-close {
    top: 20px;
    right: 20px;
}

.theme-huiban .cd-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.theme-huiban .cd-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 768px) {
    .theme-huiban .cd-hero-head h1,
    .theme-huiban #case-detail-title {
        font-size: 34px;
    }
}

@media (max-width: 1024px) {
    .theme-huiban .cd-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .theme-huiban .cd-gallery {
        grid-template-columns: 1fr;
    }

    .theme-huiban .cd-hero {
        padding-bottom: 28px;
    }

    .theme-huiban .cd-gallery-section {
        padding: 32px 0 60px;
    }
}

.theme-huiban .pd-version-card .pd-btn-outline.pd-btn-block {
    margin-top: 24px;
}
