﻿body { background: var(--bg); padding-bottom: 100px; }
    .balance-bar {
      background: var(--bg-white);
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid var(--border-light);
    }
    .balance-icon {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-md);
      background: linear-gradient(135deg, #1A1D26 0%, #2D3140 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
    }
    .balance-info { flex: 1; }
    .balance-label { font-size: 12px; color: var(--text-tertiary); }
    .balance-value { font-size: 22px; font-weight: 700; }
    .balance-value .unit { font-size: 13px; font-weight: 400; color: var(--text-tertiary); margin-left: 2px; }
    .balance-equiv { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
    .section { padding: 0 16px; }
    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 0 10px;
    }
    .section-title { font-size: 16px; font-weight: 600; }
    .section-action { font-size: 13px; color: var(--primary); font-weight: 500; }
    .create-card {
      background: var(--bg-white);
      border-radius: var(--radius-lg);
      padding: 20px;
      box-shadow: var(--shadow-md);
      border: 1.5px solid transparent;
      transition: border-color 0.2s;
    }
    .create-card.active { border-color: var(--primary); }
    .create-card-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 4px; }
    .create-card-subtitle { font-size: 13px; color: var(--text-tertiary); text-align: center; margin-bottom: 20px; }
    .input-group { margin-bottom: 16px; }
    .input-label {
      font-size: 14px; font-weight: 500; color: var(--text-secondary);
      margin-bottom: 8px; display: flex; align-items: center; gap: 4px;
    }
    .input-label .required { color: var(--accent-red); }
    .input-label .hint { font-size: 12px; font-weight: 400; color: var(--text-tertiary); margin-left: auto; }
    .points-input-wrap {
      display: flex; align-items: center; gap: 10px;
      background: var(--bg); border-radius: var(--radius-md);
      padding: 12px 16px; border: 1.5px solid var(--border); transition: border-color 0.2s;
    }
    .points-input-wrap:focus-within { border-color: var(--primary); }
    .points-input-wrap input {
      flex: 1; font-size: 28px; font-weight: 700; color: var(--text-primary); background: none; text-align: center;
    }
    .points-input-wrap input::placeholder { color: var(--border); font-weight: 400; font-size: 18px; }
    .points-input-wrap .input-suffix { font-size: 16px; font-weight: 500; color: var(--text-secondary); }
    .quick-amounts { display: flex; gap: 8px; margin-top: 10px; }
    .quick-amount {
      flex: 1; padding: 8px 0; border-radius: var(--radius-full);
      border: 1.5px solid var(--border); font-size: 13px; font-weight: 500;
      text-align: center; color: var(--text-secondary); transition: all 0.2s; cursor: pointer;
    }
    .quick-amount.active { border-color: var(--primary); background: rgba(255,107,53,0.08); color: var(--primary); }
    .price-input-wrap {
      display: flex; align-items: center; gap: 10px;
      background: var(--bg); border-radius: var(--radius-md);
      padding: 12px 16px; border: 1.5px solid var(--border); transition: border-color 0.2s;
    }
    .price-input-wrap:focus-within { border-color: var(--primary); }
    .price-input-wrap .input-prefix { font-size: 18px; font-weight: 600; color: var(--text-primary); }
    .price-input-wrap input {
      flex: 1; font-size: 24px; font-weight: 700; color: var(--text-primary); background: none; text-align: center;
    }
    .price-input-wrap input::placeholder { color: var(--border); font-weight: 400; font-size: 16px; }
    .price-input-wrap .input-suffix { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
    .quick-prices { display: flex; gap: 8px; margin-top: 10px; }
    .quick-price {
      flex: 1; padding: 8px 0; border-radius: var(--radius-full);
      border: 1.5px solid var(--border); font-size: 12px; font-weight: 500;
      text-align: center; color: var(--text-secondary); transition: all 0.2s; cursor: pointer;
      display: flex; flex-direction: column; align-items: center; gap: 2px;
    }
    .quick-price .qp-value { font-size: 14px; font-weight: 600; }
    .quick-price .qp-tag { font-size: 10px; opacity: 0.7; }
    .quick-price.active { border-color: var(--primary); background: rgba(255,107,53,0.08); color: var(--primary); }
    .price-tip {
      display: flex; align-items: center; gap: 6px;
      margin-top: 8px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 12px;
    }
    .price-tip.low { background: rgba(255,184,0,0.08); color: #D4960A; }
    .price-tip.mid { background: rgba(38,222,129,0.08); color: var(--accent-green); }
    .price-tip.high { background: rgba(255,107,53,0.08); color: var(--primary); }
    .price-tip svg { width: 14px; height: 14px; flex-shrink: 0; }
    .price-summary { background: var(--bg); border-radius: var(--radius-md); padding: 16px; margin-top: 16px; }
    .price-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 6px 0; }
    .price-row .label { color: var(--text-secondary); }
    .price-row .value { font-weight: 500; }
    .price-row.total { padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--border); font-size: 16px; font-weight: 600; }
    .price-row.total .value { font-size: 24px; font-weight: 700; color: var(--primary); }
    .price-row.total .value .unit { font-size: 14px; font-weight: 400; }
    .market-ref {
      display: flex; align-items: center; gap: 8px;
      padding: 10px 14px; background: rgba(75,123,236,0.06);
      border-radius: var(--radius-sm); margin-top: 10px; font-size: 12px; color: var(--text-secondary);
    }
    .market-ref svg { width: 14px; height: 14px; color: var(--accent-blue); flex-shrink: 0; }
    .market-ref strong { color: var(--accent-blue); font-weight: 600; }
    .info-tip {
      display: flex; align-items: flex-start; gap: 8px;
      padding: 12px 16px; background: rgba(255,184,0,0.06);
      border-radius: var(--radius-sm); margin: 12px 0;
    }
    .info-tip svg { width: 16px; height: 16px; color: var(--accent-gold); flex-shrink: 0; margin-top: 1px; }
    .info-tip p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
    .history-card {
      background: var(--bg-white); border-radius: var(--radius-md);
      padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
    }
    .history-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
    .history-card-id { font-size: 13px; color: var(--text-tertiary); }
    .history-card-status { padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; }
    .history-card-status.active { background: rgba(38,222,129,0.1); color: var(--accent-green); }
    .history-card-status.completed { background: rgba(75,123,236,0.1); color: var(--accent-blue); }
    .history-card-status.closed { background: var(--border-light); color: var(--text-tertiary); }
    .history-card-body { display: flex; align-items: center; gap: 12px; }
    .history-stat { text-align: center; flex: 1; }
    .history-stat-value { font-size: 16px; font-weight: 700; }
    .history-stat-value.points { color: var(--primary); }
    .history-stat-value.cash { color: var(--accent-gold); }
    .history-stat-label { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }
    .history-unit-price {
      display: inline-flex; align-items: center; gap: 3px;
      padding: 2px 8px; border-radius: var(--radius-full);
      font-size: 11px; font-weight: 600; background: rgba(255,107,53,0.08); color: var(--primary);
    }
    .progress-bar { width: 100%; height: 4px; border-radius: 2px; background: var(--border-light); margin-top: 10px; overflow: hidden; }
    .progress-bar-fill { height: 100%; border-radius: 2px; background: var(--primary-gradient); transition: width 0.3s; }
    .history-card-footer {
      display: flex; align-items: center; justify-content: space-between;
      margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-light);
      font-size: 12px; color: var(--text-tertiary);
    }
    .history-card-action {
      padding: 5px 14px; border-radius: var(--radius-full);
      border: 1.5px solid var(--accent-red); color: var(--accent-red); font-size: 12px; font-weight: 500; cursor: pointer;
    }
    .expand-btn {
      display: flex; align-items: center; justify-content: center; gap: 4px;
      padding: 8px 0 0; font-size: 12px; color: var(--primary); font-weight: 500; cursor: pointer;
    }
    .expand-btn svg { width: 14px; height: 14px; transition: transform 0.3s; }
    .expand-btn.open svg { transform: rotate(180deg); }
    .exchange-records { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-light); }
    .exchange-records.show { display: block; }
    .exchange-record {
      display: flex; align-items: center; gap: 10px;
      padding: 8px 0; font-size: 13px;
    }
    .exchange-record + .exchange-record { border-top: 1px solid var(--border-light); }
    .exchange-record .er-avatar {
      width: 28px; height: 28px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 600; color: white; flex-shrink: 0;
    }
    .exchange-record .er-name { flex: 1; font-weight: 500; }
    .exchange-record .er-points { font-weight: 600; color: var(--primary); }
    .exchange-record .er-time { font-size: 11px; color: var(--text-tertiary); min-width: 50px; text-align: right; }
    .submit-bar {
      position: fixed; bottom: 0; left: 0; right: 0;
      background: var(--bg-white); border-top: 1px solid var(--border-light);
      padding: 12px 16px calc(12px + var(--safe-bottom)); z-index: 100;
      display: flex; align-items: center; gap: 12px;
    }
    .submit-bar .total-preview { flex: 1; }
    .submit-bar .total-label { font-size: 12px; color: var(--text-tertiary); }
    .submit-bar .total-value { font-size: 22px; font-weight: 700; color: var(--primary); }
    .submit-bar .total-value .unit { font-size: 13px; font-weight: 400; color: var(--text-tertiary); }
    .modal-overlay {
      display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      z-index: 200; background: rgba(0,0,0,0.5); align-items: flex-end; justify-content: center;
    }
    .modal-overlay.show { display: flex; }
    .modal-sheet {
      background: white; width: 100%; border-radius: 20px 20px 0 0;
      padding: 0 16px calc(20px + var(--safe-bottom)); animation: slideUp 0.3s ease-out;
    }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .modal-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 10px auto 16px; }
    .modal-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 20px; }
    .modal-shop-row {
      display: flex; align-items: center; gap: 10px;
      padding: 12px; background: var(--bg); border-radius: var(--radius-md); margin-bottom: 16px;
    }
    .modal-shop-icon {
      width: 36px; height: 36px; border-radius: var(--radius-sm);
      display: flex; align-items: center; justify-content: center; font-size: 18px;
    }
    .modal-shop-name { flex: 1; font-size: 14px; font-weight: 600; }
    .modal-shop-price { font-size: 16px; font-weight: 700; color: var(--primary); }
    .modal-shop-price .per { font-size: 11px; font-weight: 400; opacity: 0.7; }
    .modal-btn-row { display: flex; gap: 10px; }
    .modal-btn-row .btn { flex: 1; padding: 14px; font-size: 16px; }
    .confirm-card { text-align: center; padding: 8px 0; }
    .confirm-icon { font-size: 48px; margin-bottom: 12px; }
    .confirm-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
    .confirm-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
    .confirm-highlight { color: var(--primary); font-weight: 600; }
    .success-card { text-align: center; padding: 8px 0; }
    .success-check {
      width: 56px; height: 56px; border-radius: 50%;
      background: rgba(38,222,129,0.1); display: flex; align-items: center; justify-content: center;
      margin: 0 auto 12px; animation: popIn 0.4s ease-out;
    }
    @keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
    .success-check svg { width: 28px; height: 28px; color: var(--accent-green); }
    .success-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
    .success-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }