/* public/css/360.css */

/* ========== 360° 产品展示 ========== */
.viewer360-section {
    width: 100%;
    background: #f5f5f5;
}

.viewer360-inner {
    /*max-width: 1200px;*/
    margin: 0 auto;
}

.viewer360-title {
    text-align: center;
    margin-bottom: 50px;
}

.viewer360-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.viewer360-title h2 span {
    color: #b71c1c;
}

.viewer360-title p {
    font-size: 18px;
    color: #999;
    letter-spacing: 2px;
}

.viewer360-container {
    position: relative;
    background: #fff url("/public/360/360bj.png") center center / cover no-repeat;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: 20px;
    user-select: none;
    -webkit-user-select: none;
}

.viewer360-slogan {
    position: absolute;
    top: 50px;
    left: 100px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 20;
}

.viewer360-slogan-bar {
    width: 5px;
    height: 40px;
    background: #b71c1c;
    flex-shrink: 0;
    margin-top: 4px;
}

.viewer360-slogan-text h3 {
    font-size: 30px;
    font-weight: 700;
    color: #b71c1c;
    margin-bottom: 2px;
    line-height: 1.2;
}

.viewer360-slogan-text p {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
    line-height: 1.2;
}

.viewer360-slogan-br {
    position: absolute;
    bottom: 200px;
    right: 70px;
    text-align: right;
    z-index: 20;
}

.viewer360-slogan-br-text h3 {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.2;
}

.slogan-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #b71c1c;
    margin-left: 6px;
    vertical-align: middle;
}

.viewer360-slogan-br-text p {
    font-size: 12px;
    color: #999;
    letter-spacing: 1px;
    line-height: 1.2;
}

.viewer360-canvas {
    width: 100%;
    /*max-width: 1800px;*/
    margin: 0 auto;
    /*aspect-ratio: 1 / 1;*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}

.viewer360-canvas:active {
    cursor: grabbing;
}

.viewer360-canvas img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.viewer360-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #b71c1c;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.25);
    display: none;
    z-index: 10;
    cursor: pointer;
}

.viewer360-dot.visible {
    display: block;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(183, 28, 28, 0.1); }
}

.viewer360-dot-1 { top: 45%;left: 39%; }
.viewer360-dot-2 { top: 40%; left: 50%; }
.viewer360-dot-3 { top: 20%; left: 65%; }
/*.viewer360-dot-4 { top: 60%; left: 35%; }
.viewer360-dot-5 { top: 55%; left: 70%; }
.viewer360-dot-6 { top: 35%; left: 42%; }
.viewer360-dot-7 { top: 70%; left: 55%; }*/

.viewer360-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.5s;
}

.viewer360-hint .hint-icon {
    font-size: 20px;
    color: #b71c1c;
    animation: hintBounce 1.5s ease-in-out infinite;
}

@keyframes hintBounce {
    0%, 100% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
}

.viewer360-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.viewer360-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.viewer360-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.viewer360-btn:hover {
    border-color: #b71c1c;
    color: #b71c1c;
    box-shadow: 0 2px 8px rgba(183, 28, 28, 0.15);
}

.viewer360-btn.active {
    background: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
}

.viewer360-progress {
    display: none;
    max-width: 400px;
    margin: 16px auto 0;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.viewer360-progress-bar {
    height: 100%;
    width: 0%;
    background: #b71c1c;
    border-radius: 2px;
    transition: width 0.1s;
}

/* ========== 响应式 ========== */

@media screen and (max-width: 768px) {
    .viewer360-section {
        padding: 50px 20px;
    }

    .viewer360-dot {
        display: none !important;
    }

    .viewer360-slogan {
        top: 12px;
        left: 12px;
    }

    .viewer360-slogan-bar {
        height: 30px;
    }

    .viewer360-slogan-text h3 {
        font-size: 16px;
    }

    .viewer360-slogan-text p {
        font-size: 10px;
    }

    .viewer360-slogan-br {
        bottom: 100px;
        right: 12px;
    }

    .viewer360-slogan-br-text h3 {
        font-size: 14px;
    }

    .slogan-dot {
        width: 8px;
        height: 8px;
    }

    .viewer360-slogan-br-text p {
        font-size: 10px;
    }

    .viewer360-title h2 {
        font-size: 24px;
    }

    .viewer360-title p {
        font-size: 14px;
    }

    .viewer360-container {
        padding: 20px;
    }

    .viewer360-canvas {
        max-width: 500px;
    }
}

@media screen and (max-width: 480px) {
    .viewer360-section {
        padding: 40px 16px;
    }

    .viewer360-title h2 {
        font-size: 20px;
    }

    .viewer360-title p {
        font-size: 12px;
    }

    .viewer360-container {
        padding: 16px;
    }

    .viewer360-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}