:root {
    --alipay-blue: #027AFF;
    --alipay-blue-dark: #0260CC;
    --alipay-blue-light: #E8F3FF;
    --bg: #F5F5F5;
    --card-bg: #FFFFFF;
    --text: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border: #EEEEEE;
    --red: #F04134;
    --green: #00B578;
    --orange: #FF8A1F;
    --gold: #CBA265;
    --icon-color: #4A4A4A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
}

html, body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
    .app-container {
        max-width: 680px;
    }
}

/* 涨跌色 */
.up {
    color: var(--red);
}

.down {
    color: var(--green);
}

/* Toast */
.toast-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.toast-overlay.show {
    display: flex;
}

.toast-box {
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    padding: 16px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.6;
    animation: toastIn 0.3s ease;
}

.toast-box.fadeout {
    animation: toastOut 0.35s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
