
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-pink: #ff8e8e;
            --secondary-pink: #ffafaf;
            --soft-white: #fff9f9;
            --glass-bg: rgba(255, 255, 255, 0.85);
            --shadow: 0 8px 32px rgba(255, 142, 142, 0.2);
            --accent-color: #ff6b6b;
        }

        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, #ffe9e9 0%, #fff5f5 100%);
            min-height: 100vh;
            padding: 15px;
            color: #444;
            position: relative;
            transition: background 1s ease;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .container {
            width: 100%;
            max-width: 420px;
            height: 850px;
            background: var(--glass-bg);
            border-radius: 40px;
            box-shadow: var(--shadow);
            overflow: hidden;
            position: relative;
            animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 8px solid #333;
            transition: all 1s ease;
        }

        .container.night-mode {
            background: #0a0a1a;
            border-color: #000;
            color: #b0b0b0;
            box-shadow: 0 0 30px rgba(0,0,0,0.8), inset 0 0 100px rgba(0,0,0,0.5);
        }
        .night-mode .header {
            background: linear-gradient(45deg, #1a237e, #311b92) !important;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .night-mode .stat-card {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .night-mode .stat-label { color: #888; }
        .night-mode .event-card {
            background: rgba(15, 15, 25, 0.8);
            color: #ccc;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        .night-mode .choice-btn {
            background: linear-gradient(135deg, #1a237e, #4a148c);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .night-mode .choice-btn:hover {
            background: linear-gradient(135deg, #283593, #6a1b9a);
        }
        .night-mode .feedback {
            background: rgba(0, 0, 0, 0.5);
            color: #aaa;
        }
        .night-mode .game-body {
            background: rgba(0, 0, 0, 0.2);
        }
        .night-mode .mood-avatar {
            background: #1a1a1a;
            border-color: #311b92;
        }
        .night-mode #event-title { color: #fff; }
        .night-mode #event-description { color: #bbb; }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .header {
            background: var(--header-bg, linear-gradient(45deg, #ff6b6b, #ffa500));
            color: white;
            padding: 15px 20px 10px;
            text-align: center;
            position: relative;
            transition: background 0.5s ease;
        }

        .header-actions-left {
            position: absolute;
            top: 12px;
            left: 8px;
            display: flex;
            gap: 8px;
        }

        .header-actions-right {
            position: absolute;
            top: 12px;
            right: 8px;
            display: flex;
            gap: 8px;
        }

        .achievement-btn, .gift-shop-btn, .album-btn, .love-tips-btn {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: white;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            backdrop-filter: blur(5px);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .achievement-btn:hover, .gift-shop-btn:hover, .album-btn:hover, .love-tips-btn:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 6px 15px rgba(0,0,0,0.15);
        }

        .title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 8px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 0.15);
            display: inline-block;
            padding: 2px 12px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(5px);
        }

        .stats {
            display: flex;
            justify-content: space-around;
            background: rgba(255, 255, 255, 0.15);
            padding: 8px;
            border-radius: 15px;
            margin-top: 8px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 80px;
            padding: 8px;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .stat-item:hover {
            transform: translateY(-3px);
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .stat-item.heart-throb-glow {
            animation: heartThrobGlow 1.5s infinite alternate;
            border-color: #ff6b6b;
            background: rgba(255, 107, 107, 0.15);
        }

        @keyframes heartThrobGlow {
            from { box-shadow: 0 0 5px rgba(255, 107, 107, 0.3); }
            to { box-shadow: 0 0 20px rgba(255, 107, 107, 0.7); }
        }

        .stat-value {
            font-size: 16px;
            font-weight: 800;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 4px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        /* 隐藏心动值数值，增加博弈性 */
        #heart-value {
            display: none;
        }

        .stat-label {
            font-size: 10px;
            opacity: 0.8;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 1px;
            font-weight: 500;
        }

        .heart-card {
            background: linear-gradient(135deg, #ff4081, #f50057);
            padding: 3px 8px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(255, 64, 129, 0.3);
            display: flex;
            align-items: center;
            gap: 4px;
            transition: all 0.3s;
        }

        .heart-card.hint-active {
            animation: heartPulse 1s infinite;
            box-shadow: 0 0 15px #ff4081;
            cursor: help;
        }

        @keyframes heartPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .money-card {
            background: linear-gradient(135deg, #ffd700, #ff8c00);
            padding: 4px 10px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .money-icon {
            font-size: 16px;
            filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
        }

        .like-emoji {
            font-size: 18px;
        }

        .camera-flash {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            opacity: 0;
            pointer-events: none;
            z-index: 1000;
            transition: opacity 0.1s ease-out;
        }

        .camera-flash.active {
            opacity: 1;
            transition: none;
        }

        .mood-display {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255, 255, 255, 0.2);
            padding: 3px 10px;
            border-radius: 20px;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            display: flex;
            align-items: center;
            gap: 4px;
            color: white;
            font-size: 11px;
            z-index: 10;
        }

        .mood-icon.pop {
            transform: scale(1.4);
        }

        .content {
            padding: 15px;
            position: relative;
        }

        .camera-overlay {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.5);
            font-size: 80px;
            opacity: 0;
            pointer-events: none;
            z-index: 1001;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .camera-overlay.active {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        .event-title {
            font-size: 20px;
            font-weight: bold;
            color: #ff6b6b;
            margin-bottom: 0px;
            text-align: center;
            line-height: 1.4;
        }

        .event-description {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 5px;
            text-align: justify;
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            border-left: 4px solid #ff6b6b;
        }

        .choices {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .choice-btn {
            background: linear-gradient(135deg, #4da6ff, #ff66cc);
            color: white;
            border: none;
            padding: 15px;
            border-radius: 10px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: left;
            position: relative;
            overflow: hidden;
        }

        .choice-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .choice-btn:active {
            transform: scale(0.98);
        }

        .feedback {
            margin-bottom: 5px;
            padding: 15px;
            border-radius: 10px;
            font-size: 14px;
            line-height: 1.5;
            display: none;
            color: #333;
            position: relative;
        }

        .emotion-icon {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 24px;
        }

        /* 礼物商店样式 */
        .gift-shop-btn, .album-btn {
            background: rgba(255, 255, 255, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.5);
            color: white;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 12px;
            cursor: pointer;
            backdrop-filter: blur(5px);
            transition: all 0.3s;
            z-index: 5;
            margin-left: 5px;
        }
        .gift-shop-btn:hover, .album-btn:hover { background: rgba(255, 255, 255, 0.5); }

        .gift-modal, .album-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(10px);
        }

        .gift-modal.show, .album-modal.show, .reminder-modal.show { display: flex; }

        .gift-content, .album-content, .reminder-content {
            background: white;
            width: 90%;
            max-width: 420px;
            padding: 25px;
            border-radius: 30px;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            border: 2px solid #fff5f5;
            position: relative;
            transition: background 0.5s ease, color 0.5s ease;
        }

        .night-mode .gift-content, .night-mode .reminder-content {
            background: #1a1a1a;
            color: #eee;
            border-color: #333;
        }

        .night-mode .gift-content h3, .night-mode .reminder-content h3 {
            color: #ff8e8e !important;
        }

        .night-mode .shop-tab-container {
            background: #333;
        }

        .night-mode .shop-tab.active {
            background: #444;
            color: #ff8e8e;
        }

        .night-mode .gift-item {
            border-bottom: 1px solid #333;
        }

        .night-mode .gift-price {
            color: #aaa;
        }

        .reminder-btn {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: white;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            backdrop-filter: blur(5px);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .reminder-btn:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: scale(1.1) rotate(5deg);
        }

        .reminder-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 15px;
        }

        .reminder-item {
            background: #f9f9f9;
            padding: 12px;
            border-radius: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-left: 4px solid #ff6b6b;
            transition: all 0.3s;
        }

        .night-mode .reminder-item {
            background: #2a2a2a;
            border-left-color: #ff8e8e;
            color: #ddd;
        }

        .reminder-item-text {
            flex: 1;
            font-size: 14px;
        }

        .reminder-item-time {
            font-size: 11px;
            color: #999;
            margin-top: 4px;
        }

        .delete-reminder-btn {
            background: none;
            border: none;
            color: #ff6b6b;
            cursor: pointer;
            font-size: 18px;
            padding: 5px;
        }

        .add-reminder-form {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
        }

        .add-reminder-input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #eee;
            border-radius: 10px;
            outline: none;
        }

        .night-mode .add-reminder-input {
            background: #333;
            border-color: #444;
            color: white;
        }

        .add-reminder-btn {
            background: #ff6b6b;
            color: white;
            border: none;
            padding: 0 15px;
            border-radius: 10px;
            cursor: pointer;
        }

        .album-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            background: #f8f8f8;
            padding: 6px;
            border-radius: 15px;
            border: 1px solid #eee;
        }

        .album-tab-btn {
            flex: 1;
            padding: 12px;
            border: none;
            background: transparent;
            color: #888;
            font-size: 14px;
            cursor: pointer;
            border-radius: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .album-tab-btn.active {
            background: #fff;
            color: #ff6b6b;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transform: translateY(-1px);
        }

        .album-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .photo-card {
            aspect-ratio: 3/4;
            background: #fdfdfd;
            border-radius: 20px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            border: 4px solid white;
            box-shadow: 0 12px 24px rgba(0,0,0,0.06);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            flex-direction: column;
            margin-top: 10px;
        }

        .photo-card::before {
            content: '';
            position: absolute;
            top: 5px;
            left: 50%;
            transform: translateX(-50%) rotate(-2deg);
            width: 50px;
            height: 18px;
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(2px);
            z-index: 10;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            border: 1px solid rgba(255,255,255,0.8);
        }

        .photo-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(45deg, rgba(255,107,107,0.05), transparent);
            pointer-events: none;
            z-index: 1;
        }

        .photo-card:hover {
            transform: translateY(-8px) scale(1.03) rotate(1deg);
            box-shadow: 0 20px 40px rgba(255, 142, 142, 0.3);
            border-color: #ff8e8e;
        }

        .photo-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s;
            filter: sepia(0.1) contrast(1.05);
        }

        .photo-card:hover img { transform: scale(1.1); filter: sepia(0) contrast(1.1); }

        .photo-info {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(transparent, rgba(0,0,0,0.85));
            color: #fff;
            padding: 15px 5px 10px;
            font-size: 12px;
            text-align: center;
            font-weight: 600;
            z-index: 2;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
        }

        .photo-card.locked {
            background: #f5f5f5;
            border: 2px dashed #ddd;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            cursor: default;
            filter: grayscale(0.8);
            opacity: 0.7;
        }

        .photo-card.locked::before {
            background: rgba(200, 200, 200, 0.4);
        }

        .photo-card.locked:hover { transform: none; box-shadow: none; border-color: #ddd; }

        .lock-icon { font-size: 32px; margin-bottom: 8px; filter: grayscale(1); opacity: 0.3; }

        /* 音乐时光增强样式 */
        .music-player-card {
            background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
            border-radius: 25px;
            padding: 35px 25px;
            color: #fff;
            position: relative;
            overflow: hidden;
            box-shadow: 0 15px 45px rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.05);
        }

        .music-player-card::after {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle at 50% 0%, rgba(255,107,107,0.15), transparent 70%);
            pointer-events: none;
        }

        .record-player-wrapper {
            position: relative;
            margin-bottom: 30px;
            display: flex;
            justify-content: center;
        }

        .record-disc {
            width: 200px;
            height: 200px;
            background: repeating-radial-gradient(circle, #111, #111 2px, #1a1a1a 3px, #1a1a1a 4px);
            border-radius: 50%;
            border: 10px solid #0a0a0a;
            box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,255,255,0.05);
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .record-disc::before {
            content: '';
            position: absolute;
            width: 100%; height: 100%;
            border-radius: 50%;
            background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
        }

        .song-info-center {
            width: 70px;
            height: 70px;
            background: #ff6b6b;
            border-radius: 50%;
            border: 4px solid #fff;
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 8px;
            box-shadow: 0 0 15px rgba(0,0,0,0.4);
        }

        .record-needle-arm {
            position: absolute;
            top: -15px;
            right: 20px;
            width: 90px;
            height: 12px;
            background: linear-gradient(to bottom, #ddd, #999);
            border-radius: 6px;
            transform-origin: 85% 50%;
            transform: rotate(35deg);
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 3;
            box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
        }

        .record-needle-arm::after {
            content: '';
            position: absolute;
            left: -5px;
            top: 50%;
            transform: translateY(-50%);
            width: 25px;
            height: 18px;
            background: #444;
            border-radius: 4px;
            box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
            border-left: 2px solid #666;
        }

        .record-needle-arm.playing { transform: rotate(12deg); }

        .music-progress-container {
            width: 100%;
            margin: 20px 0;
            padding: 0 10px;
        }

        .music-progress-bar {
            width: 100%;
            height: 6px;
            background: rgba(255,255,255,0.1);
            border-radius: 3px;
            position: relative;
            cursor: pointer;
            overflow: hidden;
        }

        .music-progress-fill {
            height: 100%;
            background: linear-gradient(to right, #ff6b6b, #ff8e8e);
            border-radius: 3px;
            width: 0%;
            transition: width 0.1s linear;
        }

        .music-time-info {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            margin-top: 8px;
            font-family: monospace;
        }

        .music-controls-v2 {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 35px;
            margin-top: 15px;
        }

        .music-btn-v2 {
            background: none;
            border: none;
            color: #fff;
            font-size: 28px;
            cursor: pointer;
            transition: all 0.3s;
            opacity: 0.7;
        }

        .music-btn-v2:hover { opacity: 1; transform: scale(1.15); color: #ff6b6b; }

        .play-pause-btn-v2 {
            width: 55px;
            height: 55px;
            background: #ff6b6b;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 22px;
            box-shadow: 0 8px 20px rgba(255,107,107,0.4);
            opacity: 1 !important;
        }

        .song-display-footer {
            margin-top: 25px;
            text-align: center;
        }

        .song-name-v2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; color: #ff6b6b; letter-spacing: 1px; }
        .artist-name-v2 { font-size: 14px; color: rgba(255,255,255,0.4); font-weight: 500; }

        .photo-viewer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.95);
            z-index: 3000;
            display: flex;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(20px);
            animation: fadeIn 0.4s ease;
        }

        .viewer-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            display: flex;
            flex-direction: column;
            align-items: center;
            animation: polaroidIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
            background: white;
            padding: 15px 15px 60px 15px;
            box-shadow: 0 30px 60px rgba(0,0,0,0.5);
            border-radius: 4px;
        }

        @keyframes polaroidIn {
            from { transform: scale(0.8) rotate(-5deg); opacity: 0; }
            to { transform: scale(1) rotate(0); opacity: 1; }
        }

        .viewer-content img {
            max-width: 100%;
            max-height: 70vh;
            object-fit: contain;
            box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
        }

        .viewer-title {
            position: absolute;
            bottom: 15px;
            left: 0;
            width: 100%;
            text-align: center;
            font-family: "Ma Shan Zheng", cursive;
            font-size: 24px;
            color: #333;
            letter-spacing: 2px;
        }

        .viewer-close {
            position: absolute;
            top: -40px;
            right: -10px;
            background: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }

        .photo-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .photo-card:hover img {
            transform: scale(1.1);
        }

        .photo-card .photo-info {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(transparent, rgba(0,0,0,0.7));
            color: white;
            font-size: 11px;
            padding: 10px 8px 5px;
            text-align: center;
            font-weight: 500;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .photo-card:not(.locked):hover .photo-info {
            opacity: 1;
        }

        .photo-card.new::after {
            content: 'NEW';
            position: absolute;
            top: 5px;
            right: 5px;
            background: #ff6b6b;
            color: white;
            font-size: 8px;
            padding: 2px 5px;
            border-radius: 5px;
            font-weight: bold;
        }

        .gift-item {
            display: flex;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid #eee;
            gap: 10px;
        }
        .gift-icon { font-size: 30px; }
        .gift-info { flex: 1; }
        .gift-name { font-weight: bold; color: #ff6b6b; }
        .gift-price { font-size: 12px; color: #888; }
        .buy-gift-btn {
            background: #ff6b6b;
            color: white;
            border: none;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 12px;
            cursor: pointer;
        }
        .buy-gift-btn:disabled { background: #ccc; cursor: not-allowed; }

        @keyframes rotateDisc {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes pulseCover {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .playing-bars {
            display: flex;
            align-items: flex-end;
            gap: 2px;
            height: 15px;
        }

        .playing-bars span {
            width: 3px;
            background: white;
            animation: barGrow 0.8s infinite ease-in-out;
        }

        .playing-bars span:nth-child(2) { animation-delay: 0.2s; }
        .playing-bars span:nth-child(3) { animation-delay: 0.4s; }

        @keyframes barGrow {
            0%, 100% { height: 5px; }
            50% { height: 15px; }
        }

        .gift-item.sold-out {
            background: #f0f0f0 !important;
            border-color: #ddd !important;
            cursor: not-allowed;
        }

        .buy-gift-btn:disabled {
            background: #ccc !important;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
        }

        @keyframes statPop {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); color: #4caf50; }
            100% { transform: scale(1); }
        }
        .stat-pop {
            animation: statPop 0.5s ease;
        }

        .feedback.show {
            display: block;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .happy { background: linear-gradient(45deg, #fff8e1, #ffecb3); border-left: 4px solid #ffd54f; color: #5c4c00; }
        .normal { background: linear-gradient(45deg, #f3e5f5, #e1bee7); border-left: 4px solid #ce93d8; color: #4a2c4a; }
        .angry { 
            background: linear-gradient(45deg, #7f2626, #a83232); 
            border-left: 6px solid #ff1744; 
            color: #ffffff; 
            box-shadow: 0 4px 15px rgba(127, 38, 38, 0.4);
            font-weight: bold;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }
        .angry .emotion-icon {
            filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
        }

        /* 结局按钮美化 */
        .restart-btn, .view-journal-btn, .back-btn {
            background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
            color: white;
            border: none;
            padding: 12px 28px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            margin: 8px;
            box-shadow: 0 10px 20px rgba(255, 117, 140, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.2);
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }

        .restart-btn:hover, .view-journal-btn:hover, .back-btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 15px 25px rgba(255, 117, 140, 0.4);
            filter: brightness(1.1);
        }

        .restart-btn:active, .view-journal-btn:active, .back-btn:active {
            transform: scale(0.95);
        }

        .view-journal-btn { 
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }
        
        .back-btn { 
            background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
            color: #555;
            box-shadow: 0 10px 20px rgba(161, 196, 253, 0.3);
        }

        /* 商店内背包切换按钮 */
        .shop-tab-container {
            display: flex;
            background: #f0f0f0;
            padding: 4px;
            border-radius: 20px;
            margin-bottom: 15px;
        }

        .shop-tab {
            flex: 1;
            padding: 8px;
            text-align: center;
            font-size: 13px;
            font-weight: bold;
            color: #888;
            cursor: pointer;
            border-radius: 18px;
            transition: all 0.3s;
        }

        .shop-tab.active {
            background: white;
            color: #ff6b6b;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background: #e0e0e0;
            border-radius: 3px;
            margin-bottom: 15px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(45deg, #ff6b6b, #ffa500);
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        .event-info {
            position: absolute;
            top: 33px;
            right: 20px;
            font-size: 14px;
            color: #666;
            line-height: 6px;
            z-index: 1;
        }

        /* 结局面板基础样式 */
        .result, .end-screen {
            display: none;
            text-align: center;
        }

        .journal {
            display: none;
            margin-top: 20px;
            padding: 15px;
            background: #fff8e1;
            border: 2px solid #ff9800;
            border-radius: 15px;
            max-height: 70vh;
            flex-direction: column;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }

        .journal.show {
            display: flex;
        }

        .result-header {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #ff6b6b, #ffa500);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: bounceIn 1s ease;
        }

        @keyframes bounceIn {
            0% { transform: scale(0.3); opacity: 0; }
            50% { transform: scale(1.05); opacity: 1; }
            70% { transform: scale(0.9); }
            100% { transform: scale(1); }
        }

        .rating-box {
            background: #fff5f5;
            border: 2px dashed #ff6b6b;
            padding: 15px;
            border-radius: 15px;
            margin: 20px 0;
            position: relative;
        }

        .rating-star {
            color: #ff6b6b;
            font-size: 24px;
            margin: 0 2px;
        }

        .bad-end-icon {
            font-size: 60px;
            margin-bottom: 20px;
            animation: shake 1.2s ease-in-out infinite;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-3px); }
            75% { transform: translateX(3px); }
        }

        /* 统一显示类 */
        .result.show {
            display: block !important;
            animation: resultFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        }

        .journal.show {
            display: flex !important;
            animation: resultFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        }

        .end-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 10000;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            padding: 20px 25px 20vh;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            box-sizing: border-box;
            display: none;
            color: white;
            overflow-y: auto;
        }

        .end-card {
            background: white;
            padding: 30px;
            border-radius: 25px;
            width: 100%;
            max-width: 320px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            color: #333;
            animation: cardEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        .end-screen.show {
            display: flex !important;
            animation: resultFadeUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        }

        .final-stats {
            display: flex;
            justify-content: space-around;
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-card {
            flex: 1;
            background: white;
            padding: 15px 10px;
            border-radius: 15px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            display: flex;
            flex-direction: column;
            align-items: center;
            border: 2px solid #fff5f5;
            transition: transform 0.3s ease;
            opacity: 0;
        }

        .stat-card.animate {
            animation: cardEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        .stat-card.animate:nth-child(2) { animation-delay: 0.2s; }

        @keyframes cardEntrance {
            from { transform: translateY(20px) scale(0.8); opacity: 0; }
            to { transform: translateY(0) scale(1); opacity: 1; }
        }

        .stat-card:hover { transform: translateY(-5px); border-color: #ff6b6b; }
        .stat-card .stat-icon { font-size: 24px; margin-bottom: 5px; }
        .stat-card .stat-label { font-size: 11px; color: #999; margin-bottom: 2px; }
        .stat-card .stat-val { font-size: 20px; font-weight: bold; color: #ff6b6b; }

        /* 自定义礼物样式 */
        .custom-gift-options {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 15px;
        }
        .option-group {
            text-align: left;
        }
        .option-label {
            font-size: 13px;
            font-weight: bold;
            color: #666;
            margin-bottom: 8px;
            display: block;
        }
        .option-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
        }
        .option-item {
            padding: 8px;
            border: 2px solid #eee;
            border-radius: 10px;
            cursor: pointer;
            text-align: center;
            font-size: 12px;
            transition: all 0.2s;
        }
        .option-item.active {
            border-color: #ff6b6b;
            background: #fff5f5;
            transform: scale(1.05);
        }
        .gift-preview {
            width: 100px;
            height: 100px;
            margin: 20px auto;
            background: #f9f9f9;
            border-radius: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 50px;
            border: 2px dashed #ddd;
            position: relative;
        }
        .gift-preview::after {
            content: '预览';
            position: absolute;
            bottom: -20px;
            font-size: 10px;
            color: #999;
        }

        #journal-entries {
            overflow-y: auto;
            flex: 1;
            padding-right: 5px;
        }

        #journal-entries::-webkit-scrollbar {
            width: 8px;
        }

        #journal-entries::-webkit-scrollbar-track {
            background: rgba(255, 152, 0, 0.05);
            border-radius: 10px;
        }

        #journal-entries::-webkit-scrollbar-thumb {
            background: linear-gradient(to bottom, #ff9800, #ff6b6b);
            border-radius: 10px;
            border: 2px solid #fff8e1;
        }

        .journal-entry {
            margin: 12px 0;
            padding: 15px;
            background: white;
            border-radius: 12px;
            border-left: 5px solid #ff9800;
            text-align: left;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transition: transform 0.2s;
        }

        .journal-entry:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.1);
        }

        /* 开始界面 - 现代感升级 */
        .start-screen {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 10px 20px 20vh;
            background: linear-gradient(-45deg, #ff6b6b, #ffa500, #ff85a2, #7f53ac);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 99999;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            overflow-y: auto;
        }

        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .start-container {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            padding: 30px 25px;
            border-radius: 40px;
            width: 95%;
            max-width: 420px;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
            position: relative;
            animation: startPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            color: white;
            text-align: center;
            overflow: hidden;
            margin-top: 10px;
        }

        @keyframes startPop {
            from { opacity: 0; transform: scale(0.9) translateY(30px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .start-title {
            font-size: 32px;
            font-weight: 900;
            margin-bottom: 20px;
            letter-spacing: -1px;
            background: linear-gradient(to bottom, #fff, #ffd1d1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
        }

        .start-intro {
            font-size: 15px;
            line-height: 1.7;
            margin-bottom: 30px;
            color: rgba(255, 255, 255, 0.95);
            background: rgba(0, 0, 0, 0.2);
            padding: 20px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .disk-layer {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            pointer-events: none;
            box-sizing: border-box;
        }

        .disk-layer-1 { border: 2px dashed rgba(255, 255, 255, 0.2); transform: scale(0.85); }
        .disk-layer-2 { border: 1px solid rgba(255, 255, 255, 0.1); transform: scale(0.7); }

        .selector-label {
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 12px;
            color: rgba(255,255,255,0.7);
            width: 100%;
            text-align: left;
            padding-left: 10px;
        }

        .weather-selector, .diff-selector, .date-type-selector {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            z-index: 2;
            width: 100%;
            justify-content: space-between;
        }

        .weather-btn, .diff-btn, .date-type-btn {
            flex: 1;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.2);
            background: rgba(255,255,255,0.1);
            color: white;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 20px;
            position: relative;
            overflow: hidden;
        }

        .diff-btn, .date-type-btn {
            font-size: 14px;
            font-weight: 600;
        }

        .weather-btn:hover, .diff-btn:hover, .date-type-btn:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-2px);
            border-color: rgba(255,255,255,0.4);
        }

        .weather-btn.active, .diff-btn.active, .date-type-btn.active {
            background: white;
            color: #ff6b6b;
            border-color: white;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            transform: scale(1.05);
        }

        .start-btn-group {
            display: flex;
            gap: 15px;
            width: 100%;
            margin-top: 10px;
        }

        .start-btn {
            flex: 2;
            height: 56px;
            background: white;
            color: #ff6b6b;
            border: none;
            border-radius: 18px;
            font-size: 18px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .start-btn.random-btn {
            flex: 1;
            background: rgba(255,255,255,0.2);
            color: white;
            border: 1px solid rgba(255,255,255,0.3);
            backdrop-filter: blur(10px);
        }

        .start-btn:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        .start-btn:active {
            transform: translateY(0) scale(0.98);
        }

        /* 天气弹窗 */
        .weather-info-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            background: white;
            padding: 25px;
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
            z-index: 100000;
            display: none;
            width: 300px;
            text-align: center;
            opacity: 0;
            transition: all 0.3s;
        }

        .weather-info-modal.show {
            display: block;
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

        /* 模糊提示 */
        .hint-blur {
            filter: blur(5px);
            transition: filter 0.4s;
        }
        .hint-blur:hover { filter: blur(0); }

        /* 提供温暖按钮 */
        .warmth-btn {
            background: linear-gradient(45deg, #ff9800, #f44336);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 13px;
            margin-bottom: 15px;
            cursor: pointer;
            display: none;
            box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
            animation: pulseWarmth 2s infinite;
        }

        @keyframes pulseWarmth {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); }
            70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
        }

        /* 情绪头像 */
        .mood-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: #fff;
            border: 4px solid #ff6b6b;
            margin: 0 auto 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 35px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .mood-avatar.happy { animation: bounce 0.6s infinite alternate; border-color: #4caf50; }
        .mood-avatar.angry { animation: shake 0.2s infinite; border-color: #f44336; }

        @keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-8px); } }

        .achievement-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            width: auto;
            max-width: 300px;
            background: linear-gradient(45deg, #ff6b6b, #ffa500);
            color: white;
            padding: 12px 20px;
            border-radius: 12px;
            z-index: 10000;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
            animation: toastVivid 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transition: all 0.5s ease;
        }

        .achievement-toast.hide {
            opacity: 0;
            transform: translateX(50px) scale(0.8);
        }

        /* 堆叠逻辑由 JS 处理，这里提供基础偏移 */
        .achievement-toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 10000;
            pointer-events: none;
        }
        .achievement-toast-container .achievement-toast {
            position: static;
            pointer-events: auto;
        }

        @keyframes toastVivid {
            0% { opacity: 0; transform: translateX(50px) scale(0.8); }
            70% { transform: translateX(-5px) scale(1.05); }
            100% { opacity: 1; transform: translateX(0) scale(1); }
        }

        /* 拍照提示 */
        .camera-countdown {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 80px;
            font-weight: bold;
            color: white;
            text-shadow: 0 0 20px rgba(0,0,0,0.5);
            z-index: 2001;
            display: none;
            pointer-events: none;
        }

        .camera-success {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.5);
            background: rgba(255, 255, 255, 0.9);
            color: #ff6b6b;
            padding: 20px 40px;
            border-radius: 50px;
            font-size: 24px;
            font-weight: bold;
            z-index: 2001;
            display: none;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            pointer-events: none;
        }

        .camera-success.active {
            display: block;
            animation: successPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        @keyframes successPop {
            0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
            50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
            100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
        }

        /* 成就按钮 */
        .achievement-btn, .gift-shop-btn, .album-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: white;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 18px !important;
            padding: 0 !important;
            backdrop-filter: blur(5px);
        }

        .achievement-btn:hover, .gift-shop-btn:hover, .album-btn:hover { 
            background: rgba(255, 255, 255, 0.4); 
            transform: scale(1.05);
        }

        /* 成就面板 */
        .achievements-panel {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.98);
            z-index: 100;
            padding: 20px;
            overflow-y: auto;
            animation: slideIn 0.4s ease-out;
        }
        @keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }

        .achievements-panel.show { display: block !important; }

        /* 天气面板样式 */
        .weather-panel {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.98);
            z-index: 100;
            padding: 20px;
            overflow-y: auto;
            animation: slideInRight 0.4s ease-out;
        }
        @keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
        .weather-panel.show { display: block !important; }
        
        .weather-card {
            background: #fff5f5;
            border-radius: 15px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid #ffe3e3;
            text-align: left;
        }
        .weather-card.current {
            border: 2px solid #ff6b6b;
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.1);
        }
        .weather-card-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            font-weight: bold;
            color: #ff6b6b;
            font-size: 18px;
        }
        .weather-event-list {
            margin-top: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        
        /* 背包系统样式 - 恋爱主题美化 */
        .inventory-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin: 20px 0;
            max-height: 320px;
            overflow-y: auto;
            padding: 10px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 20px;
            border: 1px solid rgba(255, 107, 107, 0.1);
        }
        .inventory-item {
            aspect-ratio: 1;
            background: white;
            border-radius: 18px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            box-shadow: 0 8px 20px rgba(255, 107, 107, 0.08);
            border: 2px solid transparent;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: default;
        }
        .inventory-item:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 12px 25px rgba(255, 107, 107, 0.15);
            border-color: #ffccd5;
        }
        .inventory-item .icon { 
            font-size: 28px; 
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
        }
        .inventory-item .count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
            color: white;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 12px;
            font-weight: bold;
            box-shadow: 0 4px 8px rgba(255, 117, 140, 0.3);
            border: 1.5px solid white;
        }
        .inventory-empty {
            grid-column: span 4;
            padding: 60px 0;
            color: #ff9999;
            font-style: italic;
            text-align: center;
            font-size: 14px;
        }

        /* 聊天功能样式 */
        .contact-item {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background 0.2s;
        }
        .contact-item:hover { background: #f9f9f9; }
        .contact-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: #eee;
            margin-right: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }
        .contact-info { flex: 1; }
        .contact-name { font-weight: bold; color: #333; margin-bottom: 4px; }
        .contact-last-msg { font-size: 12px; color: #999; }
        
        .chat-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 500;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(10px);
        }
        .chat-modal.show { display: flex; }
        .phone-container {
            width: 320px;
            height: 580px;
            background: #1a1a1a;
            border-radius: 40px;
            padding: 12px;
            position: relative;
            box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 2px rgba(255,255,255,0.2);
            border: 4px solid #333;
            display: flex;
            flex-direction: column;
        }
        .phone-screen {
            flex: 1;
            background: #f5f5f5;
            border-radius: 30px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
        }
        .chat-header {
            background: #fff;
            padding: 10px 15px;
            font-weight: bold;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            height: 60px;
            box-sizing: border-box;
        }
        .chat-header-info {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            margin-left: 10px;
        }
        .chat-header-avatar {
            width: 38px;
            height: 38px;
            background: #fff5f5;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            box-shadow: 0 2px 8px rgba(255, 142, 142, 0.2);
            border: 2px solid white;
        }
        .chat-header-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
        #chat-contact-name {
            font-size: 15px;
            color: #333;
        }
        #chat-contact-status {
            font-size: 11px;
            margin-top: 2px;
        }
        .chat-body {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
            background: #f7f9fb; /* Cleaner background */
            position: relative;
        }
        .message {
            max-width: 80%;
            padding: 10px 14px;
            border-radius: 18px;
            font-size: 14px;
            line-height: 1.5;
            position: relative;
            animation: msgIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        .msg-gf {
            align-self: flex-start;
            background: white;
            color: #333;
            border-bottom-left-radius: 4px;
        }
        .msg-me {
            align-self: flex-end;
            background: #ff6b6b;
            color: white;
            border-bottom-right-radius: 4px;
        }
        .msg-gf::before, .msg-me::before { display: none; } /* Remove old triangles for cleaner look */
        .typing-indicator {
            align-self: flex-start;
            background: rgba(255,255,255,0.7);
            padding: 8px 12px;
            border-radius: 15px;
            font-size: 12px;
            color: #666;
            display: none;
            margin: 0 15px 10px 15px;
        }
        .typing-dots span {
            display: inline-block;
            width: 4px;
            height: 4px;
            background: #999;
            border-radius: 50%;
            margin-right: 2px;
            animation: typing 1s infinite;
        }
        .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
        .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes typing {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }
        .chat-footer {
            background: #f0f0f0;
            border-top: 1px solid #ddd;
        }
        .chat-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 12px;
        }
        .chat-opt-btn {
            background: white;
            color: #333;
            border: 1px solid #ddd;
            padding: 8px 12px;
            border-radius: 18px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: left;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        .chat-opt-btn:hover { background: #f0f0f0; border-color: #ccc; color: #333; }
        .chat-opt-btn:active { transform: scale(0.98); }
        .phone-home-bar {
            width: 100px;
            height: 4px;
            background: #333;
            border-radius: 2px;
            margin: 8px auto 0;
        }

        .phone-footer {
            height: 50px;
            background: #fff;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding-bottom: 5px;
        }

        .phone-app-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 20px;
            cursor: pointer;
            transition: transform 0.2s;
            color: #333;
        }

        .phone-app-icon:hover { transform: scale(1.1); }
        .phone-app-icon span { font-size: 9px; margin-top: 2px; color: #666; font-weight: normal; }

        .browser-view {
            display: none;
            flex-direction: column;
            height: 100%;
            background: #fff;
            border-radius: 0 0 30px 30px;
        }
        .browser-header {
            padding: 12px;
            background: #fff;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid #eee;
        }
        .browser-address {
            flex: 1;
            background: #f1f3f5;
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 12px;
            color: #495057;
            border: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .browser-content {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
            background: #fff;
        }
        .browser-history-item {
            padding: 15px;
            border-bottom: 1px solid #f1f3f5;
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .browser-history-item:hover { background: #f8f9fa; }
        .browser-history-title { font-weight: 600; font-size: 14px; color: #212529; }
        .browser-history-url { font-size: 11px; color: #adb5bd; }
        
        .browser-page-title { font-size: 18px; font-weight: 700; margin-bottom: 15px; color: #212529; line-height: 1.3; }
        .browser-page-answer { line-height: 1.6; color: #495057; margin-bottom: 20px; padding: 15px; background: #fff9f9; border-left: 4px solid #ff6b6b; border-radius: 4px; font-size: 14px; }
        .browser-comment-item { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed #eee; }
        .browser-comment-user { font-weight: 600; font-size: 12px; color: #ff6b6b; margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }
        .browser-comment-text { font-size: 13px; color: #495057; line-height: 1.4; }
        .browser-comment-user::before { content: '👤'; font-size: 10px; }
        
        .inventory-empty {
            grid-column: span 4;
            padding: 60px 0;
            color: #ff9999;
            font-style: italic;
            text-align: center;
            font-size: 14px;
        }

        /* 结局UI美化 */
        .rating-star {
            display: inline-block;
            font-size: 28px;
            margin: 0 2px;
            opacity: 0;
            transform: scale(0);
        }
        .rating-star.animate {
            animation: starPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }
        @keyframes starPop {
            to { opacity: 1; transform: scale(1); }
        }
        .final-rating-text {
            display: block;
            margin-top: 10px;
            line-height: 1.6;
            opacity: 0;
            transform: translateY(10px);
        }
        .final-rating-text.animate {
            animation: textFadeIn 0.8s ease-out 0.8s forwards;
        }
        @keyframes textFadeIn {
            to { opacity: 1; transform: translateY(0); }
        }

        /* 选项颜色提示 */
        .choice-hint-happy { color: #2e7d32 !important; font-weight: bold; }
        .choice-hint-normal { color: #666 !important; }
        .choice-hint-angry { color: #d32f2f !important; font-weight: bold; text-shadow: 0 0 1px rgba(255,255,255,0.8); }

        /* 紧凑布局调整 */
        .event-info { margin-bottom: 8px; }
        .event-description { margin-bottom: 12px; font-size: 13.5px; }
        .choices { gap: 8px; }
        .choice-btn { padding: 10px 15px; font-size: 14px; }
        .feedback { margin-bottom: 10px; padding: 8px; }
        .mood-info-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(5px);
        }
        .mood-info-modal.show { display: flex; }
        .mood-info-content {
            background: white;
            width: 85%;
            max-width: 320px;
            max-height: 85vh;
            overflow-y: auto;
            padding: 25px;
            border-radius: 25px;
            text-align: center;
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
            animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .mood-info-title {
            font-size: 20px;
            font-weight: bold;
            color: #ff6b6b;
            margin-bottom: 15px;
        }
        .mood-info-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .love-tips-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 300;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
        }
        .love-tips-modal.show { display: flex; }
        .tips-content {
            background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
            width: 90%;
            max-width: 400px;
            padding: 30px 20px;
            border-radius: 30px;
            position: relative;
            box-shadow: 0 25px 60px rgba(255, 107, 107, 0.2);
            animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            text-align: center;
            border: 2px solid #fff;
        }
        .tips-title {
            font-size: 24px;
            font-weight: bold;
            color: #ff6b6b;
            margin-bottom: 25px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            letter-spacing: 1px;
        }
        .tips-list {
            text-align: left;
            max-height: 400px;
            overflow-y: auto;
            padding: 0 10px;
            scrollbar-width: thin;
            scrollbar-color: #ffc9c9 transparent;
        }
        .tips-list::-webkit-scrollbar { width: 4px; }
        .tips-list::-webkit-scrollbar-thumb { background: #ffc9c9; border-radius: 10px; }
        
        .tip-card {
            background: white;
            border-radius: 18px;
            padding: 18px;
            margin-bottom: 18px;
            box-shadow: 0 8px 20px rgba(255, 107, 107, 0.08);
            border: 1px solid #ffebeb;
            border-left: 5px solid #ff6b6b;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
        }
        .tip-card.locked {
            background: #f9f9f9;
            border-left: 5px solid #ddd;
            opacity: 0.7;
            filter: grayscale(0.5);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 120px;
        }
        .tip-card.locked::after {
            content: '🔒';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 60px;
            opacity: 0.8;
            z-index: 2;
            text-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }
        .tip-card.locked .tip-header, .tip-card.locked .tip-body {
            visibility: hidden;
        }
        .tip-card:hover { 
            transform: translateX(8px) scale(1.02); 
            box-shadow: 0 12px 25px rgba(255, 107, 107, 0.15);
        }
        
        .tip-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            font-weight: bold;
            color: #ff6b6b;
            font-size: 15px;
        }
        .tip-body {
            font-size: 13px;
            color: #666;
            line-height: 1.6;
        }

        .love-tips-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: white;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 18px !important;
            padding: 0 !important;
            backdrop-filter: blur(5px);
        }
        .love-tips-btn:hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.05); }

        .achievement-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 15px;
        }

        .achievement-card {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 12px;
            text-align: center;
            border: 2px solid transparent;
            transition: all 0.3s;
            opacity: 0.6;
            filter: grayscale(1);
            position: relative;
            overflow: hidden;
        }

        .achievement-badge {
            position: absolute;
            top: 0;
            right: 0;
            font-size: 9px;
            padding: 2px 6px;
            border-bottom-left-radius: 8px;
            color: white;
            font-weight: bold;
            text-transform: uppercase;
        }
        .badge-common { background: #9e9e9e; }
        .badge-rare { 
            background: #2196f3; 
            position: relative;
            overflow: hidden;
            animation: badgeGlow 2s infinite ease-in-out;
        }
        .badge-rare::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transform: skewX(-20deg);
            animation: shimmer 3s infinite;
        }
        .badge-legendary { 
            background: linear-gradient(45deg, #ff9800, #ff5722, #ffeb3b, #ff9800); 
            background-size: 300% 300%;
            animation: legendaryGlow 1.5s infinite ease-in-out, legendaryGradient 3s infinite linear;
            box-shadow: 0 0 15px rgba(255, 152, 0, 0.6);
        }

        @keyframes shimmer {
            0% { left: -100%; }
            30% { left: 200%; }
            100% { left: 200%; }
        }

        @keyframes legendaryGradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes badgeGlow {
            0%, 100% { box-shadow: 0 0 5px rgba(33, 150, 243, 0.4); filter: brightness(1); }
            50% { box-shadow: 0 0 15px rgba(33, 150, 243, 0.8); filter: brightness(1.3); }
        }

        @keyframes legendaryGlow {
            0%, 100% { box-shadow: 0 0 10px rgba(255, 152, 0, 0.6); transform: scale(1); }
            50% { box-shadow: 0 0 25px rgba(255, 87, 34, 1); transform: scale(1.1); filter: brightness(1.4); }
        }

        .achievement-card.unlocked {
            opacity: 1;
            filter: grayscale(0);
            background: white;
            border-color: #ff6b6b;
            box-shadow: 0 4px 10px rgba(255, 107, 107, 0.1);
        }

        .achievement-card .icon { font-size: 24px; margin-bottom: 5px; display: block; }
        .achievement-card .name { font-size: 13px; font-weight: bold; color: #333; display: block; }
        .achievement-card .desc { font-size: 10px; color: #888; margin-top: 4px; display: block; }

        .achievement-tabs {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 15px;
        }
        .tab-btn {
            background: #eee;
            border: none;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 12px;
            cursor: pointer;
        }
        .tab-btn.active { background: #ff6b6b; color: white; }

        /* 成就详情弹窗 */
        .achievement-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 200;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(3px);
        }
        .achievement-modal.show { display: flex; }
        .modal-content {
            background: white;
            width: 80%;
            max-width: 300px;
            padding: 25px;
            border-radius: 20px;
            text-align: center;
            position: relative;
            animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        @keyframes modalPop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        
        .modal-icon { font-size: 50px; margin-bottom: 15px; display: block; }
        .modal-title { font-size: 20px; font-weight: bold; color: #ff6b6b; margin-bottom: 10px; display: block; }
        .modal-desc { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 15px; display: block; }
        .modal-condition { 
            font-size: 12px; 
            background: #fff5f5; 
            color: #ff6b6b; 
            padding: 8px; 
            border-radius: 8px; 
            display: block;
            border: 1px dashed #ffc9c9;
        }
        .modal-close-btn {
            margin-top: 20px;
            background: #ff6b6b;
            color: white;
            border: none;
            padding: 8px 25px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
        }
        .suggested-replies {
            display: flex;
            gap: 8px;
            padding: 10px;
            overflow-x: auto;
            background: #fff;
            border-bottom: 1px solid #f0f0f0;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: #ffccd5 transparent;
        }
        .suggested-replies::-webkit-scrollbar { 
            height: 3px;
        }
        .suggested-replies::-webkit-scrollbar-thumb {
            background: #ffccd5;
            border-radius: 2px;
        }
        .suggested-reply-btn {
            flex-shrink: 0;
            padding: 6px 14px;
            background: #fff5f5;
            border: 1px solid #ffccd5;
            color: #ff6b6b;
            border-radius: 15px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 4px rgba(255, 107, 107, 0.05);
        }
        .suggested-reply-btn:hover {
            background: #ff6b6b;
            color: #fff;
            transform: translateY(-1px);
        }
