/* 基础重置和字体设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive, sans-serif;
    background: linear-gradient(135deg, #f5f1eb 0%, #ede7d9 100%);
    min-height: 100vh;
    color: #4a3f36;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* 头部标题和状态栏 */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 30px;
    background: #faf8f3;
    border: 2px solid #e8e1d5;
    border-radius: 15px;
    padding: 25px 35px;
    box-shadow: 0 4px 12px rgba(107, 91, 115, 0.1);
    gap: 25px;
    flex-wrap: wrap;
    position: relative;
    min-height: 120px;
}

/* 标题区域 - 包含标题、关卡和奖励信息 */
.title-section {
    flex: 1.5;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title-section h1 {
    font-size: 1.8rem;
    color: #4a3f36;
    margin-bottom: 8px; /* 减少间距 */
    font-weight: 800;
    line-height: 1.2;
}

/* 标题下方的信息区域 */
.title-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px; /* 进一步减少间距 */
    flex-wrap: wrap;
}

.level-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #4a3f36;
}

.difficulty-indicator {
    font-size: 1rem;
}

/* 奖励统计数据 */
.reward-stats {
    display: flex;
    align-items: center;
    gap: 8px; /* 减少间距 */
    flex-wrap: wrap;
}

.coin-display, .star-display, .streak-display {
    display: flex;
    align-items: center;
    gap: 4px; /* 减少内部间距 */
    font-weight: 700;
    font-size: 0.85rem;
    background: #f3efea;
    padding: 4px 8px; /* 减少内边距 */
    border-radius: 14px; /* 稍微减小圆角 */
    border: 2px solid #e0d7cc;
    box-shadow: 0 2px 4px rgba(107, 91, 115, 0.1);
    transition: all 0.3s ease;
}

.coin-display:hover, .star-display:hover, .streak-display:hover {
    border-color: #c9a876;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(107, 91, 115, 0.15);
}

.coin-icon, .star-icon, .streak-icon {
    font-size: 1rem;
}

/* 挑战目标区域 */
.target-section {
    flex: 1.2; /* 稍微减少比例 */
    text-align: center;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.target-section h3 {
    font-size: 1.1rem;
    color: #5a4e42;
    margin-bottom: 10px;
    font-weight: 700;
}

.target-values {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.target-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 12px;
    background: #f3efea;
    border: 2px solid #e0d7cc;
    border-radius: 8px;
    min-width: 85px;
    transition: all 0.3s ease;
}

.target-item:hover {
    border-color: #8faa96;
    box-shadow: 0 4px 12px rgba(143, 170, 150, 0.2);
    transform: translateY(-2px);
}

.target-item .icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.target-item .label {
    font-size: 0.8rem;
    color: #7d6d5a;
    font-weight: 600;
}

.target-item .value {
    font-size: 1.4rem;
    font-weight: 900;
    color: #5a4e42;
    background: #faf8f3;
    padding: 2px 8px;
    border-radius: 5px;
    border: 2px solid #8faa96;
    box-shadow: 0 2px 8px rgba(143, 170, 150, 0.2);
    min-width: 32px;
}

/* 操作按钮区域 */
.action-section {
    flex: 0.8; /* 减少比例 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    min-width: 200px;
}

/* 移除旧的reward-display相关样式 */

/* 主游戏区域 */
.game-area {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* 左侧控制面板 */
.control-panel {
    background: #faf8f3;
    border: 2px solid #e8e1d5;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(107, 91, 115, 0.08);
}

/* 移除装饰背景 */

.control-panel h3 {
    font-size: 1.4rem;
    color: #5a4e42;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.animal-control {
    margin-bottom: 30px;
    padding: 25px;
    background: #f3efea;
    border: 2px solid #e0d7cc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.animal-control:hover {
    border-color: #c9a876;
    box-shadow: 0 2px 8px rgba(107, 91, 115, 0.1);
    transform: translateY(-2px);
}

.chicken-control {
    border-left: 4px solid #8faa96;
}

.rabbit-control {
    border-left: 4px solid #c7a4b8;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.animal-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.animal-icon {
    font-size: 1.8rem;
}

.animal-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a3f36;
}

.feet-info {
    font-size: 0.9rem;
    color: #6b5f53;
}

.count-display {
    font-size: 2rem;
    font-weight: 900;
    color: #5a4e42;
    min-width: 50px;
    text-align: center;
    background: #faf8f3;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #e8e1d5;
    box-shadow: 0 2px 4px rgba(107, 91, 115, 0.1);
}

.slider-container {
    margin-bottom: 15px;
}

/* 滑块标签样式 */
.slider-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b5f53;
    margin-bottom: 8px;
    text-align: center;
}

/* 滑块样式简化 */
.animal-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0d7cc;
    outline: none;
    appearance: none;
    transition: all 0.3s ease;
}

.animal-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5a4e42;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid #faf8f3;
}

.animal-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.chicken-slider::-webkit-slider-thumb {
    background: #8faa96;
}

.rabbit-slider::-webkit-slider-thumb {
    background: #c7a4b8;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6b5f53;
}

