   .jpq-metronome-template {
        font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
        color: #fff;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        touch-action: manipulation;
        overflow-x: hidden;
    }
    
    .jpq-metronome-template .jpq-container {
        width: 100%;
        max-width: 1000px;
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 15px;
    }
    
    .jpq-metronome-template .jpq-player-card {
        background: rgba(10, 15, 35, 0.85);
        backdrop-filter: blur(12px);
        border-radius: 24px;
        padding: 30px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    /* PC端布局 */
    .jpq-metronome-template .jpq-pc-layout {
        display: flex;
        gap: 40px;
    }
    
    .jpq-metronome-template .jpq-pc-left-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .jpq-metronome-template .jpq-pc-right-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .jpq-metronome-template .jpq-cover-container {
        position: relative;
        width: 100%;
        height: 280px;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        background: linear-gradient(45deg, #2c3e50, #4a6491);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .jpq-metronome-template .jpq-cover-image {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* 节拍器图标样式 */
    .jpq-metronome-icon {
        width: 180px;
        height: 180px;
        position: relative;
        transform-origin: 50% 10%;
    }
    
    .jpq-metronome-icon .jpq-pendulum {
        width: 100%;
        height: 100%;
    }
    
    .jpq-metronome-icon .jpq-base {
        fill: #8c7b6b;
        stroke: #5d4c3c;
        stroke-width: 2;
    }
    
    .jpq-metronome-icon .jpq-body {
        fill: #e0e0e0;
        stroke: #b0b0b0;
        stroke-width: 1;
    }
    
    .jpq-metronome-icon .jpq-weight {
        fill: #c62828;
        stroke: #8e0000;
        stroke-width: 1.5;
        filter: url(#jpq-shadow);
    }
    
    .jpq-metronome-icon .jpq-needle {
        stroke: #333;
        stroke-width: 2;
        stroke-linecap: round;
    }
    
    .jpq-metronome-icon .jpq-pivot {
        fill: #f57c00;
        stroke: #bf360c;
        stroke-width: 1;
    }
    
    /* 节拍器摆动动画 */
    @keyframes jpq-swing {
        0% { transform: rotate(-30deg); }
        50% { transform: rotate(30deg); }
        100% { transform: rotate(-30deg); }
    }
    
    .jpq-metronome-icon.swing {
        animation: jpq-swing 1.2s infinite ease-in-out;
        animation-play-state: running;
    }
    
    .jpq-metronome-template .jpq-controls-container {
        padding: 0 10px;
        flex: 1;
    }
    
    .jpq-metronome-template .jpq-track-info {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .jpq-metronome-template .jpq-track-title {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #fff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .jpq-metronome-template .jpq-track-artist {
        font-size: 1.25rem;
        opacity: 0.8;
        margin-bottom: 5px;
        color: #e0e0e0;
    }
    
    .jpq-metronome-template .jpq-progress-container {
        position: relative;
        height: 8px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        margin-bottom: 30px;
        cursor: pointer;
    }
    
    .jpq-metronome-template .jpq-progress-fill {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #00c9ff, #92fe9d);
        border-radius: 4px;
        transition: width 0.1s linear;
    }
    
    .jpq-metronome-template .jpq-progress-bar {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
        z-index: 10;
    }
    
    .jpq-metronome-template .jpq-time-display {
        display: flex;
        justify-content: space-between;
        margin-bottom: 25px;
        font-size: 1.1rem;
        opacity: 0.85;
        color: #e0e0e0;
    }
    
    .jpq-metronome-template .jpq-main-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .jpq-metronome-template .jpq-control-btn {
        background: rgba(255, 255, 255, 0.12);
        border: none;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .jpq-metronome-template .jpq-control-btn:hover {
        transform: scale(1.05);
        background: rgba(255, 255, 255, 0.2);
    }
    
    .jpq-metronome-template .jpq-control-btn:active {
        transform: scale(0.95);
    }
    
    .jpq-metronome-template .jpq-control-btn i {
        font-size: 24px;
        color: white;
    }
    
    .jpq-metronome-template .jpq-play-btn {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #00c9ff, #92fe9d);
    }
    
    .jpq-metronome-template .jpq-play-btn:hover {
        box-shadow: 0 0 15px rgba(0, 201, 255, 0.6);
    }
    
    .jpq-metronome-template .jpq-play-btn i {
        font-size: 28px;
    }
    
    .jpq-metronome-template .jpq-control-btn.jpq-active {
        background: linear-gradient(135deg, #00c9ff, #92fe9d);
        box-shadow: 0 0 10px rgba(0, 201, 255, 0.6);
    }
    
    .jpq-metronome-template .jpq-control-btn.jpq-active i {
        color: #fff;
    }
    
    .jpq-metronome-template .jpq-music-selector-container {
        position: relative;
        margin-bottom: 25px;
    }
    
    .jpq-metronome-template .jpq-music-selector {
        width: 100%;
        padding: 16px 20px;
        border-radius: 15px;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: white;
        font-size: 1.1rem;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }
    
    .jpq-metronome-template .jpq-selector-icon {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .jpq-metronome-template .jpq-mobile-help {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 15px;
        padding: 16px;
        margin-top: 25px;
        text-align: center;
        animation: jpq-pulse 2s infinite;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    
    @keyframes jpq-pulse {
        0% { box-shadow: 0 0 0 0 rgba(0, 201, 255, 0.5); }
        70% { box-shadow: 0 0 0 12px rgba(0, 201, 255, 0); }
        100% { box-shadow: 0 0 0 0 rgba(0, 201, 255, 0); }
    }
    
    .jpq-metronome-template .jpq-mobile-help i {
        font-size: 1.6rem;
        color: #00c9ff;
    }
    
    .jpq-metronome-template .jpq-mobile-help-text {
        font-size: 1.05rem;
    }
    
    .jpq-metronome-template .jpq-visualizer {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        height: 140px;
        gap: 8px;
        margin-top: 10px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 12px;
        padding: 15px;
    }
    
    .jpq-metronome-template .jpq-bar {
        width: 10px;
        background: linear-gradient(to top, #00c9ff, #92fe9d);
        border-radius: 4px 4px 0 0;
        height: 20px;
        animation: jpq-dance 1.5s infinite alternate;
        animation-delay: calc(var(--i) * 0.1s);
    }
    
    @keyframes jpq-dance {
        0% { height: 20px; }
        50% { height: 80px; }
        100% { height: 40px; }
    }
    
    .jpq-metronome-template .jpq-now-playing {
        display: inline-block;
        background: rgba(0, 201, 255, 0.2);
        color: #00c9ff;
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 1rem;
        margin-top: 8px;
        animation: jpq-blink 1.5s infinite;
    }
    
    @keyframes jpq-blink {
        0% { opacity: 0.6; }
        50% { opacity: 1; }
        100% { opacity: 0.6; }
    }
    
    .jpq-metronome-template .jpq-playlist-info {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 15px;
        padding: 15px;
        margin-top: 20px;
        text-align: center;
        font-size: 1rem;
        opacity: 0.85;
        color: #e0e0e0;
    }
    
    .jpq-metronome-template .jpq-pc-track-list {
        background: rgba(0, 0, 0, 0.4);
        border-radius: 15px;
        padding: 20px;
        max-height: 400px;
        overflow-y: auto;
    }
    
    .jpq-metronome-template .jpq-track-item {
        padding: 12px 15px;
        border-radius: 10px;
        margin-bottom: 8px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .jpq-metronome-template .jpq-track-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .jpq-metronome-template .jpq-track-item.jpq-active {
        background: linear-gradient(90deg, rgba(0, 201, 255, 0.3), rgba(146, 254, 157, 0.3));
        border-left: 4px solid #00c9ff;
    }
    
    .jpq-metronome-template .jpq-track-item .jpq-track-name {
        font-size: 1.1rem;
    }
    
    .jpq-metronome-template .jpq-track-item .jpq-track-duration {
        font-size: 0.9rem;
        opacity: 0.7;
    }
    
    .jpq-metronome-template .jpq-mode-controls {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .jpq-metronome-template .jpq-mode-btn {
        background: rgba(255, 255, 255, 0.12);
        border: none;
        padding: 8px 20px;
        border-radius: 20px;
        color: white;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .jpq-metronome-template .jpq-mode-btn.jpq-active {
        background: linear-gradient(135deg, #00c9ff, #92fe9d);
        box-shadow: 0 0 8px rgba(0, 201, 255, 0.4);
    }
    
    /* PC端布局修复 */
    @media (min-width: 769px) {
        .jpq-metronome-template .jpq-mobile-help {
            display: none;
        }
        
        .jpq-metronome-template .jpq-pc-layout {
            display: flex;
        }
        
        .jpq-metronome-template .jpq-visualizer {
            margin-top: 0;
        }
        
        .jpq-metronome-template .jpq-playlist-info {
            margin-top: 25px;
        }
        
        /* 修复PC端控制栏布局 */
        .jpq-metronome-template .jpq-main-controls {
            gap: 15px;
            margin-bottom: 25px;
            position: relative;
        }
        
        .jpq-metronome-template .jpq-play-btn {
            width: 70px;
            height: 70px;
            margin: 0 5px;
        }
        
        .jpq-metronome-template .jpq-control-btn {
            width: 55px;
            height: 55px;
        }
        
        .jpq-metronome-template .jpq-mode-controls {
            margin-bottom: 15px;
        }
        
        .jpq-metronome-template .jpq-track-info {
            margin-bottom: 20px;
        }
        
        .jpq-metronome-template .jpq-time-display {
            margin-bottom: 20px;
        }
        
        .jpq-metronome-template .jpq-progress-container {
            margin-bottom: 25px;
        }
        
        /* 确保所有控制元素垂直对齐 */
        .jpq-metronome-template .jpq-controls-container > * {
            width: 100%;
        }
    }
    
    /* 移动端优化 */
    @media (max-width: 768px) {
        .jpq-metronome-template .jpq-container {
            padding: 10px;
            max-width: 100%;
            height: 100vh;
            justify-content: center;
        }
        
        .jpq-metronome-template .jpq-player-card {
            padding: 20px 15px;
            width: 100%;
            max-height: 95vh;
            overflow-y: auto;
        }
        
        /* 移动端隐藏封面区域 */
        .jpq-metronome-template .jpq-cover-container {
            display: none;
        }
        
        .jpq-metronome-template .jpq-track-info {
            margin-bottom: 15px;
        }
        
        .jpq-metronome-template .jpq-track-title {
            font-size: 1.5rem;
        }
        
        .jpq-metronome-template .jpq-progress-container {
            margin-bottom: 20px;
        }
        
        .jpq-metronome-template .jpq-time-display {
            margin-bottom: 15px;
            font-size: 0.95rem;
        }
        
        .jpq-metronome-template .jpq-main-controls {
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .jpq-metronome-template .jpq-control-btn {
            width: 50px;
            height: 50px;
        }
        
        .jpq-metronome-template .jpq-play-btn {
            width: 70px;
            height: 70px;
        }
        
        .jpq-metronome-template .jpq-play-btn i {
            font-size: 24px;
        }
        
        .jpq-metronome-template .jpq-mobile-help {
            margin-top: 15px;
            padding: 12px;
            font-size: 0.95rem;
            display: flex;
        }
        
        .jpq-metronome-template .jpq-visualizer {
            height: 100px;
            margin-top: 0;
        }
        
        .jpq-metronome-template .jpq-playlist-info {
            margin-top: 15px;
            padding: 12px;
        }
        
        .jpq-metronome-template .jpq-pc-layout {
            display: block;
        }
        
        .jpq-metronome-template .jpq-pc-track-list {
            display: none;
        }
        
        .jpq-metronome-template .jpq-mode-controls {
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .jpq-metronome-template .jpq-mode-btn {
            padding: 6px 12px;
            font-size: 0.85rem;
        }
    }
    
    /* iPhone 12 特别优化 */
    @media only screen 
        and (device-width: 390px) 
        and (device-height: 844px) 
        and (-webkit-device-pixel-ratio: 3) { 
        .jpq-metronome-template .jpq-track-title {
            font-size: 1.4rem;
        }
        
        .jpq-metronome-template .jpq-main-controls {
            gap: 12px;
        }
        
        .jpq-metronome-template .jpq-visualizer {
            height: 90px;
        }
    }
    
    /* SVG阴影效果 */
    filter#jpq-shadow {
        <filter id="jpq-shadow" x="-20%" y="-20%" width="140%" height="140%">
            <feGaussianBlur in="SourceAlpha" stdDeviation="3" />
            <feOffset dx="2" dy="2" result="offsetblur" />
            <feFlood flood-color="rgba(0,0,0,0.5)" />
            <feComposite in2="offsetblur" operator="in" />
            <feMerge>
                <feMergeNode />
                <feMergeNode in="SourceGraphic" />
            </feMerge>
        </filter>
    }
