body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans CJK TC", "PingFang TC", "Heiti TC", Arial, sans-serif;
    margin: 0;
    padding: 16px;
    background: #0f1724;
    color: #e6eef8;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.header-title img {
    width: 32px;
    height: 32px;
}

.header-title .arrow {
    font-size: 28px;
    margin: 0 12px;
    color: #9fb7d8;
}

.header-title .twd {
    font-size: 24px;
    font-weight: bold;
    color: #e6eef8;
}

.exchange-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    box-shadow: 0 4px 20px rgba(2,6,23,0.5);
    transition: all 0.2s ease;
    min-height: 60px;
}

.card:hover {
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    box-shadow: 0 6px 30px rgba(2,6,23,0.7);
}

.exchange-info {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.exchange-header {
    display: flex;
    align-items: center;
    margin-right: 20px;
    min-width: 130px;
    flex: 0 0 auto;
}

.exchange-header img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.exchange-name {
    font-size: 18px;
    font-weight: 600;
    color: #e6eef8;
}

.exchange-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.exchange-link img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.price {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 140px;
    flex: 0 0 auto;
}

.status {
    font-size: 12px;
    color: #cbd7ea;
    margin-bottom: 2px;
}

.conn-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.meta {
    font-size: 11px;
    color: #8ea6c7;
    margin-bottom: 2px;
}

.update-time {
    font-size: 10px;
    color: #7f9bb5;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #9fb7d8;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.table-header .header-exchange {
    display: flex;
    align-items: center;
    min-width: 130px;
    margin-right: 20px;
    flex: 0 0 auto;
}

.table-header .header-price {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.table-header .header-method {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 140px;
    flex: 0 0 auto;
    text-align: right;
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: color 0.2s ease;
}

.sortable:hover {
    color: #e6eef8;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}

.sort-indicator {
    font-size: 12px;
    color: #8fe39a;
    margin-left: 4px;
}

.green { color: #8fe39a; }
.red { color: #ff9b8a; }
.orange { color: #fbbf24; }

/* 保持舊的 pre 樣式作為後備 */
pre {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
    font-family: inherit;
}