/* 控制提示样式 */
.control-tips {
    margin-top: 10px;
    text-align: center;
}

.control-tips small {
    color: #6b5f53;
    font-size: 0.75rem;
    font-style: italic;
}

.quick-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.quick-btn {
    padding: 8px 12px;
    border: 2px solid #e0d7cc;
    border-radius: 6px;
    background: #f3efea;
    color: #5a4e42;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.quick-btn:hover {
    background: #8faa96;
    color: white;
    border-color: #8faa96;
    transform: translateY(-1px);
}

.quick-btn:active {
    transform: translateY(0);
}

/* 中间计算显示区域 */
.calculation-display {
    background: #faf8f3;
    border: 2px solid #e8e1d5;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(107, 91, 115, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 移除装饰背景 */

.calculation-display h3 {
    font-size: 1.4rem;
    color: #5a4e42;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.equation-display {
    background: #f3efea;
    border: 2px solid #e0d7cc;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(107, 91, 115, 0.1);
}

.equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

.equation:last-child {
    margin-bottom: 0;
}

.label {
    color: #6b5f53;
    min-width: 80px;
}

.chicken-part {
    color: #8faa96;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rabbit-part {
    color: #c7a4b8;
}

.operator {
    color: #7d6d5a;
    font-weight: bold;
}

.equals {
    color: #7d6d5a;
    font-weight: bold;
    font-size: 1.2rem;
}

.result {
    background: #faf8f3;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #d4b896;
    box-shadow: 0 2px 4px rgba(212, 184, 150, 0.2);
    color: #5a4e42;
    font-weight: 900;
    min-width: 60px;
    text-align: center;
}

/* 状态指示器 */
.status-indicators {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px;
    background: #f3efea;
    border: 2px solid #e0d7cc;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(107, 91, 115, 0.15);
}

.status-icon {
    font-size: 1.5rem;
}

.status-text {
    font-size: 0.9rem;
    color: #6b5f53;
    font-weight: 600;
}

.status-value {
    font-size: 1.3rem;
    font-weight: 900;
    color: #5a4e42;
}

.status-correct {
    border-color: #8faa96;
    background: rgba(143, 170, 150, 0.1);
}

.status-too-high {
    border-color: #d4b896;
    background: rgba(212, 184, 150, 0.1);
}

.status-too-low {
    border-color: #c7a4b8;
    background: rgba(199, 164, 184, 0.1);
}

.status-waiting {
    border-color: #9b96c4;
    background: rgba(155, 150, 196, 0.1);
}

.overall-feedback {
    background: #f3efea;
    border: 2px solid #e0d7cc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.overall-feedback:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(107, 91, 115, 0.15);
}

.feedback-icon {
    font-size: 1.5rem;
}

.feedback-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #5a4e42;
}

.feedback-success {
    border-color: #8faa96;
    background: rgba(143, 170, 150, 0.1);
}

.feedback-warning {
    border-color: #d4b896;
    background: rgba(212, 184, 150, 0.1);
}

.feedback-info {
    border-color: #9b96c4;
    background: rgba(155, 150, 196, 0.1);
}

/* 右侧可视化显示 */
.visual-display {
    background: #faf8f3;
    border: 2px solid #e8e1d5;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(107, 91, 115, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visual-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #8faa96, #c7a4b8);
    border-radius: 15px 15px 0 0;
}

.visual-display h3 {
    font-size: 1.4rem;
    color: #5a4e42;
    text-align: center;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.animal-group {
    margin-bottom: 20px;
}

.animal-group h4 {
    font-size: 1.1rem;
    color: #6b5f53;
    margin-bottom: 10px;
    font-weight: 600;
}

.animals-container {
    background: #f3efea;
    border: 2px solid #e0d7cc;
    border-radius: 10px;
    padding: 15px;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
    max-height: 200px;
    overflow-y: auto;
}

.animals-container:hover {
    background: rgba(143, 170, 150, 0.05);
    border-color: #c9a876;
}

.animal-icon-small {
    display: inline-block;
    font-size: 1.5rem;
    margin: 2px;
    opacity: 0;
    transform: scale(0);
    animation: animalAppear 0.6s ease-out forwards;
    -webkit-animation: animalAppear 0.6s ease-out forwards;
    -moz-animation: animalAppear 0.6s ease-out forwards;
    vertical-align: middle;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

@keyframes animalAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
        -webkit-transform: scale(0) rotate(-180deg);
        -moz-transform: scale(0) rotate(-180deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.2) rotate(-10deg);
        -webkit-transform: scale(1.2) rotate(-10deg);
        -moz-transform: scale(1.2) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        -webkit-transform: scale(1) rotate(0deg);
        -moz-transform: scale(1) rotate(0deg);
    }
}

@-webkit-keyframes animalAppear {
    0% {
        opacity: 0;
        -webkit-transform: scale(0) rotate(-180deg);
    }
    60% {
        opacity: 1;
        -webkit-transform: scale(1.2) rotate(-10deg);
    }
    100% {
        opacity: 1;
        -webkit-transform: scale(1) rotate(0deg);
    }
}

