/* style.css (V4.0 - Final Simple Version) */
:root {
    --bg-color: #0a0a0a;
    --card-bg-color: #1a1a1a;
    --message-bg-color: #2a2a2a;
    --primary-text-color: #ffffff;
    --secondary-text-color: #a0a0a0;
    --border-color: #333333;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --accent-color: #3b82f6;
    --accent-text-color: #ffffff;
    --font-family-main: 'Inter', 'Noto Sans SC', sans-serif;
    --shadow-color: rgba(0, 0, 0, 0.6);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-info: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

html, body {
    margin: 0; padding: 0; min-height: 100vh; width: 100%;
    font-family: var(--font-family-main);
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* 禁止横向滚动，固定布局宽度 */
html, body, .app-container {
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 专业策略卡片样式 (紧凑版) --- */
.strategy-core-card {
    background: linear-gradient(135deg, var(--card-bg-color) 0%, #1a1a1a 100%);
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    animation: slideIn 0.4s ease-out;
    color: var(--primary-text-color);
    position: relative;
    overflow: hidden;
}

.strategy-core-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
    border-radius: 16px 16px 0 0;
}

/* 卡片头部 - 紧凑版 */
.strategy-core-card .card-header {
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-align: center;
}

.strategy-core-card .card-header h2 {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 4px 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
}

.strategy-core-card .card-header .timestamp {
    font-size: 0.75em;
    color: var(--secondary-text-color);
    font-weight: 400;
    opacity: 0.8;
}

/* 策略数据行 - 紧凑版 */
.strategy-core-card .strategy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.2s ease;
}

.strategy-core-card .strategy-row:last-child {
    border-bottom: none;
}

.strategy-core-card .strategy-row:hover {
    background: rgba(59, 130, 246, 0.03);
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 6px;
}

/* 左侧标签 - 缩小 */
.strategy-core-card .label {
    color: var(--secondary-text-color);
    font-weight: 500;
    font-size: 0.9em;
    min-width: 80px;
    flex-shrink: 0;
    opacity: 0.9;
}

/* 右侧数值 - 紧凑版 */
.strategy-core-card .value {
    color: var(--primary-text-color);
    font-weight: 600;
    font-size: 0.95em;
    text-align: right;
    flex: 1;
    line-height: 1.3;
}

/* 方向标签向左移动 - 强制覆盖 */
.strategy-core-card .strategy-row:first-of-type .value {
    text-align: left !important;
    padding-left: 20px !important;
    justify-content: flex-start !important;
    display: flex !important;
}

/* 入场区间特殊样式 - 紧凑版 */
.strategy-core-card .strategy-row:nth-of-type(2) .value {
    color: var(--accent-color);
    font-size: 1.0em;
    font-weight: 700;
}

/* 彩色方向标签 - 紧凑版 */
.strategy-tag {
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 700;
    color: white;
    font-size: 0.85em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

.tag-long { 
    background: linear-gradient(135deg, #26a69a, #00b894);
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.4);
}

.tag-short { 
    background: linear-gradient(135deg, #ef5350, #e74c3c);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.4);
}

.tag-wait { 
    background: linear-gradient(135deg, #787b86, #6c757d);
    box-shadow: 0 2px 6px rgba(120, 123, 134, 0.3);
}

/* 说明文字淡化样式 */
.strategy-core-card .value small,
.strategy-core-card .value .explanation {
    font-size: 0.75em;
    color: var(--secondary-text-color);
    opacity: 0.7;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 2px;
    display: block;
}

/* 推荐指数描述文字特别淡化 */
.strategy-core-card .strategy-row:last-child .value small {
    font-size: 0.7em;
    opacity: 0.6;
    font-style: italic;
}

/* 推荐指数星星颜色 - 统一金色 */
.strategy-core-card .stars {
    color: #ffd700 !important; /* 统一金色星星 */
    font-size: 1.1em;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
    margin-right: 4px;
    display: inline-block;
}

/* 移除所有其他星星颜色规则，保持统一 */
.strategy-core-card .stars * {
    color: #ffd700 !important;
}








/* --- 折叠章节样式 (手风琴效果) --- */
.report-details {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.5s ease-out;
    overflow: hidden;
    position: relative;
}

.report-details:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.report-details summary {
    font-size: 1.05em;
    font-weight: 600;
    padding: 18px 24px;
    cursor: pointer;
    outline: none;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    transition: all 0.2s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.report-details summary:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.report-details summary::-webkit-details-marker {
    display: none;
}

.report-details summary::after {
    content: '▶';
    font-size: 0.9em;
    color: var(--accent-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 12px;
    font-weight: bold;
}

.report-details[open] > summary::after {
    transform: rotate(90deg);
    color: var(--accent-color);
}

.report-details[open] > summary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.details-content {
    padding: 0 24px 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.details-content ul {
    padding-left: 20px;
}

.details-content p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.details-content strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* --- 关键动画效果 --- */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 手风琴展开动画 --- */
.report-details[open] .details-content {
    animation: fadeInUp 0.4s ease-out;
}

/* --- 点击波纹效果 --- */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- 简化标头 --- */
.app-header {
    padding: 12px 16px;
    background: var(--accent-gradient);
    color: var(--accent-text-color);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 100%;
}

.header-left {
    flex: 1;
    text-align: left;
    position: relative;
}

.header-left h1 {
    margin: 0 0 4px 0;
    display: inline-block;
}

.header-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 12px;
    position: relative;
}

/* --- 语言切换器样式 --- */
.language-switcher {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
}

.language-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--accent-text-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 32px;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.language-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.8);
    transform: translateY(-1px);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 100px;
    overflow: hidden;
    margin-top: 4px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.language-menu.hidden {
    display: none;
}

.lang-option {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--primary-text-color);
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-text-color);
}

.lang-option:first-child {
    border-radius: 6px 6px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 6px 6px;
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

.app-header h1 {
    font-size: 1.0em;
    margin: 2px 0 4px 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.app-header p {
    font-size: 0.75em;
    margin: 0;
    color: var(--accent-text-color);
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* --- Chat Window --- */
.chat-window {
    flex-grow: 1;
    padding: 12px;
    padding-bottom: 80px; /* 为底部按钮留出空间 */
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    max-width: 100%;
}

/* 防止内容撑破造成横向滚动 */
.chat-window, .message, .report-card {
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}

/* --- 统一页面容器样式 --- */
.page-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.page-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* --- 报告卡片和消息气泡样式 --- */
.report-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn .5s ease-out forwards;
}
@keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
}
.report-card h2 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.report-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.report-card li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--secondary-text-color);
}
.report-card strong {
    font-weight: 600;
    color: var(--primary-text-color);
}
.strategy-card {
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 0 20px var(--shadow-color);
}
.strategy-card h2 {
    background-image: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Basic message bubble (welcome/error) */
.message {
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.6;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s ease-out forwards;
}
.bot-message {
    background-color: var(--message-bg-color);
    color: var(--primary-text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

/* --- 页面底部币种按钮 --- */
.bottom-crypto-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 16px;
    background: transparent; /* 透明背景 */
    z-index: 1000;
}

.crypto-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 70px;
    text-align: center;
}

.crypto-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btc-btn {
    background: linear-gradient(135deg, #f7931a, #ff6b35);
}

.eth-btn {
    background: linear-gradient(135deg, #627eea, #4f46e5);
}

.xrp-btn {
    background: linear-gradient(135deg, #23292f, #1a1a1a);
}

.doge-btn {
    background: linear-gradient(135deg, #c2a633, #d4af37);
}

/* 当有策略核心卡片时，调整按钮位置避免重叠 */
.chat-window:has(.strategy-core-card) ~ .floating-crypto-buttons {
    top: 60%;
}

.floating-crypto-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: var(--accent-gradient);
    color: var(--accent-text-color);
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0.9;
}

/* 为不同币种添加特殊颜色 - 简洁专业主题 */
.floating-crypto-btn[data-symbol="BTC"] {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.floating-crypto-btn[data-symbol="ETH"] {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.floating-crypto-btn[data-symbol="XRP"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.floating-crypto-btn[data-symbol="DOGE"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.floating-crypto-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.floating-crypto-btn:hover::before {
    transform: translateX(100%);
}

.floating-crypto-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

/* 不同币种的悬停效果 - 简洁专业主题 */
.floating-crypto-btn[data-symbol="BTC"]:hover {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

.floating-crypto-btn[data-symbol="ETH"]:hover {
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

.floating-crypto-btn[data-symbol="XRP"]:hover {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.floating-crypto-btn[data-symbol="DOGE"]:hover {
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.floating-crypto-btn:active {
    transform: scale(0.95);
}

/* 按钮禁用状态 */
.floating-crypto-buttons.disabled .floating-crypto-btn {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(100%);
}

.floating-crypto-buttons.disabled .floating-crypto-btn:hover {
    transform: none;
    opacity: 0.3;
}

/* 响应式设计：小屏幕时调整位置 */
@media (max-width: 480px) {
    .floating-crypto-buttons {
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        gap: 12px;
    }
    
    .floating-crypto-btn {
        width: 48px;
        height: 48px;
        font-size: 0.8em;
    }
    
    /* 小屏幕头部按钮调整 */
    .header-buttons {
        gap: 4px;
        margin-left: 8px;
    }
    
    #invite-link, #get-credits-link {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 60px;
    }
    
    /* 小屏幕语言切换器调整 */
    .language-switcher {
        position: absolute;
        top: 0;
        right: 0;
    }
    
    .language-btn {
        padding: 3px 6px;
        font-size: 12px;
        min-width: 28px;
    }
    
    .language-menu {
        min-width: 90px;
    }
    
    .lang-option {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .header-left h1 {
        font-size: 16px;
        margin: 0 0 4px 0;
    }
    
    .header-left p {
        font-size: 12px;
        margin: 0;
    }
}

/* --- 全局加载遮罩 --- */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
#loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden { display: none; }

/* --- 新增：头部按钮样式 --- */
#invite-link, #get-credits-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    text-align: center;
    white-space: nowrap;
    min-width: 80px;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#invite-link:hover, #get-credits-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

#invite-link, #get-credits-link {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
}

#invite-link:hover, #get-credits-link:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.8);
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    color: white;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-width: 280px;
    animation: subtlePulse 2s ease-in-out infinite;
}

.loading-spinner {
    margin-bottom: 12px;
}

.bouncing-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.bouncing-dots .dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.bouncing-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.bouncing-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

.bouncing-dots .dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes subtlePulse {
    0% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.9;
    }
}


.loading-text {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    line-height: 1.5;
    margin: 0;
}

.loading-overlay.hidden {
    display: none;
}

/* ===== 浮动操作按钮(FAB)和侧滑菜单样式 ===== */

/* 隐藏原有的浮动币种按钮 */
.floating-crypto-buttons {
    display: none;
}

/* 隐藏原有的底部币种按钮 */
.bottom-crypto-buttons {
    display: none;
}

/* 浮动操作按钮(FAB)容器 */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* 浮动主按钮 */
.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(168, 85, 247, 0.9));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1002; /* 确保主按钮始终在最上层 */
}

.fab-main:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.fab-main:active {
    transform: scale(0.95);
}

.fab-icon {
    font-size: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-main.active .fab-icon {
    transform: rotate(45deg);
}

/* 侧滑菜单 - 向上平铺，圆角背景 */
.fab-menu {
    position: absolute;
    bottom: 70px; /* 位置在FAB上方 */
    right: 0;
    width: 60px; /* 与FAB同宽 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001; /* 低于主按钮，但高于其他内容 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}


.fab-menu-content {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

/* 菜单选项 - 圆形按钮，向上平铺 */
.fab-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fab-menu.active .fab-option {
    opacity: 1;
    transform: translateY(0);
}

.fab-menu.active .fab-option:nth-child(1) { transition-delay: 0.05s; }
.fab-menu.active .fab-option:nth-child(2) { transition-delay: 0.10s; }
.fab-menu.active .fab-option:nth-child(3) { transition-delay: 0.15s; }
.fab-menu.active .fab-option:nth-child(4) { transition-delay: 0.20s; }

.fab-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.fab-option:active {
    transform: scale(0.95);
}

.option-icon {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.option-text {
    display: none; /* 隐藏文字，只显示图标 */
}

/* 币种特定样式 - 圆形按钮 */
.btc-option {
    background: linear-gradient(135deg, #f7931a, #ff6b35);
    border: 2px solid rgba(247, 147, 26, 0.3);
}

.eth-option {
    background: linear-gradient(135deg, #627eea, #4f46e5);
    border: 2px solid rgba(98, 126, 234, 0.3);
}

.xrp-option {
    background: linear-gradient(135deg, #23292f, #4a5568);
    border: 2px solid rgba(35, 41, 47, 0.3);
}

.doge-option {
    background: linear-gradient(135deg, #c2a633, #f6d55c);
    border: 2px solid rgba(194, 166, 51, 0.3);
}

/* 动画效果 */
@keyframes fabPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fab-main.pulse {
    animation: fabPulse 2s infinite;
}

@keyframes optionSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fab-option {
    animation: optionSlideIn 0.3s ease-out;
}

.fab-option:nth-child(1) { animation-delay: 0.1s; }
.fab-option:nth-child(2) { animation-delay: 0.15s; }
.fab-option:nth-child(3) { animation-delay: 0.2s; }
.fab-option:nth-child(4) { animation-delay: 0.25s; }