* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* 爱心动画背景效果 */
.hearts-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    animation: heartFloat 8s infinite ease-in-out;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 20px; }
.heart:nth-child(2) { left: 20%; animation-delay: 1s; font-size: 28px; }
.heart:nth-child(3) { left: 30%; animation-delay: 2s; font-size: 22px; }
.heart:nth-child(4) { left: 40%; animation-delay: 3s; font-size: 26px; }
.heart:nth-child(5) { left: 50%; animation-delay: 4s; font-size: 24px; }
.heart:nth-child(6) { left: 60%; animation-delay: 0.5s; font-size: 30px; }
.heart:nth-child(7) { left: 70%; animation-delay: 1.5s; font-size: 20px; }
.heart:nth-child(8) { left: 80%; animation-delay: 2.5s; font-size: 25px; }
.heart:nth-child(9) { left: 90%; animation-delay: 3.5s; font-size: 22px; }
.heart:nth-child(10) { left: 15%; animation-delay: 5s; font-size: 27px; }

@keyframes heartFloat {
    0% {
        transform: translateY(100vh) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(0.8) rotate(15deg);
    }
    50% {
        transform: translateY(50vh) scale(1) rotate(-10deg);
    }
    90% {
        opacity: 0.8;
        transform: translateY(10vh) scale(1.1) rotate(20deg);
    }
    100% {
        transform: translateY(-10vh) scale(0) rotate(30deg);
        opacity: 0;
    }
}

/* 主页面容器 */
.main-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 屏幕样式 - 只显示主菜单 */
.screen {
    display: none;
}

.screen.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content.game-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #333;
    background: #f0f0f0;
}

/* 场景弹窗样式 */
#scenario-modal .modal-content {
    max-width: 600px;
    background: linear-gradient(135deg, #fff5f5, #fff0f3);
    border: 2px solid #ff8fab;
    border-radius: 15px;
    padding: 0;
    overflow: visible;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.scenario-title {
    color: #d63384;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header {
    background: linear-gradient(135deg, #ff8fab, #ffb3c6);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header .modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scenario-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #5a5a5a;
    margin-bottom: 25px;
    background: rgba(255, 182, 193, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff8fab;
}

.scenario-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding: 15px 0;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 15px 15px;
}

.choice-btn {
    background: linear-gradient(135deg, #ff8fab, #ffb3c6);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.choice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 139, 171, 0.4);
    background: linear-gradient(135deg, #ff7096, #ff9fb5);
}

.choice-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 139, 171, 0.3);
}

.choice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.choice-btn:hover::before {
    left: 100%;
}

/* 主菜单样式 */
#main-menu {
    text-align: center;
    color: white;
}

.title-container {
    margin-bottom: 50px;
}

.game-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 0 4px 16px rgba(255, 255, 255, 0.4);
    }
}

.game-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 2px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.menu-buttons button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.menu-buttons button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 角色创建界面样式 */
.creation-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #c44569;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b9d;
}

.personality-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.personality-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.personality-options label:hover {
    background-color: #f5f5f5;
}

.personality-options input[type="radio"] {
    margin-right: 8px;
    width: auto;
}

/* 按钮样式 */
button {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 角色创建弹窗特定样式 - 放在前面确保被正确应用 */
#character-creation-modal .modal-content {
    max-height: 85vh !important;
}

#character-creation-modal .creation-container {
    padding-bottom: 40px;
    min-height: auto;
}

#character-creation-modal .creation-form {
    padding-bottom: 20px;
}

/* 角色创建弹窗特定按钮样式 */
#character-creation-modal .creation-form button {
    width: 100% !important;
    margin-top: 20px !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%) !important;
    color: white !important;
    border: 2px solid #ff6b9d !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3) !important;
}

#character-creation-modal .creation-form button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4) !important;
}

/* 新手引导弹窗按钮样式 */
#scenario-modal .choice-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px 25px !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 10px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#scenario-modal .choice-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4) !important;
}

/* 游戏界面样式 */
.game-container {
    max-width: 800px;
    margin: 0 auto;
}

.week-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.day-slot {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.day-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #ff6b9d;
}

/* 角色列表样式 */
.character-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.character-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #ff6b9d;
}

.character-portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background-size: cover;
    background-position: center;
}

.character-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.character-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.character-description {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

/* 游戏界面样式 */
.game-container {
    max-width: 100%;
}

.game-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.game-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.week-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#calendar-container h4 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.day-slot {
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.day-slot:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #ff6b9d;
    background: linear-gradient(135deg, #ffe0f0 0%, #e8d5ff 100%);
}

.day-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.day-slot.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e0e0e0;
}

