/* Manual Page Styles */

:root {
    --manual-header-width: min(95vw, 6401px);
    --manual-header-height: clamp(50px, calc(var(--manual-header-width) / 37.22), 172px);
    --manual-footer-safe-bottom: 88px;
}

body {
    margin: 0;
    padding: 0;
    background: var(--black);
    overflow-x: hidden;
}

/* Fullscreen layout for brand manual / cooperation pages */
body.manual-fullscreen #fullpage,
body.manual-fullscreen .manual-page {
    width: 100vw;
    height: 100vh;
}

body.manual-fullscreen .manual-page {
    padding: 0;
    align-items: stretch;
    justify-content: center;
}

body.manual-fullscreen .manual-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.manual-fullscreen .reviews-section > img,
body.manual-fullscreen .craftsman-section > img {
    object-fit: cover;
}

/* Fixed Header */
.manual-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--manual-header-height);
    z-index: 1000;
    background: #050303;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.manual-header-link {
    display: block;
    width: var(--manual-header-width);
    height: 100%;
}

.manual-header-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Manual Container */
.manual-page {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--manual-header-height); /* 给所有页面预留 Header 区域 */
    box-sizing: border-box;
}

.manual-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* QA cover redesigned with live text */
.qa-cover {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
}

.qa-hero {
    position: relative;
    width: min(95vw, 1600px);
    height: min(calc(95vw * 3601 / 6401), calc(1600px * 3601 / 6401));
    max-height: calc(100vh - 40px);
    margin: 0 auto;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.6);
    background: #030304 url('https://arcanus-1381273748.cos.ap-guangzhou.myqcloud.com/assets/问答相关/网站问答/index-empty.png') center/contain no-repeat;
}

.qa-hero-content {
    position: absolute;
    inset: 0;
    color: var(--white);
    font-family: 'Futura Maxi Std Book', 'Helvetica Neue', sans-serif;
}

.qa-meta-center { letter-spacing: 0.25em; }

.qa-banner {
    position: absolute;
    top: 16%;
    left: 7%;
    right: 7%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    color: #0a0602;
}

.qa-banner-title {
    font-family: "Times New Roman", "Songti SC", serif;
    font-size: clamp(48px, 6.5vw, 105px);
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 0.9;
}

.qa-banner-title span { display: block; }

.qa-banner-tag {
    font-family: 'STKaiti', 'Songti SC', serif;
    font-size: clamp(24px, 3vw, 42px);
    text-align: right;
    line-height: 1.3;
    margin-top: 0.2em;
}

.qa-board {
    position: absolute;
    top: 58%;
    left: 5%;
    right: 5%;
    height: auto;
}

.qa-board-columns {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 2%;
}

.qa-column {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 1 auto;
    max-width: 24%;
}

