* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f1114;
    --bg-secondary: #1a1d24;
    --bg-tertiary: #252a33;
    --text-primary: #ffffff;
    --text-secondary: #8890a0;
    --text-muted: #5c6475;
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --border-color: #2a303c;
    --card-bg: #1a1d24;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 13px;
}

.app-container {
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 56px;
}

.page {
    display: none;
    padding: 12px;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-top: 4px;
}

.page-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-icon {
    font-size: 17px;
    cursor: pointer;
}

.tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab.active {
    color: var(--text-primary);
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-blue);
}

.asset-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.asset-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 14px;
    min-height: 80px;
}

.asset-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.asset-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.asset-details {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.section-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.icon-coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    border-radius: 50%;
    font-size: 11px;
    color: white;
}

.icon-pie {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00d4aa, #00ffcc);
    border-radius: 50%;
    font-size: 11px;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
}

.promo-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.promo-icon {
    font-size: 24px;
    color: var(--accent-blue);
}

.promo-content {
    flex: 1;
}

.promo-text {
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.promo-subtext {
    font-size: 11px;
    color: var(--text-secondary);
}

.promo-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border-radius: 20px;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: var(--accent-blue);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.notice-banner {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.notice-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.notice-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
}

.notice-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

.total-assets {
    margin-bottom: 14px;
}

.total-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.total-value {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-secondary, .btn-primary {
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-primary:hover {
    background: var(--accent-blue-light);
}

.promo-banner {
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    color: white;
    margin-bottom: 12px;
    display: inline-block;
}

.filter-row {
    padding: 10px 0;
    margin-bottom: 12px;
}

.filter-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-row input[type="checkbox"] {
    accent-color: var(--accent-blue);
    width: 14px;
    height: 14px;
}

.asset-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
}

.asset-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--bg-primary);
    cursor: pointer;
    transition: background 0.2s ease;
}

.asset-item:hover {
    background: var(--bg-secondary);
}

.asset-icon-won,
.asset-icon-btc,
.asset-icon-eth,
.asset-icon-1inch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 10px;
}

.asset-icon-won {
    background: #374151;
    color: white;
}

.asset-icon-btc {
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: white;
}