@-moz-keyframes animalAppear {
    0% {
        opacity: 0;
        -moz-transform: scale(0) rotate(-180deg);
    }
    60% {
        opacity: 1;
        -moz-transform: scale(1.2) rotate(-10deg);
    }
    100% {
        opacity: 1;
        -moz-transform: scale(1) rotate(0deg);
    }
}

/* 空容器状态 */
.animals-container:empty::before {
    content: "暂无动物";
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
}

/* 大屏幕下的动物图标优化 */
@media (min-width: 1200px) {
    .animal-icon-small {
        font-size: 1.8rem;
        margin: 4px;
    }
    
    .animals-container {
        padding: 20px;
        min-height: 80px;
        gap: 10px;
    }
}

@media (min-width: 1920px) {
    .animal-icon-small {
        font-size: 2rem;
        margin: 5px;
    }
}

/* 学习提示区域 */
.learning-tips {
    background: #f3efea;
    border: 2px solid #e0d7cc;
    border-radius: 12px;
    padding: 20px;
    margin-top: auto;
}

.learning-tips h4 {
    font-size: 1.1rem;
    color: #5a4e42;
    margin-bottom: 10px;
    font-weight: 600;
}

.tip-content {
    font-size: 0.95rem;
    color: #6b5f53;
    line-height: 1.5;
}

/* 控制按钮 */
.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap; /* 改为不换行 */
    align-items: center;
}

.btn {
    padding: 12px 20px; /* 稍微减少内边距 */
    border: none;
    border-radius: 25px;
    font-size: 0.95rem; /* 稍微减小字体 */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    color: white;
    box-shadow: 0 2px 8px rgba(107, 91, 115, 0.2);
    white-space: nowrap; /* 防止文字换行 */
    min-width: auto; /* 移除最小宽度限制 */
}