.qa-column-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.qa-column-clickable:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.qa-column-cn {
    font-family: 'STKaiti', 'Songti SC', serif;
    font-size: clamp(18px, 1.5vw, 24px);
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

.qa-column-en {
    font-size: clamp(10px, 0.8vw, 13px);
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.qa-hero-footer {
    position: absolute;
    left: 4.8%;
    right: 4.8%;
    bottom: 4.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(12px, 1vw, 15px);
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1100px) {
    .qa-board-columns {
        flex-wrap: wrap;
        gap: 30px;
    }

    .qa-column {
        max-width: 48%;
    }
}

@media (max-width: 640px) {
    .qa-hero {
        border-radius: 32px;
    }

    .qa-banner {
        left: 5%;
        right: 5%;
        top: 20%;
    }

    .qa-board {
        left: 5%;
        right: 5%;
        top: 48%;
        bottom: 16%;
    }

    .qa-board-columns {
        flex-direction: column;
        gap: 20px;
    }

    .qa-column {
        max-width: 100%;
    }

    .qa-hero-meta,
    .qa-hero-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* Craftsman Section */
.craftsman-section {
    position: relative;
    width: 100%;
    height: 100%;
}

.craftsman-section > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.craftsman-slider-wrapper {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 50px;
    touch-action: pan-x;
}

.craftsman-slider-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.craftsman-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.craftsman-item {
    flex: 0 0 calc((100% - 60px) / 3);
    text-align: center;
}

.craftsman-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.craftsman-name {
    color: var(--white);
    font-size: 13px;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.craftsman-nav {
    position: relative;
    background: rgba(128, 128, 128, 0.5);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    padding-bottom: 2px;
}

.craftsman-nav:hover {
    background: rgba(160, 160, 160, 0.7);
    transform: scale(1.1);
}

.craftsman-prev {
    order: -1;
}

.craftsman-next {
    order: 1;
}

/* Reviews Section */
.reviews-section {
    position: relative;
    width: 100%;
    height: 100%;
}

.reviews-section > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* Footer (manual) */
body.manual-fullscreen .manual-footer-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(var(--manual-header-height) + 18px);
    padding-bottom: var(--manual-footer-safe-bottom);
    box-sizing: border-box;
    overflow: hidden;
}

.manual-footer-section .manual-footer-center {
    flex: 1 1 auto;
    width: 100%;
    max-width: min(1100px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vh, 56px);
    padding: 0 20px;
    box-sizing: border-box;
}

.manual-footer-section .footer-logo { position: relative; z-index: 2; }
.manual-footer-section .footer-logo img {
    width: auto;
    height: auto;
    max-width: min(92vw, 820px);
    max-height: calc(100vh - var(--manual-header-height) - var(--manual-footer-safe-bottom) - 170px);
}

.manual-footer-section .footer-buttons {
    position: relative;
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 3;
    transform: translateY(clamp(-210px, -15vh, -78px));
}
.manual-footer-section .footer-buttons .explore-col { padding: 12px 20px; }

/* Footer Info */
.footer-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 25px 30px;
    z-index: 2;
}

body.manual-fullscreen .footer-info {
    padding-left: calc(
        50% - (var(--manual-header-width) * 0.5) +
            (var(--manual-header-width) * var(--hero-header-image-content-left-x) / var(--hero-header-image-width))
    );
    padding-right: calc(
        50% - (var(--manual-header-width) * 0.5) +
            (var(--manual-header-width) *
                    (var(--hero-header-image-width) - var(--hero-header-image-content-right-x)) /
                var(--hero-header-image-width))
    );
}

body.manual-fullscreen .manual-footer-section.fp-is-overflow,
body.manual-fullscreen .manual-footer-section.fp-is-overflow > .fp-overflow,
body.manual-fullscreen .manual-footer-section .fp-overflow {
    overflow-y: hidden !important;
}

.footer-info-left,
.footer-info-center,
.footer-info-right {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    letter-spacing: 1px;
}

.footer-info-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 25px;
}

/* Right-side dot navigation (fullPage indicator) */
.reviews-slider-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 1000px;
    z-index: 2;
    overflow: visible;
    touch-action: pan-x;
}

.reviews-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.reviews-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    align-items: center;
}

.review-card {
    flex: 0 0 75%;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: filter 0.5s ease, opacity 0.5s ease;
    cursor: pointer;
}

.review-card img.review-photo { width: 100%; height: auto; display: block; }

.review-card:not(.active) {
    filter: blur(2px);
    opacity: 0.4;
}

.review-card:not(.active):hover {
    opacity: 0.6;
}

.review-header {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 0;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-name {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: left;
    line-height: 1.5;
}

.review-subtitle {
    font-size: 13px;
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.review-content {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: none;
    border-radius: 0;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.review-text {
    color: var(--white);
    font-size: 13px;
    line-height: 2;
    opacity: 0.9;
    text-align: left;
    margin: 0;
}

.review-nav {
    display: none;
}

.review-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

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

.review-dots .dot.active {
    background: var(--white);
    transform: scale(1.4);
}

/* Responsive */
@media (max-width: 768px) {
    .craftsman-slider-wrapper {
        width: 80%;
        bottom: 10%;
    }

    .craftsman-slider {
        gap: 15px;
    }

    .craftsman-item {
        flex: 0 0 calc((100% - 30px) / 3);
    }

    .craftsman-item img {
        height: 200px;
    }

    .craftsman-name {
        font-size: 11px;
    }

    .craftsman-nav {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .craftsman-prev {
        left: -50px;
    }

    .craftsman-next {
        right: -50px;
    }

    .reviews-slider-wrapper {
        width: 90%;
    }

    .reviews-slider-container {
        width: 85%;
    }

    .review-header {
        padding: 20px;
        gap: 15px;
    }

    .review-avatar {
        width: 50px;
        height: 50px;
    }

    .review-name {
        font-size: 14px;
    }

    .review-subtitle {
        font-size: 12px;
    }

    .review-content {
        padding: 20px;
    }

    .review-text {
        font-size: 12px;
        line-height: 1.8;
    }

    .review-dots {
        margin-top: 20px;
    }
}
