/* AI算力市场现代化样式 - 亮色调版本 */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #7ed321;
    --accent-color: #ff6b6b;
    --background-color: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --transition: all 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 90px; /* 为悬浮Dock栏留出空间 */
}

/* 头部样式 - 重新设计为两行布局 */
.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
    min-height: 70px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    height: 100%;
}

/* 左侧区域 */
.header-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧区域 */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 玩家信息 */
.player-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-info-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-name-container {
    display: flex;
    align-items: center;
}

.player-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 高斯模糊毛玻璃效果 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.glass-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* 悬浮Dock栏样式 */
.floating-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    gap: 0.5rem;
    min-width: 300px;
    justify-content: center;
}

.dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 1.2rem;
    background: transparent;
    border: none;
    border-radius: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    min-width: 80px;
    position: relative;
}

.dock-btn:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.dock-btn.active {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(108, 92, 231, 0.2));
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
}

.dock-btn .emoji {
    font-size: 1.5rem;
    transition: var(--transition);
}

.dock-btn.active .emoji {
    transform: scale(1.1);
}

.dock-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 客服按钮样式 - 固定在Dock栏上方 */
#customer-service-button {
    position: fixed;
    bottom: 100px; /* 在Dock栏上方 */
    right: 20px;
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#customer-service-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.6);
}

.customer-service-icon {
    font-size: 18px;
}

.customer-service-text {
    white-space: nowrap;
}

/* 页面容器 */
.page-container {
    display: none;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
    width: 100%;
}

.page-container.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-badge {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.9), 
        rgba(255, 193, 7, 0.9),
        rgba(255, 152, 0, 0.9));
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    justify-content: center;
}

.gold-badge .gold-icon {
    font-size: 1.2rem;
}

.gold-badge .gold-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.gold-badge .gold-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

/* 硬件卡片网格 - 桌面端每行3个，移动端每行2个 */
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

/* 硬件卡片样式 - 重新设计 */
.hardware-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 480px; /* 延长卡片高度以适应更大的图标 */
    display: flex;
    flex-direction: column;
}

.hardware-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #6c5ce7, #7ed321);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

/* 新的卡片头部布局 - 名称和总价值左右排列 */
.hardware-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    min-height: 50px;
}

.hardware-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    margin-right: 1rem;
    line-height: 1.3;
}

.hardware-power {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(108, 92, 231, 0.9));
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.power-icon {
    font-size: 1rem;
    color: #ffd700;
}

.power-amount {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
}

/* 硬件图标容器 - 强制占满卡片宽度的90% */
.hardware-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    position: relative;
    width: 90%; /* 强制宽度为卡片宽度的90% */
    margin-left: auto;
    margin-right: auto;
    min-height: 180px; /* 设置最小高度确保有足够空间 */
}

/* 图标强制占满容器宽度的90%，高度自适应 */
.hardware-icon {
    width: 100% !important; /* 强制宽度100% */
    height: auto !important; /* 高度自适应 */
    max-height: 220px; /* 限制最大高度 */
    object-fit: contain; /* 保持图片比例 */
    filter: 
        drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
    z-index: 2;
    position: relative;
}

/* 备用emoji图标的样式 */
.hardware-icon.emoji-icon {
    font-size: 6rem; /* 放大emoji图标 */
    width: 100% !important; /* 强制宽度100% */
    height: auto !important; /* 高度自适应 */
    max-height: 220px; /* 限制最大高度 */
    filter: 
        drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 添加渐变阴影效果 */
.hardware-icon-container::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: radial-gradient(ellipse at center, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    z-index: 1;
    opacity: 0.7;
    transition: var(--transition);
}

.hardware-card:hover .hardware-icon {
    transform: scale(1.05) translateY(-5px);
}

.hardware-card:hover .hardware-icon-container::before {
    opacity: 0.9;
    transform: scale(1.1);
    filter: blur(10px);
}

.hardware-info {
    margin-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hardware-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* 缩小间距 */
}

.hardware-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0; /* 缩小内边距 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.8rem; /* 缩小字体 */
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem; /* 缩小字体 */
}

