/* 导入统一设计系统 */
@import url('../../../shared/shared-styles.css');

/* AIXKOL 项目特定的样式覆盖 */
:root {
    /* 保持现代明亮风格，支持暗色模式切换 */
    --background: var(--gray-50);
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --aixkol-primary: #6366f1;
    --aixkol-secondary: #8b5cf6;
    --aixkol-accent: #06b6d4;
}

/* 暗色主题 */
[data-theme="dark"] {
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

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

/* 导航栏样式 */
.navbar {
    background: var(--surface-color);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(30, 41, 59, 0.95);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 2rem;
    animation: coinSpin 3s linear infinite;
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link.active::after {
    width: 80%;
}

/* 主题切换按钮 */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.section.active {
    display: block;
}

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

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-brand i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem;
    }
    
    .nav-brand {
        font-size: 1rem;
    }
    
    .nav-brand i {
        font-size: 1.25rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--aixkol-primary), var(--aixkol-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.platform-highlights {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.highlight-badge {
    background: linear-gradient(135deg, var(--aixkol-primary), var(--aixkol-accent));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.highlight-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.reward-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.reward-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--aixkol-primary), var(--aixkol-secondary));
    -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;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 活动部分 */
.activity-section {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.activity-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.activity-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* 奖励网格 */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reward-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.reward-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.reward-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reward-header i {
    font-size: 2rem;
}

.reward-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.reward-content {
    padding: 1.5rem;
}

.reward-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.reward-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

/* 交易容器 */
.trading-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.trading-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.trading-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-change {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.price-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.price-chart {
    width: 100%;
    height: 150px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trading-form {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.trade-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.trade-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trade-content.hidden {
    display: none;
}

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

.input-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.input-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 平台管理标签页 */
.platform-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 平台头部 */
.platform-header,
.campaign-header,
.content-header,
.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.platform-header h3,
.campaign-header h3,
.content-header h3,
.analytics-header h3 {
    margin: 0;
    color: var(--text-primary);
}

/* 平台网格 */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.platform-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
}

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

.platform-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.platform-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.platform-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.platform-stats {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.platform-stats span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.platform-stats strong {
    color: var(--primary-color);
}

.platform-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.platform-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.platform-status.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.platform-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 推广活动列表 */
.campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.campaign-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.campaign-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.campaign-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.campaign-description {
    color: var(--text-secondary);
    margin: 0;
}

.campaign-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.campaign-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.campaign-status.draft {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

.campaign-status.paused {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.campaign-status.completed {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.campaign-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.campaign-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 内容库 */
.content-library {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.content-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.content-item:hover {
    transform: translateY(-2px);
}

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

.content-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.content-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.content-preview {
    color: var(--text-secondary);
    margin: 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 15px 0;
}

.content-tag {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.content-metrics {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.content-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 数据分析 */
.analytics-content {
    display: grid;
    gap: 20px;
}

.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.analytics-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

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

.analytics-change {
    font-size: 0.8rem;
    margin-top: 5px;
}

.analytics-change.positive {
    color: #22c55e;
}

.analytics-change.negative {
    color: #ef4444;
}

.platform-ranking {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-platform {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ranking-position {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.ranking-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.ranking-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ranking-score {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* 个人资料容器 */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-card,
.settings-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.profile-avatar {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-avatar i {
    font-size: 5rem;
    color: var(--primary-color);
}

.profile-info {
    text-align: center;
}

.profile-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
}

.settings-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.setting-item {
    margin-bottom: 1.5rem;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.wallet-address {
    display: flex;
    gap: 1rem;
}

.wallet-address input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 开关样式 */
.switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: var(--border-color);
    border-radius: 24px;
    transition: var(--transition);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-primary);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-full {
    width: 100%;
}

/* 页脚样式 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p,
.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #374151;
    color: #94a3b8;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--surface-color);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
}

.close:hover {
    color: var(--text-primary);
}

/* 响应式设计 */

/* 大屏幕 (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .platform-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .trading-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* 中等屏幕 (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trading-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .trading-info {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* 小屏幕 (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .section-header h1 {
        font-size: 2.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .trading-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trading-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
}

/* 移动端 (最大 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 0.75rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0.75rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .nav-menu .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-width: auto;
    }

    .main-content {
        padding: 1rem 0.75rem;
    }

    .section-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }

    .trading-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trading-card {
        padding: 1rem;
    }
    
    .trading-info {
        display: block;
    }
    
    .order-book-container,
    .trade-history-container {
        margin-top: 1rem;
    }
    
    .trading-form {
        padding: 1rem;
    }
    
    .trade-tabs {
        margin-bottom: 1rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    .input-group input {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .platform-card {
        padding: 1rem;
    }

    .profile-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-card {
        padding: 1rem;
    }

    .wallet-address {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wallet-address input {
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }
}

/* 超小屏幕 (最大 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .navbar {
        padding: 0.75rem 0.5rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 0.75rem 0.5rem;
    }
    
    .section-header h1 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .trading-card,
    .platform-card,
    .profile-card {
        padding: 0.75rem;
    }
    
    .trading-form {
        padding: 0.75rem;
    }
    
    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .input-group input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .order-book,
    .trade-history {
        font-size: 0.8rem;
    }
    
    .order-item,
    .trade-item {
        padding: 0.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .footer-section h3 {
        font-size: 0.9rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        padding: 0.5rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .section-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .trading-container {
        gap: 0.5rem;
    }
    
    .trading-card {
        padding: 0.75rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-btn,
    .tab-btn {
        min-height: 44px; /* iOS 推荐的最小触摸目标 */
        touch-action: manipulation;
    }
    
    .input-group input {
        min-height: 44px;
        font-size: 16px; /* 防止 iOS Safari 缩放 */
    }
    
    .order-item,
    .trade-item,
    .platform-card {
        cursor: default;
    }
    
    /* 移除 hover 效果 */
    .btn:hover,
    .nav-btn:hover,
    .tab-btn:hover,
    .platform-card:hover {
        transform: none;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #800080;
        --background-color: #ffffff;
        --surface-color: #f0f0f0;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
    
    .btn,
    .nav-btn,
    .tab-btn {
        border: 2px solid var(--text-primary);
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 移动端优化样式 */

/* 触摸反馈 */
.touch-active {
    transform: scale(0.95) !important;
    opacity: 0.8 !important;
    transition: all 0.1s ease !important;
}

/* 移动设备特定样式 */
.mobile-device {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.mobile-device * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.mobile-device input,
.mobile-device textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* 返回顶部按钮 */
.back-to-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* 视口高度变量 */
.full-height {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

/* 移动端输入框优化 */
@media (max-width: 767px) {
    input[type="number"],
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        font-size: 16px !important; /* 防止iOS Safari缩放 */
        border-radius: 8px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* 移动端按钮优化 */
    .btn,
    .nav-btn,
    .tab-btn {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 移动端卡片优化 */
    .stat-card,
    .trading-card,
    .platform-card,
    .profile-card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* 移动端导航优化 */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* 移动端模态框优化 */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        border-radius: 16px;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 移动端表格优化 */
    .order-book,
    .trade-history {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .order-book table,
    .trade-history table {
        min-width: 300px;
    }
}

/* 超小屏幕额外优化 */
@media (max-width: 480px) {
    /* 更紧凑的间距 */
    .section {
        margin-bottom: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    /* 更小的字体 */
    .stat-label,
    .order-book,
    .trade-history {
        font-size: 0.75rem;
    }
    
    /* 更紧凑的按钮 */
    .btn-group .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* 优化图表容器 */
    .price-chart {
        height: 200px !important;
    }
}

/* 横屏模式特殊优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        padding: 0.25rem 1rem;
    }
    
    .section-header h1 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .section-header p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.5rem;
    }
    
    .trading-container {
        gap: 0.5rem;
    }
}

/* PWA 支持 */
@media (display-mode: standalone) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    .main-content {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 深色模式移动端优化 */
@media (prefers-color-scheme: dark) and (max-width: 767px) {
    .navbar {
        background: rgba(30, 30, 30, 0.95);
        color: white;
    }
    
    .modal-content {
        background: var(--surface-color);
        color: var(--text-primary);
    }
}

/* 网络状态指示器 */
#network-status {
    animation: slideDown 0.3s ease-out;
}

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

/* 加载状态优化 */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* 性能优化 */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* 移动端滚动条优化 */
@media (max-width: 767px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
    
    ::-webkit-scrollbar-track {
        background: transparent;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 2px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,0.3);
    }
}

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

.section.active {
    animation: fadeIn 0.5s ease-out;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* 交易信息区域 */
.trading-info {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 订单簿样式 */
.order-book-container h4,
.trade-history-container h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.order-book {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-book-section {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.order-book-section h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.sell-orders .order-item .price {
    color: var(--danger-color);
}

.buy-orders .order-item .price {
    color: var(--success-color);
}

.current-price-section {
    text-align: center;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    margin: 0.5rem 0;
}

.current-price-display {
    font-weight: 600;
    font-size: 1rem;
}

/* 交易历史样式 */
.trade-history {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.trade-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.trade-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--surface-color);
    border-radius: 4px;
    font-size: 0.85rem;
}

.trade-type {
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-align: center;
}

.trade-type.buy {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.trade-type.sell {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.trade-amount,
.trade-price {
    text-align: right;
}

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

/* ========================================
   个人中心 - 增强样式
   ======================================== */

/* 个人资料页面容器优化 */
#profile .profile-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

/* 用户资料卡片 - 增强版 */
#profile .profile-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

#profile .profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

/* 渐变头部背景 */
#profile .profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    z-index: 0;
}

/* 头像容器 - 发光效果 */
#profile .profile-avatar {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-top: 40px;
    text-align: center;
}

#profile .profile-avatar i {
    font-size: 100px;
    color: white;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.5));
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 4px 30px rgba(255, 255, 255, 0.8));
    }
}

/* 用户信息区 */
#profile .profile-info {
    text-align: center;
    padding: 1.5rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

#profile .profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

#profile .profile-info > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* 等级徽章 */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

.level-badge i {
    font-size: 1rem;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(251, 191, 36, 0.6);
    }
}

/* 等级进度条 */
.level-progress {
    margin: 1rem 0;
    padding: 0 1rem;
}

.level-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.level-progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.level-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* 用户统计信息 - 增强 */
#profile .profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--surface-color), rgba(99, 102, 241, 0.02));
}

#profile .profile-stats .stat {
    text-align: center;
    padding: 0.75rem;
    background: var(--background);
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.2s ease;
}

#profile .profile-stats .stat:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

#profile .profile-stats .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--aixkol-primary);
}

/* 右侧区域容器 */
.profile-right-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 奖励概览卡片 */
.rewards-overview-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rewards-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.rewards-overview-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rewards-overview-card h3 i {
    color: var(--aixkol-primary);
}

.rewards-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.reward-stat-item {
    background: linear-gradient(135deg, var(--background) 0%, rgba(99, 102, 241, 0.05) 100%);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.reward-stat-item:hover {
    border-color: var(--aixkol-primary);
    background: linear-gradient(135deg, var(--background) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.reward-stat-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--aixkol-primary), var(--aixkol-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.25rem;
}

.reward-stat-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 设置卡片 - 增强 */
#profile .settings-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#profile .settings-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

#profile .settings-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#profile .settings-card h3::before {
    content: '⚙️';
}

/* 钱包连接区 - 增强 */
#profile .wallet-address {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#profile .wallet-address input {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--background);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#profile .wallet-address input:focus {
    border-color: var(--aixkol-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

#profile .wallet-address .btn {
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--aixkol-primary), var(--aixkol-secondary));
    border: none;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#profile .wallet-address .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* 通知设置 - 增强 */
#profile .notification-settings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--background);
    padding: 1rem;
    border-radius: 12px;
}

#profile .notification-settings .switch {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

#profile .notification-settings .switch:last-child {
    border-bottom: none;
}

/* 安全设置区域 */
.security-settings-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-settings-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.security-settings-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-settings-card h3::before {
    content: '🔐';
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

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

.security-item:hover {
    border-color: var(--aixkol-primary);
}

.security-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.security-item-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.security-item .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

/* 社交账户关联 */
.social-accounts-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-accounts-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.social-accounts-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-accounts-card h3::before {
    content: '🔗';
}

.social-accounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.social-account-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-account-item:hover {
    border-color: var(--aixkol-primary);
    background: rgba(99, 102, 241, 0.05);
}

.social-account-item.connected {
    border-color: var(--success-color);
    background: rgba(34, 197, 94, 0.05);
}

.social-account-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.social-account-item .icon.twitter {
    background: linear-gradient(135deg, #1da1f2, #0077b5);
    color: white;
}

.social-account-item .icon.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
}

.social-account-item .icon.tiktok {
    background: linear-gradient(135deg, #000000, #333333);
    color: white;
}

.social-account-item .icon.telegram {
    background: linear-gradient(135deg, #0088cc, #0066aa);
    color: white;
}

.social-account-item-info {
    flex: 1;
}

.social-account-item-info .name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.social-account-item-info .status {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.social-account-item-info .status.connected {
    color: var(--success-color);
}

.social-account-item .connect-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 8px;
    background: var(--aixkol-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.social-account-item .connect-btn:hover {
    transform: scale(1.05);
}

.social-account-item.connected .connect-btn {
    background: var(--success-color);
}

/* 暗色模式适配 */
[data-theme="dark"] #profile .profile-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] #profile .profile-card:hover {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .reward-stat-item,
[data-theme="dark"] .security-item,
[data-theme="dark"] .social-account-item,
[data-theme="dark"] #profile .notification-settings {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .reward-stat-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

/* 响应式 - 个人中心 */
@media (max-width: 991px) {
    #profile .profile-container {
        grid-template-columns: 1fr;
    }
    
    #profile .profile-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .rewards-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .social-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    #profile .wallet-address {
        flex-direction: column;
    }
    
    #profile .wallet-address .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #profile .profile-avatar i {
        font-size: 80px;
    }
    
    #profile .profile-card::before {
        height: 120px;
    }
    
    .rewards-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .security-item {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}
