/* ==================== 增强版样式 ==================== */

/* 天气图标 */
.weather-icon {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

/* 清洁度条 */
.bar-fill.hygiene {
    background: #00CEC9;
}

/* 成就面板 */
.achievement-panel {
    max-height: 200px;
    overflow-y: auto;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    background: #FEF9E7;
    border-radius: 8px;
    border-left: 3px solid #FDCB6E;
}

.achievement-item.locked {
    opacity: 0.5;
    background: #F5F6FA;
    border-left-color: #DFE6E9;
}

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

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.achievement-desc {
    font-size: 0.75rem;
    color: #636E72;
}

/* 商店界面 */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.shop-item {
    background: #F5F6FA;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.shop-item:hover {
    background: #E8EAF6;
    border-color: #6C5CE7;
    transform: translateY(-2px);
}

.shop-item-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.shop-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.shop-item-price {
    color: #E17055;
    font-weight: bold;
    font-size: 0.95rem;
}

.shop-item-desc {
    font-size: 0.75rem;
    color: #636E72;
    margin-top: 0.3rem;
}

.shop-item-effect {
    font-size: 0.75rem;
    color: #00B894;
    margin-top: 0.2rem;
}

.shop-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.shop-tab {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: #F5F6FA;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.shop-tab.active {
    background: #6C5CE7;
    color: white;
}

/* 统计界面 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: #F5F6FA;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6C5CE7;
}

.stat-card-label {
    font-size: 0.85rem;
    color: #636E72;
    margin-top: 0.3rem;
}

/* 成就弹窗 */
.achievement-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #FDCB6E, #F39C12);
    padding: 2rem 3rem;
    border-radius: 16px;
    text-align: center;
    color: white;
    z-index: 9999;
    animation: achievementIn 0.5s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes achievementIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.achievement-toast.hide {
    animation: achievementOut 0.5s ease forwards;
}

@keyframes achievementOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

.achievement-toast-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-toast-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.achievement-toast-name {
    font-size: 1.5rem;
    font-weight: bold;
}

.achievement-toast-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* 对话历史 */
.dialogue-history {
    max-height: 150px;
    overflow-y: auto;
    background: #F5F6FA;
    border-radius: 8px;
    padding: 0.8rem;
    margin-top: 1rem;
}

.dialogue-entry {
    padding: 0.4rem 0;
    border-bottom: 1px solid #DFE6E9;
    font-size: 0.85rem;
}

.dialogue-entry:last-child {
    border-bottom: none;
}

.dialogue-speaker {
    font-weight: 600;
    color: #6C5CE7;
}

.dialogue-text {
    color: #2D3436;
}

/* 关系进度条 */
.relationship-progress {
    margin-top: 0.5rem;
}

.relationship-stage {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #636E72;
    margin-bottom: 0.3rem;
}

.relationship-bar {
    height: 6px;
    background: #DFE6E9;
    border-radius: 3px;
    overflow: hidden;
}

.relationship-fill {
    height: 100%;
    background: linear-gradient(90deg, #74B9FF, #6C5CE7);
    border-radius: 3px;
    transition: width 0.5s;
}

/* 游戏日志 */
.game-log {
    max-height: 100px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #636E72;
}

.log-entry {
    padding: 0.3rem 0;
    border-bottom: 1px solid #F5F6FA;
}

/* 心情表情 */
.mood-indicator {
    display: inline-block;
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

/* 快速操作按钮 */
.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #DFE6E9;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.quick-action-btn:hover {
    background: #6C5CE7;
    color: white;
    border-color: #6C5CE7;
}

/* 通知标记 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: #E17055;
    color: white;
    border-radius: 9px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.icon-btn {
    position: relative;
}

/* 赛季/学期显示 */
.semester-info {
    font-size: 0.75rem;
    color: #636E72;
    margin-top: 0.2rem;
}

/* 游戏提示 */
.game-tip {
    background: #E8F4FD;
    border-left: 3px solid #74B9FF;
    padding: 0.8rem 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #2D3436;
}

.game-tip-icon {
    margin-right: 0.5rem;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #F5F6FA;
    border-top-color: #6C5CE7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式优化 */
@media (max-width: 1024px) {
    .game-right-panel {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* AI生成标识 */
.ai-badge {
    display: inline-block;
    font-size: 0.65rem;
    color: #6C5CE7;
    background: #6C5CE715;
    border: 1px solid #6C5CE740;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 0.5rem;
    vertical-align: middle;
}