/* 新增：可收获状态的绿色文字样式 */
.detail-value.harvest-ready {
    color: #27ae60 !important;
    font-weight: 700;
}

.special-label {
    color: #e67e22 !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important; /* 特殊标签也缩小 */
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}

.status-ready {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.2), rgba(92, 184, 92, 0.2));
    color: #27ae60;
    border: 1px solid rgba(126, 211, 33, 0.3);
}

.status-waiting {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    color: #f39c12;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.hardware-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.harvest-btn, .buy-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.harvest-btn {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.2), rgba(92, 184, 92, 0.2));
    color: #27ae60;
    border: 1px solid rgba(126, 211, 33, 0.3);
}

.harvest-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.3), rgba(92, 184, 92, 0.3));
    border-color: rgba(126, 211, 33, 0.5);
}

.buy-btn {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(108, 92, 231, 0.2));
    color: #4a90e2;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(108, 92, 231, 0.3));
    border-color: rgba(74, 144, 226, 0.5);
}

button:disabled {
    background: rgba(128, 128, 128, 0.1) !important;
    color: var(--text-secondary) !important;
    border-color: rgba(128, 128, 128, 0.2) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* 移动端硬件网格优化 - 每行显示2个卡片 */
@media (max-width: 768px) {
    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0.5rem;
    }
    
    /* 移动端硬件卡片内部优化 */
    .hardware-card {
        padding: 1rem;
        min-height: 420px; /* 移动端稍微降低高度 */
    }
    
    .hardware-card-header {
        margin-bottom: 0.8rem;
        min-height: 45px;
    }
    
    .hardware-name {
        font-size: 1rem;
    }
    
    .hardware-power {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .power-amount {
        font-size: 0.8rem;
    }
    
    /* 移动端图标容器调整为宽度90% */
    .hardware-icon-container {
        width: 90%;
        min-height: 150px;
        margin: 0.8rem auto;
    }
    
    /* 移动端图标调整为宽度100%，高度自适应 */
    .hardware-icon {
        width: 100% !important;
        height: auto !important;
        max-height: 180px;
    }
    
    .hardware-icon.emoji-icon {
        font-size: 4.5rem;
        max-height: 180px;
    }
    
    .hardware-details {
        gap: 0.5rem;
    }
    
    .hardware-detail {
        padding: 0.3rem 0;
    }
    
    .detail-label, .detail-value {
        font-size: 0.75rem;
    }
    
    .status-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        margin-top: 0.8rem;
    }
    
    .harvest-btn, .buy-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 超小屏幕特殊优化 */
@media (max-width: 480px) {
    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0.3rem;
    }
    
    .hardware-card {
        padding: 0.8rem;
        min-height: 380px;
    }
    
    .hardware-card-header {
        min-height: 40px;
    }
    
    .hardware-name {
        font-size: 0.9rem;
    }
    
    .hardware-power {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* 超小屏幕图标容器调整为宽度90% */
    .hardware-icon-container {
        width: 90%;
        min-height: 120px;
        margin: 0.6rem auto;
    }
    
    /* 超小屏幕图标调整为宽度100%，高度自适应 */
    .hardware-icon {
        width: 100% !important;
        height: auto !important;
        max-height: 150px;
    }
    
    .hardware-icon.emoji-icon {
        font-size: 4rem;
        max-height: 150px;
    }
    
    .detail-label, .detail-value {
        font-size: 0.7rem;
    }
}

/* 我的页面样式 */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.user-gold {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.current-harvestable {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.harvestable-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.amount-icon {
    font-size: 2rem;
    color: #ff6b00;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.amount-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.harvestable-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.earnings-history, .current-hardware {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.history-icon {
    font-size: 1.8rem;
}

.history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hardware-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.purchase-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.earnings-amount {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.1rem;
}

.hardware-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 收益记录样式 */
.earnings-records {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.earnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.earnings-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.earnings-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.earnings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.earnings-icon {
    font-size: 2rem;
}

.earnings-amount-positive {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.1rem;
}

.earnings-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.earnings-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.earnings-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.earnings-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.earnings-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 0.5rem;
}

/* 空状态样式 */
.empty-state, .empty-history {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 登录卡片样式 */
.login-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

/* 刷新按钮样式 - 新版本 */
.refresh-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    width: 100%;
}

.refresh-shop-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(108, 92, 231, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.refresh-shop-btn:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 1), rgba(108, 92, 231, 1));
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.4);
}

