/* ============================================
   摩尔敦木饰 - 全息三维首页升级 v1.0
   100年后未来设计风格
   ============================================ */

/* ---------- 全息三维全局效果 ---------- */
:root {
    --holo-primary: var(--color-hologram-gold-80);
    --holo-secondary: var(--color-hologram-purple-60);
    --holo-accent: var(--color-hologram-green-70);
    --holo-bg: var(--color-hologram-dark-95);
    --holo-glow: 0 0 20px var(--color-custom-2);
    --holo-border: 1px solid var(--color-custom-2);
    --holo-gradient: linear-gradient(135deg, var(--color-custom-6) 0%, var(--color-hologram-purple-10) 100%);
}

/* ---------- 全息粒子背景 ---------- */
.holo-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.holo-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--holo-primary);
    border-radius: 50%;
    animation: particleFloat 20s infinite linear;
    box-shadow: 0 0 10px var(--holo-primary);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ---------- 全息产品卡片 ---------- */
.holo-product-card {
    position: relative;
    background: linear-gradient(145deg, var(--color-hologram-dark2-90) 0%, var(--color-hologram-dark3-95) 100%);
    border: 1px solid var(--color-custom-3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.holo-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-custom-6),
        transparent
    );
    transition: left 0.6s;
    z-index: 1;
}

.holo-product-card:hover::before {
    left: 100%;
}

.holo-product-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    border-color: var(--color-hologram-gold-60);
    box-shadow: 
        0 20px 60px var(--shadow-lg),
        0 0 40px var(--color-custom-3),
        inset 0 1px 0 var(--color-white-10);
}

.holo-product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.holo-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.holo-product-card:hover .holo-product-image img {
    transform: scale(1.1);
}

.holo-product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(
        to top,
        var(--color-hologram-dark-90) 0%,
        transparent 100%
    );
}

/* ---------- 全息产品信息 ---------- */
.holo-product-info {
    position: relative;
    padding: 24px;
    z-index: 2;
}

.holo-product-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-hologram-gold-15);
    border: 1px solid var(--color-custom-2);
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.holo-product-title {
    font-family: 'Songti SC', 'SimSun', 'STSong', 'Songti SC', 'SimSun', 'STSong', serif, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.holo-product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-weight: 300;
}

.holo-product-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.holo-stat {
    text-align: center;
}

.holo-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Songti SC', 'SimSun', 'STSong', 'Songti SC', 'SimSun', 'STSong', serif, serif;
}

.holo-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.holo-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--color-hologram-gold) 100%);
    color: var(--color-white, var(--color-custom-1));
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.holo-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--color-custom-7);
}

/* ---------- 全息边框效果 ---------- */
.holo-border {
    position: relative;
}

.holo-border::before,
.holo-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--holo-primary);
    transition: all 0.3s;
}

.holo-border::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.holo-border::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.holo-border:hover::before,
.holo-border:hover::after {
    width: 100%;
    height: 100%;
}

/* ---------- 全息小摩桌宠 ---------- */
.holo-assistant {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 120px;
    height: 160px;
    z-index: 9999;
    pointer-events: none;
}

.holo-assistant-body {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: holoFloat 4s ease-in-out infinite;
}

@keyframes holoFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-10px) rotateY(5deg);
    }
}

.holo-assistant-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px var(--color-hologram-gold-50));
    mask-image: linear-gradient(to bottom, var(--color-custom-8) 85%, var(--color-custom-9));
    -webkit-mask-image: linear-gradient(to bottom, var(--color-custom-8) 85%, var(--color-custom-9));
}

.holo-assistant-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: radial-gradient(ellipse, var(--color-custom-7) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

/* ---------- 全息3D视差效果 ---------- */
.holo-parallax {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* ---------- 全息产品画廊 ---------- */
.holo-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.holo-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px var(--shadow-md);
}

.holo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.holo-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, var(--color-hologram-black-80) 0%, transparent 100%);
    color: var(--color-white, var(--color-custom-1));
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.holo-gallery-item:hover .holo-gallery-overlay {
    opacity: 1;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 768px) {
    .holo-product-image {
        height: 220px;
    }
    
    .holo-product-info {
        padding: 16px;
    }
    
    .holo-product-title {
        font-size: 1.2rem;
    }
    
    .holo-assistant {
        width: 80px;
        height: 120px;
        bottom: 80px;
        right: 20px;
    }
}

/* ---------- 全息加载动画 ---------- */
.holo-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.holo-loader-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-custom-3);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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