/**
 * Hero Section - Voiceprint Components
 * 首屏 - 声纹谱线组件样式
 */

/* ========================================
   Voiceprint Container
   ======================================== */
.intro-voiceprint {
    position: relative;
}

.intro-voiceprint::after {
    content: '';
    position: absolute;
    inset: -30px;
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.intro-voiceprint::before {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-pill);
    filter: blur(35px);
}

/* ========================================
   Voiceprint Frame
   ======================================== */
.voiceprint-frame {
    position: relative;
    border: var(--border-thin);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    min-height: 320px;
    background: linear-gradient(140deg, rgba(37, 37, 37, 0.95), rgba(18, 18, 18, 0.85));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--spacing-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(201, 169, 97, 0.05);
    box-sizing: border-box;
    width: 100%;
    transition: border-color var(--transition-normal),
                box-shadow var(--transition-normal);
}

.voiceprint-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(201, 169, 97, 0.3) 20%, 
        rgba(201, 169, 97, 0.5) 50%, 
        rgba(201, 169, 97, 0.3) 80%, 
        transparent 100%);
    opacity: 0.6;
    z-index: 1;
}

.theme-light .voiceprint-frame {
    background: linear-gradient(140deg, rgba(240, 238, 232, 0.98), rgba(235, 232, 225, 0.95));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(166, 124, 61, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--color-line);
}

.theme-light .voiceprint-frame::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(166, 124, 61, 0.4) 20%, 
        rgba(166, 124, 61, 0.6) 50%, 
        rgba(166, 124, 61, 0.4) 80%, 
        transparent 100%);
    opacity: 0.8;
}

/* ========================================
   Voiceprint Decorations (Grid, Glow, Arcs)
   ======================================== */
.voiceprint-grid,
.voiceprint-glow,
.voiceprint-arc {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.voiceprint-grid {
    background:
        repeating-linear-gradient(
            to right,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 40px
        );
    opacity: 0.7;
}

.theme-light .voiceprint-grid {
    background:
        repeating-linear-gradient(
            to right,
            rgba(166, 124, 61, 0.08) 0,
            rgba(166, 124, 61, 0.08) 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(166, 124, 61, 0.08) 0,
            rgba(166, 124, 61, 0.08) 1px,
            transparent 1px,
            transparent 40px
        );
    opacity: 0.9;
}

.voiceprint-glow {
    background: radial-gradient(circle at center, rgba(201, 169, 97, 0.2), transparent 60%);
    filter: blur(20px);
}

.theme-light .voiceprint-glow {
    background: radial-gradient(circle at center, rgba(166, 124, 61, 0.35), transparent 60%);
}

.voiceprint-arc {
    --arc-scale: 0.8;
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: var(--radius-full);
    transform-origin: center;
}

.theme-light .voiceprint-arc {
    border-color: rgba(166, 124, 61, 0.45);
}

.voiceprint-arc.arc-1 {
    animation: arcSweep 8s ease-in-out infinite;
}

.voiceprint-arc.arc-2 {
    --arc-scale: 0.55;
    opacity: 0.4;
    animation: arcSweep 10s ease-in-out infinite reverse;
}

/* ========================================
   Voiceprint Wave Set - 谱线展示
   ======================================== */
.voiceprint-wave-set {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--spacing-md);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.65));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    min-height: 0;
}

.theme-light .voiceprint-wave-set {
    border: 1px solid rgba(166, 124, 61, 0.25);
    background: linear-gradient(160deg, 
        rgba(250, 248, 242, 0.95), 
        rgba(240, 236, 228, 0.9));
    box-shadow: inset 0 2px 8px rgba(166, 124, 61, 0.1),
                0 0 0 1px rgba(166, 124, 61, 0.15);
}

.voiceprint-wave-set::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent 39px,
            rgba(255, 255, 255, 0.02) 40px,
            rgba(255, 255, 255, 0.02) 40px
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 39px,
            rgba(255, 255, 255, 0.02) 40px,
            rgba(255, 255, 255, 0.02) 40px
        );
    pointer-events: none;
    z-index: 1;
}

