/* 产品页面样式 */

.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 50%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(53, 159, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(53, 159, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-hero .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
    padding: 8px 20px;
    background: rgba(53, 159, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(53, 159, 255, 0.2);
}

.page-hero .section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.page-hero h1 span {
    background: linear-gradient(135deg, var(--primary), #57b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.page-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-hero-cta .btn {
    padding: 14px 32px;
    font-size: 13px;
    letter-spacing: 1px;
}

.page-hero-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary), #57b3ff);
    box-shadow: 0 4px 16px rgba(53, 159, 255, 0.3);
}

.page-hero-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(53, 159, 255, 0.4);
}

.page-hero-decoration {
    position: absolute;
    pointer-events: none;
}

.page-hero-decoration-1 {
    top: 20%;
    left: 5%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(53, 159, 255, 0.15);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.page-hero-decoration-2 {
    bottom: 15%;
    right: 8%;
    width: 40px;
    height: 40px;
    background: rgba(53, 159, 255, 0.1);
    border-radius: 8px;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.page-hero-decoration-3 {
    top: 30%;
    right: 15%;
    width: 20px;
    height: 20px;
    background: rgba(53, 159, 255, 0.2);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero-decoration {
        display: none;
    }
}

.products-showcase {
    padding: 80px 0;
    background: var(--bg-primary);
}

.product-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}

.category-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    background: #f8fafc;
    border-radius: 12px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}

.mobile-product-nav {
    display: none;
}

.mobile-category-sheet-overlay,
.mobile-category-sheet {
    display: none;
}

.category-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-group {
    margin-bottom: 0;
}

.category-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-title::after {
    content: '+';
    font-size: 16px;
    font-weight: 400;
    transition: transform 0.2s;
}

.category-group.active .category-title::after {
    content: '−';
}

.category-group.active {
    background: #fff;
}

.category-group.active .category-title {
    color: #111827;
}

.category-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-group.active .category-submenu {
    max-height: 500px;
}

.submenu-item {
    font-size: 14px;
    color: #6b7280;
    padding: 8px 16px 8px 24px;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.submenu-item:hover {
    color: #111827;
    background: #f9fafb;
}

.submenu-item.active {
    color: #2563eb;
    background: #eff6ff;
    border-left-color: #2563eb;
    font-weight: 500;
}

.product-content {
    min-height: 400px;
}

.product-detail {
    display: none;
}

.product-detail.active {
    display: block;
}

/* 轮播图样式 */
.product-carousel {
    margin-bottom: 40px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid rgba(53, 159, 255, 0.08);
}

.carousel-main {
    position: relative;
    overflow: hidden;
}

.carousel-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.carousel-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    background: var(--bg-surface);
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.carousel-thumb {
    width: 100px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        border-color 0.2s,
        transform 0.2s,
        opacity 0.2s;
    flex-shrink: 0;
    opacity: 0.6;
}

.carousel-thumb:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.carousel-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.product-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.product-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.product-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
}

.product-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-images img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* FAQ 折叠面板 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(53, 159, 255, 0.2);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(53, 159, 255, 0.04);
}

.faq-question i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.faq-question span {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.faq-answer {
    padding: 0 24px 20px;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 富文本样式 */
.rich-content-wrapper {
    max-width: 800px;
}

.rich-content h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(53, 159, 255, 0.15);
}

.rich-content h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

.rich-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin: 0 0 16px;
}

.rich-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.rich-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 8px 0 8px 24px;
    position: relative;
}

.rich-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #57b3ff);
}

.rich-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .category-sidebar {
        position: static;
        max-height: none;
        display: none;
    }

    .mobile-product-nav {
        display: flex;
    }

    .mobile-category-sheet-overlay,
    .mobile-category-sheet {
        display: block;
    }

    .mobile-product-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        background: #fff;
        border-radius: 10px;
        margin-bottom: 16px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        border: 1px solid #e5e7eb;
        position: sticky;
        top: 80px;
        z-index: 50;
    }

    .mobile-category-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        background: transparent;
        border: none;
        padding: 6px 10px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 13px;
        color: #111827;
        font-weight: 500;
        transition: background 0.15s;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-category-btn:active {
        background: #f3f4f6;
    }

    .mobile-category-btn i:first-child {
        color: #2563eb;
        font-size: 14px;
    }

    .mobile-category-btn i:last-child {
        color: #9ca3af;
        font-size: 10px;
        margin-left: 2px;
    }

    .mobile-product-name {
        font-size: 13px;
        color: #6b7280;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50%;
    }

    .mobile-category-sheet-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s;
    }

    .mobile-category-sheet-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-category-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 16px 16px 0 0;
        z-index: 101;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 75vh;
        display: flex;
        flex-direction: column;
    }

    .mobile-category-sheet.active {
        transform: translateY(0);
    }

    .sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
    }

    .sheet-header h3 {
        font-size: 16px;
        font-weight: 600;
        color: #111827;
        margin: 0;
    }

    .sheet-close {
        width: 32px;
        height: 32px;
        border: none;
        background: #f3f4f6;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #6b7280;
        transition: background 0.15s;
    }

    .sheet-close:active {
        background: #e5e7eb;
    }

    .sheet-body {
        overflow-y: auto;
        flex: 1;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sheet-categories {
        padding: 8px 0;
    }

    .sheet-category-group {
        padding: 8px 0;
    }

    .sheet-category-title {
        font-size: 12px;
        font-weight: 600;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 8px 20px;
    }

    .sheet-product-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 4px 16px 12px;
    }

    .sheet-product-item {
        text-align: center;
        padding: 12px 8px;
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.15s;
        font-size: 13px;
        color: #4b5563;
    }

    .sheet-product-item:active {
        background: #f3f4f6;
    }

    .sheet-product-item.active {
        background: #eff6ff;
        color: #2563eb;
        font-weight: 500;
    }
}

@media (max-width: 768px) {
    .carousel-main img {
        height: 300px;
    }

    .carousel-thumb {
        width: 80px;
        height: 50px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-desc {
        font-size: 15px;
    }

    .faq-question {
        padding: 16px 20px;
    }

    .faq-answer {
        padding: 0 20px 16px 52px;
    }
}
