:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --text-color: #1a1a1a;
    --bg-color: #f8f8f8;
    --border-color: #e0e0e0;
    --hover-shadow: rgba(0, 0, 0, 0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    padding: 20px 30px;
}

/* 行当卡片样式 */
.role-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 40px auto;
    max-width: 900px;
    padding: 0 20px;
}

.role-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    text-align: center;
    position: relative;
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--hover-shadow);
    border-color: #000000;
}

.role-card.selected {
    border: 2px solid var(--primary-color);
}

.role-icon {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 6px solid #000000;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.role-card:hover .role-icon {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.role-card h3 {
    font-size: 24px;
    margin: 15px 0;
    color: var(--text-color);
}

/* 修改角色卡片内容样式 */
.role-intro-text {
    margin-top: 20px;
    padding: 0 10px;
}

.role-intro-text p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.role-types {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.type {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: #333;
    border: 1px solid #e0e0e0;
}

.famous-role {
    font-size: 13px;
    color: #888;
    margin-top: 15px;
}

/* 修改卡片悬停效果 */
.role-card:hover .type {
    background: #000;
    color: white;
    border-color: #000;
}

/* 删除原有的技能条相关样式 */
.skill-bars,
.skill-bar {
    display: none;
}

/* 训练模块样式 */
.training-module {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

/* 修改训练模块布局为垂直堆叠 */
.training-modules {
    display: flex;
    flex-direction: column; /* 设置为垂直方向 */
    gap: 20px;
    padding: 0 20px;
}

/* 节奏游戏样式 */
.rhythm-pattern {
    font-size: 24px;
    margin: 20px 0;
}

.drum-buttons {
    display: flex;
    gap: 10px;
}

.drum-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    background: #000000;
    color: white;
    cursor: pointer;
    transition: transform 0.1s;
}

.drum-btn:active {
    transform: scale(0.95);
}

.drum-btn:hover {
    background: #333333;
}

/* 进度环样式 */
.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
}

.ring {
    stroke: #e0e0e0;
}

.progress {
    stroke: #000000;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
}