.theme-light .voiceprint-wave-set::before {
    background-image: 
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent 39px,
            rgba(166, 124, 61, 0.06) 40px,
            rgba(166, 124, 61, 0.06) 40px
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 39px,
            rgba(166, 124, 61, 0.06) 40px,
            rgba(166, 124, 61, 0.06) 40px
        );
}

/* ========================================
   Wave Item - 谱线项容器
   ======================================== */
.wave-item {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 32px;
}

.wave-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    line-height: 1.2;
    transition: color var(--transition-normal);
    user-select: none;
    text-align: right;
    padding-right: var(--spacing-sm);
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 120px;
}

.wave-item:hover .wave-label,
.wave-item.active .wave-label {
    color: var(--color-accent-gold);
}

.theme-light .wave-label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.theme-light .wave-item:hover .wave-label,
.theme-light .wave-item.active .wave-label {
    color: var(--color-accent-gold);
    font-weight: 600;
}

.wave-item .spectrum-line {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

/* ========================================
   Spectrum Line - 谱线
   ======================================== */
.spectrum-line {
    position: relative;
    height: 1px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    transform-origin: center;
    overflow: visible;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}

.spectrum-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201, 169, 97, 0.4) 15%,
        rgba(201, 169, 97, 0.6) 30%,
        rgba(201, 169, 97, 0.8) 50%,
        rgba(201, 169, 97, 0.6) 70%,
        rgba(201, 169, 97, 0.4) 85%,
        transparent 100%
    );
    transform: translateY(-50%);
    transition: all var(--transition-normal);
}

.spectrum-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--note-position, 50%);
    width: 3px;
    height: 3px;
    background: var(--color-accent-gold);
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
    opacity: 0.6;
    transition: all var(--transition-normal);
    box-shadow: 0 0 4px rgba(201, 169, 97, 0.4);
}

.theme-light .spectrum-line::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(166, 124, 61, 0.5) 15%,
        rgba(166, 124, 61, 0.7) 30%,
        rgba(166, 124, 61, 0.9) 50%,
        rgba(166, 124, 61, 0.7) 70%,
        rgba(166, 124, 61, 0.5) 85%,
        transparent 100%
    );
}

.theme-light .spectrum-line::after {
    background: var(--color-accent-gold);
    box-shadow: 0 0 6px rgba(166, 124, 61, 0.5);
}

.wave-item:hover .spectrum-line::before,
.wave-item.active .spectrum-line::before {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201, 169, 97, 0.5) 10%,
        rgba(201, 169, 97, 0.8) 25%,
        rgba(201, 169, 97, 1) 50%,
        rgba(201, 169, 97, 0.8) 75%,
        rgba(201, 169, 97, 0.5) 90%,
        transparent 100%
    );
    box-shadow: 
        0 0 8px rgba(201, 169, 97, 0.4),
        0 0 16px rgba(201, 169, 97, 0.2);
}

.wave-item:hover .spectrum-line::after,
.wave-item.active .spectrum-line::after {
    width: 5px;
    height: 5px;
    opacity: 1;
    box-shadow: 
        0 0 8px rgba(201, 169, 97, 0.6),
        0 0 16px rgba(201, 169, 97, 0.3);
}

.theme-light .wave-item:hover .spectrum-line::before,
.theme-light .wave-item.active .spectrum-line::before {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(166, 124, 61, 0.6) 10%,
        rgba(166, 124, 61, 0.9) 25%,
        rgba(166, 124, 61, 1) 50%,
        rgba(166, 124, 61, 0.9) 75%,
        rgba(166, 124, 61, 0.6) 90%,
        transparent 100%
    );
    box-shadow: 
        0 0 10px rgba(166, 124, 61, 0.5),
        0 0 20px rgba(166, 124, 61, 0.3);
}

