:root {
    /* 马卡龙色系 */
    --macaron-blue: #AECBFA;
    --macaron-pink: #FAD2E1;
    --macaron-green: #C5E1A5;
    --macaron-yellow: #FFF59D;
    --macaron-purple: #E1BEE7;
    --macaron-orange: #FFCC80;
    
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --card-shadow: 0 8px 16px rgba(0,0,0,0.05);
    --border-radius: 16px;
    --text-primary: #546e7a;
}

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: 'Nunito', 'Segoe UI', sans-serif; /* 圆润字体 */
    min-height: 100vh;
}

/* 柔和的卡片风格 */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    transition: transform 0.3s ease;
}

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

/* 证书颜色标识 */
.cert-card.reading { border-left: 5px solid var(--macaron-orange); background: linear-gradient(to right, #fff, #fff3e0); }
.cert-card.grammar { border-left: 5px solid var(--macaron-yellow); background: linear-gradient(to right, #fff, #fffde7); }
.cert-card.vocab { border-left: 5px solid var(--macaron-green); background: linear-gradient(to right, #fff, #f1f8e9); }
.cert-card.other { border-left: 5px solid var(--macaron-blue); background: linear-gradient(to right, #fff, #e3f2fd); }

/* 按钮美化 */
.btn-macaron {
    border-radius: 20px;
    background: linear-gradient(45deg, var(--macaron-blue), var(--macaron-purple));
    border: none;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
}
.btn-macaron:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(174, 203, 250, 0.5);
}

/* 进度条 */
.progress {
    height: 12px;
    border-radius: 6px;
    background-color: #f0f0f0;
}
.progress-bar {
    background: linear-gradient(90deg, var(--macaron-green), var(--macaron-blue));
}

/* 手机适配优化 */
@media (max-width: 768px) {
    .container { padding: 10px; }
    .card-body { padding: 1rem; }
    h2 { font-size: 1.5rem; }
}

/* 错误惩罚遮罩 */
.penalty-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--border-radius);
    z-index: 10;
    display: none;
}