/* assets/style.css */

:root {
    --primary: #0071e3;
    --primary-soft: #e8f0ff;
    --bg: #f5f5f7;
    --text-main: #1d1d1f;
    --text-sub: #6e6e73;
    --radius-card: 18px;
    --shadow-soft: 0 18px 40px rgba(0,0,0,0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at top, #f9fbff 0, #f5f5f7 40%, #f0f0f2 100%);
    color: var(--text-main);
}

.app-shell {
    max-width: 520px;
    margin: 24px auto 32px;
    padding: 0 16px;
}

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

.app-logo-circle {
    width: 52px;
    height: 52px;
    border-radius: 22px;
    margin: 0 auto 10px;
    background: radial-gradient(circle at 30% 0%, #4fa5ff, #0060df 50%, #00193a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.04em;
}

.app-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.app-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-sub);
}

.app-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 18px 16px 18px;
    box-shadow: var(--shadow-soft);
}

.app-card + .app-card {
    margin-top: 14px;
}

.rate-box {
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f5f9ff, #f0f4ff);
    font-size: 13px;
    color: var(--text-sub);
}

.rate-box b {
    color: var(--text-main);
}

.form-item {
    margin-top: 14px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.label-text {
    font-size: 13px;
    font-weight: 500;
}

.label-tip {
    font-size: 12px;
    color: var(--text-sub);
}

.amount-row {
    display: flex;
    align-items: center;
}

.amount-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 0;
    background: #f2f2f7;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .06s ease, background .1s;
}

.amount-btn:active {
    transform: scale(.96);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.04) inset;
    background: #e8e8f2;
}

.input-text,
.select {
    width: 100%;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #d2d2dc;
    padding: 0 11px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: border-color .12s, box-shadow .12s, background .12s;
}

.input-text:focus,
.select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,113,227,0.14);
    background: #fbfdff;
}

.amount-input {
    flex: 1;
    margin: 0 8px;
}

.usd-line {
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-sub);
}

.usd-line b {
    color: var(--primary);
}

.main-btn {
    width: 100%;
    height: 42px;
    border-radius: 21px;
    border: 0;
    margin-top: 14px;
    background: radial-gradient(circle at 0 0, #4ba6ff, #0071e3);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 113, 227, 0.32);
    transition: transform .08s ease, box-shadow .08s ease, filter .08s;
}

.main-btn:active {
    transform: translateY(1px) scale(.99);
    box-shadow: 0 6px 14px rgba(0, 113, 227, 0.35);
    filter: brightness(.98);
}

.chip-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid #e5e5ea;
    color: var(--text-sub);
    background: #fafafa;
}

.error {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #ffecec;
    color: #c61a1a;
    font-size: 12px;
}

.footer-links {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-sub);
}

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

.footer-links a:hover {
    text-decoration: underline;
}

/* 查询列表 */
.table-wrapper {
    margin-top: 10px;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.table th,
.table td {
    padding: 6px 4px;
    border-bottom: 1px solid #f1f1f4;
    text-align: center;
    white-space: nowrap;
}

.table th {
    font-size: 11px;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.badge-s0 { background:#f2f2f7; color:#636366; }
.badge-s1 { background:#fff4e5; color:#b35a00; }
.badge-s2 { background:#e7f8ec; color:#18794e; }
.badge-s3 { background:#ffe9ec; color:#c41c33; }

.note-empty {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-sub);
    text-align: center;
}

/* 小屏优化 */
@media (max-width: 480px) {
    .app-shell {
        margin-top: 18px;
        padding: 0 12px;
    }
    .app-card {
        padding: 16px 14px 16px;
    }
}