.asset-icon-eth {
    background: linear-gradient(135deg, #627eea, #8a9fff);
    color: white;
}

.asset-icon-1inch {
    background: linear-gradient(135deg, #9ca3af, #d1d5db);
    color: white;
}

.asset-info {
    flex: 1;
}

.asset-name {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.asset-code {
    font-size: 11px;
    color: var(--text-secondary);
}

.asset-amount {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.asset-amount-right {
    text-align: right;
    margin-right: 10px;
}

.asset-amount-krw {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.asset-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

.banner-slider {
    margin-bottom: 14px;
}

.banner {
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner-content {
    z-index: 1;
}

.banner-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.banner-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.banner-image {
    font-size: 40px;
    opacity: 0.8;
    color: var(--accent-blue);
}

.banner-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 6px;
    border-radius: 10px;
}

.product-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.product-tab {
    padding: 6px 16px;
    background: var(--bg-secondary);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-tab.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 500;
}

.section-title-large {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-item:hover {
    background: var(--bg-tertiary);
}

.product-icon {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.product-icon .icon-coin,
.product-icon .icon-money,
.product-icon .icon-robot,
.product-icon .icon-calendar {
    width: 40px;
    height: 40px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-money {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    color: white;
}

.icon-robot {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    color: white;
}

.icon-calendar {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    color: white;
}

.badge-n {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--accent-red);
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: 600;
}

.product-content {
    flex: 1;
}

.product-title {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.product-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.product-button {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    display: inline-block;
}

.product-button-blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    display: inline-block;
}

.wallet-card {
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    position: relative;
}

.wallet-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.wallet-name {
    font-size: 13px;
    color: var(--text-secondary);
}

.icon-copy {
    font-size: 14px;
    cursor: pointer;
    color: var(--text-secondary);
}

.wallet-balance {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

.icon-eye {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.action-btn {
    background: var(--bg-secondary);
    border: none;
    border-radius: 10px;
    padding: 12px 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: var(--bg-tertiary);
}

.action-icon {
    font-size: 18px;
    color: var(--text-primary);
}

.action-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.token-section {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 12px;
}

.token-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.token-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.icon-auth {
    color: var(--accent-blue);
    font-size: 14px;
}

.icon-search {
    margin-left: auto;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
}

.icon-add {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.token-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.token-item:last-child {
    border-bottom: none;
}

.token-icon-trx,
.token-icon-usdt {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 16px;
}

.token-icon-trx {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.token-icon-usdt {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.token-info {
    flex: 1;
}

.token-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.token-code {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.token-price {
    font-size: 11px;
    color: var(--text-secondary);
}

.price-up {
    color: var(--accent-green);
}

.price-up i,
.price-down i {
    font-size: 10px;
}

.price-down {
    color: var(--accent-red);
}

.price-neutral {
    color: var(--text-muted);
}

.token-amount {
    text-align: right;
}

.token-amount .amount {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 3px;
}

.token-amount .amount-usd {
    font-size: 11px;
    color: var(--text-secondary);
}

.profile-section {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-badges {
    display: flex;
    gap: 6px;
}

.badge-blue,
.badge-blue-light {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.badge-blue-light {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue-light);
}

.profile-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

.profile-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.profile-tab {
    flex: 1;
    text-align: center;
    padding: 11px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-tab:first-child {
    border-right: 1px solid var(--border-color);
}

.profile-tab:hover {
    color: var(--text-primary);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.setting-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.setting-item:hover .setting-icon {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.setting-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
}

.notice-section {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.notice-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-primary);
}

.badge-red {
    color: var(--accent-red);
    font-size: 8px;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.notice-pin {
    color: var(--text-muted);
    font-size: 12px;
}

.notice-item-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.tag-gray,
.tag-blue {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
}

.tag-gray {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.tag-blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.asset-edit-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.asset-edit-section .section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.asset-edit-item {
    margin-bottom: 20px;
}

.asset-edit-item:last-child {
    margin-bottom: 0;
}

.asset-edit-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.asset-value-display {
    margin-bottom: 5px;
}

.value-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.asset-edit-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    line-height: 1.4;
}

.currency-list {
    margin-top: 10px;
}

.currency-item {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.currency-item:last-child {
    border-bottom: none;
}

.currency-info {
    margin-bottom: 8px;
}

.currency-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.currency-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.currency-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--input-bg);
    margin-right: 10px;
}

.currency-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.currency-save-btn {
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.currency-save-btn:hover {
    background-color: var(--accent-dark);
}

.currency-value {
    font-size: 14px;
    color: var(--text-secondary);
}

.insight-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.icon-insight {
    font-size: 16px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--accent-blue);
}

.nav-item.active .nav-icon {
    color: var(--accent-blue);
}

.nav-icon {
    font-size: 18px;
    color: var(--text-secondary);
}

.nav-label {
    font-size: 10px;
    color: var(--text-secondary);
}

.nav-item.active .nav-label {
    color: var(--accent-blue);
}

.network-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.menu-icon {
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
}

.header-icons {
    display: flex;
    gap: 14px;
}

.header-icons .icon {
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* 语言选择弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content {
    padding: 8px;
    max-height: 60vh;
    overflow-y: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lang-option:hover {
    background: var(--bg-tertiary);
}

.lang-option.active {
    background: rgba(59, 130, 246, 0.1);
}

.lang-option-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--text-secondary);
    font-size: 18px;
}

.lang-option-info {
    flex: 1;
}

.lang-option-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 3px;
}

.lang-option-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.lang-option-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-option.active .lang-option-check {
    opacity: 1;
}

/* PIN 码页面 */
.page-pin {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.page-pin.active {
    display: flex;
}

.pin-header {
    margin-bottom: 40px;
    text-align: center;
}

.pin-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pin-dots {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.pin-dot.filled {
    background: var(--accent-blue);
}

.pin-bio {
    margin-bottom: 20px;
}

.pin-bio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.pin-bio-label input {
    display: none;
}

.pin-bio-label i {
    color: var(--accent-blue);
    opacity: 0;
}

.pin-bio-label input:checked + i {
    opacity: 1;
}

.pin-forgot {
    margin-bottom: 40px;
}

.pin-forgot a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: underline;
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 320px;
}

.key-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 24px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.key-btn:active {
    background: var(--bg-secondary);
}

.key-btn-empty {
    pointer-events: none;
}

.key-back {
    font-size: 20px !important;
}

/* 市场页面 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.top-segment {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 4px;
}

.segment-item {
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.segment-item.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.top-icons {
    display: flex;
    gap: 16px;
    font-size: 18px;
    color: var(--text-secondary);
}

.market-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
}

.market-tab {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
}

.market-tab.active {
    color: var(--text-primary);
    font-weight: 600;
}

.market-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-blue);
}

.category-filter {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    margin-bottom: 8px;
}

.category-btn {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
}

.category-btn.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.category-btn-more {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.market-list {
    padding: 0 16px;
}

.market-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px 0;
    font-size: 11px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.market-header i {
    margin-left: 4px;
    font-size: 10px;
}

.market-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.market-item:last-child {
    border-bottom: none;
}

.col-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-flag {
    width: 4px;
    height: 24px;
    border-radius: 2px;
}

.asset-name-ko {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.asset-code {
    font-size: 11px;
    color: var(--text-secondary);
}

.tag-event {
    background: linear-gradient(90deg, #0052FF, #00C8FF);
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-left: 4px;
}

.tag-meme {
    background: #9333EA;
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-left: 4px;
}

.tag-base {
    background: #0066FF;
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-left: 4px;
}

.col-price {
    font-size: 13px;
    color: var(--text-primary);
    text-align: right;
}

.col-change {
    font-size: 13px;
    text-align: right;
}

.col-volume {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

.unit-man {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 2px;
}

/* 发送页面 */
.page-header-with-back {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.back-btn {
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
}

.form-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 16px;
}

.form-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.form-right-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--accent-blue);
    cursor: pointer;
}

.input-group {
    position: relative;
    margin: 0 16px 20px;
}

.input-address {
    width: 100%;
    padding: 14px 40px 14px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.input-address:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.scan-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--accent-blue);
    cursor: pointer;
}

.amount-input-group {
    position: relative;
    margin: 0 16px 12px;
}

.input-amount {
    width: 100%;
    padding: 14px 60px 14px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.btn-all {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    color: var(--accent-blue);
    font-size: 12px;
    cursor: pointer;
}

.balance-info {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.balance-value {
    color: var(--text-primary);
}

.fee-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.fee-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.fee-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent-blue);
    cursor: pointer;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    margin: 0 16px 20px;
    border-radius: 10px;
}

.total-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.total-value {
    font-size: 16px;
    color: var(--text-primary);
}

.total-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-confirm {
    width: calc(100% - 32px);
    margin: 0 16px;
    padding: 16px;
    background: var(--accent-blue);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 充值页面 */
.deposit-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 165, 0, 0.1);
    margin: 0 16px 20px;
    border-radius: 8px;
}

.notice-icon {
    color: #FFA500;
    font-size: 16px;
}

.notice-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.qr-section {
    background: white;
    margin: 0 16px;
    border-radius: 16px;
    padding: 24px;
}

.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.qr-image {
    width: 240px;
    height: 240px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #000;
    position: relative;
}

.qr-logo {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #0066FF;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.qr-logo i {
    font-size: 10px;
    margin-bottom: 2px;
}

.account-section {
    text-align: center;
    margin-bottom: 20px;
}

.account-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.account-address {
    font-size: 14px;
    color: #333;
    word-break: break-all;
    line-height: 1.5;
}

.action-row {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.action-item i {
    font-size: 18px;
}

.action-divider {
    width: 1px;
    height: 30px;
    background: #eee;
}

/* 活动弹窗 */
.promo-modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 90%;
    max-width: 360px;
    padding: 20px;
    position: relative;
}

.promo-carousel {
    position: relative;
    height: 200px;
    margin-bottom: 16px;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    gap: 16px;
}

.promo-slide.active {
    display: flex;
}

.promo-content-box {
    flex: 1;
}

.promo-icon-large {
    font-size: 40px;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.promo-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.promo-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.promo-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
}

.promo-image {
    font-size: 80px;
    color: var(--accent-blue);
    opacity: 0.5;
}

.promo-indicators {
    text-align: center;
    margin-bottom: 16px;
}

.indicator {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 12px;
}

.promo-close-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-blue);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* 新首页样式 */
.quick-access-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin: 16px;
}

.quick-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.quick-content {
    flex: 1;
}

.quick-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.quick-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.quick-arrow {
    color: var(--text-secondary);
    font-size: 16px;
}

.total-summary {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: var(--bg-secondary);
    margin: 0 16px 16px;
    border-radius: 12px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
}

.summary-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.sort-options {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.sort-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
}

.sort-item i {
    font-size: 10px;
}

.notification-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(30, 144, 255, 0.1);
    margin: 16px;
    border-radius: 8px;
}

.banner-icon {
    color: #1E90FF;
    font-size: 16px;
}

.banner-content {
    flex: 1;
}

.banner-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.banner-subtext {
    font-size: 11px;
    color: #1E90FF;
    font-weight: 600;
}

.banner-close {
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
}

/* 市场列表样式 */
.market-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0 16px;
}

.market-list::-webkit-scrollbar {
    width: 4px;
}

.market-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.market-list::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 2px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .sort-options {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        font-size: 10px;
    }
    
    .summary-item {
        font-size: 10px;
    }
    
    .market-item {
        padding: 12px 0;
    }
    
    .asset-name-ko {
        font-size: 12px;
    }
    
    .asset-code {
        font-size: 10px;
    }
    
    .col-price, .col-change, .col-volume {
        font-size: 12px;
    }
    
    /* 确保24小时涨跌幅列对齐 */
    .col-change {
        min-width: 60px;
    }
}

/* 客服聊天窗口 */
.chat-modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.chat-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 2px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 2px;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--accent-blue);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.system {
    align-self: flex-start;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-message.customer {
    align-self: flex-start;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    align-self: flex-end;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

.chat-send:hover {
    background: #0056b3;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .chat-modal {
        width: 95%;
        height: 90vh;
    }
    
    .chat-send {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        flex-shrink: 0;
    }
    
    .chat-body {
        padding: 16px;
    }
    
    .chat-input-area {
        padding: 12px 16px;
    }
}

/* 资产编辑样式 */
.asset-edit-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.asset-edit-item {
    margin-bottom: 24px;
}

.asset-edit-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.asset-edit-input-group {
    display: flex;
    gap: 10px;
}

.asset-edit-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.asset-edit-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.asset-value-display {
    margin-top: 8px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 14px;
}

.value-label {
    color: var(--text-secondary);
    margin-right: 8px;
}

.value-amount {
    color: var(--text-primary);
    font-weight: 600;
}

.currency-value {
    color: var(--text-primary);
    font-weight: 500;
    margin-left: 10px;
    font-size: 13px;
}

.asset-save-btn,
.currency-save-btn {
    padding: 0 20px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.asset-save-btn:hover,
.currency-save-btn:hover {
    background: #0056b3;
}

/* 货币列表 */
.currency-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.currency-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.currency-item > * {
    flex-shrink: 0;
}

.currency-item .currency-input-group {
    margin: 0 16px;
    flex-grow: 1;
    min-width: 0;
}

.currency-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-symbol {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.currency-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.currency-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.currency-input {
    width: 120px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 12px;
    text-align: right;
}

.currency-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.currency-save-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.asset-edit-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    line-height: 1.4;
}

/* 交易/账户标签 */
.trade-account-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

/* 交易记录页面样式 */
.transaction-filters {
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 4px;
}

.filter-tab {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: var(--accent-blue);
    color: white;
}

.transaction-list {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.transaction-details {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 11px;
    color: var(--text-muted);
}

.transaction-amount {
    text-align: right;
}

.transaction-amount-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.transaction-amount-currency {
    font-size: 11px;
    color: var(--text-secondary);
}

.transaction-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.transaction-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.transaction-empty p {
    font-size: 14px;
}

/* 市场数据加载和错误状态 */
.market-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.market-loading p {
    font-size: 14px;
}

.market-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.error-icon {
    font-size: 48px;
    color: var(--accent-red);
    margin-bottom: 16px;
}

.market-error p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.retry-btn {
    padding: 10px 20px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: var(--accent-blue-light);
}

/* 个人资料菜单 */
.profile-menu-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.menu-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--accent-blue);
}

.menu-label {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.menu-arrow {
    display: none;
}

/* 子页面样式 */
.sub-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sub-page.active {
    transform: translateX(0);
}

.sub-page-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sub-page-header .back-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
}

.sub-page-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.sub-page-content {
    padding: 20px;
    padding-bottom: 100px;
}
