/* 基础样式 */
body {
    background-color: #f8f9fa;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}

.card-title {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

/* 按钮样式 */
.btn-primary {
    border-radius: 8px;
}

/* 余额卡片样式 */
.balance-card {
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
}

/* 交易标准样式 */
.standards-container {
    display: flex;
    gap: 12px;
}

.standard-item {
    flex: 1;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.standard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #0d6efd;
}

.standard-item p {
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.standard-label {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 4px;
    min-height: 2.8em;
    white-space: normal !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.standard-value {
    font-weight: 600;
    color: #0d6efd;
    font-size: 1.25rem;
}

.standard-value-sub {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 导航样式 */
.nav-link.active {
    color: #0d6efd;
}

.navbar-brand {
    font-size: 1.1rem;
}

/* 迁移按钮样式 */
.btn-migrate {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-migrate-notice {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 12px;
    background-color: transparent;
    border: 1px solid #0052ff;
    color: #0052ff;
    transition: all 0.2s ease;
}

.btn-migrate-notice:hover {
    background-color: rgba(0, 82, 255, 0.05);
    border-color: #003cd9;
    color: #003cd9;
    transform: translateY(-1px);
}

.btn-migrate-notice:active {
    transform: translateY(0);
    background-color: rgba(0, 82, 255, 0.1);
}

/* 弹窗样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dialog-overlay.show {
    opacity: 1;
}

.dialog {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 360px;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dialog-overlay.show .dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.dialog-header {
    padding: 24px 24px 0;
    text-align: center;
}

.dialog-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    letter-spacing: -0.01em;
}

.dialog-body {
    padding: 16px 24px 20px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #4B5563;
    text-align: center;
}

.dialog-footer {
    padding: 0 16px 16px;
    text-align: center;
}

.dialog-button {
    min-width: 140px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 14px;
    background: #0052ff;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    -webkit-tap-highlight-color: transparent;
}

.dialog-button:hover {
    background: #003cd9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 82, 255, 0.25);
}

.dialog-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.2);
}

/* 迁移须知弹窗样式 */
.notice-dialog {
    max-width: 480px;
}

.notice-subtitle {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
}

.notice-list {
    padding-left: 1.25rem;
    margin-bottom: 0;
    color: #4B5563;
}

.notice-list li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.notice-list li:last-child {
    margin-bottom: 0;
}

.notice-section:last-child {
    margin-bottom: 0;
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    margin-left: auto;
}

.language-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-btn:hover {
    background: rgba(0, 0, 0, 0.02);
}

.language-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.language-btn.active i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 4px;
    display: none;
    z-index: 1000;
    min-width: 160px;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #495057;
}

.language-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.language-option.selected {
    background: #e7f0ff;
    color: #0052ff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card {
        margin-bottom: 8px;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .table {
        font-size: 0.875rem;
    }

    .table td, .table th {
        padding: 6px;
    }

    h3 {
        font-size: 1.5rem;
    }

    h6 {
        font-size: 0.875rem;
    }

    .badge {
        font-size: 0.75rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 8px 24px;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .standards-container {
        gap: 8px;
    }

    .standard-item {
        padding: 12px 10px;
    }

    .standard-label {
        font-size: 0.75rem;
        min-height: 2.8em;
    }

    .standard-value {
        font-size: 0.875rem;
    }

    .balance-card {
        padding: 6px 12px;
    }

    .btn-migrate {
        padding: 10px;
        border-radius: 8px;
    }

    .btn-migrate-notice {
        padding: 10px;
        border-radius: 8px;
        font-size: 0.95rem;
    }

    .btn-migrate-notice:hover {
        transform: none;
    }

    .btn-migrate-notice:active {
        opacity: 0.9;
        transform: scale(0.98);
    }

    .dialog {
        width: calc(100% - 32px);
        margin: 16px;
    }

    .dialog-header {
        padding: 20px 20px 0;
    }

    .dialog-body {
        padding: 14px 20px 18px;
    }

    .dialog-footer {
        padding: 0 16px 16px;
    }

    .dialog-button {
        width: 100%;
        padding: 14px 20px;
        border-radius: 12px;
    }

    .dialog-button:hover {
        transform: none;
        box-shadow: none;
    }

    .dialog-button:active {
        opacity: 0.9;
        transform: scale(0.98);
    }

    .notice-subtitle {
        font-size: 0.875rem;
    }

    .notice-list {
        padding-left: 1.125rem;
        font-size: 0.875rem;
    }

    .notice-list li {
        margin-bottom: 0.625rem;
    }

    .notice-section {
        margin-bottom: 1rem;
    }

    .language-btn {
        padding: 4px 10px;
        font-size: 0.85rem;
    }

    .language-option {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* 浏览器兼容性处理 */
@supports not (backdrop-filter: blur(4px)) {
    .dialog-overlay {
        background: rgba(17, 24, 39, 0.8);
    }
}

/* Coming Soon 页面样式 */
.coming-soon-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.coming-soon {
    text-align: center;
    padding: 2rem;
}

.gear-icon {
    animation: spin 10s linear infinite;
}

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

@media (max-width: 768px) {
    .coming-soon .display-4 {
        font-size: 2rem;
    }

    .coming-soon .lead {
        font-size: 1rem;
    }

    .coming-soon .display-1 {
        font-size: 3rem;
    }
}
