/* General Setup */

/* 禁止双指缩放 - 2026-01-24 */
html {
    touch-action: manipulation;
}

:root {
    --bg-color: #000000;
    --primary-color: #1fe0a1;
    --text-color: #ffffff;
    --secondary-text-color: #9e9e9e;
    --input-bg-color: #1a1a1a;
    --border-color: #333333;
    --card-bg-color: #1c1c1e;
    --positive-color: #4caf50;
    --negative-color: #f44336;
    --warning-color: #ff9800;
    --button-yellow-color: #f0b90b;
    --app-max-width: 520px;
    --app-padding: 14px;
    --app-radius: 16px;
    --app-card-border: rgba(255, 255, 255, 0.06);
    --app-divider: rgba(255, 255, 255, 0.08);
    --app-surface-1: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    --app-surface-2: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
    --app-elev-1: 0 8px 22px rgba(0, 0, 0, 0.40);
    --app-elev-2: 0 16px 40px rgba(0, 0, 0, 0.55);
    --card-bg: var(--app-surface-1);
    --bottom-nav-offset: 10px;
    --bottom-nav-reserved: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 禁止双指缩放 - 2026-01-24 */
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.has-bottom-nav {
    padding-bottom: calc(var(--bottom-nav-reserved) + env(safe-area-inset-bottom));
}

.boot-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(1100px 520px at 50% 12%, rgba(31, 224, 161, 0.16) 0%, rgba(0, 0, 0, 0) 58%), rgba(0, 0, 0, 0.62);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.boot-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.boot-content {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.boot-mark {
    position: relative;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
}

.boot-logo {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background-image: url('/static/images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    transform: translateZ(0);
}

.boot-particles {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    pointer-events: none;
    filter: drop-shadow(0 0 18px rgba(31, 224, 161, 0.28));
    animation: bootOrbit 1.15s linear infinite;
}

.boot-particles::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(31, 224, 161, 0.95);
    transform: translate(-50%, -50%);
    box-shadow:
        0 -44px 0 0 rgba(31, 224, 161, 0.90),
        31px -31px 0 0 rgba(31, 224, 161, 0.60),
        44px 0 0 0 rgba(31, 224, 161, 0.28),
        31px 31px 0 0 rgba(31, 224, 161, 0.10),
        0 44px 0 0 rgba(31, 224, 161, 0.06),
        -31px 31px 0 0 rgba(31, 224, 161, 0.10),
        -44px 0 0 0 rgba(31, 224, 161, 0.28),
        -31px -31px 0 0 rgba(31, 224, 161, 0.60);
}

.boot-particles::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 999px;
    border: 1px solid rgba(31, 224, 161, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    opacity: 0.9;
    transform: rotate(10deg);
}

.boot-halo {
    position: absolute;
    inset: -18px;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 50%, rgba(31, 224, 161, 0.18) 0%, rgba(31, 224, 161, 0.06) 38%, rgba(0, 0, 0, 0) 70%);
    filter: blur(1px);
    animation: bootPulse 1.6s ease-in-out infinite;
    pointer-events: none;
}

.boot-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
}

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