.refresh-shop-btn:active {
    transform: translateY(0);
}

.refresh-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.refresh-shop-btn:active .refresh-icon {
    transform: rotate(180deg);
}

/* 移动端刷新按钮布局优化 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch; /* 改为拉伸以占满宽度 */
        gap: 1rem;
    }
    
    .gold-badge {
        order: 1; /* 算力栏在第一行 */
        align-self: flex-start; /* 保持左对齐 */
        width: auto; /* 自适应宽度 */
    }
    
    .refresh-container {
        order: 2; /* 刷新按钮在第二行 */
        justify-content: flex-start; /* 移动端居左 */
        margin-top: 0;
        width: 100%;
    }
    
    .refresh-shop-btn {
        width: 100%; /* 占满第二行宽度 */
        justify-content: center;
        max-width: none; /* 移除最大宽度限制 */
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .refresh-shop-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 超小屏幕特殊优化 */
@media (max-width: 360px) {
    .refresh-shop-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.refresh-shop-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.refresh-shop-btn:active {
    transform: translateY(0);
}

.refresh-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.refresh-shop-btn:active .refresh-icon {
    transform: rotate(180deg);
}

/* 空状态下的刷新按钮 */
.empty-state .refresh-btn {
    margin-top: 15px;
    padding: 10px 20px;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #6c5ce7, #7ed321);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.login-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-card-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-field {
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    background: white;
}

.input-field::placeholder {
    color: var(--text-secondary);
}

/* 按钮基础样式 */
button {
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.login-btn-card, .register-btn-card {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    width: 100%;
}

.login-btn-card {
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    color: white;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.login-btn-card:hover:not(:disabled) {
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.6);
    transform: translateY(-2px);
}

/* 修复注册按钮颜色问题 */
.register-btn-card {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
    border: none;
}

.register-btn-card:hover:not(:disabled) {
    background: linear-gradient(135deg, #d35400, #e67e22);
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.6);
    transform: translateY(-2px);
}

.logout-btn {
    background: linear-gradient(135deg, var(--accent-color), #ff8e8e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.logout-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

/* 登录卡片按钮布局 */
.login-card-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.login-card-buttons button {
    flex: 1;
}

/* 客服注册提示样式 */
.customer-service-register {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.customer-service-register p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.customer-service-link {
    display: inline-block;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid #4a90e2;
    border-radius: 8px;
    transition: var(--transition);
}

.customer-service-link:hover {
    background: #4a90e2;
    color: white;
}

/* 公告栏样式 */
.announcement-bar {
    padding: 10px 0;
    background: linear-gradient(135deg, 
        rgba(44, 62, 80, 0.95) 0%, 
        rgba(52, 73, 94, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #4a90e2, #7ed321, #ff6b6b, #6c5ce7);
    background-size: 400% 100%;
    animation: gradientShift 8s ease-in-out infinite;
}

.announcement-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 1rem;
    width: 100%;
    position: relative;
}

.announcement-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 35px;
    position: relative;
}

.announcement-text {
    white-space: nowrap;
    display: inline-block;
    animation: smoothScroll 30s linear infinite;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0;
    text-align: center;
    position: absolute;
    left: 100%;
    animation-delay: 0.5s;
}

.announcement-text::before {
    content: '📢 ';
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* 修复滚动动画 */
@keyframes smoothScroll {
    0% { 
        left: 100%;
    }
    100% { 
        left: -300%;
    }
}

.announcement-content::before,
.announcement-content::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 1;
    pointer-events: none;
}

.announcement-content::before {
    left: 0;
    background: linear-gradient(90deg, 
        rgba(44, 62, 80, 1) 0%, 
        rgba(44, 62, 80, 0) 100%);
}

.announcement-content::after {
    right: 0;
    background: linear-gradient(270deg, 
        rgba(44, 62, 80, 1) 0%, 
        rgba(44, 62, 80, 0) 100%);
}

/* 底部样式 */
.app-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

/* 通知样式 - 修改文字颜色为黑色 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(255, 255, 255, 0.1) inset;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, 
        rgba(39, 174, 96, 0.9), 
        rgba(46, 204, 113, 0.95));
    border-left: 4px solid rgba(33, 150, 83, 0.8);
}

.notification.error {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.9), 
        rgba(255, 107, 107, 0.95));
    border-left: 4px solid rgba(192, 57, 43, 0.8);
}

.notification.info {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.9), 
        rgba(74, 144, 226, 0.95));
    border-left: 4px solid rgba(41, 128, 185, 0.8);
}

.notification.warning {
    background: linear-gradient(135deg, 
        rgba(243, 156, 18, 0.9), 
        rgba(241, 196, 15, 0.95));
    border-left: 4px solid rgba(230, 126, 34, 0.8);
}

.notification.earnings {
    background: linear-gradient(135deg, 
        rgba(241, 196, 15, 0.9), 
        rgba(243, 156, 18, 0.95));
    border-left: 4px solid rgba(230, 126, 34, 0.8);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-message {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #000000 !important; /* 修改为黑色文字 */
    text-shadow: none; /* 移除文字阴影 */
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 邀请页面样式 */
.invite-main-account,
.invite-sub-account {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.invite-header {
    text-align: center;
    margin-bottom: 2rem;
}

.invite-header .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.invite-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.invite-link-section,
.invite-stats-section,
.invite-tips-section,
.invite-note-section {
    margin-bottom: 2rem;
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.invite-link-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.invite-link-input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
}

.invite-link-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.copy-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #357abd, #5f4fcf);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.copy-icon {
    margin-right: 0.5rem;
}

.invite-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.invite-stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: var(--transition);
}

.invite-stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.tip-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.invite-note-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.note-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.note-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* 注册弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-actions button {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
}

.confirm-btn {
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.confirm-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #357abd, #5f4fcf);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.6);
    transform: translateY(-2px);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-card {
    animation: fadeIn 0.6s ease-out;
}

.hardware-card {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #357abd, #5f4fcf);
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .app-container {
        padding-bottom: 100px; /* 为移动端悬浮Dock栏留出更多空间 */
    }

    .header-content {
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-left, .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .app-title {
        font-size: 1.1rem;
    }
    
    .app-subtitle {
        font-size: 0.75rem;
    }
    
    .player-section {
        justify-content: center;
    }
    
    /* 移动端悬浮Dock栏优化 */
    .floating-dock {
        bottom: 10px;
        padding: 0.6rem 1rem;
        min-width: 280px;
        border-radius: 20px;
    }
    
    .dock-btn {
        padding: 0.6rem 0.8rem;
        min-width: 70px;
    }
    
    .dock-btn .emoji {
        font-size: 1.3rem;
    }
    
    .dock-btn span {
        font-size: 0.7rem;
    }
    
    /* 移动端客服按钮优化 */
    #customer-service-button {
        bottom: 90px;
        right: 15px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .customer-service-text {
        display: inline !important;
    }
    
    /* 移动端页面头部优化 */
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .gold-badge {
        align-self: stretch;
        min-width: auto;
        padding: 0.6rem 1rem;
    }
    
    /* 移动端我的页面优化 */
    .user-profile {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .hardware-stats {
        grid-template-columns: 1fr;
    }
    
    .login-card-container {
        min-height: calc(100vh - 100px);
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    /* 移动端通知优化 */
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-150%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    /* 移动端公告栏优化 */
    .announcement-container {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .announcement-content {
        max-width: 100%;
        padding: 0.4rem 0.8rem;
        min-height: 32px;
    }
    
    .announcement-text {
        font-size: 0.8rem;
        animation: smoothScroll 20s linear infinite;
    }
    
    .announcement-content::before,
    .announcement-content::after {
        width: 20px;
    }
    
    .announcement-bar {
        min-height: 40px;
        padding: 8px 0;
    }

    /* 移动端收益记录优化 */
    .earnings-grid {
        grid-template-columns: 1fr;
    }
    
    .earnings-card {
        padding: 0.8rem;
    }
    
    .earnings-header {
        margin-bottom: 0.6rem;
    }
    
    .earnings-icon {
        font-size: 1.5rem;
    }
    
    .earnings-amount-positive {
        font-size: 1rem;
    }
    
    .earnings-detail {
        padding: 0.2rem 0;
    }
    
    .earnings-label, .earnings-value {
        font-size: 0.75rem;
    }
    
    .earnings-time {
        font-size: 0.65rem;
    }

    /* 移动端邀请页面优化 */
    .invite-main-account,
    .invite-sub-account {
        padding: 1.5rem;
    }
    
    .invite-link-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .invite-link-input {
        width: 100%;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .invite-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .invite-stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .tip-item {
        padding: 0.8rem;
    }
    
    .tip-icon {
        font-size: 1.3rem;
    }
    
    .tip-text {
        font-size: 0.8rem;
    }
    
    .invite-note-section {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .note-icon {
        font-size: 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: none;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding-bottom: 110px;
    }

    .floating-dock {
        min-width: 260px;
        padding: 0.5rem 0.8rem;
    }
    
    .dock-btn {
        padding: 0.5rem 0.6rem;
        min-width: 65px;
    }
    
    .dock-btn .emoji {
        font-size: 1.2rem;
    }
    
    .dock-btn span {
        font-size: 0.65rem;
    }
    
    #customer-service-button {
        bottom: 85px;
        right: 10px;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    /* 超小屏幕硬件网格优化 */
    .hardware-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .hardware-card {
        padding: 0.8rem;
    }
    
    .hardware-icon {
        font-size: 1.8rem;
    }
    
    .hardware-name {
        font-size: 0.9rem;
    }
    
    .detail-label, .detail-value {
        font-size: 0.7rem;
    }
    
    .harvest-btn, .buy-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .login-card-title {
        font-size: 1.5rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }

    /* 超小屏幕邀请页面优化 */
    .invite-main-account,
    .invite-sub-account {
        padding: 1rem;
    }
    
    .invite-header .section-title {
        font-size: 1.5rem;
    }
    
    .invite-description {
        font-size: 0.9rem;
    }
    
    .subsection-title {
        font-size: 1.1rem;
    }
    
    .invite-stat-card {
        padding: 1rem 0.8rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-actions button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* 超小屏幕特殊优化 */
@media (max-width: 360px) {
    .floating-dock {
        min-width: 240px;
        padding: 0.4rem 0.6rem;
    }
    
    .dock-btn {
        padding: 0.4rem 0.5rem;
        min-width: 60px;
    }
    
    .dock-btn span {
        font-size: 0.6rem;
    }
    
    #customer-service-button {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .hardware-grid {
        padding: 0.3rem;
        gap: 0.6rem;
    }
    
    .hardware-card {
        padding: 0.6rem;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .glass-card {
        background: white;
        border: 2px solid #000000;
    }
    
    .glass-btn {
        background: white;
        border: 2px solid #000000;
    }
    
    .notification {
        border: 2px solid #000000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .notification.success {
        background: #006400;
        color: #ffffff;
    }
    
    .notification.error {
        background: #8b0000;
        color: #ffffff;
    }
    
    .notification.info {
        background: #00008b;
        color: #ffffff;
    }
    
    .notification.warning, .notification.earnings {
        background: #8b7500;
        color: #ffffff;
    }
}