/* 全局样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f3f3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ffb6c1;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #e91e63;
    margin-bottom: 0;
    font-size: 24px;
}

/* 修改导航和用户信息区域 */
.header-content {
    flex: 1;
    text-align: center;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-text {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.auth-buttons {
    display: flex;
    gap: 8px;
}

.auth-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e91e63;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.auth-link:hover {
    background-color: #c2185b;
    transform: scale(1.05);
}

/* 主页样式 */
.seasons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
    margin-bottom: 20px;
}

.season-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.season-card:hover {
    transform: translateY(-5px);
}

.season-image {
    height: 160px;
    overflow: hidden;
}

.season-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.season-title {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #e91e63;
    background-color: #ffb6c1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.season-title:hover {
    background-color: #e91e63;
    color: white;
}

.season-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.season-nav-item {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #ffb6c1;
    color: #e91e63;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.season-nav-item:hover {
    background-color: #e91e63;
    color: white;
}

/* 季列表页样式 */
.back-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #e91e63;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #c2185b;
}

.episodes-list {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.episode-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.episode-item:last-child {
    border-bottom: none;
}

.episode-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.episode-item a:hover {
    background-color: #f5f5f5;
}

.episode-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #ffb6c1;
    color: #e91e63;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

.episode-title {
    flex: 1;
    font-weight: bold;
}

.episode-chinese-title {
    color: #888;
    margin-left: 10px;
}

.locked-episode {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #999;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.lock-icon {
    margin-left: 10px;
}

/* 游戏页样式 */
.game-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.game-instructions {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.game-instructions h2 {
    color: #e91e63;
    margin-bottom: 10px;
}

.word-questions {
    margin-bottom: 30px;
}

.question-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #ffb6c1;
}

.question-sentence {
    font-size: 18px;
    margin-bottom: 10px;
}

.question-hint {
    margin-bottom: 15px;
    color: #666;
    font-style: italic;
}

.hint-label {
    font-weight: bold;
    color: #e91e63;
}

.answer-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.word-input {
    padding: 8px 12px;
    border: 2px solid #ffb6c1;
    border-radius: 5px;
    font-size: 16px;
    flex: 1;
    min-width: 200px;
}

.word-input:focus {
    outline: none;
    border-color: #e91e63;
}

.feedback {
    margin-top: 5px;
    font-weight: bold;
}

.feedback.correct {
    color: #4caf50;
}

.feedback.incorrect {
    color: #f44336;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.primary-button {
    padding: 10px 20px;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-button:hover {
    background-color: #c2185b;
}

.result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.result-message.success {
    background-color: #e8f5e9;
    color: #4caf50;
    border: 1px solid #a5d6a7;
}

.result-message.error {
    background-color: #ffebee;
    color: #f44336;
    border: 1px solid #ef9a9a;
}