.btn-primary {
    background: linear-gradient(135deg, #8faa96, #7a9584);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7a9584, #6b8973);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 170, 150, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #d4b896, #c9a876);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #c9a876, #be9d66);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 184, 150, 0.3);
}

.btn-hint {
    background: linear-gradient(135deg, #9b96c4, #8680b8);
}

.btn-hint:hover {
    background: linear-gradient(135deg, #8680b8, #7b75ac);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 150, 196, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #c7a4b8, #b794a8);
}

.btn-info:hover {
    background: linear-gradient(135deg, #b794a8, #a78498);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 164, 184, 0.3);
}

.btn-help {
    background: linear-gradient(135deg, #a8c4a2, #92b08c);
}

.btn-help:hover {
    background: linear-gradient(135deg, #92b08c, #82a07c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 196, 162, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    font-weight: 800;
    border: 2px solid #e65100;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.4);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    border-color: #d84315;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.5);
    color: white;
}

.btn-warning:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(107, 91, 115, 0.2);
}

/* 成功模态框和帮助模态框 */
.success-modal, .help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 63, 54, 0.8);
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 显示模态框的样式 */
.success-modal.show, .help-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.success-modal.show .modal-content, 
.help-modal.show .modal-content {
    transform: scale(1);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content {
    background: #faf8f3;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: 2px solid #e8e1d5;
    box-shadow: 0 10px 30px rgba(107, 91, 115, 0.3);
}

.help-content {
    max-width: 600px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #636e72;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #e17055;
}

.modal-content h2 {
    text-align: center;
    color: #e17055;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.celebration {
    text-align: center;
    font-size: 2rem;
    margin: 20px 0;
    animation: bounce 1s infinite;
}

.solution-summary, .reward-summary {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.solution-item, .reward-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.solution-icon, .reward-icon {
    font-size: 1.5rem;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.help-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.help-section h3 {
    color: #e17055;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.help-section ul {
    list-style: none;
    padding-left: 0;
}

.help-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #636e72;
    line-height: 1.5;
}

.help-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00b894;
    font-weight: bold;
}

/* 动画定义 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .game-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculation-display {
        order: 1;
    }
    
    .control-panel {
        order: 2;
    }
    
    .visual-display {
        order: 3;
    }
    
    .controls-area {
        order: 4;
        margin-top: 20px;
    }
}

/* 中等屏幕优化 (769px - 1199px) */
@media (max-width: 1199px) and (min-width: 769px) {
    .game-header {
        gap: 20px;
        padding: 22px 30px;
    }
    
    .title-section {
        flex: 1.4;
        min-width: 320px;
    }
    
    .target-section {
        flex: 1.1;
        min-width: 280px;
    }
    
    .action-section {
        flex: 0.7;
        min-width: 180px;
    }
    
    .title-section h1 {
        font-size: 1.9rem;
    }
    
    .target-section h3 {
        font-size: 1.05rem;
    }
    
    .target-item .value {
        font-size: 1.35rem;
    }
    
    .coin-display, .star-display, .streak-display {
        font-size: 0.82rem;
        padding: 5px 9px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .game-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 18px;
        min-height: auto;
    }
    
    .title-section {
        text-align: center;
        min-width: auto;
        flex: none;
    }
    
    .title-info {
        flex-direction: column;
        gap: 8px; /* 减少间距 */
        align-items: center;
    }
    
    .reward-stats {
        justify-content: center;
        gap: 6px; /* 减少间距 */
    }
    
    .target-section {
        min-width: auto;
        flex: none;
    }
    
    .action-section {
        min-width: auto;
        flex: none;
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    
    .target-values {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .title-section h1 {
        font-size: 1.7rem;
        margin-bottom: 6px; /* 减少间距 */
    }

    .target-section h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .target-item {
        min-width: 80px;
        padding: 6px 10px;
    }

    .target-item .value {
        font-size: 1.3rem;
        padding: 2px 6px;
    }

    .coin-display, .star-display, .streak-display {
        font-size: 0.8rem;
        padding: 3px 6px; /* 减少内边距 */
    }

    .level-info {
        font-size: 0.9rem;
        gap: 6px;
    }

    .equation {
        font-size: 1rem;
        flex-wrap: wrap;
        gap: 8px;
    }

    .controls {
        flex-wrap: wrap;
        gap: 12px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 120px;
    }

    .controls-area {
        margin-top: 20px;
    }

    .calculation-display .learning-tips {
        padding: 15px;
    }

    .calculation-display .learning-tips h4 {
        font-size: 1.1rem;
    }

    .calculation-display .learning-tips .tip-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .game-header {
        padding: 15px;
        gap: 10px; /* 减少间距 */
    }
    
    .title-section h1 {
        font-size: 1.5rem;
        margin-bottom: 6px; /* 保持紧凑 */
    }
    
    .title-info {
        gap: 6px; /* 减少间距 */
    }
    
    .target-section h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .target-values {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .target-item {
        min-width: 75px;
        padding: 5px 8px;
    }

    .target-item .icon {
        font-size: 1.2rem;
    }

    .target-item .label {
        font-size: 0.75rem;
    }

    .target-item .value {
        font-size: 1.2rem;
        padding: 2px 6px;
        min-width: 28px;
    }

    .reward-stats {
        flex-wrap: wrap;
        gap: 4px; /* 减少间距 */
    }

    .coin-display, .star-display, .streak-display {
        font-size: 0.75rem;
        padding: 2px 5px; /* 进一步减少内边距 */
        gap: 3px;
    }

    .coin-icon, .star-icon, .streak-icon {
        font-size: 0.9rem;
    }

    .level-info {
        font-size: 0.85rem;
        gap: 5px; /* 减少间距 */
    }

    .difficulty-indicator {
        font-size: 0.9rem;
    }

    .action-section {
        flex-direction: column;
        gap: 8px;
    }

    .animals-container {
        gap: 8px;
    }

    .animal-icon-small {
        font-size: 1.8rem;
    }

    .modal-content {
        padding: 20px;
        margin: 10px;
    }

    .controls {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        flex: none;
        min-width: auto;
        width: 100%;
    }

    .controls-area {
        padding: 15px;
    }
}

/* 触控设备优化 */
@media (hover: none) and (pointer: coarse) {
    .animal-slider::-webkit-slider-thumb {
        width: 30px;
        height: 30px;
    }
    
    .quick-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
}

/* 新增动画效果样式 */

/* 数值变化动画 */
.value-changing {
    animation: valueChange 0.3s ease-in-out;
    transform-origin: center;
}

@keyframes valueChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #FFD700; }
    100% { transform: scale(1); }
}

/* 数字飞行效果 */
.number-fly-effect {
    position: fixed;
    font-weight: bold;
    font-size: 1.2em;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.8s ease-out;
}

/* 按钮点击动画 */
.button-clicked {
    animation: buttonClick 0.2s ease-in-out;
    transform-origin: center;
}

@keyframes buttonClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); background-color: #4CAF50; }
    100% { transform: scale(1); }
}

/* 按钮拒绝动画 */
.button-rejected {
    animation: buttonReject 0.3s ease-in-out;
}

@keyframes buttonReject {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); background-color: #FF5722; }
    75% { transform: translateX(5px); background-color: #FF5722; }
}

/* 按钮按压效果 */
.quick-btn.pressed {
    transform: scale(0.95);
    background-color: #FF9800;
    transition: all 0.1s ease;
}

/* 进度条样式 */
.progress-container {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.progress-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    gap: 10px;
}

.progress-label {
    min-width: 80px;
    font-weight: bold;
    color: #333;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.heads-progress {
    background: linear-gradient(45deg, #2196F3, #42A5F5);
}

.feet-progress {
    background: linear-gradient(45deg, #FF9800, #FFB74D);
}

.progress-text {
    min-width: 50px;
    text-align: center;
    font-weight: bold;
    color: #666;
}

/* 特殊线索样式 */
.special-clue {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.special-clue h4 {
    margin: 0 0 10px 0;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.special-clue p {
    margin: 5px 0;
    font-size: 1.1em;
}

/* 设置弹窗样式 */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.settings-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.settings-section {
    margin: 20px 0;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.settings-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 8px 0;
}

.setting-item label {
    font-weight: bold;
    color: #555;
}

.setting-item input[type="checkbox"] {
    transform: scale(1.5);
}

.setting-item input[type="range"] {
    width: 150px;
    margin: 0 10px;
}

/* 学习报告样式 */
.report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.report-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.report-section {
    margin: 25px 0;
    padding: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.report-section h3 {
    margin: 0 0 15px 0;
    color: #1976d2;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.level-progress {
    display: grid;
    gap: 10px;
}

.level-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.level-item.completed {
    border-left: 4px solid #4CAF50;
}

.level-item.locked {
    border-left: 4px solid #ccc;
    opacity: 0.6;
}

.level-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1976d2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.level-name {
    flex: 1;
    font-weight: bold;
}

.level-type {
    padding: 4px 8px;
    background: #e3f2fd;
    border-radius: 12px;
    font-size: 0.8em;
    color: #1976d2;
}

.learning-advice p {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    border-radius: 4px;
}

/* 反馈消息样式增强 */
.learning-tips.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.learning-tips.warning {
    background: linear-gradient(135deg, #FF9800, #f57c00);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.learning-tips.hint {
    background: linear-gradient(135deg, #2196F3, #1976d2);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.learning-tips.info {
    background: linear-gradient(135deg, #00BCD4, #0097a7);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

/* 滑块增强样式 */
.animal-slider::-webkit-slider-thumb {
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.animal-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.animal-slider::-webkit-slider-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .game-area {
        flex-direction: column;
        gap: 20px;
    }
    
    .control-panel,
    .calculation-display,
    .visual-display {
        width: 100%;
        min-width: auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-item {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .progress-label {
        min-width: auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .quick-controls {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 可访问性增强 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .progress-fill {
        border: 1px solid #000;
    }
    
    .status-correct {
        background: #008000 !important;
        color: #fff !important;
    }
    
    .status-too-high,
    .status-too-low {
        background: #ff0000 !important;
        color: #fff !important;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .container {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .game-header,
    .target-display,
    .control-panel,
    .calculation-display,
    .visual-display {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .settings-content,
    .report-content {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .progress-container {
        background: #3d3d3d;
    }
    
    .progress-bar {
        background: #555;
    }
}

/* 打印样式 */
@media print {
    .controls,
    .success-modal,
    .help-modal,
    .settings-modal,
    .report-modal {
        display: none !important;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }
}

/* ========== 大屏幕优化样式 - 简化版 ========== */

/* 超大屏幕优化 (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 40px;
    }
    
    /* 标题区域 */
    .game-header h1 {
        font-size: 3.2rem;
        font-weight: 900;
    }
    
    .subtitle, .level-text {
        font-size: 1.6rem;
    }
    
    .difficulty-indicator {
        font-size: 1.8rem;
    }
    
    /* 目标显示 */
    .target-card h3 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .target-item .icon {
        font-size: 3rem;
    }
    
    .target-item .label {
        font-size: 1.4rem;
    }
    
    .target-item .value {
        font-size: 3.2rem;
        font-weight: 900;
    }
    
    /* 控制面板 */
    .control-panel h3, .calculation-display h3, .visual-display h3 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .animal-name {
        font-size: 1.6rem;
    }
    
    .animal-icon {
        font-size: 2.5rem;
    }
    
    .count-display {
        font-size: 2.8rem;
        padding: 12px 20px;
    }
    
    /* 等式和结果 */
    .equation {
        font-size: 1.6rem;
        margin: 20px 0;
    }
    
    .result {
        font-size: 2rem;
        padding: 8px 16px;
    }
    
    .status-text {
        font-size: 1.2rem;
    }
    
    .status-value {
        font-size: 1.2rem;
    }
    
    /* 按钮 */
    .btn {
        font-size: 1.2rem;
        padding: 16px 32px;
    }
    
    .quick-btn {
        font-size: 1rem;
        padding: 10px 14px;
    }
    
    /* 动物图标 */
    .animal-icon-small {
        font-size: 2rem;
    }
    
    /* 学习提示 */
    .learning-tips h4 {
        font-size: 1.4rem;
    }
    
    .tip-content {
        font-size: 1.2rem;
        line-height: 1.8;
    }
}

/* 大屏幕优化 (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1400px;
        padding: 30px;
    }
    
    .game-header h1 {
        font-size: 2.8rem;
        font-weight: 900;
    }
    
    .subtitle, .level-text {
        font-size: 1.4rem;
    }
    
    .target-card h3 {
        font-size: 1.9rem;
    }
    
    .target-item .value {
        font-size: 2.8rem;
        font-weight: 900;
    }
    
    .control-panel h3, .calculation-display h3, .visual-display h3 {
        font-size: 1.7rem;
    }
    
    .count-display {
        font-size: 2.4rem;
        padding: 10px 18px;
    }
    
    .equation {
        font-size: 1.4rem;
    }
    
    .result {
        font-size: 1.8rem;
    }
    
    .btn {
        font-size: 1.1rem;
        padding: 14px 28px;
    }
    
    .animal-icon-small {
        font-size: 1.8rem;
    }
}

/* 中大屏幕优化 (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .container {
        padding: 25px;
    }
    
    .game-header h1 {
        font-size: 2.5rem;
        font-weight: 800;
    }
    
    .subtitle, .level-text {
        font-size: 1.25rem;
    }
    
    .target-card h3 {
        font-size: 1.7rem;
    }
    
    .target-item .value {
        font-size: 2.5rem;
        font-weight: 800;
    }
    
    .control-panel h3, .calculation-display h3, .visual-display h3 {
        font-size: 1.6rem;
    }
    
    .count-display {
        font-size: 2.2rem;
        padding: 8px 16px;
    }
    
    .equation {
        font-size: 1.25rem;
    }
    
    .result {
        font-size: 1.6rem;
    }
    
    .btn {
        font-size: 1.05rem;
        padding: 12px 24px;
    }
    
    .animal-icon-small {
        font-size: 1.7rem;
    }
}

/* 清晰度增强 - 适用于所有大屏幕 */
@media (min-width: 1200px) {
    /* 增强文字对比度 */
    .game-header h1 {
        color: #212529;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .target-item .value {
        color: #495057;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .count-display {
        color: #495057;
        background: #ffffff;
        border: 3px solid #007bff;
        box-shadow: 0 3px 6px rgba(0, 123, 255, 0.2);
    }
    
    .result {
        color: #495057;
        background: #ffffff;
        border: 3px solid #28a745;
        box-shadow: 0 3px 6px rgba(40, 167, 69, 0.2);
    }
    
    /* 增强按钮对比度 */
    .btn {
        font-weight: 800;
        border: 2px solid transparent;
    }
    
    .btn-primary {
        border-color: #0056b3;
    }
    
    .btn-secondary {
        border-color: #545b62;
    }
    
    .btn-hint {
        border-color: #e0a800;
    }
    
    .btn-info {
        border-color: #138496;
    }
    
    .btn-help {
        border-color: #d91a72;
    }
    
    /* 优化大屏幕滑块样式 - 增强操控性 */
    .animal-slider {
        height: 16px; /* 增加轨道高度，提高点击区域 */
        background: #dee2e6;
        border: 2px solid #adb5bd;
        border-radius: 8px;
        cursor: pointer;
        position: relative;
    }
    
    /* 滑块轨道点击区域增强 */
    .animal-slider:hover {
        background: #ced4da;
        border-color: #6c757d;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* 大屏幕滑块拖拽按钮 - 显著增大尺寸 */
    .animal-slider::-webkit-slider-thumb {
        width: 36px; /* 从28px增加到36px */
        height: 36px; /* 从28px增加到36px */
        border: 4px solid #ffffff; /* 增加边框宽度 */
        border-radius: 50%;
        cursor: grab;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
        transition: all 0.2s ease;
        position: relative;
        z-index: 10;
    }
    
    /* 拖拽时的视觉反馈 */
    .animal-slider::-webkit-slider-thumb:active {
        cursor: grabbing;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    /* 悬停时的增强效果 */
    .animal-slider::-webkit-slider-thumb:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    /* 鸡滑块的优化样式 */
    .chicken-slider::-webkit-slider-thumb {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        box-shadow: 0 3px 8px rgba(40, 167, 69, 0.4), 0 1px 3px rgba(40, 167, 69, 0.6);
    }
    
    /* 兔子滑块的优化样式 */
    .rabbit-slider::-webkit-slider-thumb {
        background: linear-gradient(135deg, #e83e8c 0%, #fd7e14 100%);
        box-shadow: 0 3px 8px rgba(232, 62, 140, 0.4), 0 1px 3px rgba(232, 62, 140, 0.6);
    }
    
    /* 滑块容器优化 */
    .slider-container {
        margin-bottom: 20px;
        padding: 5px;
    }
    
    /* 动物控制区域增强 */
    .animal-control {
        padding: 30px 25px;
        margin-bottom: 25px;
    }
    
    /* 滑块标签优化 */
    .slider-labels {
        margin-top: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #495057;
    }
    
    /* 增强卡片边框 */
    .game-header, .target-card, .control-panel, .calculation-display, .visual-display {
        border-width: 3px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* 状态指示器增强 */
    .status-item {
        border-width: 2px;
        padding: 18px;
    }
    
    .status-correct {
        background: #28a745;
        color: white;
        font-weight: 800;
    }
    
    .status-too-high {
        background: #dc3545;
        color: white;
        font-weight: 800;
    }
    
    .status-too-low {
        background: #007bff;
        color: white;
        font-weight: 800;
    }
}

/* 超大屏幕优化 (1920px+) */
@media (min-width: 1920px) {
    /* 超大屏幕下的滑块进一步优化 */
    .animal-slider {
        height: 20px; /* 进一步增加轨道高度 */
        border-width: 3px;
    }
    
    .animal-slider::-webkit-slider-thumb {
        width: 42px; /* 超大屏幕下进一步增大 */
        height: 42px;
        border-width: 5px;
    }
    
    .animal-control {
        padding: 35px 30px;
    }
    
    .slider-container {
        margin-bottom: 25px;
        padding: 8px;
    }
    
    .slider-labels {
        font-size: 1rem;
        margin-top: 10px;
    }
}

/* 键盘控制增强 - 为大屏幕用户添加键盘操控提示 */
@media (min-width: 1200px) {
    .animal-control:focus-within {
        background: #e7f3ff;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    }
    
    .animal-slider:focus {
        outline: none;
        background: #ced4da;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    }
    
    /* 大屏幕下的滑块标签优化 */
    .slider-label {
        font-size: 1rem;
        margin-bottom: 12px;
        color: #495057;
        font-weight: 700;
    }
    
    /* 大屏幕下的控制提示优化 */
    .control-tips {
        margin-top: 15px;
        padding: 8px 12px;
        background: #e9ecef;
        border-radius: 6px;
        border: 1px solid #dee2e6;
    }
    
    .control-tips small {
        font-size: 0.85rem;
        color: #495057;
        font-weight: 500;
    }
    
    /* 动物控制区域在大屏幕下的增强标识 */
    .chicken-control {
        border-left-width: 6px;
        border-left-color: #28a745;
    }
    
    .rabbit-control {
        border-left-width: 6px;
        border-left-color: #e83e8c;
    }
    
    /* 大屏幕下的动物头部区域优化 */
    .animal-header {
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 8px;
        margin-bottom: 20px;
        border: 1px solid #dee2e6;
    }
    
    .animal-header .animal-name {
        font-size: 1.4rem;
        font-weight: 800;
    }
    
    .animal-header .animal-count {
        font-size: 1.8rem;
        font-weight: 900;
        color: #007bff;
        background: #ffffff;
        padding: 4px 12px;
        border-radius: 6px;
        border: 2px solid #007bff;
        min-width: 50px;
        text-align: center;
    }
    
    /* 精确控制增强 */
    .quick-controls {
        gap: 8px;
        margin-top: 15px;
    }
    
    .quick-btn {
        padding: 10px 14px;
        font-size: 1rem;
        font-weight: 700;
        border-width: 2px;
        transition: all 0.2s ease;
    }
    
    .quick-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* 键盘控制提示 */
    .animal-control::after {
        content: "💡 使用 ← → 键精确调节";
        position: absolute;
        top: -8px;
        right: 10px;
        background: #007bff;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        opacity: 0;
        transform: translateY(-5px);
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 1000;
    }
    
    .animal-control {
        position: relative;
    }
    
    .animal-control:focus-within::after {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* 滑块值实时显示增强 */
    .slider-container {
        position: relative;
    }
    
    .slider-container::before {
        content: attr(data-value);
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: #007bff;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 600;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 100;
    }
    
    .slider-container:hover::before,
    .animal-slider:focus + * .slider-container[data-value]::before {
        opacity: 1;
    }
}

/* 大屏幕滑块操控增强动画 */
@media (min-width: 1200px) {
    /* 值更新时的动画效果 */
    .value-updating {
        transform: scale(1.02);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
    }
    
    /* 空值状态样式 */
    .empty-value {
        border-color: #dc3545;
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    }
    
    .empty-value .animal-header {
        background: rgba(220, 53, 69, 0.1);
        border-color: #dc3545;
    }
    
    .empty-value .animal-count {
        color: #dc3545;
        border-color: #dc3545;
        background: rgba(220, 53, 69, 0.05);
    }
    
    /* 滑块容器悬浮提示优化 */
    .slider-container[data-value]::before {
        content: attr(data-value);
        position: absolute;
        top: -35px;
        left: 50%;
        transform: translateX(-50%);
        background: #007bff;
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 700;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1000;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }
    
    .slider-container:hover[data-value]::before,
    .animal-slider:focus + * .slider-container[data-value]::before {
        opacity: 1;
    }
    
    /* 滑块拖拽时的增强效果 */
    .animal-slider:active {
        cursor: grabbing;
    }
    
    .animal-slider:active::-webkit-slider-thumb {
        transform: scale(1.15);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.3);
    }
    
    /* 数值显示区域的动画 */
    .animal-header {
        transition: all 0.3s ease;
    }
    
    .animal-count {
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    /* 焦点状态增强 */
    .animal-control:focus-within .animal-header {
        background: rgba(0, 123, 255, 0.1);
        border-color: #007bff;
    }
    
    .animal-control:focus-within .animal-count {
        color: #007bff;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }
    
    /* 精确控制提示的动画 */
    .control-tips {
        transition: all 0.3s ease;
    }
    
    .animal-control:hover .control-tips,
    .animal-control:focus-within .control-tips {
        background: #d1ecf1;
        border-color: #bee5eb;
        transform: translateY(-2px);
    }
    
    .animal-control:hover .control-tips small,
    .animal-control:focus-within .control-tips small {
        color: #0c5460;
        font-weight: 600;
    }
}

/* 控制按钮区域 - 新的独立区域 */
.controls-area {
    margin-top: 30px;
    background: #faf8f3;
    border: 2px solid #e8e1d5;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(107, 91, 115, 0.08);
}

/* 学习提示在中间位置的样式优化 */
.calculation-display .learning-tips {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #90caf9;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.calculation-display .learning-tips:hover {
    border-color: #42a5f5;
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.2);
    transform: translateY(-2px);
}

.calculation-display .learning-tips h4 {
    font-size: 1.1rem;
    color: #1976d2;
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculation-display .learning-tips .tip-content {
    font-size: 0.95rem;
    color: #1565c0;
    line-height: 1.6;
    font-weight: 500;
}

/* 按钮组样式优化 */
.controls-area .controls {
    max-width: 800px;
    margin: 0 auto;
}

.controls-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #8faa96, #c7a4b8, #9b96c4, #d4b896);
    border-radius: 15px 15px 0 0;
}

.controls-area {
    position: relative;
}

/* 大屏幕下的新布局优化 */
@media (min-width: 1200px) {
    /* 控制按钮区域在大屏幕下的优化 */
    .controls-area {
        margin-top: 40px;
        padding: 30px 40px;
    }
    
    .controls-area .controls {
        gap: 20px;
    }
    
    .controls-area .btn {
        padding: 14px 28px;
        font-size: 1.1rem;
        min-width: 140px;
    }
    
    /* 学习提示在中间位置的大屏幕优化 */
    .calculation-display .learning-tips {
        padding: 25px;
        margin-top: 25px;
        border-width: 3px;
    }
    
    .calculation-display .learning-tips h4 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .calculation-display .learning-tips .tip-content {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    /* 控制按钮区域的装饰增强 */
    .controls-area::before {
        height: 6px;
    }
    
    /* 悬停效果增强 */
    .controls-area:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(107, 91, 115, 0.15);
    }
    
    .controls-area .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }
    
    /* 演示按钮在大屏幕下的特殊优化 */
    .controls-area .btn-warning {
        background: linear-gradient(135deg, #ff9800, #f57c00);
        color: white;
        font-weight: 900;
        font-size: 1.1rem;
        border: 3px solid #e65100;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
        letter-spacing: 0.5px;
    }
    
    .controls-area .btn-warning:hover {
        background: linear-gradient(135deg, #f57c00, #ef6c00);
        border-color: #d84315;
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(255, 152, 0, 0.6);
        color: white;
        font-size: 1.15rem;
    }
}

@media (min-width: 1920px) {
    /* 超大屏幕下的进一步优化 */
    .controls-area {
        margin-top: 50px;
        padding: 40px 50px;
    }
    
    .controls-area .btn {
        padding: 16px 32px;
        font-size: 1.2rem;
        min-width: 160px;
    }
    
    /* 超大屏幕下演示按钮的特殊优化 */
    .controls-area .btn-warning {
        font-size: 1.3rem;
        padding: 18px 36px;
        border-width: 4px;
        letter-spacing: 1px;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
        background: linear-gradient(135deg, #ff9800, #f57c00);
        color: white;
        font-weight: 900;
    }
    
    .controls-area .btn-warning:hover {
        font-size: 1.35rem;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(255, 152, 0, 0.7);
        background: linear-gradient(135deg, #f57c00, #ef6c00);
    }
    
    .calculation-display .learning-tips {
        padding: 30px;
        margin-top: 30px;
    }
    
    .calculation-display .learning-tips h4 {
        font-size: 1.4rem;
    }
    
    .calculation-display .learning-tips .tip-content {
        font-size: 1.2rem;
    }
} 

.calculation-display .learning-tips .tip-content {
    font-size: 1.2rem;
}

/* 超大屏幕下演示按钮的进一步优化 */
.controls-area .btn-warning {
    font-size: 1.3rem;
    padding: 18px 36px;
    border-width: 4px;
    letter-spacing: 1px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.controls-area .btn-warning:hover {
    font-size: 1.35rem;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.7);
}

/* 返回首页按钮样式 */
.btn-home {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(116, 185, 255, 0.3);
    margin-left: 10px;
}

.btn-home:hover {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(116, 185, 255, 0.4);
}

.btn-home:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
}

/* 触控设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn-home {
        padding: 12px 20px;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .btn-home:hover {
        transform: none;
        background: linear-gradient(135deg, #0984e3, #74b9ff);
    }
    
    .btn-home:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, #0984e3, #5a9bd4);
    }
}

/* 版权信息样式 */
.copyright-footer {
    margin-top: 40px;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-info {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.copyright-line {
    font-size: 0.9rem;
    margin: 0;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.copyright-line strong {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.main-copyright {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.developer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.developer-name {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.website-info, .wechat-info {
    font-size: 0.95rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.website-label, .wechat-label {
    color: rgba(255, 255, 255, 0.8);
}

.website-link {
    color: #74b9ff;
    text-decoration: none;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(116, 185, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(116, 185, 255, 0.3);
}

.website-link:hover {
    color: #0984e3;
    background: rgba(116, 185, 255, 0.2);
    border-color: rgba(116, 185, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
}

.wechat-name {
    color: #00b894;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 版权信息移动端适配 */
@media (max-width: 768px) {
    .copyright-footer {
        margin-top: 30px;
        padding: 15px 0;
    }
    
    .copyright-info {
        padding: 15px;
        margin: 0 15px;
        max-width: none;
    }
    
    .copyright-line {
        font-size: 0.85rem;
        line-height: 1.8;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        font-weight: 500;
    }
    
    .website-link {
        padding: 3px 6px;
        font-size: 0.85rem;
    }
}