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

        :root {
            --bg-primary: #0a0a0a;
            --bg-secondary: #141414;
            --bg-card: #1a1a1a;
            --border-color: #2a2a2a;
            --text-primary: #ffffff;
            --text-secondary: #9a9a9a;
            --text-muted: #666666;
            /* Bulma 风格多彩配色 */
            --color-turquoise: #00d1b2;
            --color-cyan: #3298dc;
            --color-purple: #b86bff;
            --color-pink: #ff3860;
            --color-yellow: #ffdd57;
            --color-green: #48c78e;
            --color-orange: #ff9f43;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.5;
        }

        body.no-overscroll {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }


        /* ============ 登录页面 ============ */
        .login-page {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        .login-page.hidden {
            display: none;
        }

        .login-container {
            width: 100%;
            max-width: 320px;
            padding: 20px;
        }

        .login-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 40px;
        }

        .login-logo .letter-o {
            display: inline-block;
            width: 35px;
            height: 35px;
            margin-left: -3px;
            vertical-align: middle;
        }

        .login-logo .zen-circle {
            width: 100%;
            height: 100%;
        }

        .login-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .login-input-group input {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: 16px;
            outline: none;
            transition: border-color 0.2s;
        }

        .login-input-group input:focus {
            border-color: var(--color-turquoise);
        }

        .login-input-group input::placeholder {
            color: var(--text-muted);
        }

        .login-error {
            color: var(--color-pink);
            font-size: 14px;
            text-align: center;
            min-height: 20px;
        }

        .login-btn {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--color-turquoise), var(--color-cyan));
            color: white;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.2s, transform 0.2s;
        }

        .login-btn:hover {
            opacity: 0.9;
        }

        .login-btn:active {
            transform: scale(0.98);
        }

        /* 退出登录按钮 */
        .logout-btn {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.2s;
        }

        .logout-btn:hover {
            opacity: 1;
        }

        .logout-btn svg {
            width: 20px;
            height: 20px;
            fill: var(--text-secondary);
        }

        .app-container {
            max-width: 640px;
            margin: 0 auto;
            background-color: var(--bg-primary);
            min-height: 100vh;
        }

        /* 固定头部容器（包含 header 和跑马灯） */
        .sticky-header-wrapper {
            position: sticky;
            top: 0;
            z-index: 100;
            background-color: var(--bg-primary);
        }

        .header {
            background-color: rgba(10, 10, 10, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            padding: 10px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* SuperO Logo */
        .header-logo {
            display: flex;
            align-items: center;
            font-size: 20px;
            font-weight: 700;
            letter-spacing: 0.02em;
            color: #fff;
        }

        .header-logo .letter-o {
            display: inline-block;
            width: 22px;
            height: 22px;
            margin-left: -2px;
            vertical-align: middle;
            transform: translateY(1px);
        }

        .header-logo .zen-circle {
            width: 100%;
            height: 100%;
        }

        .version-badge {
            font-size: 8px;
            font-weight: 500;
            color: #ffe066;
            margin-left: -1px;
            align-self: flex-end;
            margin-bottom: 6px;
        }

        @keyframes rotate-zen {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .rotating-circle {
            animation: rotate-zen 20s linear infinite;
        }

        .header-left {
            width: 36px;
        }

        .header-actions {
            display: flex;
            gap: 4px;
            align-items: center;
            width: 36px;
            justify-content: flex-end;
        }

        .sort-toggle {
            display: flex;
            gap: 2px;
            background-color: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 3px;
        }

        .sort-btn {
            cursor: pointer;
            padding: 6px 14px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s ease;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .sort-btn.active {
            background-color: var(--color-turquoise);
            color: #fff;
            font-weight: 600;
        }

        .sort-btn:hover:not(.active) {
            color: var(--color-turquoise);
            background-color: rgba(0, 209, 178, 0.1);
        }

        /* 重要等级标识 */
        .importance-badge {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            padding: 4px 8px;
            border-radius: 6px;
        }

        .importance-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
        }

        .importance-high {
            background-color: var(--color-pink);
        }

        .importance-medium {
            background-color: var(--color-turquoise);
        }

        .importance-low {
            background-color: var(--text-muted);
        }

        /* ============ 下拉刷新发光效果 ============ */
        .pull-glow {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 0;
            background: linear-gradient(180deg,
                rgba(0, 209, 178, 0.6) 0%,
                rgba(50, 152, 220, 0.4) 30%,
                rgba(50, 152, 220, 0.1) 70%,
                transparent 100%);
            pointer-events: none;
            z-index: 50;
            opacity: 0;
            transition: opacity 0.2s ease;
            transform: translateY(100%);
        }

        .pull-glow.active {
            opacity: 1;
        }

        .pull-glow.refreshing {
            animation: glowPulse 1s ease-in-out infinite;
        }

        @keyframes glowPulse {
            0%, 100% {
                opacity: 0.6;
            }
            50% {
                opacity: 1;
            }
        }

        /* ============ 每日分析跑马灯 ============ */
        .daily-analysis-marquee {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: linear-gradient(90deg, rgba(0, 209, 178, 0.15) 0%, rgba(50, 152, 220, 0.15) 50%, rgba(0, 209, 178, 0.15) 100%);
            border-bottom: 1px solid rgba(0, 209, 178, 0.2);
            cursor: pointer;
        }

        .daily-analysis-marquee:active {
            background: linear-gradient(90deg, rgba(0, 209, 178, 0.25) 0%, rgba(50, 152, 220, 0.25) 50%, rgba(0, 209, 178, 0.25) 100%);
        }

        .marquee-icon {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .marquee-icon svg {
            width: 16px;
            height: 16px;
            color: var(--color-turquoise);
        }

        .marquee-content {
            flex: 1;
            overflow: hidden;
            position: relative;
        }

        .marquee-text {
            display: inline-block;
            white-space: nowrap;
            font-size: 13px;
            color: var(--text-primary);
            animation: marqueeScroll 20s linear infinite;
            padding-right: 50px;
        }

        @keyframes marqueeScroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        .marquee-badge {
            font-size: 9px;
            font-weight: 700;
            color: #fff;
            background: var(--color-pink);
            padding: 2px 6px;
            border-radius: 3px;
            letter-spacing: 0.5px;
            flex-shrink: 0;
        }

        .daily-analysis-marquee.read .marquee-badge {
            display: none;
        }

        /* ============ 每日分析内容样式 ============ */
        .daily-analysis-content {
            line-height: 1.8;
        }

        .daily-analysis-content .article-h2 {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            margin: 24px 0 12px 0;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--color-turquoise);
        }

        .daily-analysis-content .article-h3 {
            font-size: 17px;
            font-weight: 600;
            color: var(--text-primary);
            margin: 20px 0 10px 0;
        }

        .daily-analysis-content .article-h4 {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-secondary);
            margin: 16px 0 8px 0;
        }

        .daily-analysis-content li {
            margin: 6px 0;
            padding-left: 8px;
            list-style: none;
            position: relative;
        }

        .daily-analysis-content li::before {
            content: "•";
            color: var(--color-turquoise);
            font-weight: bold;
            position: absolute;
            left: -12px;
        }

        .daily-analysis-content .article-divider {
            border: none;
            border-top: 1px solid var(--border-color);
            margin: 20px 0;
        }

        .daily-analysis-content .article-link {
            color: var(--color-cyan);
            text-decoration: none;
        }

        .daily-analysis-content .article-link:hover {
            text-decoration: underline;
        }

        /* 文章内音频播放器 */
        .article-audio-player {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            background: linear-gradient(to right, rgba(184, 107, 255, 0.3) 0%, rgba(0, 209, 178, 0.1) 0%);
            border-radius: 12px;
            margin: 16px 0;
            transition: background 0.1s linear;
        }

        .article-audio-player .audio-play-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-turquoise), var(--color-cyan));
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .article-audio-player .audio-play-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 209, 178, 0.3);
        }

        .article-audio-player .audio-play-btn:active {
            transform: scale(0.95);
        }

        .article-audio-player .play-icon {
            width: 0;
            height: 0;
            border-left: 12px solid #fff;
            border-top: 7px solid transparent;
            border-bottom: 7px solid transparent;
            margin-left: 3px;
        }

        .article-audio-player .pause-icon {
            display: none;
            width: 12px;
            height: 14px;
            border-left: 4px solid #fff;
            border-right: 4px solid #fff;
        }

        .article-audio-player .audio-play-btn.playing .play-icon {
            display: none;
        }

        .article-audio-player .audio-play-btn.playing .pause-icon {
            display: block;
        }

        .article-audio-player .audio-label {
            flex: 1;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .article-audio-player .audio-time {
            font-size: 13px;
            color: var(--text-secondary);
            font-family: monospace;
        }

        .news-feed {
            position: relative;
        }

        .news-item {
            display: flex;
            gap: 12px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            background-color: transparent;
            border-bottom: 1px solid var(--border-color);
            opacity: 0;
            transform: translateY(20px);
        }

        .news-item.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .news-item:hover {
            background-color: var(--bg-secondary);
        }

        /* 头像 */
        .news-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--color-turquoise);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 15px;
            color: #fff;
            flex-shrink: 0;
        }

        /* 右侧：内容区域 */
        .news-right {
            flex: 1;
            min-width: 0;
        }

        .news-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            justify-content: space-between;
        }

        .source-left {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            flex-wrap: wrap;
        }

        .source-name {
            font-weight: 600;
            font-size: 14px;
            color: var(--text-primary);
        }

        .news-time {
            color: var(--text-muted);
            font-size: 13px;
        }

        .news-category {
            display: inline-block;
            background-color: rgba(184, 107, 255, 0.15);
            color: var(--color-purple);
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.2px;
        }

        .news-title {
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 10px;
            color: var(--text-primary);
            font-weight: 500;
        }

        .news-description {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 12px;
        }

        .news-image {
            width: 100%;
            border-radius: 12px;
            margin-bottom: 12px;
            max-height: 360px;
            object-fit: cover;
        }

        .news-url {
            color: var(--color-cyan);
            font-size: 13px;
            text-decoration: none;
            word-break: break-all;
        }

        .news-url:hover {
            text-decoration: underline;
        }

        /* 标签样式 */
        .news-tags-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 10px;
        }

        .news-tag {
            display: inline-block;
            background-color: rgba(0, 209, 178, 0.1);
            color: var(--color-turquoise);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.2px;
            transition: all 0.2s ease;
        }

        .news-tag:hover {
            background-color: rgba(0, 209, 178, 0.2);
        }

        /* 收藏按钮 */
        .favorite-btn {
            cursor: pointer;
            padding: 6px;
            border-radius: 8px;
            transition: all 0.2s ease;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: auto;
        }

        .favorite-btn:hover {
            background-color: rgba(255, 56, 96, 0.1);
            color: var(--color-pink);
        }

        .favorite-btn.active {
            color: var(--color-pink);
        }

        .favorite-btn svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        /* 底部行：链接 + 收藏按钮 */
        .news-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid var(--border-color);
        }

        .loading {
            text-align: center;
            padding: 32px;
            color: var(--text-secondary);
            font-size: 13px;
        }

        .loading-spinner {
            display: inline-block;
            width: 24px;
            height: 24px;
            border: 2px solid var(--border-color);
            border-top-color: var(--color-orange);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

        .skeleton {
            background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
        }

        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .skeleton-item {
            display: flex;
            gap: 12px;
            padding: 16px;
            border-bottom: 1px solid var(--border-color);
        }

        .skeleton-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .skeleton-right {
            flex: 1;
        }

        .skeleton-text {
            height: 14px;
            border-radius: 4px;
            margin-bottom: 8px;
        }

        .skeleton-title {
            width: 80%;
        }

        .skeleton-desc {
            width: 100%;
        }

        .error-message {
            text-align: center;
            padding: 32px;
            color: #ef4444;
        }

        @media (max-width: 600px) {
            .app-container {
                border: none;
            }
        }

        /* 底部导航栏 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-around;
            padding: 6px 0;
            padding-bottom: max(6px, env(safe-area-inset-bottom));
            z-index: 1000;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px 20px;
            cursor: pointer;
            color: var(--text-muted);
            transition: all 0.2s ease;
            border-radius: 12px;
        }

        .nav-item:hover {
            color: var(--color-turquoise);
        }

        .nav-item.active {
            color: var(--color-turquoise);
        }

        .nav-item svg {
            width: 22px;
            height: 22px;
            fill: currentColor;
        }

        .nav-item span {
            font-size: 10px;
            font-weight: 500;
            letter-spacing: 0.2px;
        }

        /* 搜索功能 */
        .search-icon {
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .search-icon:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }

        .search-icon svg {
            width: 20px;
            height: 20px;
            fill: var(--text-secondary);
        }

        .search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--bg-primary);
            z-index: 3000;
            display: none;
            flex-direction: column;
        }

        .search-overlay.show {
            display: flex;
            animation: fadeIn 0.2s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .search-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-bottom: 1px solid var(--border-color);
        }

        .search-back {
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .search-back:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }

        .search-back svg {
            width: 20px;
            height: 20px;
            fill: var(--text-primary);
        }

        .search-input-wrapper {
            flex: 1;
            position: relative;
        }

        .search-input {
            width: 100%;
            background-color: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 10px 16px;
            font-size: 15px;
            color: var(--text-primary);
            outline: none;
            transition: all 0.2s ease;
        }

        .search-input:focus {
            border-color: var(--color-turquoise);
            background-color: var(--bg-card);
        }

        .search-input::placeholder {
            color: var(--text-muted);
        }

        .search-results {
            flex: 1;
            overflow-y: auto;
            padding-bottom: 60px;
        }

        .search-empty {
            text-align: center;
            padding: 48px 16px;
            color: var(--text-secondary);
            font-size: 14px;
        }

        /* 为底部导航留出空间 */
        .news-feed {
            padding-bottom: 72px;
        }

        /* 监控公司样式 */
        .stocks-container {
            padding: 16px;
            padding-top: 70px;
            padding-bottom: 80px;
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow-y: auto;
            overscroll-behavior-y: contain;
            -webkit-overflow-scrolling: touch;
        }

        .stocks-container.show {
            display: block;
        }

        .stock-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .stock-card:hover {
            background-color: var(--bg-secondary);
            border-color: #3a3a3a;
        }

        .stock-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
        }

        .stock-card.bullish::before {
            background-color: var(--color-turquoise);
        }

        .stock-card.bearish::before {
            background-color: var(--color-purple);
        }

        .stock-card.neutral::before {
            background-color: var(--text-muted);
        }

        .stock-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .stock-info {
            flex: 1;
        }

        .stock-ticker {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stock-price {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .stock-name {
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .stock-signals {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
        }

        /* 迷你图表 */
        .stock-mini-chart {
            width: 140px;
            height: 50px;
            flex-shrink: 0;
            overflow: hidden;
            margin-right: 10px;
        }

        .stock-mini-chart svg {
            display: block;
            width: 100%;
            height: 100%;
        }

        .mini-chart-empty {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 12px;
        }

        /* 指标和信号行 */
        .stock-metrics-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
            padding-top: 12px;
            border-top: 1px solid var(--border-color);
        }

        .stock-metrics-row .stock-metrics {
            margin-bottom: 0;
            border-top: none;
            padding-top: 0;
            flex: 1;
        }

        /* 信号指标（右侧） */
        .stock-signals-inline {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
            flex-shrink: 0;
        }

        .signal-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
        }

        .signal-golden {
            background-color: rgba(0, 209, 178, 0.25);
            color: #00ffdd;
            text-shadow: 0 0 8px rgba(0, 255, 221, 0.5);
        }

        .signal-death {
            background-color: rgba(184, 107, 255, 0.25);
            color: #d099ff;
            text-shadow: 0 0 8px rgba(208, 153, 255, 0.5);
        }

        .signal-bullish {
            background-color: rgba(0, 209, 178, 0.25);
            color: #00ffdd;
            text-shadow: 0 0 8px rgba(0, 255, 221, 0.5);
        }

        .signal-bearish {
            background-color: rgba(184, 107, 255, 0.25);
            color: #d099ff;
            text-shadow: 0 0 8px rgba(208, 153, 255, 0.5);
        }

        .signal-overbought {
            background-color: rgba(184, 107, 255, 0.25);
            color: #d099ff;
            text-shadow: 0 0 8px rgba(208, 153, 255, 0.5);
        }

        .signal-oversold {
            background-color: rgba(0, 209, 178, 0.25);
            color: #00ffdd;
            text-shadow: 0 0 8px rgba(0, 255, 221, 0.5);
        }

        .stock-metrics {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            padding-top: 12px;
            border-top: 1px solid var(--border-color);
        }

        .metric-item {
            display: flex;
            flex-direction: column;
        }

        .metric-label {
            font-size: 10px;
            color: var(--text-muted);
            margin-bottom: 2px;
        }

        .metric-value {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .metric-value.positive {
            color: var(--color-turquoise);
        }

        .metric-value.negative {
            color: var(--color-purple);
        }

        .stocks-empty {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }

        .stocks-empty svg {
            width: 48px;
            height: 48px;
            fill: var(--text-muted);
            margin-bottom: 16px;
        }

        /* 评分能量条 - 融入分隔线 */
        .rating-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
        }

        .rating-bar-label {
            font-size: 10px;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .rating-bar-track {
            flex: 1;
            height: 2px;
            background-color: var(--border-color);
            border-radius: 1px;
            overflow: visible;
        }

        .rating-bar-fill {
            height: 100%;
            border-radius: 1px;
            transition: width 0.3s ease;
        }

        .rating-bar-score {
            font-size: 12px;
            font-weight: 600;
            min-width: 16px;
            text-align: right;
        }

        /* 信号图标 */
        .signal-icon {
            width: 12px;
            height: 12px;
            fill: currentColor;
            vertical-align: middle;
            margin-right: 2px;
        }

        /* 全屏文章页面 */
        .article-page {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--bg-primary);
            z-index: 5000;
            display: none;
            overflow-y: scroll;
            overflow-x: hidden;
            /* 防止滚动穿透和优化触摸滚动 */
            touch-action: pan-y;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        .article-page.show {
            display: block;
            animation: slideInRight 0.25s ease;
        }

        /* 文章页面打开时隐藏底层内容 */
        body.article-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }

        body.article-open .app-container,
        body.article-open .bottom-nav {
            visibility: hidden;
            pointer-events: none;
        }

        .article-page.closing {
            animation: slideOutRight 0.25s ease forwards;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
            }
            to {
                transform: translateX(0);
            }
        }

        @keyframes slideOutRight {
            from {
                transform: translateX(0);
            }
            to {
                transform: translateX(100%);
            }
        }

        .article-page-header {
            position: sticky;
            top: 0;
            background-color: rgba(10, 10, 11, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            padding: 12px 16px;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .back-btn {
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .back-btn:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }

        .back-btn svg {
            width: 20px;
            height: 20px;
            fill: var(--text-primary);
        }

        .article-page-header h2 {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
            flex: 1;
        }

        .article-favorite-btn {
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s ease;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .article-favorite-btn:hover {
            background-color: rgba(255, 56, 96, 0.1);
            color: var(--color-pink);
        }

        .article-favorite-btn.active {
            color: var(--color-pink);
        }

        .article-favorite-btn svg {
            width: 22px;
            height: 22px;
            fill: currentColor;
        }

        /* 公司详情页 */
        .company-page {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--bg-primary);
            z-index: 4000;
            display: none;
            overflow-y: scroll;
            overflow-x: hidden;
            touch-action: pan-y;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        .company-page.show {
            display: block;
            animation: slideInRight 0.25s ease;
        }

        .company-page.closing {
            animation: slideOutRight 0.25s ease forwards;
        }

        .company-page-header {
            position: sticky;
            top: 0;
            background-color: rgba(10, 10, 11, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            padding: 12px 16px;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .company-page-header h2 {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
            flex: 1;
        }

        .company-page-content {
            max-width: 680px;
            margin: 0 auto;
            padding: 24px 20px;
            padding-bottom: 60px;
        }

        .company-ticker-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
        }

        /* TradingView K线图容器 */
        .tradingview-chart-container {
            width: 100%;
            height: 400px;
            margin-bottom: 24px;
            border-radius: 12px;
            overflow: hidden;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
        }

        .tradingview-chart-container > div {
            width: 100%;
            height: 100%;
        }

        .company-ticker-badge {
            font-size: 28px;
            font-weight: 700;
            color: var(--color-turquoise);
        }

        .company-name-text {
            font-size: 16px;
            color: var(--text-secondary);
        }

        .company-section {
            margin-bottom: 24px;
        }

        .company-section-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--color-purple);
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .company-section-title svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        .company-section-content {
            font-size: 14px;
            line-height: 1.8;
            color: var(--text-primary);
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .company-meta {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 24px;
            padding-top: 16px;
            border-top: 1px solid var(--border-color);
            text-align: center;
        }

        .article-page-content {
            max-width: 680px;
            margin: 0 auto;
            padding: 24px 20px;
        }

        .article-full-title {
            font-size: 24px;
            line-height: 1.4;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 20px;
        }

        .article-full-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .article-full-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 17px;
            flex-shrink: 0;
            color: #fff;
        }

        .article-full-meta-text {
            flex: 1;
        }

        .article-full-source {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .article-full-info {
            font-size: 13px;
            color: var(--text-secondary);
        }

        .article-full-image {
            width: 100%;
            border-radius: 12px;
            margin-bottom: 24px;
        }

        .article-full-text {
            color: var(--text-primary);
            font-size: 16px;
            line-height: 1.8;
            white-space: pre-wrap;
            word-wrap: break-word;
            margin-bottom: 24px;
        }

        .article-summary {
            background: var(--bg-tertiary);
            padding: 16px;
            border-radius: 12px;
            border-left: 3px solid var(--color-turquoise);
        }

        .article-summary::before {
            content: '中文摘要';
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--color-turquoise);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .article-content {
            background: var(--bg-tertiary);
            padding: 16px;
            border-radius: 12px;
            border-left: 3px solid var(--color-orange);
        }

        .article-content::before {
            content: 'English Original';
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--color-orange);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .article-full-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background-color: var(--color-turquoise);
            border: none;
            border-radius: 10px;
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .article-full-link:hover {
            background-color: #00c4a7;
            transform: translateY(-1px);
        }

        .article-full-link svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        .article-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .article-expand-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background-color: var(--color-purple);
            border: none;
            border-radius: 10px;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .article-expand-btn:hover {
            background-color: #a855f7;
            transform: translateY(-1px);
        }

        .article-expand-btn svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        .article-note-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background-color: var(--color-turquoise);
            border: none;
            border-radius: 10px;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .article-note-btn:hover {
            background-color: #00c4a7;
            transform: translateY(-1px);
        }

        .article-note-btn svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        .article-claude-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background-color: var(--color-purple);
            border: none;
            border-radius: 10px;
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .article-claude-link:hover {
            background-color: #a855f7;
            transform: translateY(-1px);
        }

        .article-claude-link svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        /* 聊天界面样式 */
        .chat-container {
            margin-top: 24px;
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
            padding-bottom: 40px;
            overflow: hidden;
        }

        .chat-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
            color: var(--color-purple);
            font-weight: 600;
            font-size: 15px;
        }

        .chat-header svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .chat-messages {
            max-height: 400px;
            overflow-y: auto;
            margin-bottom: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-message {
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.6;
            max-width: 85%;
            word-wrap: break-word;
        }

        .chat-message.user {
            background-color: var(--color-turquoise);
            color: #fff;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
        }

        .chat-message.assistant {
            background-color: var(--bg-secondary);
            color: var(--text-primary);
            align-self: flex-start;
            border-bottom-left-radius: 4px;
            border: 1px solid var(--border-color);
        }

        .chat-message.assistant pre {
            background-color: var(--bg-card);
            padding: 8px 12px;
            border-radius: 6px;
            overflow-x: auto;
            margin: 8px 0;
        }

        .chat-message.thinking {
            background-color: var(--bg-secondary);
            color: var(--text-secondary);
            align-self: flex-start;
            border: 1px dashed var(--border-color);
        }

        .thinking-dots {
            display: inline-flex;
            gap: 4px;
        }

        .thinking-dots span {
            width: 6px;
            height: 6px;
            background-color: var(--color-purple);
            border-radius: 50%;
            animation: thinking 1.4s infinite;
        }

        .thinking-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .thinking-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes thinking {
            0%, 80%, 100% {
                transform: scale(0.6);
                opacity: 0.5;
            }
            40% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .chat-input-container {
            display: flex;
            gap: 8px;
            width: 100%;
            box-sizing: border-box;
        }

        .chat-input {
            flex: 1;
            min-width: 0;
            background-color: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 12px 16px;
            font-size: 16px; /* 防止iOS自动缩放 */
            color: var(--text-primary);
            outline: none;
            transition: border-color 0.2s ease, background-color 0.2s ease;
            resize: none;
            min-height: 44px;
            max-height: 120px;
        }

        .chat-input:focus {
            border-color: var(--color-purple);
            background-color: var(--bg-card);
        }

        .chat-input::placeholder {
            color: var(--text-muted);
        }

        .chat-send-btn {
            background-color: var(--color-purple);
            border: none;
            border-radius: 12px;
            padding: 12px;
            width: 44px;
            height: 44px;
            flex-shrink: 0;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .chat-send-btn:hover {
            background-color: #a855f7;
            transform: translateY(-1px);
        }

        .chat-send-btn:disabled {
            background-color: var(--text-muted);
            cursor: not-allowed;
            transform: none;
        }

        .chat-send-btn svg {
            width: 20px;
            height: 20px;
            fill: #fff;
        }

        .chat-hint {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 8px;
            text-align: center;
        }

        /* 流式输出光标动画 */
        .streaming-cursor {
            display: inline-block;
            animation: blink 1s infinite;
            color: var(--color-purple);
            font-weight: normal;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        /* 思考状态提示 */
        .thinking-status {
            color: #ffffff;
            font-size: 13px;
            margin-right: 4px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .thinking-status.hidden {
            display: none !important;
        }

        /* 心跳指示器 */
        .heartbeat-indicator {
            display: inline-flex;
            align-items: center;
            gap: 3px;
        }

        .heartbeat-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--color-green);
            opacity: 0.3;
            transition: opacity 0.2s, transform 0.2s;
        }

        .heartbeat-dot.active {
            opacity: 1;
            transform: scale(1.3);
            box-shadow: 0 0 8px var(--color-green);
        }

        /* 心跳脉冲动画 */
        @keyframes heartbeat-pulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.4); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }

        .heartbeat-dot.pulse {
            animation: heartbeat-pulse 0.3s ease-out;
        }

        /* AI 搜索状态 */
        .thinking-status .status-icon {
            display: inline-block;
            width: 14px;
            height: 14px;
            margin-right: 4px;
        }

        .thinking-status .status-icon.searching {
            animation: spin 1s linear infinite;
        }

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

        /* ============ 热点话题容器 ============ */
        .topics-container {
            display: none;
            padding: 16px;
            padding-bottom: 80px;
        }

        .topics-container.show {
            display: block;
        }

        .topics-pull-indicator {
            text-align: center;
            color: var(--color-orange);
            font-size: 13px;
            height: 0;
            opacity: 0;
            overflow: hidden;
            transition: height 0.2s, opacity 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
        }

        .topics-header {
            margin-bottom: 16px;
        }

        .topics-tabs {
            display: flex;
            gap: 10px;
        }

        .topic-tab {
            padding: 8px 20px;
            border: none;
            border-radius: 20px;
            background: var(--bg-card);
            color: var(--text-muted);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .topic-tab:hover {
            color: var(--text-secondary);
            background: var(--bg-secondary);
        }

        .topic-tab.active {
            background: linear-gradient(135deg, var(--color-orange), #ff7f50);
            color: white;
            box-shadow: 0 4px 12px rgba(255, 159, 67, 0.3);
        }

        .topics-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* 话题卡片 - 全新设计 */
        .topic-card {
            background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
            border-radius: 16px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(20px) scale(0.98);
        }

        .topic-card.visible {
            opacity: 0.7;
            transform: translateY(0) scale(0.98);
        }

        .topic-card.highlight {
            opacity: 1;
            transform: translateY(0) scale(1);
            border-color: rgba(255, 159, 67, 0.4);
            box-shadow: 0 4px 20px rgba(255, 159, 67, 0.15);
        }

        .topic-card.highlight::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, var(--color-orange), var(--color-pink));
        }

        .topic-card.highlight .topic-summary {
            color: var(--text-primary);
        }

        .topic-card-header {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .topic-rank {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 700;
            flex-shrink: 0;
        }

        .topic-rank.top-1 {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
        }

        .topic-rank.top-2 {
            background: linear-gradient(135deg, #ffa726, #ff9800);
            color: white;
            box-shadow: 0 3px 10px rgba(255, 167, 38, 0.4);
        }

        .topic-rank.top-3 {
            background: linear-gradient(135deg, #ffca28, #ffb300);
            color: #333;
            box-shadow: 0 3px 10px rgba(255, 202, 40, 0.4);
        }

        .topic-rank.normal {
            background: var(--bg-primary);
            color: var(--text-muted);
            border: 1px solid var(--border-color);
        }

        .topic-info {
            flex: 1;
            min-width: 0;
        }

        .topic-keyword {
            flex: 1;
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.4;
        }

        .topic-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--text-muted);
            flex-shrink: 0;
        }

        .topic-heat {
            display: flex;
            align-items: center;
            gap: 4px;
            color: var(--color-orange);
            font-weight: 600;
        }

        .topic-heat svg {
            width: 14px;
            height: 14px;
            stroke: var(--color-orange);
            fill: none;
        }

        .topic-sentiment {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 500;
        }

        .topic-sentiment.bullish {
            color: #00d1b2;
            background: rgba(0, 209, 178, 0.1);
        }
        .topic-sentiment.bearish {
            color: #b86bff;
            background: rgba(184, 107, 255, 0.1);
        }
        .topic-sentiment.neutral {
            color: #808080;
            background: rgba(128, 128, 128, 0.1);
        }

        /* 话题摘要 */
        .topic-summary {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-top: 10px;
            padding-left: 42px;
        }

        /* 影响标的标签 */
        .topic-impacts-preview {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--border-color);
        }

        .impact-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 5px 12px;
            border-radius: 14px;
            font-size: 12px;
            font-weight: 500;
            border: 1px solid transparent;
        }

        .impact-chip.bullish {
            background: rgba(0, 209, 178, 0.1);
            color: #00d1b2;
            border-color: rgba(0, 209, 178, 0.2);
        }

        .impact-chip.bearish {
            background: rgba(184, 107, 255, 0.1);
            color: #b86bff;
            border-color: rgba(184, 107, 255, 0.2);
        }

        .impact-chip.neutral {
            background: rgba(128, 128, 128, 0.1);
            color: #808080;
            border-color: rgba(128, 128, 128, 0.2);
        }

        .impact-chip.mixed {
            background: rgba(255, 159, 67, 0.1);
            color: #ff9f43;
            border-color: rgba(255, 159, 67, 0.2);
        }

        /* 话题空状态 */
        .topics-empty {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }

        .topics-empty svg {
            width: 64px;
            height: 64px;
            stroke: var(--text-muted);
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .topics-empty p {
            font-size: 14px;
        }

        /* ============ 话题详情页 ============ */
        .topic-page {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--bg-primary);
            z-index: 1000;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .topic-page.show {
            transform: translateX(0);
        }

        .topic-page-scroll {
            flex: 1;
            overflow-y: scroll;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        .topic-page-header {
            position: sticky;
            top: 0;
            background-color: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(20px);
            padding: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-color);
            z-index: 10;
        }

        .topic-page-header h2 {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 0 10px;
        }

        .topic-page-content {
            padding: 16px;
        }

        /* 话题统计信息 */
        .topic-stats {
            display: flex;
            gap: 16px;
            padding: 16px;
            background: var(--bg-card);
            border-radius: 12px;
            margin-bottom: 16px;
        }

        .topic-stat {
            flex: 1;
            text-align: center;
        }

        .topic-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--color-orange);
        }

        .topic-stat-label {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 4px;
        }

        /* 影响标的 */
        .topic-impacts {
            background: var(--bg-card);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
        }

        .topic-section-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 12px;
        }

        .topic-detail-summary {
            background: var(--bg-secondary);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
        }

        .topic-summary-content {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .impact-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .impact-tag {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 13px;
        }

        .impact-tag.bullish {
            background: rgba(0, 209, 178, 0.15);
            color: #00d1b2;
        }

        .impact-tag.bearish {
            background: rgba(184, 107, 255, 0.15);
            color: #b86bff;
        }

        .impact-tag.neutral {
            background: rgba(128, 128, 128, 0.15);
            color: #808080;
        }

        .impact-tag.mixed {
            background: rgba(255, 159, 67, 0.15);
            color: #ff9f43;
        }

        /* 相关推文 */
        .topic-tweets {
            background: var(--bg-card);
            border-radius: 12px;
            padding: 16px;
        }

        .tweet-item {
            padding: 12px;
            background: var(--bg-secondary);
            border-radius: 8px;
            margin-bottom: 8px;
        }

        .tweet-item:last-child {
            margin-bottom: 0;
        }

        .tweet-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .tweet-username {
            font-size: 12px;
            color: var(--color-cyan);
        }

        .tweet-time {
            font-size: 11px;
            color: var(--text-muted);
        }

        .tweet-text {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .tweet-stats {
            display: flex;
            gap: 16px;
            margin-top: 8px;
            font-size: 11px;
            color: var(--text-muted);
        }

        .tweet-stat {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* 空状态 */
        .topic-empty {
            text-align: center;
            padding: 24px;
            color: var(--text-muted);
            font-size: 14px;
        }

        /* ============ 选择模式按钮 ============ */
        .article-header-actions,
        .topic-header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .select-mode-btn {
            padding: 6px 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: transparent;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .select-mode-btn:hover {
            border-color: var(--color-turquoise);
            color: var(--color-turquoise);
        }

        .select-mode-btn.active {
            background: var(--color-turquoise);
            border-color: var(--color-turquoise);
            color: white;
        }

        /* ============ 可选择元素 ============ */
        .selectable {
            position: relative;
            cursor: pointer;
            transition: all 0.2s;
            border-radius: 8px;
            padding: 12px;
            margin: -12px;
            margin-bottom: 12px;
            border: 2px dashed var(--border-color);
        }

        .selectable:hover {
            border-color: var(--color-turquoise);
            background: rgba(0, 209, 178, 0.05);
        }

        .selectable.selected {
            background: rgba(0, 209, 178, 0.1);
            border: 2px solid var(--color-turquoise);
        }

        .select-checkbox {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 24px;
            height: 24px;
            background: var(--bg-card);
            border: 2px solid var(--border-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            transition: all 0.2s;
            z-index: 10;
        }

        .select-checkbox svg {
            width: 14px;
            height: 14px;
            fill: transparent;
            transition: fill 0.2s;
        }

        .selectable.selected .select-checkbox {
            background: var(--color-turquoise);
            border-color: var(--color-turquoise);
        }

        .selectable.selected .select-checkbox svg {
            fill: white;
        }

        /* ============ 添加到笔记按钮 ============ */
        .add-to-note-btn {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 28px;
            background: linear-gradient(135deg, var(--color-turquoise), var(--color-cyan));
            border: none;
            border-radius: 30px;
            color: white;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(0, 209, 178, 0.4);
            transition: opacity 0.3s, box-shadow 0.3s;
            z-index: 4500;
            opacity: 0.7;
        }

        .add-to-note-btn:hover {
            box-shadow: 0 8px 25px rgba(0, 209, 178, 0.5);
        }

        .add-to-note-btn.has-items {
            opacity: 1;
            animation: pulse-glow 2s infinite;
        }

        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 6px 20px rgba(0, 209, 178, 0.4); }
            50% { box-shadow: 0 6px 30px rgba(0, 209, 178, 0.6); }
        }

        .add-to-note-btn svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        /* 话题页面的笔记按钮 - 使用 absolute 相对于 topic-page */
        .topic-note-btn {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100;
        }

        /* ============ 笔记编辑弹窗 ============ */
        .note-editor-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 5000;
            display: none;
            align-items: flex-end;
            justify-content: center;
        }

        .note-editor-modal.show {
            display: flex;
            animation: fadeIn 0.2s ease;
        }

        .note-editor-container {
            width: 100%;
            max-width: 640px;
            max-height: 85vh;
            background: var(--bg-primary);
            border-radius: 20px 20px 0 0;
            display: flex;
            flex-direction: column;
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }

        .note-editor-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .note-editor-header h3 {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .note-editor-close {
            width: 32px;
            height: 32px;
            background: var(--bg-secondary);
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .note-editor-close:hover {
            background: var(--bg-card);
        }

        .note-editor-close svg {
            width: 18px;
            height: 18px;
            fill: var(--text-secondary);
        }

        .note-editor-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .note-empty-hint {
            text-align: center;
            color: var(--text-muted);
            padding: 20px;
            font-size: 14px;
        }

        .note-item {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 14px;
        }

        .note-item-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .note-item-type {
            font-size: 11px;
            font-weight: 600;
            color: var(--color-purple);
            background: rgba(184, 107, 255, 0.15);
            padding: 3px 8px;
            border-radius: 4px;
        }

        .note-item-actions {
            display: flex;
            gap: 6px;
        }

        .note-item-btn {
            width: 28px;
            height: 28px;
            background: transparent;
            border: none;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .note-item-btn svg {
            width: 16px;
            height: 16px;
            fill: var(--text-muted);
        }

        .note-item-btn.edit:hover {
            background: rgba(0, 209, 178, 0.1);
        }

        .note-item-btn.edit:hover svg {
            fill: var(--color-turquoise);
        }

        .note-item-btn.delete:hover {
            background: rgba(255, 56, 96, 0.1);
        }

        .note-item-btn.delete:hover svg {
            fill: var(--color-pink);
        }

        .note-item-text {
            font-size: 14px;
            color: var(--text-primary);
            line-height: 1.6;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .note-item-edit {
            width: 100%;
            min-height: 80px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 10px;
            font-size: 14px;
            color: var(--text-primary);
            line-height: 1.6;
            resize: none;
            outline: none;
        }

        .note-item-edit:focus {
            border-color: var(--color-turquoise);
        }

        .note-editor-comment {
            padding: 0 20px;
        }

        .note-editor-comment textarea {
            width: 100%;
            min-height: 80px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 14px;
            font-size: 14px;
            color: var(--text-primary);
            line-height: 1.6;
            resize: none;
            outline: none;
        }

        .note-editor-comment textarea:focus {
            border-color: var(--color-purple);
        }

        .note-editor-comment textarea::placeholder {
            color: var(--text-muted);
        }

        .note-editor-actions {
            display: flex;
            gap: 12px;
            padding: 20px;
            border-top: 1px solid var(--border-color);
        }

        .note-cancel-btn {
            flex: 1;
            padding: 14px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            color: var(--text-secondary);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .note-cancel-btn:hover {
            background: var(--bg-card);
        }

        .note-save-btn {
            flex: 1;
            padding: 14px;
            background: linear-gradient(135deg, var(--color-turquoise), var(--color-cyan));
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .note-save-btn:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        /* ============ 笔记列表页 ============ */
        .notes-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-primary);
            z-index: 4000;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }

        .notes-container.show {
            transform: translateX(0);
        }

        /* 当笔记列表页打开时，禁用底层滚动 */
        body.notes-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }

        body.notes-open .app-container,
        body.notes-open .bottom-nav {
            visibility: hidden;
            pointer-events: none;
        }

        /* 当笔记详情页打开时，禁用笔记列表滚动 */
        body.note-detail-open .notes-scroll {
            overflow: hidden !important;
            pointer-events: none;
        }

        .notes-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            background-color: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .notes-header h2 {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
            text-align: center;
        }

        .notes-add-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 50%;
            transition: background 0.2s;
        }

        .notes-add-btn:active {
            background: rgba(0, 209, 178, 0.2);
        }

        .notes-add-btn svg {
            width: 24px;
            height: 24px;
            fill: var(--color-turquoise);
        }

        .notes-scroll {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .notes-list {
            padding: 16px;
            padding-bottom: 40px;
        }

        /* ============ 收藏页面 ============ */
        .favorites-page {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-primary);
            z-index: 4000;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }

        .favorites-page.show {
            transform: translateX(0);
        }

        .favorites-page-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            background-color: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .favorites-page-header h2 {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
            text-align: center;
        }

        .favorites-page-scroll {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .favorites-list {
            padding: 16px;
            padding-bottom: 40px;
        }

        /* ============ 笔记详情页 ============ */
        .note-detail-page {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-primary);
            z-index: 5000;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }

        .note-detail-page.show {
            transform: translateX(0);
        }

        .note-detail-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            background-color: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .note-detail-header h2 {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
            text-align: center;
        }

        .note-detail-save-btn {
            width: 40px;
            height: 40px;
            border: none;
            background: var(--color-turquoise);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .note-detail-save-btn:disabled {
            opacity: 0.5;
        }

        .note-detail-save-btn svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        .note-detail-scroll {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 16px;
        }

        .note-detail-date {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 20px;
            text-align: center;
        }

        .note-detail-section {
            margin-bottom: 20px;
        }

        .note-detail-label {
            display: block;
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 8px;
            font-weight: 500;
        }

        .note-detail-textarea {
            width: 100%;
            min-height: 200px;
            padding: 14px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: 15px;
            line-height: 1.6;
            resize: none;
            font-family: inherit;
        }

        .note-detail-textarea.short {
            min-height: 100px;
        }

        .note-detail-textarea:focus {
            outline: none;
            border-color: var(--color-turquoise);
        }

        .note-detail-textarea::placeholder {
            color: var(--text-muted);
        }

        .note-detail-text {
            width: 100%;
            min-height: 200px;
            padding: 14px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: 15px;
            line-height: 1.6;
            white-space: pre-wrap;
            word-break: break-word;
            cursor: pointer;
        }

        .note-detail-text.short {
            min-height: 80px;
        }

        .note-detail-text:empty::before,
        .note-detail-text:only-child::before {
            color: var(--text-muted);
        }

        /* 笔记详情内的音频播放器样式 */
        .note-detail-text .chat-audio-player {
            display: flex !important;
            align-items: center !important;
            gap: 12px;
            background: linear-gradient(to right, rgba(184, 107, 255, 0.3) 0%, rgba(0, 209, 178, 0.1) 0%);
            border-radius: 12px;
            padding: 14px 16px;
            margin: 10px 0;
            white-space: normal;
            transition: background 0.1s linear;
        }

        .note-detail-text .audio-play-btn {
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            border-radius: 50%;
            border: none;
            background: linear-gradient(135deg, var(--color-turquoise), var(--color-cyan));
            cursor: pointer;
            display: flex !important;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(0, 209, 178, 0.3);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .note-detail-text .audio-play-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 209, 178, 0.3);
        }

        .note-detail-text .audio-play-btn:active {
            transform: scale(0.95);
        }

        .note-detail-text .audio-play-btn .play-icon {
            display: block;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 7px 0 7px 12px;
            border-color: transparent transparent transparent #ffffff;
            margin-left: 3px;
        }

        .note-detail-text .audio-play-btn .pause-icon {
            display: none;
            width: 12px;
            height: 14px;
            border-left: 4px solid #ffffff;
            border-right: 4px solid #ffffff;
        }

        .note-detail-text .audio-play-btn.playing .play-icon {
            display: none;
        }

        .note-detail-text .audio-play-btn.playing .pause-icon {
            display: block;
        }

        .note-detail-text .audio-label {
            flex: 1;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .note-detail-text .audio-time {
            font-size: 13px;
            color: var(--text-secondary);
            font-family: monospace;
        }

        .notes-empty {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }

        .notes-empty svg {
            width: 48px;
            height: 48px;
            fill: var(--text-muted);
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .notes-empty p {
            font-size: 15px;
            margin-bottom: 8px;
        }

        .notes-empty-hint {
            font-size: 13px;
            color: var(--text-muted);
        }

        .note-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .note-card:hover {
            background: var(--bg-secondary);
            border-color: #3a3a3a;
        }

        .note-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .note-card-date {
            font-size: 12px;
            color: var(--text-muted);
        }

        .note-card-delete {
            width: 28px;
            height: 28px;
            background: transparent;
            border: none;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .note-card-delete svg {
            width: 16px;
            height: 16px;
            fill: var(--text-muted);
        }

        .note-card-delete:hover {
            background: rgba(255, 56, 96, 0.1);
        }

        .note-card-delete:hover svg {
            fill: var(--color-pink);
        }

        .note-card-content {
            font-size: 14px;
            color: var(--text-primary);
            line-height: 1.5;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .note-card-comment {
            font-size: 13px;
            color: var(--color-purple);
            padding-top: 8px;
            border-top: 1px solid var(--border-color);
            font-style: italic;
        }

        /* ============ Toast 提示 ============ */
        .toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 12px 24px;
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            opacity: 0;
            transition: all 0.3s;
            z-index: 6000;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* ============ 我的页面 ============ */
        .profile-container {
            display: none;
            flex-direction: column;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-primary);
            z-index: 100;
        }

        .profile-container.show {
            display: flex;
        }

        .profile-top-header {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 16px;
            background-color: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .profile-scroll {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            padding: 20px 16px;
            padding-bottom: 100px;
        }

        .profile-header {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 24px 20px;
            background: linear-gradient(145deg, rgba(0, 209, 178, 0.1), rgba(50, 152, 220, 0.05));
            border-radius: 16px;
            margin-bottom: 20px;
            border: 1px solid rgba(0, 209, 178, 0.2);
        }

        .profile-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-turquoise), var(--color-cyan));
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .profile-avatar svg {
            width: 36px;
            height: 36px;
            fill: white;
        }

        .profile-info {
            flex: 1;
        }

        .profile-name {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .profile-id {
            font-size: 13px;
            color: var(--text-muted);
        }

        .profile-menu {
            background: var(--bg-card);
            border-radius: 16px;
            border: 1px solid rgba(0, 209, 178, 0.15);
            overflow: hidden;
        }

        .profile-menu-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px 20px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .profile-menu-item:hover {
            background: var(--bg-secondary);
        }

        .profile-menu-item:active {
            background: rgba(0, 209, 178, 0.1);
        }

        .profile-menu-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-menu-icon svg {
            width: 22px;
            height: 22px;
            fill: white;
        }

        .profile-menu-icon.favorites {
            background: linear-gradient(135deg, var(--color-turquoise), var(--color-cyan));
        }

        .profile-menu-icon.notes {
            background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
        }

        .profile-menu-icon.logout {
            background: linear-gradient(135deg, rgba(0, 209, 178, 0.3), rgba(50, 152, 220, 0.3));
        }

        .profile-menu-item span {
            flex: 1;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .profile-menu-item.logout span {
            color: var(--text-secondary);
        }

        .profile-menu-arrow {
            width: 20px;
            height: 20px;
            fill: var(--text-muted);
        }

        .profile-menu-divider {
            height: 1px;
            background: var(--border-color);
            margin: 0 20px;
        }

        .profile-footer {
            text-align: center;
            padding: 30px 20px;
            color: var(--text-muted);
            font-size: 12px;
        }

        /* ============ AI聊天图标 ============ */
        .ai-chat-icon {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 50%;
            transition: background 0.2s;
        }

        .ai-chat-icon:active {
            background: rgba(0, 209, 178, 0.2);
        }

        .ai-chat-icon svg {
            width: 22px;
            height: 22px;
            color: var(--color-turquoise);
        }

        /* ============ 全局AI聊天页面 ============ */
        .global-chat-page {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-primary);
            z-index: 1000;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .global-chat-page.show {
            transform: translateX(0);
        }

        /* 全局聊天页打开时禁用底层滚动 */
        body.global-chat-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }

        body.global-chat-open .app-container,
        body.global-chat-open .bottom-nav {
            visibility: hidden;
            pointer-events: none;
        }

        /* 收藏页打开时禁用底层滚动 */
        body.favorites-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }

        body.favorites-open .app-container,
        body.favorites-open .bottom-nav {
            visibility: hidden;
            pointer-events: none;
        }

        .global-chat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            height: 56px;
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .global-chat-header h2 {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
            text-align: center;
        }

        .global-chat-header .close-btn {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 50%;
            transition: background 0.2s;
        }

        .global-chat-header .close-btn:active {
            background: rgba(255, 255, 255, 0.1);
        }

        .global-chat-header .close-btn svg {
            width: 24px;
            height: 24px;
            fill: var(--text-secondary);
        }

        .global-chat-scroll {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 16px;
        }

        .global-chat-messages {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-welcome {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px 20px;
            text-align: center;
        }

        .chat-welcome .welcome-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-turquoise), var(--color-cyan));
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
        }

        .chat-welcome .welcome-icon svg {
            width: 32px;
            height: 32px;
            color: white;
        }

        .chat-welcome .welcome-text {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.6;
            max-width: 280px;
        }

        .global-chat-input-area {
            display: flex;
            align-items: flex-end;
            gap: 8px;
            padding: 12px 16px;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-color);
            flex-shrink: 0;
            padding-bottom: calc(12px + env(safe-area-inset-bottom));
        }

        .global-chat-input-area textarea {
            flex: 1;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 10px 16px;
            font-size: 15px;
            color: var(--text-primary);
            resize: none;
            max-height: 120px;
            line-height: 1.4;
            outline: none;
        }

        .global-chat-input-area textarea:focus {
            border-color: var(--color-turquoise);
        }

        .global-chat-input-area textarea::placeholder {
            color: var(--text-muted);
        }

        .global-chat-send-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-turquoise), var(--color-cyan));
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            transition: opacity 0.2s;
        }

        .global-chat-send-btn:active {
            opacity: 0.8;
        }

        .global-chat-send-btn:disabled {
            opacity: 0.5;
        }

        .global-chat-send-btn svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        /* 全局聊天消息样式复用 */
        .global-chat-messages .chat-message {
            max-width: 85%;
            padding: 10px 14px;
            border-radius: 16px;
            font-size: 14px;
            line-height: 1.5;
            word-wrap: break-word;
        }

        .global-chat-messages .chat-message.user {
            align-self: flex-end;
            background: linear-gradient(135deg, var(--color-turquoise), var(--color-cyan));
            color: white;
            border-bottom-right-radius: 4px;
        }

        .global-chat-messages .chat-message.assistant {
            align-self: flex-start;
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border-bottom-left-radius: 4px;
        }

        /* 聊天音频播放器样式 */
        .chat-audio-player {
            display: flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(to right, rgba(184, 107, 255, 0.3) 0%, rgba(0, 209, 178, 0.1) 0%);
            border-radius: 12px;
            padding: 14px 16px;
            margin: 10px 0;
            transition: background 0.1s linear;
        }

        .chat-audio-player audio {
            display: none;
        }

        .chat-audio-player .audio-play-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            background: linear-gradient(135deg, var(--color-turquoise), var(--color-cyan));
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 2px 8px rgba(0, 209, 178, 0.3);
        }

        .chat-audio-player .audio-play-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 209, 178, 0.3);
        }

        .chat-audio-player .audio-play-btn:active {
            transform: scale(0.95);
        }

        .chat-audio-player .play-icon {
            display: block;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 7px 0 7px 12px;
            border-color: transparent transparent transparent #ffffff;
            margin-left: 3px;
        }

        .chat-audio-player .pause-icon {
            display: none;
            width: 12px;
            height: 14px;
            border-left: 4px solid #ffffff;
            border-right: 4px solid #ffffff;
        }

        .chat-audio-player .audio-play-btn.playing .play-icon {
            display: none;
        }

        .chat-audio-player .audio-play-btn.playing .pause-icon {
            display: block;
        }

        .chat-audio-player .audio-label {
            flex: 1;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .chat-audio-player .audio-time {
            font-size: 13px;
            color: var(--text-secondary);
            font-family: monospace;
        }