.theme-light .wave-item:hover .spectrum-line::after,
.theme-light .wave-item.active .spectrum-line::after {
    width: 5px;
    height: 5px;
    opacity: 1;
    box-shadow: 
        0 0 10px rgba(166, 124, 61, 0.7),
        0 0 20px rgba(166, 124, 61, 0.4);
}

/* ========================================
   Voiceprint Beats - 节拍按钮
   ======================================== */
.voiceprint-beats {
    display: flex;
    gap: var(--spacing-md);
    justify-content: space-between;
}

.voiceprint-beats span {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(201, 169, 97, 0.35);
    border-radius: var(--radius-full);
    opacity: 0.8;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    background: radial-gradient(circle at 30% 30%, rgba(201, 169, 97, 0.25), rgba(0, 0, 0, 0.6));
}

.voiceprint-beats span::after {
    content: attr(data-audio-note);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--color-text-primary);
}

.voiceprint-beats span:hover,
.voiceprint-beats span.active {
    border-color: var(--color-accent-gold);
    opacity: 1;
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.5);
}

.voiceprint-beats span:active {
    transform: scale(0.95);
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.7);
}

.theme-light .voiceprint-beats span:hover,
.theme-light .voiceprint-beats span.active {
    border-color: var(--color-accent-gold);
    background: rgba(166, 124, 61, 0.2);
    box-shadow: 0 0 24px rgba(166, 124, 61, 0.6),
                0 2px 8px rgba(166, 124, 61, 0.3);
}

.theme-light .voiceprint-beats span:active {
    transform: scale(0.95);
    box-shadow: 0 0 30px rgba(166, 124, 61, 0.8),
                0 2px 12px rgba(166, 124, 61, 0.4);
}

/* ========================================
   Voiceprint Meta - 元信息
   ======================================== */
.voiceprint-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    position: relative;
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.meta-block strong {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-text-primary);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Responsive - Voiceprint Components
   ======================================== */

/* 平板和中等屏幕 (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .intro-voiceprint {
        max-width: 600px;
        margin: 0 auto;
    }

    .voiceprint-frame {
        min-height: 300px;
    }

    .voiceprint-wave-set {
        height: 300px;
    }
}

/* 移动端 (≤768px) */
@media (max-width: 768px) {
    .intro-voiceprint::after,
    .intro-voiceprint::before {
        display: none;
    }

    .voiceprint-frame {
        min-height: 280px;
        padding: var(--spacing-md);
        box-sizing: border-box;
        width: 100%;
    }

    .voiceprint-wave-set {
        height: 300px;
        padding: var(--spacing-md) var(--spacing-sm);
        min-height: 0;
    }

    .wave-item {
        min-height: 28px;
    }

    .wave-label {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        min-width: 100px;
    }

    .voiceprint-beats {
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }

    .voiceprint-beats span {
        width: 48px;
        height: 48px;
    }
    
    .voiceprint-beats span::after {
        font-size: 0.75rem;
    }

    .voiceprint-meta {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    .meta-block {
        text-align: center;
    }

    .meta-block strong {
        font-size: 1.1rem;
    }
}

/* 小屏幕手机 (≤480px) */
@media (max-width: 480px) {
    .voiceprint-frame {
        min-height: 240px;
        padding: var(--spacing-sm);
        box-sizing: border-box;
        width: 100%;
    }

    .voiceprint-wave-set {
        height: 280px;
        padding: var(--spacing-sm);
        min-height: 0;
    }

    .wave-item {
        min-height: 24px;
    }

    .wave-label {
        min-width: 85px;
        font-size: 0.6rem;
        letter-spacing: 0.08em;
        padding-right: var(--spacing-xs);
    }

    .meta-block strong {
        font-size: 1rem;
    }

    .spectrum-line {
        height: 3px;
    }

    .spectrum-line:hover,
    .spectrum-line.active {
        height: 4px;
    }
}