@keyframes bootPulse {
    0%, 100% { opacity: 0.7; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

.container {
    max-width: var(--app-max-width);
    margin: 0 auto;
    padding: var(--app-padding);
    padding-bottom: var(--app-padding);
    font-size: 14.5px;
    line-height: 1.35;
}

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

/* --- Common Components --- */

/* Header */
.app-header {
    display: flex;
    align-items: center;
    padding: 12px var(--app-padding);
    gap: 10px;
}
.app-header .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.app-header .logo {
    width: 40px;
    height: 40px;
    background-image: url('/static/images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
}
.app-header .title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}
.app-header .back-arrow {
    font-size: 24px;
    color: var(--text-color);
}
.app-header .username {
    margin-left: auto;
    background-color: var(--card-bg-color);
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 13px;
    border: 1px solid var(--app-divider);
}


/* Tabs */
.tabs {
    display: flex;
    border: 1px solid var(--app-divider);
    border-radius: 14px;
    overflow: hidden;
    background: var(--app-surface-1);
    box-shadow: var(--app-elev-1);
    margin-bottom: 14px;
}
.tab-item {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    color: var(--text-color);
    transition: background-color 0.3s;
    font-size: 13px;
}
.tab-item.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-weight: bold;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Input Fields */
.input-group {
    position: relative;
    margin-bottom: 20px;
}
.input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text-color);
}
.input-group .country-code {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
}
.input-group .country-code::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
}
.input-group input {
    width: 100%;
    background-color: var(--input-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--app-radius);
    padding: 12px 14px 12px 44px;
    color: var(--text-color);
    font-size: 14px;
}
.input-group input[type="tel"] {
    padding-left: 65px;
}
.input-group input::placeholder {
    color: var(--secondary-text-color);
}

/* Checkbox and Links */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-text-color);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}
.container .btn {
    padding: 12px;
    border-radius: var(--app-radius);
    font-size: 16px;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
}
.btn-secondary {
    background-color: var(--card-bg-color);
    color: var(--text-color);
    border: 1px solid var(--app-divider);
}
.btn-yellow {
    background-color: var(--button-yellow-color);
    color: var(--bg-color);
}


/* Chat Bubble */
.chat-bubble {
    position: fixed;
    bottom: calc(var(--bottom-nav-reserved) + 14px + env(safe-area-inset-bottom));
    right: 16px;
    width: 46px;
    height: 46px;
    background-color: #1a73e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}
/* Font Awesome Icon (needs to be included in HTML) */


/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: calc(var(--bottom-nav-offset) + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--app-max-width), calc(100% - 24px));
    display: flex;
    justify-content: space-around;
    background: var(--app-surface-2);
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
    border: 1px solid var(--app-divider);
    border-radius: 18px;
    box-shadow: var(--app-elev-2);
    backdrop-filter: blur(10px);
    z-index: 999;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--secondary-text-color);
    font-size: 11px;
    position: relative;
    min-width: 64px;
}
.nav-item i {
    font-size: 18px;
}
.nav-item.active {
    color: var(--primary-color);
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary-color);
    box-shadow: 0 0 18px rgba(31, 224, 161, 0.35);
}


/* --- Page Specific Styles --- */

/* Index Page */
.balance-card, .stats-card {
    background: var(--app-surface-1);
    border-radius: var(--app-radius);
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--app-divider);
    box-shadow: var(--app-elev-1);
}
.balance-card .label {
    font-size: 14px;
    color: var(--secondary-text-color);
    letter-spacing: 0.5px;
}
.balance-card .amount {
    font-size: 32px;
    font-weight: bold;
    margin: 5px 0;
    letter-spacing: -0.02em;
}
.stats-grid {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px 0;
}
.stats-grid > div {
    flex: 1;
    padding: 4px 8px;
    position: relative;
}
.stats-grid > div:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--app-divider);
}
.stats-grid .stat-value {
    font-size: 16px;
    margin-top: 6px;
}
.crypto-highlight-container {
    margin-bottom: 14px;
}

.crypto-highlight-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 2px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.crypto-highlight-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.crypto-highlight-grid .stats-card {
    min-width: 150px;
    flex-shrink: 0;
}

.market-list {
    background: var(--app-surface-1);
    border-radius: var(--app-radius);
    border: 1px solid var(--app-divider);
    box-shadow: var(--app-elev-1);
    padding: 2px var(--app-padding);
}

.stats-card .change {
    font-size: 12px;
    margin-top: 5px;
}

.stats-card .change.positive {
    color: var(--positive-color);
}

.stats-card .change.negative {
    color: var(--negative-color);
}

