/* 基础样式 */
:root {
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5641e5;
    --secondary-color: #00b894;
    --secondary-light: #55efc4;
    --secondary-dark: #00a884;
    --accent-color: #fd79a8;
    --warning-color: #fdcb6e;
    --danger-color: #e74c3c;
    --success-color: #00b894;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-color: #f5f6fa;
    --bg-dark: #2d3436;
    --bg-card: #ffffff;
    --border-color: #dfe6e9;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --toast-bg: rgba(45, 52, 54, 0.9);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

input, select, textarea {
    font-family: 'Poppins', sans-serif;
}

/* 布局 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background-color: var(--bg-dark);
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 10px 0;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.main-nav ul {
    margin-bottom: 40px;
}

.main-nav li {
    margin-bottom: 10px;
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.main-nav a i {
    margin-right: 10px;
    font-size: 18px;
}

.main-nav li.active a,
.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    margin-top: auto;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h3 {
    font-size: 16px;
    font-weight: 500;
}

.user-details p {
    font-size: 12px;
    color: var(--primary-light);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
    min-height: 100vh;
}

/* 顶部搜索栏 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-container {
    position: relative;
    width: 400px;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-container input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.action-buttons {
    display: flex;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

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

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

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

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

.notifications {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
}

.notifications i {
    font-size: 20px;
    color: var(--text-light);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 标签页导航 */
.tab-navigation {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 15px 25px;
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: var(--transition);
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.tab-btn.active:after {
    width: 100%;
}

/* 标签页内容 */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* 区域标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.section-actions {
    display: flex;
    align-items: center;
}

.section-actions > * {
    margin-left: 15px;
}

/* 钱包标签页 */
.wallet-tabs {
    display: flex;
    background-color: var(--bg-card);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid var(--border-color);
}

.wallet-tab {
    padding: 8px 20px;
    background-color: transparent;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.wallet-tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* 通知区域 */
.notification-area, .wallet-area, .accounts-area, .projects-area, .strategy-setup-area, .notification-settings {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.notification-area h3, .wallet-area h3, .accounts-area h3, .projects-area h3, .strategy-setup-area h3, .notification-settings h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-card {
    display: flex;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 15px;
    transition: var(--transition);
}

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

.notification-card.hot {
    border-left: 4px solid var(--danger-color);
}

.notification-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.notification-card.hot .notification-icon {
    background-color: var(--danger-color);
}

.notification-content {
    flex: 1;
}

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

.notification-header h4 {
    font-size: 16px;
    font-weight: 600;
}

.time {
    font-size: 12px;
    color: var(--text-light);
}

.notification-actions {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.details-link {
    margin-left: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.details-link i {
    margin-left: 5px;
}

.wallet-address {
    font-family: monospace;
    background-color: rgba(108, 92, 231, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--primary-color);
}

/* 钱包列表 */
.wallet-content {
    position: relative;
}

.wallet-pane {
    display: none;
}

.wallet-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.wallet-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.wallet-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

.wallet-card.system {
    border-left: 4px solid var(--secondary-color);
}

.wallet-info h4 {
    font-family: monospace;
    font-size: 16px;
    margin-bottom: 5px;
}

.wallet-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.stat {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.stat i {
    margin-right: 5px;
}

.badge {
    background-color: var(--secondary-light);
    color: var(--secondary-dark);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 50px;
}

.wallet-actions {
    display: flex;
    align-items: center;
}

.privacy-status {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.privacy-status.private {
    background-color: var(--text-light);
    color: white;
}

.privacy-status.public {
    background-color: var(--success-color);
    color: white;
}

/* 账户卡片 */
.account-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.account-card:hover {
    box-shadow: var(--box-shadow);
}

.account-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.account-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-info {
    flex: 1;
}

.account-info h4 {
    font-size: 16px;
    font-weight: 600;
}

.account-info p {
    font-size: 14px;
    color: var(--text-light);
}

.account-content {
    padding: 15px;
}

.account-content.collapsed {
    padding: 0;
}

.expand-btn {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: none;
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-btn i {
    margin-right: 5px;
}

/* 分析标签页 */
.analysis-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.analysis-tab {
    padding: 10px 15px;
    background-color: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.analysis-tab:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.analysis-tab.active {
    color: var(--primary-color);
}

.analysis-tab.active:after {
    width: 100%;
}

.analysis-pane {
    display: none;
}

.analysis-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* 情绪卡片 */
.sentiment-card {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
}

.sentiment-card.positive {
    border-left: 4px solid var(--success-color);
}

.sentiment-card.negative {
    border-left: 4px solid var(--danger-color);
}

.sentiment-card.neutral {
    border-left: 4px solid var(--warning-color);
}

.sentiment-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.sentiment-card.positive .sentiment-icon {
    background-color: var(--success-color);
    color: white;
}

.sentiment-card.negative .sentiment-icon {
    background-color: var(--danger-color);
    color: white;
}

.sentiment-card.neutral .sentiment-icon {
    background-color: var(--warning-color);
    color: white;
}

.sentiment-content {
    flex: 1;
}

.sentiment-content h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sentiment-actions {
    margin-top: 10px;
}

/* 代币列表 */
.token-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.token-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px;
}

.token-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.token-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.token-info {
    flex: 1;
}

.token-info h5 {
    font-size: 16px;
    font-weight: 600;
}

.token-address {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.token-sentiment {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 12px;
}

.token-sentiment.positive {
    background-color: rgba(0, 184, 148, 0.1);
    color: var(--success-color);
}

.token-sentiment.negative {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.token-sentiment.neutral {
    background-color: rgba(253, 203, 110, 0.1);
    color: var(--warning-color);
}

.token-sentiment i {
    margin-right: 5px;
}

/* 联动分析 */
.linked-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px;
}

.linked-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.linked-tokens {
    margin-top: 15px;
}

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

.linked-token:last-child {
    border-bottom: none;
}

.token-name {
    font-weight: 500;
}

.mention-count {
    font-size: 12px;
    color: var(--text-light);
    margin: 0 15px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox input {
    margin-right: 8px;
    width: auto;
}

/* 下拉框容器 */
.select-container {
    position: relative;
    width: 250px;
}

.select-container select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    appearance: none;
    background-color: white;
    transition: var(--transition);
}

.select-container select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.select-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

/* 项目卡片 */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--bg-color);
}

.project-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-tags {
    display: flex;
    gap: 5px;
}

.tag {
    background-color: var(--primary-light);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 50px;
}

.project-content {
    padding: 15px;
}

.project-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.project-link {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.project-link i {
    margin-right: 5px;
}

.project-actions {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: var(--bg-color);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .wallet-list, .project-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
    }
    
    .logo h1, .user-details, .main-nav a span {
        display: none;
    }
    
    .logo {
        justify-content: center;
    }
    
    .logo img {
        margin-right: 0;
    }
    
    .main-nav a {
        justify-content: center;
        padding: 12px;
    }
    
    .main-nav a i {
        margin-right: 0;
        font-size: 20px;
    }
    
    .user-info {
        justify-content: center;
        padding: 10px;
    }
    
    .user-avatar {
        margin-right: 0;
    }
    
    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .search-container {
        width: 250px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .section-actions > * {
        margin-left: 0;
    }
    
    .wallet-list, .project-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 0;
        padding: 0;
        overflow: hidden;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-container {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .tab-navigation {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 15px 15px;
    }
}

/* Toast 消息样式 */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--toast-bg);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-weight: 500;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* 对话框样式 */
.reminder-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reminder-dialog.show {
    opacity: 1;
    visibility: visible;
}

.dialog-content {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.reminder-dialog.show .dialog-content {
    transform: scale(1);
}

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

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

.close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--danger-color);
}

.dialog-body {
    padding: 20px;
}

.dialog-body p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    gap: 10px;
}

/* 加载指示器样式 */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    color: var(--text-light);
    font-size: 16px;
}

.loading-indicator i {
    margin-right: 10px;
    font-size: 20px;
    color: var(--primary-color);
}

/* 项目按钮激活状态 */
.project-actions .btn-outline.active {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

/* 无项目提示 */
.no-projects {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-style: italic;
}

/* 页面内容区域 */
.page-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

/* 占位内容 */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
}

.placeholder-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.placeholder-content p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 500px;
} 