/* 心智养成 - 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f5f5f5;
        }
        
        .app-container {
            max-width: 750px;
            margin: 0 auto;
            background-color: #fff;
            min-height: 100vh;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }
        
        .page-enter-active,
        .page-leave-active {
            transition: opacity 0.3s ease;
        }
        .page-enter-from,
        .page-leave-to {
            opacity: 0;
        }
        
        /* ========== 登录页样式 ========== */
        .login-container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .login-card {
            background: #fff;
            border-radius: 24px;
            padding: 40px 32px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        
        .logo {
            text-align: center;
            margin-bottom: 32px;
        }
        
        .logo-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
            color: white;
            text-align: center;
            line-height: 1.3;
            padding: 0 10px;
        }
        
        .tab-bar {
            display: flex;
            margin-bottom: 24px;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .tab-item {
            flex: 1;
            text-align: center;
            padding: 12px 0;
            cursor: pointer;
            font-size: 16px;
            color: #999;
            transition: all 0.3s;
        }
        
        .tab-item.active {
            color: #667eea;
            border-bottom: 2px solid #667eea;
        }
        
        .input-group {
            margin-bottom: 16px;
        }
        
        .input-field {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        .input-field:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .captcha-row {
            display: flex;
            gap: 12px;
        }
        
        .captcha-row .input-field {
            flex: 1;
        }
        
        .captcha-btn {
            padding: 0 20px;
            background: #f0f0f0;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            cursor: pointer;
            white-space: nowrap;
        }
        
        .login-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 24px;
        }
        
        .agreement {
            text-align: center;
            margin-top: 24px;
            font-size: 12px;
            color: #999;
        }
        
        .agreement a {
            color: #667eea;
            text-decoration: none;
        }
        
        /* ========== 角色管理页样式 ========== */
        .role-container {
            padding: 20px;
        }
        
        .role-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }
        
        .back-btn {
            cursor: pointer;
            font-size: 24px;
            color: #333;
        }
        
        .role-header h2 {
            font-size: 20px;
        }
        
        .reset-btn {
            padding: 6px 12px;
            background: #ff4d4f;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 12px;
            cursor: pointer;
        }
        
        .current-role {
            display: flex;
            align-items: center;
            gap: 16px;
            background: #f5f5f5;
            padding: 16px;
            border-radius: 16px;
            margin-bottom: 24px;
        }
        
        .role-avatar {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        
        .role-name {
            font-weight: bold;
            font-size: 18px;
        }
        
        .role-level {
            font-size: 12px;
            color: #999;
        }
        
        .switch-btn {
            margin-left: auto;
            padding: 6px 12px;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 20px;
            cursor: pointer;
        }
        
        .role-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }
        
        .role-tip {
            font-size: 14px;
            color: #8a8f99;
            margin: 4px 0 18px;
        }

        .role-card {
            position: relative;
            background: #fff;
            border: 2px solid transparent;
            border-radius: 18px;
            padding: 22px 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.25s;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .role-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(102,126,234,0.18);
        }

        .role-card.selected {
            border-color: #667eea;
            background: linear-gradient(135deg, #f3f1ff 0%, #eeafe 100%);
            box-shadow: 0 6px 18px rgba(102,126,234,0.25);
        }

        .role-check {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #667eea;
            color: #fff;
            font-size: 13px;
            line-height: 22px;
            text-align: center;
        }
        
        .role-avatar-small {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            margin: 0 auto 12px;
            font-size: 20px;
        }
        
        .create-btn {
            width: 100%;
            padding: 14px;
            background: #f0f0f0;
            border: none;
            border-radius: 16px;
            font-size: 16px;
            cursor: pointer;
        }

        /* ============ 角色管理页（重设计） ============ */
        .role-page {
            min-height: 100vh;
            background: #f4f5f9;
        }
        .role-hero {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 18px 20px 28px;
            color: #fff;
            border-radius: 0 0 24px 24px;
        }
        .role-hero-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .role-back {
            font-size: 22px;
            cursor: pointer;
            width: 32px;
        }
        .role-title {
            font-size: 18px;
            font-weight: 600;
        }
        .role-reset {
            font-size: 13px;
            opacity: .85;
            cursor: pointer;
            width: 32px;
            text-align: right;
        }
        .role-hero-sub {
            margin-top: 12px;
            font-size: 13px;
            opacity: .9;
        }
        .role-body {
            padding: 20px;
        }
        .role-loading {
            text-align: center;
            padding: 40px;
            color: #999;
        }
        .role-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
        }
        .role-card {
            position: relative;
            background: #fff;
            border: 2px solid transparent;
            border-radius: 18px;
            padding: 22px 14px 18px;
            text-align: center;
            cursor: pointer;
            transition: all .25s;
            box-shadow: 0 2px 10px rgba(0,0,0,.05);
        }
        .role-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(102,126,234,.18);
        }
        .role-card.selected {
            border-color: #667eea;
            box-shadow: 0 8px 22px rgba(102,126,234,.28);
        }
        .role-check {
            position: absolute;
            top: 10px; right: 10px;
            width: 22px; height: 22px;
            border-radius: 50%;
            background: #667eea;
            color: #fff;
            font-size: 13px;
            line-height: 22px;
        }
        .role-avatar-small {
            width: 64px; height: 64px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: #fff; font-weight: bold; font-size: 26px;
            margin: 0 auto 12px;
            box-shadow: 0 4px 12px rgba(102,126,234,.3);
        }
        .role-name {
            font-weight: 600;
            font-size: 16px;
            color: #2c2c3a;
        }
        .role-level-badge {
            display: inline-block;
            margin-top: 8px;
            font-size: 11px;
            color: #667eea;
            background: #eef0fe;
            padding: 2px 10px;
            border-radius: 10px;
        }
        .role-card-add {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border: 2px dashed #c7cce0;
            background: #fafbff;
            color: #8a8f99;
        }
        .role-add-icon {
            font-size: 32px;
            line-height: 1;
            margin-bottom: 8px;
        }
        .role-add-text {
            font-size: 14px;
        }
        .role-enter-btn {
            width: 100%;
            margin-top: 24px;
            padding: 15px;
            border: none;
            border-radius: 14px;
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            cursor: pointer;
            transition: opacity .2s;
        }
        .role-enter-btn:disabled {
            background: #c7ccdb;
            cursor: not-allowed;
        }
        .role-empty {
            text-align: center;
            padding: 60px 20px;
        }
        .role-empty-icon {
            font-size: 56px;
            margin-bottom: 12px;
        }
        .role-empty-text {
            color: #8a8f99;
            margin-bottom: 24px;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
        }
        
        .empty-icon {
            font-size: 80px;
            margin-bottom: 20px;
        }
        
        /* 弹窗样式 */
        .modal-mask {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        
        .modal-container {
            background-color: #fff;
            border-radius: 20px;
            width: 85%;
            max-width: 350px;
            overflow: hidden;
        }
        
        .modal-header {
            padding: 20px;
            text-align: center;
            border-bottom: 1px solid #eee;
            font-weight: bold;
            font-size: 18px;
        }
        
        .modal-body {
            padding: 20px;
        }
        
        .modal-footer {
            display: flex;
            border-top: 1px solid #eee;
        }
        
        .modal-footer button {
            flex: 1;
            padding: 14px;
            border: none;
            background: none;
            font-size: 16px;
            cursor: pointer;
        }
        
        .modal-footer button:first-child {
            border-right: 1px solid #eee;
            color: #999;
        }
        
        .modal-footer button:last-child {
            color: #667eea;
            font-weight: bold;
        }
        
        .avatar-options {
            display: flex;
            gap: 16px;
            justify-content: center;
            margin-top: 16px;
            flex-wrap: wrap;
        }
        
        .avatar-option {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 20px;
            cursor: pointer;
            border: 2px solid transparent;
        }
        
        .avatar-option.selected {
            border-color: #ff9800;
            transform: scale(1.05);
        }
        
        /* ========== 首页样式 ========== */
        .home-container {
            padding: 20px;
            background: #f5f7fa;
            min-height: 100vh;
        }
        
        .home-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: -20px -20px 20px -20px;
            padding: 20px 20px 30px 20px;
            border-radius: 0 0 24px 24px;
            color: white;
        }
        
        .home-header-left {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
        }
        
        .home-header-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .profile-icon {
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .profile-icon:active {
            transform: scale(0.95);
            background: rgba(255,255,255,0.3);
        }
        
        .role-avatar-home {
            width: 56px;
            height: 56px;
            background: rgba(255,255,255,0.2);
            border-radius: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: bold;
            border: 2px solid rgba(255,255,255,0.5);
        }
        
        .role-name-home {
            font-size: 20px;
            font-weight: bold;
        }
        
        .role-level-home {
            font-size: 12px;
            opacity: 0.8;
        }
        
        .score-section {
            text-align: right;
        }
        
        .score-label {
            font-size: 12px;
            opacity: 0.8;
            display: block;
        }
        
        .score-value {
            font-size: 24px;
            font-weight: bold;
        }
        
        .task-card {
            background: white;
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.05);
        }
        
        .task-card-header {
            display: flex;
            align-items: baseline;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #eee;
        }
        
        .task-card-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        
        .task-card-count {
            font-size: 12px;
            color: #999;
            margin-left: 8px;
        }
        
        .task-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .task-item-card {
            background: #f9f9f9;
            border-radius: 12px;
            padding: 14px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.2s;
        }
        
        .task-left {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }
        
        .task-icon {
            font-size: 20px;
            width: 24px;
            text-align: center;
        }
        
        .task-icon.completed {
            color: #52c41a;
        }
        
        .task-icon.pending {
            color: #667eea;
        }
        
        .task-name {
            font-size: 14px;
            color: #333;
            flex: 1;
        }
        
        .task-points-badge {
            background: #fff3e0;
            padding: 4px 10px;
            border-radius: 16px;
            font-size: 12px;
            font-weight: bold;
            color: #ff9800;
            white-space: nowrap;
        }
        
        .task-status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            margin-left: 12px;
        }
        
        .task-status-badge.completed {
            background: #f0f9f0;
            color: #52c41a;
        }
        
        .task-status-badge.pending {
            background: #eef2ff;
            color: #667eea;
            cursor: pointer;
        }
        
        .shortcuts-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-bottom: 20px;
        }
        
        .shortcut-item {
            background: white;
            border-radius: 16px;
            padding: 16px 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
        
        .shortcut-item:active {
            transform: scale(0.96);
            background: #f0f0f0;
        }
        
        .shortcut-icon {
            font-size: 32px;
            margin-bottom: 8px;
        }
        
        .shortcut-name {
            font-size: 13px;
            color: #666;
        }
        
        .logout-section {
            text-align: center;
            margin-top: 20px;
        }
        
        .logout-btn {
            padding: 10px 24px;
            background: #f0f0f0;
            border: none;
            border-radius: 30px;
            font-size: 14px;
            color: #999;
            cursor: pointer;
        }
        
        /* ========== 我的好友页样式 ========== */
        .friends-container {
            padding: 20px;
            min-height: 100vh;
            background: #f5f7fa;
        }
        .friends-top-bar {
            display: flex;
            align-items: center;
            margin-bottom: 6px;
        }
        .friends-title-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .friends-title-row h2 {
            font-size: 26px;
            font-weight: bold;
            color: #222;
            margin: 0;
        }
        .score-value-friends {
            font-size: 14px;
            font-weight: bold;
            color: #ff9800;
            background: white;
            padding: 6px 14px;
            border-radius: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            cursor: pointer;
        }
        .friends-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
            margin-bottom: 20px;
        }
        .friend-card {
            background: white;
            border-radius: 20px;
            padding: 20px 10px 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            position: relative;
        }
        .friend-card:active { transform: scale(0.96); }
        .friend-card .del-btn {
            position: absolute; top: 8px; right: 8px;
            background: none; border: none; color: #ccc;
            font-size: 14px; cursor: pointer; line-height: 1; padding: 2px;
        }
        .friend-card .del-btn:hover { color: #f56c6c; }
        .friend-avatar {
            width: 60px; height: 60px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 10px;
            font-size: 24px; font-weight: bold; color: white;
        }
        .friend-name { font-size: 14px; font-weight: bold; color: #333; margin-bottom: 4px; }
        .friend-level { font-size: 11px; color: #999; }

        /* 邀请好友卡片 */
        .invite-card {
            background: white;
            border-radius: 20px;
            padding: 20px 10px 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            position: relative;
            border: 2px dashed #c0c4cc;
        }
        .invite-card:active { transform: scale(0.96); }
        .invite-card-icon {
            width: 60px; height: 60px;
            border: 2px dashed #c0c4cc;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 10px;
            font-size: 28px; color: #c0c4cc;
        }
        .invite-card-text { font-size: 13px; color: #999; }
        .invite-badge {
            position: absolute; top: 8px; right: 8px;
            background: #f59e0b; color: white;
            border-radius: 10px; padding: 2px 7px;
            font-size: 11px; font-weight: bold;
        }

        /* 空状态 */
        .empty-friends {
            text-align: center;
            padding: 50px 20px;
            background: white;
            border-radius: 20px;
            margin-bottom: 20px;
        }
        .empty-icon { font-size: 64px; margin-bottom: 12px; }
        .empty-text { font-size: 14px; color: #999; margin-bottom: 20px; }
        .invite-btn {
            width: 100%; padding: 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white; border: none; border-radius: 30px;
            font-size: 16px; font-weight: bold; cursor: pointer;
            transition: all 0.3s;
        }
        .invite-btn:active { transform: scale(0.98); }

        /* 申请列表 */
        .request-section { margin-top: 8px; }
        .request-section-title {
            font-size: 13px; color: #999; margin-bottom: 10px; padding-left: 4px;
        }
        .request-item {
            background: white; border-radius: 16px; padding: 14px;
            display: flex; align-items: center; gap: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 10px;
        }
        
        /* ========== 竞技PK主页样式 ========== */
        .pk-home-container {
            padding: 20px;
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .pk-home-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .pk-home-header h2 {
            font-size: 24px;
            color: #333;
            font-weight: bold;
        }
        
        .pk-record-btn {
            font-size: 14px;
            color: #667eea;
            cursor: pointer;
        }
        
        .current-score {
            background: white;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 20px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
        
        .current-score span {
            font-size: 18px;
            font-weight: bold;
            color: #ff9800;
        }
        
        .pk-modes {
            display: flex;
            gap: 16px;
            margin-bottom: 20px;
        }
        
        .pk-mode-card {
            flex: 1;
            background: white;
            border-radius: 20px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 2px 12px rgba(0,0,0,0.05);
        }
        
        .pk-mode-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 12px;
        }
        
        .pk-mode-desc {
            font-size: 12px;
            color: #999;
            margin-bottom: 8px;
        }
        
        .pk-mode-tag {
            font-size: 12px;
            color: #667eea;
            margin-bottom: 12px;
        }
        
        .pk-mode-difficulty {
            font-size: 12px;
            color: #ff9800;
            margin-bottom: 16px;
        }
        
        .pk-start-btn {
            width: 100%;
            padding: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
        }
        
        /* ========== 在线竞技PK样式 ========== */
        .pk-online-container {
            padding: 20px;
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .pk-online-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .pk-online-header h2 {
            font-size: 24px;
            color: #333;
            font-weight: bold;
        }
        
        .pk-modes-grid {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
        }
        
        .pk-mode-item {
            flex: 1;
            background: white;
            border-radius: 20px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 2px 12px rgba(0,0,0,0.05);
        }
        
        .pk-mode-item h3 {
            font-size: 16px;
            margin-bottom: 8px;
        }
        
        .pk-mode-item p {
            font-size: 12px;
            color: #999;
            margin-bottom: 16px;
        }
        
        .pk-action-btn {
            width: 100%;
            padding: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .bet-section {
            background: white;
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        }
        
        .bet-title {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 2px solid #667eea;
            display: inline-block;
        }
        
        .bet-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 14px;
            padding: 8px 0;
        }
        
        .bet-label {
            font-size: 14px;
            color: #666;
        }
        
        .bet-value {
            font-size: 14px;
            font-weight: bold;
            color: #ff9800;
            background: #fff3e0;
            padding: 6px 12px;
            border-radius: 20px;
            border: none;
        }
        
        .bet-value-select {
            font-size: 14px;
            font-weight: bold;
            color: #ff9800;
            background: #fff3e0;
            padding: 6px 12px;
            border-radius: 20px;
            border: none;
            cursor: pointer;
        }
        
        .rules-card {
            background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
            border-radius: 20px;
            padding: 20px;
            margin-top: 10px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
            border-left: 4px solid #667eea;
        }
        
        .rules-title {
            font-size: 16px;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .rules-list {
            font-size: 13px;
            color: #555;
            line-height: 1.8;
            padding-left: 20px;
        }
        
        /* 匹配中遮罩 */
        .matching-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 999;
        }
        .matching-box {
            background: white;
            border-radius: 24px;
            padding: 40px 32px;
            text-align: center;
            width: 280px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }
        .matching-icon {
            font-size: 56px;
            margin-bottom: 16px;
            animation: pulse 1s infinite;
        }
        @keyframes pulse {
            0%,100% { transform: scale(1); }
            50% { transform: scale(1.15); }
        }
        .matching-text {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
        }
        .matching-countdown {
            font-size: 32px;
            font-weight: bold;
            color: #667eea;
            margin: 12px 0;
        }
        .matching-bet {
            font-size: 13px;
            color: #999;
            margin-bottom: 20px;
        }
        .cancel-match-btn {
            width: 100%;
            padding: 12px;
            background: #f56c6c;
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
        }

        /* PK模式图标 */
        .pk-mode-item-icon {
            font-size: 36px;
            margin-bottom: 8px;
        }
        .pk-mode-item {
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .pk-mode-item:active {
            transform: scale(0.97);
        }

        /* 好友选择弹窗 */
        .friend-modal-mask {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.45);
            display: flex;
            align-items: flex-end;
            z-index: 999;
        }
        .friend-modal {
            background: white;
            border-radius: 24px 24px 0 0;
            padding: 24px 20px 32px;
            width: 100%;
            max-height: 70vh;
            overflow-y: auto;
        }
        .friend-modal-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            text-align: center;
            margin-bottom: 20px;
        }
        .friend-modal-empty {
            text-align: center;
            color: #999;
            padding: 20px;
        }
        .friend-modal-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 12px;
            cursor: pointer;
            margin-bottom: 8px;
            background: #f8f9ff;
            transition: background 0.2s;
        }
        .friend-modal-item:active { background: #eef0ff; }
        .friend-avatar-mini {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 16px;
        }
        .friend-invite-arrow {
            margin-left: auto;
            color: #667eea;
            font-size: 13px;
            font-weight: bold;
        }
        .friend-modal-cancel {
            width: 100%;
            padding: 14px;
            margin-top: 12px;
            background: #f5f5f5;
            color: #666;
            border: none;
            border-radius: 30px;
            font-size: 15px;
            cursor: pointer;
        }

        /* ========== 离线竞技PK样式 ========== */
        .pk-offline-container {
            padding: 20px;
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .pk-offline-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .pk-offline-header h2 {
            font-size: 24px;
            color: #333;
            font-weight: bold;
        }
        
        /* 离线挑战卡片 */
        .challenge-card {
            background: white;
            border-radius: 20px;
            padding: 24px 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        }
        .challenge-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #333;
            padding-bottom: 12px;
            border-bottom: 2px solid #667eea;
            display: inline-block;
        }
        .challenge-row {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            gap: 12px;
        }
        .challenge-label {
            font-size: 14px;
            color: #666;
            white-space: nowrap;
            min-width: 70px;
        }
        .friend-select, .bet-input {
            flex: 1;
            padding: 10px 14px;
            border: 1.5px solid #e0e0e0;
            border-radius: 12px;
            font-size: 14px;
            background: #fafbff;
            color: #333;
            cursor: pointer;
        }
        .friend-select:focus, .bet-input:focus { border-color: #667eea; outline: none; }
        .send-invite-btn {
            width: 100%;
            padding: 13px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 8px;
            transition: opacity 0.2s;
        }
        .send-invite-btn:active { opacity: 0.85; }

        /* 等待卡片 */
        .waiting-card {
            background: white;
            border-radius: 20px;
            padding: 32px 24px;
            margin-bottom: 20px;
            text-align: center;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        }
        .waiting-icon {
            font-size: 56px;
            margin-bottom: 16px;
            animation: bounce 1.2s infinite;
        }
        @keyframes bounce {
            0%,100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }
        .waiting-friend { font-size: 16px; color: #333; margin-bottom: 6px; }
        .waiting-status { font-size: 13px; color: #999; margin-bottom: 20px; }
        .countdown-display {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            margin-bottom: 24px;
        }
        .countdown-num {
            font-size: 40px;
            font-weight: bold;
            color: #ff9800;
            font-family: monospace;
            background: #fff3e0;
            padding: 4px 12px;
            border-radius: 10px;
        }
        .countdown-sep { font-size: 32px; font-weight: bold; color: #ff9800; }
        .waiting-actions { display: flex; gap: 12px; }
        .cancel-btn {
            flex: 1;
            padding: 12px;
            background: #f0f0f0;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
        }
        .practice-btn {
            flex: 1;
            padding: 12px;
            background: linear-gradient(135deg, #eef2ff, #e0e6ff);
            color: #667eea;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
        }

        /* 自由练习卡片 */
        .free-practice-card {
            background: white;
            border-radius: 20px;
            padding: 24px 20px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
        .free-practice-title {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
        }
        .free-practice-desc {
            font-size: 13px;
            color: #999;
            margin-bottom: 4px;
        }
        .start-practice-btn {
            width: 100%;
            padding: 13px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 16px;
        }

        /* PK历史页新样式 */
        .pk-stats-row {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
        }
        .pk-stat-item {
            flex: 1;
            background: white;
            border-radius: 16px;
            padding: 14px 8px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
        .pk-stat-num {
            font-size: 22px;
            font-weight: bold;
            color: #667eea;
        }
        .pk-stat-label {
            font-size: 11px;
            color: #aaa;
            margin-top: 4px;
        }
        .history-mode-icon {
            font-size: 28px;
            flex-shrink: 0;
        }
        .history-top-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }
        .history-mode-tag {
            font-size: 11px;
            color: #667eea;
            background: #eef0ff;
            padding: 2px 8px;
            border-radius: 20px;
        }
        .history-result-tag {
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 20px;
            font-weight: bold;
        }
        .result-win { background: #f0fff4; color: #67c23a; }
        .result-lose { background: #fff0f0; color: #f56c6c; }
        .result-draw { background: #fffbe6; color: #e6a817; }
        .result-done { background: #f0f5ff; color: #667eea; }
        .history-date { font-size: 11px; color: #ccc; margin-top: 4px; }
        .score-positive { color: #67c23a; font-weight: bold; font-size: 14px; }
        .score-negative { color: #f56c6c; font-weight: bold; font-size: 14px; }
        .score-zero { color: #999; font-size: 14px; }

        /* 详情弹窗 */
        .detail-modal-mask {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 999;
        }
        .detail-modal {
            background: white;
            border-radius: 24px;
            padding: 32px 24px;
            width: 310px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        }
        .detail-modal-icon { font-size: 48px; margin-bottom: 8px; }
        .detail-modal-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid #f0f0f0;
        }
        .detail-modal-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f9f9f9;
        }
        .detail-label { font-size: 13px; color: #999; }
        .detail-value { font-size: 14px; color: #333; text-align: right; max-width: 200px; }
        .detail-close-btn {
            width: 100%;
            padding: 13px;
            margin-top: 20px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
        }
        
        /* ========== 道具库页面样式 ========== */
        .props-container {
            padding: 20px;
            min-height: 100vh;
            background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
        }
        
        .props-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }
        
        .props-header h2 {
            font-size: 24px;
            color: #333;
            font-weight: bold;
        }
        
        .energy-value {
            font-size: 16px;
            font-weight: bold;
            color: #9c27b0;
            background: white;
            padding: 8px 16px;
            border-radius: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .props-card {
            background: white;
            border-radius: 24px;
            padding: 28px 24px;
            margin-bottom: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
            border: 1px solid rgba(0,0,0,0.03);
        }
        
        .props-card:active {
            transform: scale(0.98);
        }
        
        .props-card-icon {
            font-size: 44px;
            margin-bottom: 12px;
        }
        
        .props-card-title {
            font-size: 20px;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
        }
        
        .props-card-desc {
            font-size: 13px;
            color: #999;
            margin-bottom: 16px;
            line-height: 1.4;
        }
        
        .props-card-arrow {
            text-align: right;
            color: #667eea;
            font-size: 14px;
            font-weight: 500;
        }
        
        /* ========== PK道具商城样式 ========== */
        .pk-props-container {
            padding: 20px;
            min-height: 100vh;
            background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
        }
        
        .pk-props-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }
        
        .pk-props-header h2 {
            font-size: 24px;
            color: #333;
            font-weight: bold;
        }
        
        .pk-energy-value {
            font-size: 16px;
            font-weight: bold;
            color: #9c27b0;
            background: white;
            padding: 8px 16px;
            border-radius: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .pk-props-item {
            background: white;
            border-radius: 24px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
            border: 1px solid rgba(0,0,0,0.03);
        }
        
        .pk-props-name {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 4px;
        }
        
        .pk-props-owner {
            font-size: 12px;
            color: #ff9800;
            background: #fff3e0;
            display: inline-block;
            padding: 2px 10px;
            border-radius: 14px;
            margin-bottom: 12px;
        }
        
        .pk-props-desc {
            font-size: 13px;
            color: #666;
            line-height: 1.5;
            margin-bottom: 16px;
            background: #f9f9f9;
            padding: 12px;
            border-radius: 12px;
        }
        
        .pk-props-info {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .pk-props-price {
            font-size: 16px;
            font-weight: bold;
            color: #ff9800;
        }
        
        .pk-props-stock {
            font-size: 13px;
            color: #999;
        }
        
        .pk-props-stock span {
            font-weight: bold;
            color: #333;
        }
        
        .exchange-btn {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .exchange-btn:active {
            transform: scale(0.96);
        }
        
        .rules-card-props {
            background: white;
            border-radius: 20px;
            padding: 20px;
            margin-top: 20px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
        }
        
        .rules-title-props {
            font-size: 15px;
            font-weight: bold;
            color: #333;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 2px solid #667eea;
            display: inline-block;
        }
        
        .rules-list-props {
            font-size: 12px;
            color: #999;
            line-height: 1.8;
            padding-left: 16px;
        }
        
        /* ========== 卡牌道具商城样式 ========== */
        .card-props-container {
            padding: 20px;
            min-height: 100vh;
            background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
        }
        
        .card-props-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .card-props-header h2 {
            font-size: 24px;
            color: #333;
            font-weight: bold;
        }
        
        .refresh-time {
            font-size: 12px;
            color: #999;
            background: white;
            padding: 4px 12px;
            border-radius: 16px;
        }
        
        .current-score {
            background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
            border: 1px solid rgba(0,0,0,0.03);
        }
        
        .score-label-card {
            font-size: 14px;
            color: #666;
        }
        
        .score-value-card {
            font-size: 28px;
            font-weight: bold;
            color: #ff9800;
        }
        
        .card-item {
            background: white;
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 16px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
            border: 1px solid rgba(0,0,0,0.03);
            transition: all 0.3s;
        }
        
        .card-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        }
        
        .card-name {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
        }
        
        .card-price {
            font-size: 16px;
            font-weight: bold;
            color: #ff9800;
            margin-bottom: 12px;
        }
        
        .card-desc {
            font-size: 12px;
            color: #999;
            margin-bottom: 12px;
            line-height: 1.4;
        }
        
        .card-limit {
            font-size: 12px;
            color: #999;
            margin-bottom: 16px;
            background: #f5f5f5;
            display: inline-block;
            padding: 4px 12px;
            border-radius: 16px;
        }
        
        .card-exchange-btn {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .card-exchange-btn:active {
            transform: scale(0.96);
        }
        
        .footer-buttons {
            display: flex;
            gap: 16px;
            margin-top: 20px;
        }
        
        .footer-btn {
            flex: 1;
            padding: 14px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 30px;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            color: #666;
        }
        
        .footer-btn:active {
            transform: scale(0.96);
            background: #f0f0f0;
        }
        
        /* ========== PK历史页样式 ========== */
        .pk-history-container {
            padding: 20px;
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .pk-history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .pk-history-header h2 {
            font-size: 24px;
            color: #333;
            font-weight: bold;
        }
        
        .clear-btn {
            font-size: 14px;
            color: #ff4d4f;
            cursor: pointer;
            padding: 4px 12px;
            border-radius: 16px;
            background: #fff0f0;
        }
        
        .history-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .history-item {
            background: white;
            border-radius: 16px;
            padding: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
        
        .history-item:active {
            transform: scale(0.98);
            background: #f5f5f5;
        }
        
        .history-info {
            flex: 1;
        }
        
        .history-date {
            font-size: 12px;
            color: #999;
            margin-bottom: 4px;
        }
        
        .history-detail {
            font-size: 14px;
            color: #333;
            font-weight: 500;
        }
        
        .history-score {
            font-size: 14px;
            font-weight: bold;
        }
        
        .history-score.positive {
            color: #52c41a;
        }
        
        .history-score.negative {
            color: #ff4d4f;
        }
        
        .history-score.zero {
            color: #999;
        }
        
        .empty-history {
            text-align: center;
            padding: 60px 20px;
            background: white;
            border-radius: 20px;
        }
        
        .empty-icon {
            font-size: 80px;
            margin-bottom: 16px;
        }
        
        .empty-text {
            font-size: 14px;
            color: #999;
        }
        
        /* ========== 对战答题页样式 ========== */
        .battle-container {
            display: block !important;
            width: 100%;
            box-sizing: border-box;
            padding: 16px;
            min-height: 100vh;
            background: #f5f7fa;
            overflow-x: hidden;
        }

        .battle-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .wrong-book-btn {
            font-size: 14px;
            color: #667eea;
            cursor: pointer;
        }

        .battle-info {
            display: block;
            width: 100%;
            box-sizing: border-box;
            background: white;
            border-radius: 20px;
            padding: 16px;
            margin-bottom: 16px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }

        .battle-players {
            display: flex;
            justify-content: space-around;
            align-items: center;
            margin-bottom: 8px;
        }

        .player { text-align: center; }

        .player-name {
            font-size: 16px;
            font-weight: bold;
            color: #333;
        }

        .player-level {
            font-size: 12px;
            color: #999;
            margin-top: 2px;
        }

        .vs {
            font-size: 20px;
            font-weight: bold;
            color: #ff9800;
        }

        .bet-amount {
            font-size: 12px;
            color: #aaa;
            margin-top: 4px;
        }

        .question-card {
            display: block;
            width: 100%;
            box-sizing: border-box;
            background: white;
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 16px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
            overflow: visible;
        }

        .question-number {
            font-size: 13px;
            color: #aaa;
            margin-bottom: 10px;
        }

        .question-text {
            font-size: 18px;
            font-weight: bold;
            color: #222;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .options {
            display: block;
            width: 100%;
        }

        .option {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            box-sizing: border-box;
            padding: 13px 16px;
            margin-bottom: 10px;
            background: #f7f8ff;
            border-radius: 12px;
            cursor: pointer;
            font-size: 15px;
            color: #333;
            border: 1.5px solid #e8eaff;
            transition: all 0.15s;
        }

        .option:last-child {
            margin-bottom: 0;
        }

        .option:active,
        .option:hover {
            background: #eef0ff;
            border-color: #667eea;
            color: #667eea;
        }

        .option-correct {
            background: #f0fff4 !important;
            border-color: #67c23a !important;
            color: #67c23a !important;
        }

        .option-wrong {
            background: #fff0f0 !important;
            border-color: #f56c6c !important;
            color: #f56c6c !important;
        }

        .timer {
            display: block;
            width: 100%;
            box-sizing: border-box;
            background: white;
            border-radius: 20px;
            padding: 14px 16px;
            margin-bottom: 16px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }

        .timer-text {
            font-size: 15px;
            color: #333;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .timer-text.urgent { color: #f56c6c; }

        .timer-bar {
            height: 8px;
            background: #eee;
            border-radius: 4px;
            overflow: hidden;
        }

        .timer-progress {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 4px;
            transition: width 1s linear;
        }

        .timer-progress.urgent {
            background: linear-gradient(90deg, #f56c6c, #ff9800);
        }

        .option-label {
            display: inline-block;
            width: 24px;
            height: 24px;
            line-height: 24px;
            text-align: center;
            background: #667eea;
            color: white;
            border-radius: 50%;
            font-size: 12px;
            font-weight: bold;
            margin-right: 10px;
            flex-shrink: 0;
        }



        .props-bar {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 16px;
            padding-bottom: 24px;
        }

        .prop-btn {
            padding: 8px 16px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 30px;
            font-size: 13px;
            cursor: pointer;
            user-select: none;
            transition: all 0.2s;
        }

        .prop-btn:hover {
            background: #f5f7fa;
            border-color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
        }

        .prop-btn:active {
            transform: translateY(0);
        }
        
        /* ========== 错题本页样式 ========== */
        .wrong-questions-container {
            padding: 20px;
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .wrong-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .knowledge-section {
            margin-bottom: 24px;
        }
        
        .knowledge-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 12px;
            padding-left: 8px;
            border-left: 4px solid #667eea;
        }
        
        .wrong-item {
            background: white;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
        
        .wrong-question {
            font-size: 14px;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
        }
        
        .wrong-answer {
            font-size: 13px;
            color: #ff4d4f;
            margin-bottom: 4px;
        }
        
        .correct-answer {
            font-size: 13px;
            color: #52c41a;
            margin-bottom: 8px;
        }
        
        .wrong-stats {
            font-size: 12px;
            color: #999;
            margin-bottom: 12px;
        }
        
        .wrong-actions {
            display: flex;
            gap: 12px;
        }
        
        .wrong-btn {
            padding: 6px 16px;
            background: #f0f0f0;
            border: none;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
        }
        
        .wrong-btn.primary {
            background: #eef2ff;
            color: #667eea;
        }
        
        .smart-practice {
            margin-top: 20px;
            text-align: center;
        }
        
        .smart-practice-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
        }
        
        /* ========== 聊天室样式 ========== */
        .chat-container {
            padding: 20px;
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .chat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .chat-header h2 {
            font-size: 24px;
            color: #333;
            font-weight: bold;
        }
        
        .new-chat-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .my-chatrooms-section {
            margin-bottom: 32px;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 16px;
            padding-left: 8px;
            border-left: 4px solid #667eea;
        }
        
        .chatroom-card {
            background: white;
            border-radius: 20px;
            padding: 16px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 12px rgba(0,0,0,0.05);
            transition: all 0.3s;
        }
        
        .chatroom-card:active {
            transform: scale(0.98);
        }
        
        .chatroom-info {
            flex: 1;
        }
        
        .chatroom-name {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            margin-bottom: 4px;
        }
        
        .chatroom-members {
            font-size: 12px;
            color: #999;
            margin-bottom: 6px;
        }
        
        .last-message {
            font-size: 12px;
            color: #666;
            margin-bottom: 4px;
        }
        
        .message-time {
            font-size: 11px;
            color: #bbb;
        }
        
        .online-status {
            font-size: 11px;
            color: #52c41a;
            margin-top: 4px;
        }
        
        .chatroom-actions {
            text-align: right;
        }
        
        .enter-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 6px 16px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            margin-bottom: 8px;
            width: 60px;
        }
        
        .empty-chatrooms {
            text-align: center;
            padding: 60px 20px;
            background: white;
            border-radius: 20px;
        }
        
        .pending-invites {
            margin-top: 20px;
        }
        
        .invite-card {
            background: #fff8e1;
            border-radius: 16px;
            padding: 14px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-left: 4px solid #ff9800;
        }
        
        .invite-info {
            flex: 1;
        }
        
        .invite-text {
            font-size: 14px;
            color: #333;
            margin-bottom: 4px;
        }
        
        .invite-actions {
            display: flex;
            gap: 8px;
        }
        
        .accept-invite {
            background: #52c41a;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 6px 16px;
            font-size: 12px;
            cursor: pointer;
        }
        
        .reject-invite {
            background: #ff4d4f;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 6px 16px;
            font-size: 12px;
            cursor: pointer;
        }
        
        /* ========== 优化后的聊天室详情页样式 ========== */
        .chat-detail-container {
            display: flex;
            flex-direction: column;
            height: 100vh;
            background: linear-gradient(180deg, #f0f4f8 0%, #e8edf3 100%);
        }
        
        /* 聊天室头部 */
        .chat-room-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            color: white;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .chat-room-header .back-btn {
            color: white;
            font-size: 24px;
            background: rgba(255,255,255,0.2);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        .chat-room-info {
            flex: 1;
        }
        
        .chat-room-name {
            font-size: 18px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .chat-room-name-icon {
            font-size: 20px;
        }
        
        .chat-room-meta {
            font-size: 12px;
            opacity: 0.8;
            margin-top: 4px;
        }
        
        .chat-room-actions {
            display: flex;
            gap: 12px;
        }
        
        .chat-room-action-btn {
            background: rgba(255,255,255,0.2);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .chat-room-action-btn:active {
            background: rgba(255,255,255,0.4);
        }
        
        /* 消息列表区域 */
        .message-list {
            flex: 1;
            overflow-y: auto;
            padding: 20px 16px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        /* 消息气泡 - 别人的消息 */
        .message-item-other {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            animation: fadeIn 0.3s ease;
        }
        
        .message-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .message-content-wrapper {
            max-width: calc(100% - 60px);
        }
        
        .message-sender {
            font-size: 12px;
            color: #666;
            margin-bottom: 4px;
            margin-left: 8px;
        }
        
        .message-bubble-other {
            background: white;
            padding: 12px 16px;
            border-radius: 20px;
            border-top-left-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .message-content {
            font-size: 15px;
            color: #333;
            line-height: 1.4;
        }

        .chat-media-img {
            max-width: 180px;
            max-height: 240px;
            border-radius: 8px;
            cursor: pointer;
            display: block;
        }
        .chat-media-video {
            max-width: 220px;
            max-height: 280px;
            border-radius: 8px;
            display: block;
        }
        .chat-media-audio {
            width: 200px;
            height: 40px;
        }

        .plus-btn {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            border: 1.5px solid #c9cdd4;
            color: #888;
            font-size: 22px;
            line-height: 30px;
            text-align: center;
            cursor: pointer;
            flex-shrink: 0;
            transition: transform .2s;
            user-select: none;
        }
        .plus-btn.active { transform: rotate(45deg); color: #667eea; border-color: #667eea; }

        .plus-panel {
            display: flex;
            gap: 20px;
            padding: 16px;
            background: #f7f8fa;
            border-top: 1px solid #ebedf0;
        }
        .plus-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            width: 56px;
        }
        .plus-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            background: #fff;
            font-size: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 4px rgba(0,0,0,.06);
        }
        .plus-label {
            font-size: 12px;
            color: #888;
            margin-top: 6px;
        }

        .message-time {
            font-size: 10px;
            color: #999;
            margin-top: 4px;
            margin-left: 8px;
        }
        
        /* 消息气泡 - 自己的消息 */
        .message-item-self {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            animation: fadeIn 0.3s ease;
        }
        
        .message-self-wrapper {
            max-width: calc(100% - 60px);
            text-align: right;
        }
        
        .message-bubble-self {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 12px 16px;
            border-radius: 20px;
            border-top-right-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .message-bubble-self .message-content {
            color: white;
        }
        
        .message-self-time {
            font-size: 10px;
            color: #999;
            margin-top: 4px;
        }
        
        /* 系统消息 */
        .system-message {
            text-align: center;
            margin: 8px 0;
        }
        
        .system-message span {
            background: rgba(0,0,0,0.05);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            color: #999;
        }
        
        /* 快捷短语区域 */
        .quick-phrases {
            background: white;
            padding: 12px 16px;
            display: flex;
            gap: 12px;
            overflow-x: auto;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
        }
        
        .quick-phrase {
            background: #f0f2f5;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            color: #667eea;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .quick-phrase:active {
            background: #e0e4e8;
            transform: scale(0.96);
        }
        
        /* 输入区域 */
        .message-input-area {
            background: white;
            padding: 12px 16px;
            display: flex;
            gap: 12px;
            align-items: center;
            border-top: 1px solid #eee;
        }
        
        .emoji-btn {
            font-size: 24px;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s;
        }
        
        .emoji-btn:active {
            background: #f0f0f0;
        }
        
        .message-input {
            flex: 1;
            padding: 12px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 30px;
            font-size: 15px;
            background: #f5f7fa;
            transition: all 0.2s;
        }
        
        .message-input:focus {
            outline: none;
            border-color: #667eea;
            background: white;
        }
        
        .send-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .send-btn:active {
            transform: scale(0.96);
        }
        
        .invite-friend-btn {
            background: #ff9800;
            color: white;
            border: none;
            border-radius: 30px;
            padding: 12px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            margin: 12px 16px;
            transition: all 0.2s;
        }
        
        .invite-friend-btn:active {
            transform: scale(0.98);
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 表情选择器弹窗 */
        .emoji-picker {
            position: fixed;
            bottom: 80px;
            left: 20px;
            right: 20px;
            background: white;
            border-radius: 20px;
            padding: 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            z-index: 100;
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 12px;
            max-width: 350px;
            margin: 0 auto;
        }
        
        .emoji-item {
            font-size: 28px;
            text-align: center;
            cursor: pointer;
            padding: 8px;
            border-radius: 12px;
            transition: all 0.2s;
        }
        
        .emoji-item:active {
            background: #f0f0f0;
            transform: scale(0.9);
        }
        
        /* ========== 聊天室设置页样式 ========== */
        .chat-settings-container {
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .settings-header {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px 20px;
            background: white;
            border-bottom: 1px solid #eee;
        }
        
        .settings-header .back-btn {
            font-size: 24px;
            cursor: pointer;
        }
        
        .settings-header h2 {
            font-size: 20px;
            font-weight: bold;
            color: #333;
        }
        
        .settings-section {
            background: white;
            margin-top: 12px;
            padding: 0 16px;
        }
        
        .settings-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .settings-item:last-child {
            border-bottom: none;
        }
        
        .settings-label {
            font-size: 16px;
            color: #333;
        }
        
        .settings-value {
            font-size: 14px;
            color: #999;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .edit-icon {
            color: #667eea;
            font-size: 14px;
            cursor: pointer;
        }
        
        .member-list {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            padding: 12px 0;
        }
        
        .member-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        
        .member-avatar {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 20px;
        }
        
        .member-name {
            font-size: 12px;
            color: #666;
        }
        
        .member-role {
            font-size: 10px;
            color: #ff9800;
            background: #fff3e0;
            padding: 2px 8px;
            border-radius: 12px;
        }
        
        .danger-btn {
            color: #ff4d4f;
            text-align: center;
            padding: 16px;
            background: white;
            margin-top: 20px;
            font-size: 16px;
            cursor: pointer;
        }
        
        .danger-btn:active {
            background: #f5f5f5;
        }
        
        /* 聊天记录弹窗样式 */
        .history-dialog-content {
            max-height: 400px;
            overflow-y: auto;
        }
        
        .history-date-group {
            margin-bottom: 16px;
        }
        
        .history-date-title {
            font-size: 13px;
            font-weight: bold;
            color: #666;
            margin-bottom: 8px;
            padding-left: 8px;
            border-left: 3px solid #667eea;
        }
        
        .history-message-item {
            background: #f9f9f9;
            border-radius: 12px;
            padding: 10px 12px;
            margin-bottom: 8px;
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }
        
        .history-message-avatar {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 14px;
            flex-shrink: 0;
        }
        
        .history-message-content {
            flex: 1;
        }
        
        .history-message-sender {
            font-size: 12px;
            font-weight: bold;
            color: #333;
        }
        
        .history-message-text {
            font-size: 13px;
            color: #666;
            margin-top: 2px;
        }
        
        .history-message-time {
            font-size: 10px;
            color: #999;
            margin-top: 2px;
        }
        
        /* ========== 虚拟数字人样式（优化后） ========== */
        .digital-container {
            min-height: 100vh;
            background: linear-gradient(145deg, #f0f4fa 0%, #e6edf4 100%);
        }
        
        .digital-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255,255,255,0.6);
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .digital-header h2 {
            font-size: 22px;
            font-weight: 700;
            background: linear-gradient(135deg, #1e2f3a, #2c3e50);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            letter-spacing: -0.3px;
        }
        
        .digital-header .back-btn {
            font-size: 24px;
            cursor: pointer;
            background: rgba(102, 126, 234, 0.1);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 30px;
            transition: all 0.2s;
        }
        
        .digital-header .back-btn:active {
            background: rgba(102, 126, 234, 0.2);
            transform: scale(0.94);
        }
        
        .digital-header .edit-icon {
            font-size: 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 8px 16px;
            border-radius: 30px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(102,126,234,0.2);
        }
        
        .digital-header .edit-icon:active {
            transform: scale(0.96);
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }
        
        /* 数字人卡片优化 */
        .digital-card {
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(2px);
            border-radius: 28px;
            margin: 16px;
            padding: 20px;
            box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08);
            transition: all 0.25s ease;
            border: 1px solid rgba(255, 255, 255, 0.7);
        }
        
        .digital-card:hover {
            transform: translateY(-3px);
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 20px 32px -12px rgba(0, 0, 0, 0.12);
        }
        
        .digital-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .digital-name {
            font-size: 20px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 12px;
            color: #1f2f3c;
        }
        
        .digital-avatar {
            width: 52px;
            height: 52px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 24px;
            box-shadow: 0 6px 12px -6px rgba(0,0,0,0.15);
        }
        
        .digital-level {
            font-size: 14px;
            font-weight: 600;
            background: #fff3e0;
            padding: 6px 14px;
            border-radius: 40px;
            color: #ff9800;
        }
        
        .digital-progress {
            margin: 16px 0;
        }
        
        .progress-bar {
            height: 10px;
            background: #e2e9f0;
            border-radius: 20px;
            overflow: hidden;
            margin-top: 8px;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 20px;
            width: 0%;
            transition: width 0.3s ease;
        }
        
        .digital-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .digital-btn {
            flex: 1;
            min-width: 70px;
            padding: 10px 0;
            border-radius: 40px;
            text-align: center;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            background: #f0f4f8;
            color: #2c5a6e;
            transition: all 0.2s;
        }
        
        .digital-btn.primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 10px rgba(102,126,234,0.25);
        }
        
        .digital-btn:active {
            transform: scale(0.96);
        }
        
        .shared-section, .private-section {
            background: transparent;
            margin: 8px 0;
            border-radius: 0;
            padding: 0;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: 700;
            color: #1f2f3c;
            margin: 20px 16px 12px 16px;
            padding-left: 12px;
            border-left: 4px solid #667eea;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            background: rgba(255,255,255,0.7);
            border-radius: 32px;
            margin: 20px;
        }
        
        .empty-state .empty-icon {
            font-size: 80px;
            margin-bottom: 20px;
            opacity: 0.6;
        }
        
        .empty-state .empty-text {
            font-size: 15px;
            color: #8da3b3;
            margin-bottom: 20px;
        }
        
        /* 专属型空状态卡片样式 */
        .private-section .digital-card {
            text-align: center;
            border: 1px dashed #c0d4e2;
            background: rgba(255,255,245,0.8);
        }
        
        .private-section .digital-card .empty-icon {
            font-size: 56px;
            margin-bottom: 8px;
        }
        
        .digital-item-cost {
            font-size: 13px;
            color: #ff9800;
            background: #fff3e0;
            display: inline-block;
            padding: 6px 14px;
            border-radius: 30px;
            margin: 12px 0;
        }
        
        .create-btn {
            width: auto;
            padding: 12px 28px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 40px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .create-btn:active {
            transform: scale(0.97);
        }
        
        /* ========== 虚拟数字人兑换/创建页样式（共享型美化） ========== */
        .create-container {
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        /* 共享型卡片网格布局 */
        .shared-cards-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            padding: 0 16px 20px 16px;
        }
        
        /* 共享型卡片样式 */
        .shared-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
            border-radius: 24px;
            padding: 20px 16px;
            text-align: center;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
            transition: all 0.3s ease;
            border: 1px solid rgba(102, 126, 234, 0.15);
            position: relative;
            overflow: hidden;
        }
        
        .shared-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
            border-color: rgba(102, 126, 234, 0.3);
        }
        
        .shared-card:active {
            transform: translateY(-2px);
        }
        
        /* 卡片装饰光效 */
        .shared-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(102,126,234,0.08) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.4s;
            pointer-events: none;
        }
        
        .shared-card:hover::before {
            opacity: 1;
        }
        
        /* 头像图标区 */
        .shared-card-avatar {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            font-size: 32px;
            box-shadow: 0 8px 16px rgba(102, 126, 234, 0.25);
            transition: transform 0.2s;
        }
        
        .shared-card:hover .shared-card-avatar {
            transform: scale(1.05);
        }
        
        /* 名称 */
        .shared-card-name {
            font-size: 18px;
            font-weight: 700;
            color: #1f2f3c;
            margin-bottom: 8px;
        }
        
        /* 卡牌数量标签 */
        .shared-card-cards {
            background: #f0f2f5;
            display: inline-block;
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 13px;
            font-weight: 600;
            color: #ff9800;
            margin-bottom: 16px;
            background: #fff3e0;
        }
        
        /* 兑换按钮 */
        .shared-exchange-btn {
            width: 100%;
            padding: 10px 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 40px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
        }
        
        .shared-exchange-btn:active {
            transform: scale(0.96);
            box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
        }
        
        /* 底部说明文字 */
        .shared-footer-tip {
            background: linear-gradient(135deg, #eef2ff, #e8edff);
            margin: 16px;
            padding: 12px 20px;
            border-radius: 30px;
            text-align: center;
            font-size: 12px;
            color: #667eea;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        /* 保留原有样式兼容 */
        .exchange-btn-small {
            padding: 6px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
        }
        
        .create-form {
            margin-top: 16px;
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-label {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
            display: block;
        }
        
        .form-input {
            width: 100%;
            padding: 12px;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            font-size: 14px;
        }
        
        .upload-area {
            border: 1px dashed #ccc;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            color: #999;
            cursor: pointer;
        }
        
        .create-submit-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 16px;
        }
        
        /* 数字人聊天页样式 */
        .digital-chat-container {
            display: flex;
            flex-direction: column;
            height: 100vh;
            background: linear-gradient(180deg, #f0f4f8 0%, #e8edf3 100%);
        }
        
        .digital-chat-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            color: white;
        }
        
        .digital-chat-header .back-btn {
            color: white;
            font-size: 24px;
            background: rgba(255,255,255,0.2);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        .digital-chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px 16px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .digital-message-ai {
            display: flex;
            gap: 12px;
            align-items: flex-start;
        }
        
        .digital-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
        }
        
        .digital-message-bubble-ai {
            background: white;
            padding: 12px 16px;
            border-radius: 20px;
            border-top-left-radius: 4px;
            max-width: 80%;
            line-height: 1.6;
        }
        
        /* Markdown 消息样式 */
        .digital-message-bubble-ai :deep(h1),
        .digital-message-bubble-ai :deep(h2),
        .digital-message-bubble-ai :deep(h3),
        .digital-message-bubble-ai :deep(h4),
        .digital-message-bubble-ai :deep(h5),
        .digital-message-bubble-ai :deep(h6) {
            margin: 12px 0 8px 0;
            font-weight: bold;
        }
        
        .digital-message-bubble-ai :deep(h1) { font-size: 1.5em; }
        .digital-message-bubble-ai :deep(h2) { font-size: 1.3em; }
        .digital-message-bubble-ai :deep(h3) { font-size: 1.1em; }
        
        .digital-message-bubble-ai :deep(p) {
            margin: 8px 0;
        }
        
        .digital-message-bubble-ai :deep(strong),
        .digital-message-bubble-ai :deep(b) {
            font-weight: bold;
            color: #333;
        }
        
        .digital-message-bubble-ai :deep(ul),
        .digital-message-bubble-ai :deep(ol) {
            margin: 8px 0;
            padding-left: 20px;
        }
        
        .digital-message-bubble-ai :deep(li) {
            margin: 4px 0;
        }
        
        .digital-message-bubble-ai :deep(code) {
            background: #f5f5f5;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 0.9em;
        }
        
        .digital-message-bubble-ai :deep(pre) {
            background: #f5f5f5;
            padding: 12px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 8px 0;
        }
        
        .digital-message-bubble-ai :deep(pre code) {
            background: none;
            padding: 0;
        }
        
        .digital-message-bubble-ai :deep(blockquote) {
            border-left: 3px solid #667eea;
            padding-left: 12px;
            margin: 8px 0;
            color: #666;
        }
        
        .digital-message-user {
            display: flex;
            justify-content: flex-end;
        }
        
        .digital-message-bubble-user {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 12px 16px;
            border-radius: 20px;
            border-top-right-radius: 4px;
            color: white;
            max-width: 80%;
        }
        
        .digital-chat-input-area {
            background: white;
            padding: 12px 16px;
            display: flex;
            gap: 12px;
            align-items: center;
            border-top: 1px solid #eee;
        }
        
        .digital-chat-input {
            flex: 1;
            padding: 12px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 30px;
            font-size: 15px;
        }
        
        /* 进化学习页样式 */
        .digital-learn-container {
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .learn-question-card {
            background: white;
            border-radius: 24px;
            margin: 20px 16px;
            padding: 24px;
        }
        
        .learn-question-text {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 24px;
        }
        
        .learn-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .learn-option {
            padding: 14px 16px;
            background: #f9f9f9;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .learn-option:active {
            background: #f0f0f0;
        }
        
        .learn-result {
            text-align: center;
            padding: 20px;
        }
        
        .learn-evolution-gain {
            color: #52c41a;
            font-size: 14px;
            margin-top: 8px;
        }
        
        /* 数字人聊天记录页 */
        .digital-history-container {
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .digital-history-date-group {
            margin: 16px;
        }
        
        .digital-history-date {
            font-size: 14px;
            font-weight: bold;
            color: #666;
            margin-bottom: 12px;
            padding-left: 8px;
            border-left: 3px solid #667eea;
        }
        
        .digital-history-item {
            background: white;
            border-radius: 12px;
            padding: 12px 16px;
            margin-bottom: 8px;
        }
        
        .digital-history-sender {
            font-size: 13px;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 4px;
        }
        
        .digital-history-content {
            font-size: 14px;
            color: #333;
        }
        
        /* 其他页面占位样式 */
        .page-placeholder {
            padding: 20px;
            text-align: center;
        }
        
        /* 数字人标签页样式（用于其他子页面） */
        .digital-tabs {
            display: flex;
            background: white;
            padding: 0 16px;
            gap: 24px;
            border-bottom: 1px solid #eee;
        }
        
        .digital-tab {
            padding: 14px 0;
            font-size: 16px;
            font-weight: 500;
            color: #999;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }
        
        .digital-tab.active {
            color: #667eea;
        }
        
        .digital-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 2px;
        }
        
        /* ========== 个人中心页样式 ========== */
        .profile-container {
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .profile-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: white;
            border-bottom: 1px solid #eee;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .profile-header h2 {
            font-size: 20px;
            font-weight: bold;
            color: #333;
        }
        
        .profile-header .back-btn {
            font-size: 24px;
            cursor: pointer;
        }
        
        .profile-header .settings-icon {
            font-size: 22px;
            cursor: pointer;
        }
        
        /* 用户信息卡片 */
        .user-info-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 16px;
            border-radius: 24px;
            padding: 24px 20px;
            color: white;
            display: flex;
            align-items: center;
            gap: 16px;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
            cursor: pointer;
        }
        
        .user-info-card:active {
            transform: scale(0.98);
        }
        
        .user-avatar-large {
            width: 70px;
            height: 70px;
            background: rgba(255,255,255,0.25);
            border-radius: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            font-weight: bold;
            border: 2px solid rgba(255,255,255,0.5);
        }
        
        .user-info-detail {
            flex: 1;
        }
        
        .user-nickname {
            font-size: 20px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }
        
        .vip-badge {
            background: #ffd700;
            color: #8b6914;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 20px;
            font-weight: 600;
        }
        
        .user-phone {
            font-size: 13px;
            opacity: 0.8;
        }
        
        /* 资产卡片 */
        .assets-row {
            display: flex;
            gap: 16px;
            margin: 0 16px 16px 16px;
        }
        
        .asset-card {
            flex: 1;
            background: white;
            border-radius: 20px;
            padding: 16px;
            text-align: center;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
        }
        
        .asset-label {
            font-size: 13px;
            color: #999;
            margin-bottom: 8px;
        }
        
        .asset-value {
            font-size: 24px;
            font-weight: bold;
            color: #ff9800;
            margin-bottom: 8px;
        }
        
        .asset-get-btn {
            background: #f0f0f0;
            border: none;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
        }
        
        /* 信息卡片通用样式 */
        .info-card {
            background: white;
            margin: 0 16px 12px 16px;
            border-radius: 20px;
            padding: 16px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .info-card:active {
            transform: scale(0.98);
            background: #fafafa;
        }
        
        .card-title {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .card-link {
            font-size: 13px;
            color: #667eea;
            cursor: pointer;
        }
        
        /* 个人信息包 */
        .personal-info {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        
        .info-tag {
            background: #f5f5f5;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            color: #666;
        }
        
        /* 身份库 */
        .identity-list {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        
        .identity-item {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            width: 50px;
            height: 50px;
            border-radius: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 20px;
        }
        
        .identity-text {
            font-size: 14px;
            color: #666;
        }
        
        /* 道具背包 */
        .prop-list {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }
        
        .prop-item {
            background: #f9f9f9;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .prop-name {
            color: #333;
        }
        
        .prop-count {
            color: #ff9800;
            font-weight: bold;
        }
        
        /* 菜单列表 */
        .menu-list {
            background: white;
            margin: 0 16px 12px 16px;
            border-radius: 20px;
            overflow: hidden;
        }
        
        .menu-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .menu-item:last-child {
            border-bottom: none;
        }
        
        .menu-item:active {
            background: #f5f5f5;
        }
        
        .menu-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .menu-icon {
            font-size: 20px;
        }
        
        .menu-name {
            font-size: 15px;
            color: #333;
        }
        
        .menu-right {
            color: #ccc;
            font-size: 14px;
        }
        
        /* 记录展开项 */
        .record-section {
            margin-top: 8px;
        }
        
        .record-item {
            padding: 10px 0;
            border-bottom: 1px solid #f5f5f5;
            display: flex;
            justify-content: space-between;
            font-size: 13px;
        }
        
        .record-item:last-child {
            border-bottom: none;
        }
        
        .record-date {
            color: #999;
        }
        
        .record-detail {
            color: #333;
        }
        
        .record-score {
            color: #ff9800;
            font-weight: bold;
        }
        
        .expand-btn {
            text-align: center;
            padding: 8px;
            color: #667eea;
            font-size: 13px;
            cursor: pointer;
        }
        
        /* ========== 我的身份库页面样式 ========== */
        .identity-container {
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .identity-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: white;
            border-bottom: 1px solid #eee;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .identity-header h2 {
            font-size: 20px;
            font-weight: bold;
            color: #333;
        }
        
        .identity-header .back-btn {
            font-size: 24px;
            cursor: pointer;
        }
        
        .sort-btn {
            font-size: 14px;
            color: #667eea;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 16px;
        }
        
        /* IP卡片 */
        .ip-card {
            background: white;
            margin: 16px;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
            transition: all 0.2s;
            cursor: pointer;
        }
        
        .ip-card:active {
            transform: scale(0.98);
            background: #fafafa;
        }
        
        .ip-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .ip-name {
            font-size: 18px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .ip-level {
            font-size: 14px;
            color: #ff9800;
            background: #fff3e0;
            padding: 2px 10px;
            border-radius: 20px;
        }
        
        .ip-desc {
            font-size: 13px;
            color: #666;
            margin-bottom: 12px;
            line-height: 1.4;
        }
        
        .ip-condition {
            font-size: 13px;
            color: #999;
            margin-bottom: 8px;
        }
        
        .ip-cards {
            font-size: 13px;
            color: #667eea;
            margin-bottom: 16px;
        }
        
        .ip-actions {
            display: flex;
            gap: 12px;
        }
        
        .ip-get-btn {
            flex: 1;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            padding: 10px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            text-align: center;
        }
        
        .ip-upgrade-btn {
            flex: 1;
            background: #f0f2f5;
            color: #667eea;
            border: none;
            border-radius: 30px;
            padding: 10px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            text-align: center;
        }
        
        .empty-identity {
            text-align: center;
            padding: 80px 20px;
            background: white;
            border-radius: 20px;
            margin: 16px;
        }
        
        /* 升级弹窗 */
        .upgrade-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        
        .upgrade-modal-content {
            background: white;
            border-radius: 24px;
            width: 80%;
            max-width: 320px;
            padding: 24px;
            text-align: center;
        }
        
        .upgrade-modal-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 16px;
        }
        
        .upgrade-modal-info {
            font-size: 14px;
            color: #666;
            margin-bottom: 20px;
        }
        
        .upgrade-modal-actions {
            display: flex;
            gap: 12px;
        }
        
        .upgrade-confirm {
            flex: 1;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            padding: 10px;
            cursor: pointer;
        }
        
        .upgrade-cancel {
            flex: 1;
            background: #f0f0f0;
            color: #666;
            border: none;
            border-radius: 30px;
            padding: 10px;
            cursor: pointer;
        }
        
        /* ========== 充值订阅页面样式 ========== */
        .vip-container {
            min-height: 100vh;
            background: linear-gradient(135deg, #fff5e6 0%, #ffe8d6 100%);
        }
        
        .vip-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: white;
            border-bottom: 1px solid #eee;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .vip-header h2 {
            font-size: 20px;
            font-weight: bold;
            color: #333;
        }
        
        .vip-header .back-btn {
            font-size: 24px;
            cursor: pointer;
        }
        
        .vip-header .record-btn {
            font-size: 14px;
            color: #667eea;
            cursor: pointer;
        }
        
        /* 当前会员状态 */
        .current-vip-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 16px;
            border-radius: 24px;
            padding: 24px 20px;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .vip-status-info {
            flex: 1;
        }
        
        .vip-status-label {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 8px;
        }
        
        .vip-status-name {
            font-size: 24px;
            font-weight: bold;
        }
        
        .open-vip-btn {
            background: #ffd700;
            color: #8b6914;
            border: none;
            padding: 10px 24px;
            border-radius: 30px;
            font-weight: bold;
            cursor: pointer;
        }
        
        /* 会员权益对比 */
        .benefits-card {
            background: white;
            margin: 16px;
            border-radius: 20px;
            padding: 20px;
        }
        
        .benefits-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 16px;
            color: #333;
        }
        
        .benefits-table {
            width: 100%;
        }
        
        .benefits-row {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .benefits-item {
            flex: 1;
            font-size: 13px;
            text-align: center;
        }
        
        .benefits-item:first-child {
            text-align: left;
            font-weight: 500;
            color: #666;
        }
        
        .benefits-item.vip {
            color: #ff9800;
            font-weight: 500;
        }
        
        /* 套餐选择 */
        .packages-section {
            margin: 16px;
        }
        
        .packages-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 16px;
            color: #333;
        }
        
        .packages-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }
        
        .package-card {
            background: white;
            border-radius: 20px;
            padding: 16px 12px;
            text-align: center;
            position: relative;
            cursor: pointer;
            transition: all 0.2s;
            border: 2px solid transparent;
        }
        
        .package-card.selected {
            border-color: #ff9800;
            background: #fff8f0;
        }
        
        .package-name {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
        }
        
        .package-price {
            font-size: 20px;
            font-weight: bold;
            color: #ff9800;
            margin-bottom: 4px;
        }
        
        .package-price small {
            font-size: 12px;
            font-weight: normal;
        }
        
        .package-save {
            font-size: 11px;
            color: #52c41a;
            background: #f0f9f0;
            display: inline-block;
            padding: 2px 8px;
            border-radius: 12px;
            margin-top: 4px;
        }
        
        .package-btn {
            margin-top: 12px;
            padding: 8px 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 13px;
            font-weight: bold;
            cursor: pointer;
            width: 100%;
        }
        
        /* 支付方式 */
        .payment-section {
            background: white;
            margin: 16px;
            border-radius: 20px;
            padding: 20px;
        }
        
        .payment-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 16px;
            color: #333;
        }
        
        .payment-options {
            display: flex;
            gap: 16px;
        }
        
        .payment-option {
            flex: 1;
            background: #f9f9f9;
            border-radius: 16px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            border: 2px solid transparent;
        }
        
        .payment-option.selected {
            border-color: #667eea;
            background: #f0f2ff;
        }
        
        .payment-icon {
            font-size: 32px;
            margin-bottom: 8px;
        }
        
        .payment-name {
            font-size: 14px;
            font-weight: 500;
            color: #333;
        }
        
        /* 确认支付按钮 */
        .confirm-payment-btn {
            margin: 16px;
            padding: 16px;
            background: linear-gradient(135deg, #ff9800, #ff6b00);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            width: calc(100% - 32px);
        }
        
        /* ========== 成长轨迹页面样式 ========== */
        .growth-container {
            min-height: 100vh;
            background: #f5f7fa;
        }
        
        .growth-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: white;
            border-bottom: 1px solid #eee;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .growth-header h2 {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        
        .growth-header .back-btn {
            font-size: 24px;
            cursor: pointer;
        }
        
        .growth-header .share-btn {
            font-size: 20px;
            cursor: pointer;
        }
        
        /* 图表容器 */
        .chart-container {
            background: white;
            margin: 16px;
            border-radius: 20px;
            padding: 16px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
        }
        
        .chart-title {
            font-size: 14px;
            color: #999;
            margin-bottom: 12px;
        }
        
        canvas {
            width: 100%;
            height: 200px;
        }
        
        /* 里程碑记录 */
        .milestones-section {
            margin: 16px;
        }
        
        .milestones-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 16px;
            color: #333;
        }
        
        .milestone-card {
            background: white;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s;
            border-left: 4px solid #667eea;
        }
        
        .milestone-card:active {
            transform: scale(0.98);
        }
        
        .milestone-date {
            font-size: 12px;
            color: #999;
            margin-bottom: 8px;
        }
        
        .milestone-title {
            font-size: 15px;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
        }
        
        .milestone-desc {
            font-size: 13px;
            color: #666;
        }
        
        .empty-milestones {
            text-align: center;
            padding: 60px 20px;
            background: white;
            border-radius: 20px;
        }
        
        /* ========== 探索发现页面样式（万物识别） ========== */
        .explore-container {
            min-height: 100vh;
            background: #f5f7fa;
            display: flex;
            flex-direction: column;
        }
        .explore-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 20px;
            background: white;
            border-bottom: 1px solid #eee;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .explore-header h2 { font-size: 18px; font-weight: bold; color: #333; }
        .explore-header .back-btn { font-size: 22px; cursor: pointer; color: #333; }
        .explore-shoot-btn {
            font-size: 13px; color: #667eea; font-weight: bold; cursor: pointer;
            background: none; border: none; padding: 4px 0;
        }

        /* 拍照主区域 */
        .camera-section {
            background: white; margin: 16px; border-radius: 24px;
            padding: 36px 20px; text-align: center;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        }
        .camera-btn {
            width: 110px; height: 110px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 55px;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            margin: 0 auto 20px; cursor: pointer; transition: all 0.2s;
            box-shadow: 0 8px 20px rgba(102,126,234,0.3);
        }
        .camera-btn:active { transform: scale(0.95); }
        .camera-icon { font-size: 42px; margin-bottom: 6px; }
        .camera-text { font-size: 13px; color: white; font-weight: 500; }
        .album-btn {
            display: inline-block; padding: 10px 28px;
            background: #f0f2f5; border-radius: 30px;
            font-size: 14px; color: #667eea; cursor: pointer; transition: all 0.2s;
        }
        .album-btn:active { background: #e0e4e8; transform: scale(0.96); }

        /* 图片预览区 */
        .explore-image-section {
            margin: 16px; border-radius: 20px; overflow: hidden;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08); background: #111;
            position: relative;
        }
        .explore-preview-img {
            width: 100%; max-height: 260px; object-fit: cover; display: block;
        }
        .explore-action-bar {
            display: flex; gap: 0;
            background: white; margin: 0 16px; border-radius: 16px;
            overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .explore-action-btn {
            flex: 1; padding: 14px 8px; text-align: center;
            font-size: 14px; color: #555; cursor: pointer;
            border: none; background: none; border-right: 1px solid #f0f0f0;
            transition: background 0.2s;
        }
        .explore-action-btn:last-child { border-right: none; }
        .explore-action-btn:active { background: #f5f5f5; }
        .explore-action-btn.primary { color: #667eea; font-weight: bold; }

        /* 识别结果 */
        .explore-result-section {
            margin: 12px 16px; background: white;
            border-radius: 20px; padding: 16px 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .explore-result-label {
            font-size: 13px; color: #999; margin-bottom: 8px;
            display: flex; align-items: center; gap: 6px;
        }
        .explore-result-text {
            font-size: 14px; color: #333; line-height: 1.8; word-break: break-word;
        }
        /* markdown 渲染样式 */
        .explore-md h1, .explore-md h2, .explore-md h3 {
            font-size: 15px; font-weight: bold; color: #222;
            margin: 12px 0 6px; border-bottom: 1px solid #f0f0f0; padding-bottom: 4px;
        }
        .explore-md p { margin: 6px 0; }
        .explore-md ul, .explore-md ol { padding-left: 20px; margin: 6px 0; }
        .explore-md li { margin: 4px 0; }
        .explore-md strong { color: #444; }
        .explore-md em { color: #667eea; }
        .explore-md code {
            background: #f5f5f5; padding: 2px 6px; border-radius: 4px;
            font-size: 13px; font-family: monospace;
        }
        .explore-result-score {
            margin-top: 10px; font-size: 13px; font-weight: bold;
            color: #ff9800; text-align: right;
        }

        /* 深度问答 */
        .explore-qa-section {
            margin: 12px 16px 100px; background: white;
            border-radius: 20px; padding: 16px 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .explore-qa-title {
            font-size: 14px; font-weight: bold; color: #333; margin-bottom: 12px;
        }
        .explore-qa-messages { display: flex; flex-direction: column; gap: 10px; }
        .explore-qa-msg-user {
            align-self: flex-end; background: linear-gradient(135deg,#667eea,#764ba2);
            color: white; border-radius: 18px 18px 4px 18px;
            padding: 10px 14px; max-width: 80%; font-size: 14px; line-height: 1.6;
        }
        .explore-qa-msg-ai {
            align-self: flex-start; background: #f5f5f5;
            color: #333; border-radius: 18px 18px 18px 4px;
            padding: 10px 14px; max-width: 85%; font-size: 14px; line-height: 1.6;
        }
        .explore-qa-msg-ai.streaming { border-right: 2px solid #667eea; }
        .explore-qa-msg-ai .explore-md p:first-child { margin-top: 0; }
        .explore-qa-msg-ai .explore-md p:last-child { margin-bottom: 0; }
        .explore-qa-msg-ai .explore-md { font-size: 14px; line-height: 1.7; }
        .explore-qa-input-wrap {
            display: flex; gap: 10px; margin-top: 14px;
            align-items: center;
        }
        .explore-qa-input {
            flex: 1; padding: 10px 14px; border: 1px solid #e0e0e0;
            border-radius: 20px; font-size: 14px; outline: none;
        }
        .explore-qa-input:focus { border-color: #667eea; }
        .explore-qa-send {
            padding: 10px 18px;
            background: linear-gradient(135deg,#667eea,#764ba2);
            color: white; border: none; border-radius: 20px;
            font-size: 14px; font-weight: bold; cursor: pointer;
            white-space: nowrap;
        }

        /* 底部操作栏（识别完成后） */
        .explore-bottom-bar {
            position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
            width: 100%; max-width: 480px;
            display: flex; gap: 0; background: white;
            border-top: 1px solid #eee; padding: 12px 16px 20px;
            box-sizing: border-box; gap: 10px; z-index: 20;
        }
        .explore-bottom-btn {
            flex: 1; padding: 12px 6px; border: none; border-radius: 14px;
            font-size: 14px; font-weight: bold; cursor: pointer; transition: all 0.2s;
        }
        .explore-bottom-btn.outline {
            background: #f0f2f5; color: #555;
        }
        .explore-bottom-btn.primary-btn {
            background: linear-gradient(135deg,#667eea,#764ba2); color: white;
        }
        .explore-bottom-btn:active { transform: scale(0.97); }

        /* 加载动画 */
        .explore-loading {
            margin: 16px; background: white; border-radius: 20px;
            padding: 36px; text-align: center;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        }

        .recents-section { margin: 12px 16px 20px; }
        .recents-title {
            font-size: 15px; font-weight: bold; color: #333; margin-bottom: 12px;
            display: flex; align-items: center; gap: 8px;
        }
        .recents-list { background: white; border-radius: 20px; overflow: hidden; }
        .recent-item {
            display: flex; justify-content: space-between; align-items: center;
            padding: 13px 20px; border-bottom: 1px solid #f0f0f0;
            cursor: pointer; transition: all 0.2s;
        }
        .recent-item:active { background: #f5f5f5; }
        .recent-item:last-child { border-bottom: none;
        }
        
        .recent-name {
            font-size: 15px;
            color: #333;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .recent-icon {
            font-size: 24px;
        }
        
        .recent-score {
            font-size: 14px;
            font-weight: bold;
            color: #ff9800;
            background: #fff3e0;
            padding: 4px 12px;
            border-radius: 20px;
        }
        
        .empty-records {
            text-align: center;
            padding: 40px 20px;
            background: white;
            border-radius: 20px;
            color: #999;
        }
        
        /* 识别加载动画 */
        .loading-spinner {
            width: 44px; height: 44px;
            border: 4px solid #e0e0e0; border-top-color: #667eea;
            border-radius: 50%; animation: spin 0.8s linear infinite;
            margin: 0 auto 14px;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes fadeInScale {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        /* 人设编辑弹窗加宽加高 */
        .persona-dialog { max-width: 92vw !important; width: 480px !important; }
        .persona-dialog .el-textarea__inner { min-height: 220px !important; font-size: 14px; }

        /* 道具使用提示淡入动画 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-5px); }
            to { opacity: 1; transform: translateY(0); }
        }