/* Market List */
.market-list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--app-divider);
}
.market-list-item:last-child {
    border-bottom: none;
}
.market-list-item .icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
}
.market-list-item .info {
    flex-grow: 1;
}
.market-list-item .pair {
    font-weight: bold;
}
.market-list-item .name {
    font-size: 13px;
    color: var(--secondary-text-color);
}
.market-list-item .price-info {
    text-align: right;
}
.market-list-item .price {
    font-weight: bold;
    font-size: 15px;
}
.market-list-item .change.positive {
    color: var(--positive-color);
}
.market-list-item .change.negative {
    color: var(--negative-color);
}

/* Asset Detail Page */
.asset-detail-header {
    display: flex;
    align-items: flex-start;
    padding: 0 var(--app-padding) 14px var(--app-padding);
}
.asset-detail-header .price-section {
    flex-grow: 1;
}
.asset-detail-header .price {
    font-size: 28px;
    font-weight: bold;
}
.asset-detail-header .change {
    font-size: 14px;
}
.asset-detail-header .market-data {
    text-align: right;
    font-size: 12px;
    color: var(--secondary-text-color);
    line-height: 1.5;
}
.chart-controls {
    display: flex;
    gap: 14px;
    padding: 8px var(--app-padding);
    border-bottom: 1px solid var(--app-card-border);
}
.chart-controls span {
    color: var(--secondary-text-color);
}
.chart-controls span.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}
.chart-placeholder {
    height: 300px;
    background-color: var(--input-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text-color);
    margin: 20px;
}
.transaction-history {
    padding: 0 20px;
}
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.empty-state {
    text-align: center;
    color: var(--secondary-text-color);
    padding: 40px 0;
}
.trade-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    padding: 15px;
    background-color: var(--bg-color);
}
.trade-actions .btn {
    flex: 1;
}
.btn-up { background-color: var(--positive-color); color: white; }
.btn-down { background-color: var(--negative-color); color: white; }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none; /* Changed from flex */
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background-color: #2c2c2e;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header .close-btn {
    font-size: 24px;
    cursor: pointer;
}
.ror-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.ror-option {
    background-color: var(--input-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
}
.ror-option.active {
    border-color: var(--primary-color);
}
.ror-option .duration { font-size: 18px; font-weight: bold; }
.ror-option .ror-value { font-size: 14px; color: var(--secondary-text-color); }

.amount-input-group {
    background-color: var(--input-bg-color);
    border: 1px solid var(--app-divider);
    border-radius: var(--app-radius);
    padding: 15px;
    display: flex;
    align-items: center;
}
.amount-input-group input {
    flex-grow: 1;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
}
.amount-input-group .max-btn {
    background-color: var(--button-yellow-color);
    color: var(--bg-color);
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.trade-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    color: var(--secondary-text-color);
}
.trade-summary .value { color: var(--text-color); }

/* AI Quantitative Trading Section - Homepage */
.ai-quantitative-section {
    margin: 16px 0;
}

.ai-quantitative-card {
    background: var(--app-surface-1);
    border-radius: var(--app-radius);
    padding: 20px;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--app-divider);
    box-shadow: var(--app-elev-1);
}

.ai-quantitative-card .ai-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), #00b894);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(31, 224, 161, 0.3);
}

.ai-quantitative-card .ai-icon i {
    font-size: 26px;
    color: var(--bg-color);
}

.ai-quantitative-card .ai-content {
    flex: 1;
    min-width: 0;
}

.ai-quantitative-card .ai-label {
    font-size: 13px;
    color: var(--secondary-text-color);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ai-quantitative-card .ai-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 4px;
}

.ai-quantitative-card .ai-subtitle {
    font-size: 13px;
    color: var(--secondary-text-color);
}

.ai-create-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    border-radius: var(--app-radius);
    background: linear-gradient(135deg, var(--primary-color), #00b894);
    border: none;
    color: var(--bg-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(31, 224, 161, 0.3);
    white-space: nowrap;
}

.ai-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 224, 161, 0.4);
}

.ai-create-btn:active {
    transform: translateY(0);
}