.day-slot span {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.game-controls button {
    padding: 10px 20px;
    font-size: 14px;
}

/* 角色选择样式 */
.character-selection-container h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.character-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.character-card {
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #ff6b9d;
    background: linear-gradient(135deg, #ffe0f0 0%, #e8d5ff 100%);
}

.character-portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.character-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.character-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.character-description {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* 设置界面样式 */
.settings-container {
    max-width: 400px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-weight: 500;
    color: #333;
}

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

.setting-item input[type="checkbox"] {
    width: auto;
}

.danger-button {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
}

.danger-button:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-title {
        font-size: 2.5rem;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
        margin: 10px;
    }
    
    .modal-content.game-modal {
        width: 98%;
        max-height: 95vh;
    }
    
    #character-creation-modal .modal-content {
        max-height: 90vh;
        padding: 15px;
    }
    
    #character-creation-modal .personality-options {
        grid-template-columns: 1fr;
    }
    
    .character-list {
        grid-template-columns: 1fr;
    }
    
    .calendar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-controls button {
        width: 200px;
    }
    
    .week-info {
        flex-direction: column;
        gap: 5px;
    }
}

/* 游戏时间线界面样式 */
.player-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #ff6b9d;
}

.game-stats {
    display: flex;
    gap: 20px;
    font-weight: 500;
    color: #666;
}

.calendar-container {
    margin-bottom: 25px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.day-slot {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.day-slot:hover {
    transform: translateY(-5px);
    border-color: #ff6b9d;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%);
}

.day-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.day-name {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.day-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

.game-controls button {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.game-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* 移动端适配增强 */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .day-slot {
        min-height: 80px;
        padding: 15px 5px;
    }
    
    .day-icon {
        font-size: 20px;
    }
    
    .player-info-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-controls button {
        width: 80%;
        max-width: 250px;
    }
}

/* 全屏游戏界面样式 */
#game-screen {
    display: none;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 2;
}

#game-screen.active {
    display: block;
}

.game-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-title-bar {
    text-align: center;
    margin-bottom: 15px;
}

.game-title-bar h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.player-info-left #player-info {
    font-size: 1.1rem;
    font-weight: 500;
}

.player-info-right .game-stats {
    display: flex;
    gap: 20px;
    font-size: 1rem;
    font-weight: 500;
}

.game-content {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.day-slot {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.day-slot:hover {
    transform: translateY(-5px);
    border-color: #ff6b9d;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%);
}

.day-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.day-slot.completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.day-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.day-icon {
    font-size: 2rem;
    margin: 8px 0;
}

.day-activity {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 5px;
}

.game-status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.status-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.status-card h4 {
    color: #ff6b9d;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-card div {
    margin-bottom: 8px;
    color: #495057;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.game-controls button {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.game-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.btn-save {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.btn-settings {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

.btn-menu {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.btn-next {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .day-slot {
        min-height: 100px;
        padding: 15px 10px;
    }
    
    .day-icon {
        font-size: 1.5rem;
    }
    
    .game-status {
        grid-template-columns: 1fr;
    }
    
    .player-info-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .player-info-right .game-stats {
        gap: 15px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-controls button {
        width: 100%;
        max-width: 300px;
    }

    /* 手机端顶部状态栏样式 */
    .mobile-top-bar {
        display: flex;
        background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
        color: white;
        padding: 10px 15px;
        font-size: 12px;
        overflow-x: auto;
        white-space: nowrap;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .mobile-stats-item {
        display: flex;
        align-items: center;
        margin-right: 15px;
        background: rgba(255, 255, 255, 0.2);
        padding: 5px 10px;
        border-radius: 15px;
        backdrop-filter: blur(10px);
        flex-shrink: 0;
    }
    
    .mobile-stats-item i {
        margin-right: 5px;
    }
    
    /* 隐藏桌面端的游戏状态区域 */
    .game-status {
        display: none;
    }
    
    /* 手机端设置按钮 */
    .mobile-settings-btn {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        z-index: 200;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-settings-btn:hover {
        transform: scale(1.1);
    }
    
    /* 手机端设置弹窗 */
    .mobile-settings-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        display: none;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-settings-modal.active {
        display: flex;
    }
    
    .mobile-settings-content {
        background: white;
        border-radius: 15px;
        padding: 25px;
        margin: 20px;
        max-width: 400px;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .mobile-settings-title {
        text-align: center;
        color: #ff6b9d;
        margin-bottom: 20px;
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .mobile-settings-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-settings-btn-item {
        padding: 15px 20px;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .mobile-settings-btn-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    /* 隐藏桌面端的游戏控制按钮 */
    .game-controls {
        display: none;
    }
    
    /* 调整游戏内容区域 */
    .game-content {
        padding: 15px;
    }
    
    .calendar-container {
        margin-top: 10px;
    }
}

/* 桌面端隐藏手机端元素 */
@media (min-width: 769px) {
    .mobile-top-bar,
    .mobile-settings-btn,
    .mobile-settings-modal {
        display: none !important;
    }
}