/* 身段训练样式 */
.pose-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.pose-demo, .pose-practice {
    flex: 1;
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.pose-demo iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pose-practice {
    background: #f8f8f8;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.pose-instruction {
    margin-bottom: 20px;
    color: #333;
    line-height: 1.6;
}

.pose-instruction p:first-child {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.pose-feedback {
    margin: 10px 0;
    min-height: 24px;
    text-align: center;
    font-weight: bold;
}

#webcam, #pose-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#pose-canvas {
    z-index: 1;
}

.pose-controls {
    margin-top: 20px;
    text-align: center;
}

.primary-btn {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 行头试穿样式 */
.costume-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.costume-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.costume-btn {
    padding: 10px 20px;
    border: 2px solid #000000;
    border-radius: 20px;
    background: transparent;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s;
}

.costume-btn:hover {
    background: #000000;
    color: white;
}

/* 成就系统样式 */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 角色页面头部样式 */
.role-header {
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.role-intro {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.role-avatar {
    width: 120px;  /* 减小图片尺寸 */
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #000;
}

.role-desc {
    flex: 1;
}

.role-desc h2 {
    font-size: 20px;
    margin: 0 0 10px 0;
}

.role-desc p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 训练模块布局已修改为垂直堆叠 */

.training-modules {
    display: flex;
    flex-direction: column; /* 设置为垂直方向 */
    gap: 20px;
    padding: 0 20px;
}

.training-module {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.exercise {
    margin-bottom: 20px;
}

.exercise h4 {
    font-size: 16px;
    margin: 0 0 15px 0;
}

/* 训练控制区样式 */
.training-controls {
    text-align: center;
    margin: 20px 0;
}

.target-note {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 添加姿态训练按钮容器样式 */
.pose-controls {
    text-align: center;
    margin: 20px 0;
}

/* 调整主按钮样式 */
.primary-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 成就系统样式 */
.achievements {
    margin-top: 40px;
    padding: 20px;
}

.achievement-intro {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.achievement-intro p {
    margin: 15px 0;
    line-height: 1.8;
    color: #333;
}

.achievement-intro ul {
    margin: 10px 0 20px 0;
    padding-left: 20px;
}

.achievement-intro li {
    margin: 8px 0;
    line-height: 1.6;
    color: #444;
}

.achievement-intro strong {
    color: var(--primary-color);
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .role-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .role-intro {
        flex-direction: column;
        text-align: center;
    }

    .role-desc {
        text-align: center;
    }

    .training-modules {
        flex-direction: column; /* 保持垂直方向 */
    }

    .pose-container {
        flex-direction: column;
    }
    
    .video-container {
        padding-top: 56.25%; /* 在移动端恢复完整尺寸 */
    }
}

/* 调整声音反馈模块的间距 */
.vocal-feedback {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch;  /* 让子元素填充宽度 */
}

/* 保持原有文字描述样式 */
.exercise p {
    line-height: 1.8;
    margin: 15px 0;
    color: #444;
}

.exercise a {
    display: inline-block;
    margin: 15px 0;
    color: #0066cc;
    text-decoration: none;
}

.exercise a:hover {
    text-decoration: underline;
}

/* 声音反馈样式 */
.vocal-feedback {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pitch-indicator {
    position: relative;
    height: 80px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.needle {
    position: absolute;
    width: 2px;
    height: 100%;
    background: #FF5722;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.1s ease;
}

.target-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: #4CAF50;
    left: 50%;
    transform: translateX(-50%);
}

.volume-meter {
    position: relative;
    height: 80px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.volume-meter .level {
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #ff4444, #ffd700, #00cc00);
    transition: height 0.1s ease;
    position: absolute;
    bottom: 0;
}

.feedback-text {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: var(--primary-color);
}

/* 视频容器样式 */
.video-container {
    position: relative;
    width: 100%;
    max-width: 640px; /* 限制最大宽度 */
    margin: 0 auto; /* 居中显示 */
    padding-top: 36%; /* 16:9 比例的较小版本 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 姿态训练视频布局调整 */
.pose-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.pose-container .video-container {
    flex: 1;
    max-width: 480px; /* 姿态训练视频更小 */
    padding-top: 27%; /* 16:9 比例的更小版本 */
}

.pose-practice {
    flex: 1;
    position: relative;
    max-width: 480px; /* 与视频容器相同宽度 */
    aspect-ratio: 16/9; /* 保持相同比例 */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

#webcam, #pose-canvas {
    width: 100%;
    height: auto;
    transform: scaleX(-1); /* 镜像翻转 */
}

/* 髯口功提示样式 */
.pose-instruction {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    border-radius: 8px;
    z-index: 1;
    max-width: 200px;
}

.pose-instruction p {
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.4;
}

.pose-instruction p:first-child {
    color: #ffd700;
    font-weight: bold;
}

/* 髯口功反馈样式 */
.pose-feedback {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 2;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* 添加加载状态样式 */
.pose-feedback.loading {
    background: rgba(0,0,0,0.8);
    padding: 10px 20px;
    border-radius: 20px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* 把子功介绍样式 */
.weapon-intro {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    margin: 20px 0;
}

.weapon-intro p {
    margin: 15px 0;
    line-height: 1.8;
    color: #333;
}

.weapon-intro ul {
    margin: 10px 0;
    padding-left: 20px;
}

.weapon-intro li {
    margin: 8px 0;
    line-height: 1.6;
    color: #444;
}

.weapon-intro strong {
    color: var(--primary-color);
}

/* 删除旧的成就样式 */
.achievement-list {
    display: none;
}

/* 兰花指训练样式 */
.finger-training {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.training-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
}

.step img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.step-desc {
    flex: 1;
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.step-desc strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.practice-tips {
    margin-top: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.practice-tips h5 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 16px;
}

.practice-tips ul {
    margin: 0;
    padding-left: 20px;
}

.practice-tips li {
    margin: 8px 0;
    color: #444;
    line-height: 1.5;
}

/* 水袖训练样式 */
.sleeve-tips {
    margin-top: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.sleeve-tips h5 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 16px;
}

.sleeve-tips ul {
    margin: 0;
    padding-left: 20px;
}

.sleeve-tips li {
    margin: 10px 0;
    line-height: 1.6;
    color: #444;
}

.sleeve-tips strong {
    color: var(--primary-color);
}

/* 武打训练样式 */
.martial-tips {
    margin-top: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.martial-tips h5 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 16px;
}

.martial-tips ul {
    margin: 0;
    padding-left: 20px;
}

.martial-tips li {
    margin: 10px 0;
    line-height: 1.6;
    color: #444;
}

.martial-tips strong {
    color: var(--primary-color);
}

/* 净行声腔训练样式 */
.vocal-tips {
    margin-top: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.vocal-tips h5 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 16px;
}

.vocal-tips ul {
    margin: 0;
    padding-left: 20px;
}

.vocal-tips li {
    margin: 10px 0;
    line-height: 1.6;
    color: #444;
}

.vocal-tips strong {
    color: var(--primary-color);
}

/* 声腔训练布局优化 */
.vocal-feedback {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch;  /* 让子元素填充宽度 */
}

#jing-spectrum {
    width: 100%;
    height: 120px;  /* 调整频谱图高度 */
    background: #000;
    border-radius: 8px;
    margin-bottom: 30px;
}

.pitch-display {
    display: grid;
    grid-template-columns: 2fr 1fr;  /* 调整音高指示器和音量计的比例 */
    gap: 30px;
    margin: 20px 0;
}

.pitch-indicator {
    position: relative;
    height: 80px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.volume-meter {
    position: relative;
    height: 80px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.feedback-text {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
}

.feedback-text p {
    margin: 8px 0;
    color: #333;
}

/* 调整按钮位置和样式 */
#start-analysis {
    width: 180px;  /* 稍微调窄按钮 */
    margin: 20px auto 10px;
    padding: 12px 0;
    font-weight: 500;  /* 加粗字体 */
}

/* 调整目标音准提示样式 */
.practice-target {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 20px 0;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    font-weight: 500;
}

/* 脸谱绘画区域样式 */
.drawing-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#drawing-canvas {
    width: 100%;
    height: 600px;
    background: white;
    border-radius: 8px;
    cursor: crosshair;
}

.drawing-tools {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    justify-content: center;
}

.tool-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.tool-btn:hover {
    background: var(--primary-color);
    color: white;
}

.tool-btn.active {
    background: var(--primary-color);
    color: white;
}

#color-picker {
    width: 45px;
    height: 45px;
    padding: 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#size-slider {
    flex: 0.5;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 2.5px;
}

#size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.makeup-controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* 颜色选择器样式 */
.color-palette {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 5px;
    background: #fff;
    border-radius: 5px;
}

.color-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--primary-color);
}

#color-picker {
    width: 35px;
    height: 35px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* 保存按钮样式 */
#save-btn {
    background: var(--primary-color);
    color: white;
}

#save-btn:hover {
    background: var(--secondary-color);
}

/* 快板练习样式 */
.rhythm-game {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rhythm-intro {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    line-height: 1.6;
}

.rhythm-display {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.rhythm-pattern {
    font-size: 24px;
    margin-bottom: 15px;
}

.rhythm-text {
    color: #666;
    font-size: 16px;
    margin-right: 10px;
}

.rhythm-beats {
    font-family: monospace;
    color: var(--primary-color);
}

.tempo-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

#tempo-slider {
    width: 200px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 2.5px;
}

#tempo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.rhythm-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.drum-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.drum-btn {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drum-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.drum-btn:active {
    transform: scale(0.95);
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;  /* 使单个按钮居中 */
}

.control-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: #f0f0f0;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
}

.rhythm-feedback {
    position: relative;
    margin-top: 30px;
    text-align: center;
}

.score-display {
    font-size: 18px;
    margin-bottom: 15px;
}

#accuracy {
    color: var(--primary-color);
    font-weight: bold;
}

.visual-feedback {
    position: relative;
    width: 100%;
    height: 100px;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
}

/* 玩法说明样式 */
.gameplay-tips {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.gameplay-tips h5 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 16px;
}

.gameplay-tips ul {
    margin: 0;
    padding-left: 20px;
}

.gameplay-tips ul ul {
    margin: 5px 0;
}

.gameplay-tips li {
    margin: 8px 0;
    color: #444;
    line-height: 1.5;
}

.gameplay-tips strong {
    color: var(--primary-color);
}

/* 控制栏样式 */
.controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
}

.metronome-control {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.metronome-control input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.metronome-control label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}

/* 倒计时样式 */
.countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: bold;
    color: var(--primary-color);
    z-index: 10;
}

.countdown.pulse {
    animation: pulse 0.2s ease-in-out;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* 技能欣赏样式 */
.skill-description {
    margin-top: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.skill-description h5 {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 16px;
}

.skill-description ul {
    margin: 0;
    padding-left: 20px;
}

.skill-description li {
    margin: 8px 0;
    color: #444;
    line-height: 1.5;
}

/* 性格测试入口样式 */
.personality-test {
    text-align: center;
    margin: 30px auto 50px;
    max-width: 500px;
}

.test-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.test-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: var(--primary-color);
    color: white;
}

.test-content {
    text-align: left;
}

.test-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.test-icon {
    font-size: 28px;
}

.test-title {
    font-size: 18px;
    font-weight: bold;
}

.test-desc {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.test-link:hover .test-desc {
    color: rgba(255,255,255,0.8);
}

.test-arrow {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.test-link:hover .test-arrow {
    transform: translateX(5px);
}

/* 返回首页按钮样式 */
.back-home {
    text-align: center;
    margin: 40px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.back-icon {
    font-size: 20px;
    line-height: 1;
}

.back-text {
    font-weight: 500;
}

/* 返回按钮样式 */
.back-button {
    position: fixed;
    top: 0px;
    left: 20px;
    z-index: 1000;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.back-btn:hover {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 删除不需要的样式 */
/* 原代码最后这些样式会导致元素不可见 */
/*
.pose-container,
.pose-demo,
.pose-practice {
    display: none;
} 
*/ 