/* AI Trading Page */
.ai-info-card {
    background: var(--app-surface-1);
    padding: 16px;
    border-radius: var(--app-radius);
    border: 1px solid var(--app-divider);
    box-shadow: var(--app-elev-1);
}
.ai-info-card .icons-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-bottom: 14px;
}
.ai-info-card .icon-item i {
    font-size: 24px;
    color: var(--button-yellow-color);
    margin-bottom: 10px;
}
.ai-info-card p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--secondary-text-color);
}
.ai-create-card {
    background: var(--app-surface-1);
    padding: 16px;
    border-radius: var(--app-radius);
    margin-top: 14px;
    border: 1px solid var(--app-divider);
    box-shadow: var(--app-elev-1);
}
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}
.form-row label { color: var(--secondary-text-color); }
.ai-create-card .ror-display { color: var(--primary-color); font-weight: bold; }
.confirmation-modal-content {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 85%;
}
.confirmation-modal-content h3 { margin-bottom: 20px; }
.confirmation-modal-content .details {
    text-align: left;
    margin-bottom: 30px;
}
.confirmation-modal-content .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--secondary-text-color);
}
.confirmation-modal-content .detail-row span:last-child {
    color: var(--text-color);
}

/* Account Page */
.account-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.account-actions .btn { flex: 1; }

.deposit-section {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg-color);
    border-radius: 15px;
    margin-top: 20px;
}
.deposit-section .qr-code {
    width: 150px;
    height: 150px;
    background-color: white;
    margin: 15px auto;
    padding: 5px;
}
.deposit-section .qr-code img {
    width: 100%;
    height: 100%;
}
.address-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}
.address-group .btn {
    flex-grow: 1;
}
.deposit-note {
    font-size: 12px;
    color: var(--secondary-text-color);
    text-align: left;
    line-height: 1.5;
}
.account-menu-list .menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.account-menu-list .menu-item:last-child { border-bottom: none; }
.account-menu-list .menu-item i {
    color: var(--secondary-text-color);
}

/* Participant Counter & Footer - Non-floating Layout */
.login-footer-info {
    margin-top: 50px;
    padding: 0 15px 40px 15px; /* 增加左右内边距 */
    display: block;
    width: 100%;
    text-align: center;
}

.participant-counter {
    margin: 0 auto 30px auto; /* 增加下边距，从 20px 增加到 30px */
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 51, 51, 0.3);
    border-radius: 25px;
    padding: 12px 25px; /* 稍微增加内边距 */
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* 增加最小宽度 */
}

.participant-counter .counter-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.participant-counter .counter-icon {
    color: #00ff88;
    font-size: 14px;
}

