/* 分数应用页面样式 */
.application-section {
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.application-section h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.app-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.app-image {
    font-size: 3rem;
    margin-right: 1.5rem;
    min-width: 80px;
    text-align: center;
}

.app-content {
    flex: 1;
}

.app-content h3 {
    color: #34495e;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.app-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.fraction {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 披萨演示样式 */
.pizza-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
}

.pizza-slice {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff9a56, #ff6b35);
    border: 2px solid #e67e22;
    border-radius: 50%;
    margin: 2px;
    text-align: center;
    line-height: 36px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pizza-slice.selected {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.demo-controls {
    margin: 1rem 0;
    text-align: center;
}

.demo-controls button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.demo-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.result {
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* 蛋糕演示样式 */
.cake-demo {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.cake {
    display: flex;
    width: 200px;
    height: 50px;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    border-radius: 25px;
    overflow: hidden;
}

.cake-piece {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-right: 1px solid #d68910;
    font-size: 0.9rem;
}

.cake-piece:last-child {
    border-right: none;
}

/* 时钟演示样式 */
.time-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
}

.clock {
    width: 120px;
    height: 120px;
    border: 4px solid #34495e;
    border-radius: 50%;
    position: relative;
    background: white;
    margin-bottom: 1rem;
}

.hour-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 30px;
    background: #34495e;
    transform-origin: bottom center;
    transform: translateX(-50%) translateY(-100%);
}

.minute-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 40px;
    background: #e74c3c;
    transform-origin: bottom center;
    transform: translateX(-50%) translateY(-100%);
}

.time-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.time-labels span {
    position: absolute;
    font-weight: bold;
    color: #34495e;
}

.time-labels span:nth-child(1) { top: 10px; left: 50%; transform: translateX(-50%); }
.time-labels span:nth-child(2) { top: 50%; right: 10px; transform: translateY(-50%); }
.time-labels span:nth-child(3) { bottom: 10px; left: 50%; transform: translateX(-50%); }
.time-labels span:nth-child(4) { top: 50%; left: 10px; transform: translateY(-50%); }

.time-controls {
    text-align: center;
}

.time-controls button {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.time-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 测量演示样式 */
.measurement-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
}

.ruler {
    display: flex;
    width: 300px;
    height: 60px;
    background: linear-gradient(90deg, #ecf0f1, #bdc3c7);
    border: 2px solid #95a5a6;
    border-radius: 8px;
    position: relative;
    margin-bottom: 1rem;
}

.ruler-mark {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #2c3e50;
    position: relative;
}

.ruler-mark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #34495e;
}

.measurement-info {
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

/* 金钱演示样式 */
.money-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
}

.coins {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.coin {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    border: 3px solid #d68910;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b4513;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coin:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.money-calculator {
    text-align: center;
}

.money-calculator input {
    padding: 0.5rem;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    margin-right: 0.5rem;
    font-size: 1rem;
    width: 100px;
}

.money-calculator button {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.money-calculator button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 篮球演示样式 */
.basketball-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
}

.basket {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ball {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ball[data-status="hit"] {
    color: #27ae60;
    transform: scale(1.1);
}

.ball[data-status="miss"] {
    color: #e74c3c;
    opacity: 0.6;
}

.game-stats {
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

.game-stats p {
    margin: 0.5rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-card {
        flex-direction: column;
        text-align: center;
    }
    
    .app-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .pizza-slice {
        width: 30px;
        height: 30px;
        line-height: 26px;
        font-size: 0.7rem;
    }
    
    .ruler {
        width: 250px;
    }
    
    .coins {
        gap: 0.5rem;
    }
    
    .coin {
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }
} 