.participant-counter .counter-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.participant-counter .counter-number {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.company-info-footer {
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
    padding: 0 15px;
}

.company-info-footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    line-height: 1.5; /* 增加行高，提升阅读感 */
    margin: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 480px) {
    .container {
        padding: 15px 20px;
        padding-bottom: 40px;
    }
    
    .wallet-auth-section {
        max-width: 280px !important;
        margin: 0 auto;
    }

    .login-footer-info {
        margin-top: 40px;
        padding-bottom: 20px;
    }

    .participant-counter {
        min-width: 260px;
        max-width: 300px;
        margin-bottom: 15px;
    }

    .company-info-footer {
        max-width: 300px;
    }
    
    .ai-quantitative-section {
        margin: 16px 0;
    }

    .ai-quantitative-card {
        padding: 18px 16px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 12px 15px;
        padding-bottom: 30px;
    }
    
    .login-footer-info {
        margin-top: 30px;
        padding-bottom: 25px;
    }

    .participant-counter {
        min-width: 180px;
        max-width: 240px;
        margin-bottom: 12px;
    }

    .company-info-footer {
        max-width: 260px;
    }

    .ai-quantitative-card .ai-title {
        font-size: 16px;
    }

    .ai-create-btn {
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* Language switching animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Language change notification */
.language-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--positive-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-notification.slide-out {
    animation: slideOut 0.3s ease-out;
}

/* Settings page specific styles */
.settings-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.settings-section {
    background: var(--card-bg-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.settings-section h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

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

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

.settings-item-label {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.settings-item-value {
    color: var(--secondary-text-color);
    font-size: 14px;
}

.language-selector {
    background: var(--input-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-color);
    font-size: 14px;
    min-width: 80px;
}

.language-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.1);
}

.logout-button {
    background: var(--negative-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: #e53e3e;
    transform: translateY(-1px);
}

.app-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.app-info-label {
    color: var(--secondary-text-color);
}

.app-info-value {
    color: var(--text-color);
    font-weight: 500;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--input-bg-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.legal-link:hover {
    background: var(--hover-bg-color);
    transform: translateY(-1px);
}

.legal-link i {
    color: var(--secondary-text-color);
}

/* Logout modal styles */
.logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.logout-modal-content {
    background: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--border-color);
}

.logout-modal h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 18px;
}

.logout-modal p {
    margin: 0 0 25px 0;
    color: var(--secondary-text-color);
    font-size: 14px;
    line-height: 1.5;
}

.logout-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.logout-modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.logout-modal-button.cancel {
    background: var(--input-bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.logout-modal-button.confirm {
    background: var(--negative-color);
    color: white;
}

.logout-modal-button:hover {
    transform: translateY(-1px);
}

.logout-modal-button.cancel:hover {
    background: var(--hover-bg-color);
}

.logout-modal-button.confirm:hover {
    background: #e53e3e;
}

/* 活跃期权订单倒计时 */
.active-orders-container {
    margin: 14px 0;
}

.option-order-card {
    background: var(--app-surface-1);
    border-radius: var(--app-radius);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--app-divider);
    box-shadow: var(--app-elev-1);
    position: relative;
    overflow: hidden;
}

.option-order-card.expired {
    border-color: var(--negative-color);
    background: linear-gradient(135deg, var(--card-bg-color) 0%, rgba(244, 67, 54, 0.1) 100%);
}

.option-order-card.profit {
    border-color: var(--positive-color);
    background: linear-gradient(135deg, var(--card-bg-color) 0%, rgba(76, 175, 80, 0.1) 100%);
}

.option-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.option-order-symbol {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}

.option-order-side {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.option-order-side.up {
    background: var(--positive-color);
    color: white;
}

.option-order-side.down {
    background: var(--negative-color);
    color: white;
}

.countdown-display {
    text-align: center;
    margin: 20px 0;
}

.countdown-timer {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(31, 224, 161, 0.5);
}

.countdown-timer.warning {
    color: var(--button-yellow-color);
    animation: pulse 1s infinite;
}

.countdown-timer.danger {
    color: var(--negative-color);
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.countdown-label {
    font-size: 14px;
    color: var(--secondary-text-color);
    margin-bottom: 15px;
}

.option-order-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.option-detail-item {
    text-align: center;
}

.option-detail-label {
    font-size: 12px;
    color: var(--secondary-text-color);
    margin-bottom: 5px;
}

.option-detail-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}

.option-detail-value.amount {
    color: var(--primary-color);
}

.option-detail-value.return {
    color: var(--positive-color);
}

.result-display {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    animation: fadeIn 0.5s ease-in;
}

.result-display.profit {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
    border: 2px solid var(--positive-color);
}

.result-display.loss {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(244, 67, 54, 0.1) 100%);
    border: 2px solid var(--negative-color);
}

.result-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.result-icon.profit {
    color: var(--positive-color);
}

.result-icon.loss {
    color: var(--negative-color);
}

.result-amount {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.result-amount.profit {
    color: var(--positive-color);
}

.result-amount.loss {
    color: var(--negative-color);
}

.result-label {
    font-size: 16px;
    color: var(--secondary-text-color);
}

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

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

/* 中间浮层倒计时样式 */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.countdown-overlay.active {
    opacity: 1;
    visibility: visible;
}

.countdown-modal {
    background: var(--card-bg-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.countdown-overlay.active .countdown-modal {
    transform: scale(1);
}

.countdown-modal-header {
    margin-bottom: 30px;
}

.countdown-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.countdown-modal-symbol {
    font-size: 18px;
    color: var(--secondary-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.countdown-modal-direction {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.countdown-modal-direction.up {
    background: var(--positive-color);
    color: white;
}

.countdown-modal-direction.down {
    background: var(--negative-color);
    color: white;
}

.countdown-modal-timer {
    font-size: 64px;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    margin: 30px 0;
    text-shadow: 0 0 20px rgba(31, 224, 161, 0.5);
    line-height: 1;
}

.countdown-modal-timer.warning {
    color: var(--button-yellow-color);
    animation: pulse 1s infinite;
}

.countdown-modal-timer.danger {
    color: var(--negative-color);
    animation: pulse 0.5s infinite;
}

.countdown-modal-label {
    font-size: 16px;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
}

.countdown-modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.countdown-detail-item {
    text-align: center;
}

.countdown-detail-label {
    font-size: 14px;
    color: var(--secondary-text-color);
    margin-bottom: 8px;
}

.countdown-detail-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.countdown-detail-value.amount {
    color: var(--primary-color);
}

.countdown-detail-value.return {
    color: var(--positive-color);
}

/* 结果显示样式 */
.countdown-result {
    display: none;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.countdown-result.active {
    display: block;
}

.countdown-result-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

.countdown-result-icon.profit {
    color: var(--positive-color);
}

.countdown-result-icon.loss {
    color: var(--negative-color);
}

.countdown-result-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.countdown-result-title.profit {
    color: var(--positive-color);
}

.countdown-result-title.loss {
    color: var(--negative-color);
}

.countdown-result-amount {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.countdown-result-amount.profit {
    color: var(--positive-color);
}

.countdown-result-amount.loss {
    color: var(--negative-color);
}

.countdown-result-message {
    font-size: 16px;
    color: var(--secondary-text-color);
    margin-bottom: 20px;
}

.countdown-close-timer {
    font-size: 14px;
    color: var(--secondary-text-color);
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

/* 响应式设计 - 期权订单 */
@media (max-width: 768px) {
    .countdown-timer {
        font-size: 36px;
    }
    
    .option-order-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .result-amount {
        font-size: 24px;
    }
    
    .countdown-modal {
        padding: 30px 20px;
        max-width: 350px;
    }
    
    .countdown-modal-timer {
        font-size: 48px;
    }
    
    .countdown-modal-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .countdown-result-icon {
        font-size: 60px;
    }
    
    .countdown-result-title {
        font-size: 24px;
    }
    
    .countdown-result-amount {
        font-size: 28px;
    }
}

/* Font Awesome 图标修复 */
.fas, .fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* 确保按钮中的图标正常显示 */
.btn i,
.btn-icon i,
.action-buttons i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    font-size: 14px !important;
}

/* === 卖币板块样式 === */
.sell-coin-section {
    margin-top: 16px;
    margin-bottom: 16px;
}

.sell-coin-card {
    background: var(--app-surface-1);
    border-radius: var(--app-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--app-elev-1);
    border: 1px solid var(--app-divider);
}

.sell-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), #00b894);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bg-color);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(31, 224, 161, 0.3);
}

.sell-content {
    flex: 1;
}

.sell-label {
    font-size: 13px;
    color: var(--secondary-text-color);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sell-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 4px;
}

.sell-subtitle {
    font-size: 13px;
    color: var(--secondary-text-color);
}

.sell-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.sell-coin-btn, .sell-history-btn {
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.sell-coin-btn {
    background: var(--primary-color);
    color: var(--bg-color);
}

.sell-coin-btn:hover {
    background: #1bc48a;
    transform: translateY(-2px);
}

.sell-history-btn {
    background: var(--border-color);
    color: var(--text-color);
}

.sell-history-btn:hover {
    background: #444;
    transform: translateY(-2px);
}

/* === 卖币弹窗样式 === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg-color);
    margin: 0;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    transform: scale(0.95);
    transition: all 0.3s ease;
}

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

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

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 20px;
    font-weight: bold;
}

.close {
    color: var(--secondary-text-color);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px 30px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 15px;
    background: var(--input-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.sell-coin-select-wrap {
    position: relative;
}

.sell-coin-selector {
    width: 100%;
    padding: 15px;
    background: var(--input-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    user-select: none;
}

.sell-coin-selector.placeholder {
    color: var(--secondary-text-color);
}

.sell-coin-selector i {
    color: var(--secondary-text-color);
    transition: transform 0.2s ease;
}

.sell-coin-selector.open i {
    transform: rotate(180deg);
}

.sell-coin-selector.open,
.sell-coin-selector:focus {
    outline: none;
    border-color: var(--primary-color);
}

.sell-coin-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 5;
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
}

.sell-coin-option {
    width: 100%;
    box-sizing: border-box;
    border: none;
    background: transparent;
    color: var(--text-color);
    padding: 14px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.sell-coin-option + .sell-coin-option {
    border-top: 1px solid var(--border-color);
}

.sell-coin-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sell-coin-option.selected {
    background: rgba(31, 224, 161, 0.12);
}

.sell-coin-option-check {
    opacity: 0;
    color: var(--primary-color);
}

.sell-coin-option.selected .sell-coin-option-check {
    opacity: 1;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select option {
    background: var(--input-bg-color);
    color: var(--text-color);
}

/* 卖币历史列表样式 */
.sell-history-item {
    background: var(--input-bg-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

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

.sell-history-coin {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 16px;
}

.sell-history-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning-color);
}

.status-success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--positive-color);
}

.status-failed {
    background: rgba(244, 67, 54, 0.2);
    color: var(--negative-color);
}

.sell-history-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 14px;
}

.sell-history-detail {
    color: var(--secondary-text-color);
}

.sell-history-detail strong {
    color: var(--text-color);
}

/* 响应式设计 - 卖币板块 */
@media (max-width: 768px) {
    .sell-coin-card {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 20px;
    }
    
    .sell-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .sell-coin-btn, .sell-history-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 400px;
        max-height: 85vh;
        margin: 0;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .sell-history-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* === 管理后台卖币订单样式 === */

/* 统计概览卡片 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-overview .stat-card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-overview .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stats-overview .stat-card.pending::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.stats-overview .stat-card.success::before {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.stats-overview .stat-card.failed::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.stats-overview .stat-card.today::before {
    background: linear-gradient(90deg, var(--primary-color), #00d4aa);
}

.stats-overview .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.stat-header .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: var(--primary-color);
}

.stat-card.pending .stat-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.stat-card.failed .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.stat-card.today .stat-icon {
    background: linear-gradient(135deg, var(--primary-color), #00d4aa);
}

.stat-trend {
    font-size: 14px;
    color: var(--positive-color);
}

.stat-body .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 4px;
}

.stat-body .stat-label {
    font-size: 14px;
    color: var(--secondary-text-color);
    font-weight: 500;
}

/* 卡片头部样式 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.card-header h2 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    color: var(--secondary-text-color);
}

.loading-state i {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.loading-state p {
    margin: 0;
    font-size: 14px;
}

/* 分页包装器 */
.pagination-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 币种徽章 */
.coin-badge {
    background: linear-gradient(135deg, var(--primary-color), #00d4aa);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(31, 224, 161, 0.3);
}

/* 状态徽章 */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.status-badge.status-pending {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border-color: rgba(243, 156, 18, 0.3);
}

.status-badge.status-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.3);
}

.status-badge.status-failed {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-buttons .btn {
    min-width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* 订单详情网格 */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--input-bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.order-detail-grid div {
    font-size: 14px;
    color: var(--text-color);
}

.order-detail-grid strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-overview .stat-card {
        padding: 20px;
    }
    
    .stat-body .stat-value {
        font-size: 28px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
