/* 安静出海工具站 — 深灰底 + 雾面卡片 + 弹层查单 */

:root {
  --aj-page-0: #1e293b;
  --aj-page-1: #334155;
  --aj-page-2: #0f172a;
  --aj-surface: rgba(30, 41, 59, 0.55);
  --aj-card: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 48%, #f1f5f9 100%);
  --aj-card-border: rgba(15, 23, 42, 0.12);
  --aj-text: #0f172a;
  --aj-text-soft: #475569;
  --aj-accent: #14b8a6;
  --aj-accent-dim: rgba(20, 184, 166, 0.2);
  --aj-nav-bg: rgba(15, 23, 42, 0.92);
  --aj-nav-text: #e2e8f0;
}

.chirou-body {
  font-family: "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  color: #cbd5e1;
  min-height: 100vh;
  margin: 0;
  background-color: var(--aj-page-2);
  background-image: radial-gradient(ellipse 120% 80% at 50% -30%, rgba(20, 184, 166, 0.12), transparent 50%),
    linear-gradient(168deg, var(--aj-page-1) 0%, var(--aj-page-0) 45%, var(--aj-page-2) 100%);
  background-attachment: fixed;
}

.chirou-body a {
  color: #5eead4;
}

.chirou-body a:hover {
  color: #99f6e4;
  text-decoration: none;
}

/* 顶栏 */
.chirou-navbar--top.navbar {
  padding: 0.55rem 1rem;
  background: var(--aj-nav-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.chirou-navbar .nav-link {
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  display: inline-block;
  padding: 0.45rem 0.9rem !important;
  font-weight: 600;
  color: var(--aj-nav-text) !important;
  border-radius: 999px;
}

.chirou-navbar .nav-link:hover {
  color: #5eead4 !important;
  background: rgba(148, 163, 184, 0.12);
}

.chirou-navbar .nav-link-query {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.chirou-navbar .nav-link-query:hover {
  background: rgba(20, 184, 166, 0.28) !important;
  color: #ecfdf5 !important;
}

.chirou-navbar .navbar-brand {
  margin-right: 0;
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  color: inherit;
}

.brand-link:hover {
  text-decoration: none !important;
}

.brand-avatar {
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.brand-title {
  font-weight: 800;
  color: #f8fafc;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .chirou-navbar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .chirou-navbar .navbar-brand {
    width: 100%;
    justify-content: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .nav-row-scroll {
    display: flex;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-row-scroll::-webkit-scrollbar {
    display: none;
  }

  .chirou-navbar .nav-link {
    font-size: 13px;
    padding: 5px 12px !important;
  }

  .text-hide-mobile {
    display: none;
  }
}

.content-wrapper {
  padding: 1.25rem 15px 2.75rem;
}

.content-wrapper .container {
  max-width: 920px;
}

/* 主内容卡片：雾面浅灰，非纯白 */
.chirou-body .card-surface.card {
  border: 1px solid var(--aj-card-border);
  margin: 16px 0;
  border-radius: 16px;
  background: var(--aj-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: var(--aj-text);
}

.chirou-body .card-surface .card-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.04);
  border-radius: 16px 16px 0 0;
}

.chirou-body .card-title {
  margin: 0 !important;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--aj-text);
}

.chirou-body .card-block {
  padding: 1.1rem 1.25rem 1.4rem;
}

/* 公告 */
.notice-simple .notice-line {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--aj-text-soft);
  padding-left: 0.65rem;
  border-left: 3px solid var(--aj-accent);
}

.notice-simple .notice-num {
  display: inline-block;
  min-width: 1.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f766e;
  margin-right: 0.25rem;
}

.notice-simple .notice-foot {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.notice-simple .notice-foot a {
  color: #0d9488;
  font-weight: 600;
}

/* 订单查询弹层 */
.modal-backdrop.show {
  opacity: 0.78;
}

.query-modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(94, 234, 212, 0.12);
}

.query-modal-header {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(94, 234, 212, 0.2);
  padding: 1rem 1.25rem;
}

.query-modal-header .modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ecfdf5;
  margin: 0;
}

.query-modal-header .close {
  opacity: 0.85;
  text-shadow: none;
}

.query-modal-body {
  padding: 1.25rem 1.35rem 1.5rem;
  color: #cbd5e1;
}

.query-modal-lead {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 1.1rem;
}

.query-modal-lead strong {
  color: #5eead4;
}

.query-form .form-row {
  margin-bottom: 0.85rem;
}

.query-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.query-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  font-size: 0.92rem;
  background: rgba(15, 23, 42, 0.65);
  color: #f1f5f9;
}

.query-form input::placeholder {
  color: #64748b;
}

.query-form input:focus {
  outline: none;
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 0 0 3px var(--aj-accent-dim);
}

.btn-query-submit {
  margin-top: 0.35rem;
  padding: 0.5rem 1.35rem;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 10px;
  border: none;
  color: #042f2e !important;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35);
}

.btn-query-submit:hover {
  filter: brightness(1.06);
  color: #042f2e !important;
}

.query-result {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.65;
  display: none;
  border: 1px solid transparent;
}

.query-result.is-visible {
  display: block;
}

.query-result.is-ok {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.35);
  color: #ccfbf1;
}

.query-result.is-err {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.query-result.is-ok strong {
  color: #5eead4;
}

.product-load-hint {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

.product-load-hint.is-error {
  color: #f87171;
}

.table-empty-cell {
  text-align: center;
  color: #64748b !important;
  padding: 1.25rem !important;
}

/* 表格 */
.layui-table {
  width: 100%;
  margin: 0;
  background: rgba(255, 255, 255, 0.35);
  color: var(--aj-text);
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

.layui-table th,
.layui-table td {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.layui-table th {
  text-align: left;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.06);
  color: var(--aj-text);
}

.commodity-icon {
  height: 22px;
  width: 22px;
  margin-top: -2px;
  border-radius: 6px;
  vertical-align: middle;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.category-list table .item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.25);
}

.category-list table .item:last-child {
  border-bottom: none;
}

.category-list table .head th {
  padding: 10px 8px;
  font-size: 13px;
}

.category-list table .item td {
  padding: 10px 8px;
  font-weight: 600;
}

.category-list table .item td:nth-child(2) {
  color: #be185d;
}

.category-list table .item td:nth-child(3) {
  color: #047857;
}

.category-list table tr th:nth-child(4),
.category-list table tr td:nth-child(4) {
  width: 72px;
  text-align: center;
}

.category-list table tr th:nth-child(3),
.category-list table tr td:nth-child(3) {
  width: 72px;
  text-align: center;
}

.category-list table tr th:nth-child(2),
.category-list table tr td:nth-child(2) {
  width: 80px;
  text-align: center;
}

.category-list table .item td:nth-child(4) a,
.category-list table .item td:nth-child(4) button.btn-buy {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a !important;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
  text-decoration: none !important;
  transition: transform 0.15s, filter 0.15s;
  border: 1px solid rgba(20, 184, 166, 0.4);
  cursor: pointer;
  font-family: inherit;
}

.category-list table .item td:nth-child(4) a:hover,
.category-list table .item td:nth-child(4) button.btn-buy:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #042f2e !important;
}

/* 购买弹窗 */
.chirou-layer-content.modal-content {
  border: none;
  border-radius: 16px;
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 55%, #f1f5f9 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.commodity-layer-modal .modal-dialog {
  max-width: 560px;
}

.open-commodity {
  padding: 2rem 1.75rem;
}

@media (max-width: 768px) {
  .open-commodity {
    padding: 1.25rem 1rem;
  }

  .commodity-layer-modal .modal-dialog {
    margin: 0;
    max-width: 100%;
    min-height: 100vh;
  }

  .chirou-layer-content.modal-content {
    border-radius: 0;
    min-height: 100vh;
  }

  #queryOrderModal .modal-dialog {
    margin: 0.5rem;
  }
}

.commodity-di .general {
  font-size: 14px;
  color: #475569;
}

.commodity_name {
  text-align: center;
  font-weight: 700;
  font-size: 1.35rem;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(20, 184, 166, 0.35);
  margin-bottom: 16px;
  color: #0f172a;
}

.commodity-di .price {
  color: #047857;
  font-weight: 700;
}

.open-commodity input[type="text"],
.open-commodity input[type="number"] {
  display: inline-block !important;
  width: 220px;
  max-width: 100%;
  height: 30px;
  padding-left: 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.open-commodity input:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 2px var(--aj-accent-dim);
}

.purchase_num {
  width: 72px !important;
}

.card_count {
  color: #0d9488;
  font-weight: 600;
}

.captcha-input {
  width: 120px !important;
}

.captcha-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  vertical-align: middle;
}

.captcha-inline--order {
  margin-right: 6px;
}

.captcha-svg-wrap {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.captcha-svg-wrap svg {
  display: block;
  height: 40px;
  width: auto;
}

.btn-captcha-refresh {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #94a3b8;
  background: #e2e8f0;
  color: #334155;
  cursor: pointer;
  line-height: 1;
}

.btn-captcha-refresh:hover {
  background: #cbd5e1;
}

.query-captcha-row .query-captcha-input {
  width: 100%;
  max-width: 220px;
  margin-top: 6px;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
}

.query-captcha-row .query-captcha-input::placeholder {
  color: #64748b;
}

.query-captcha-row .captcha-svg-wrap {
  border-color: rgba(148, 163, 184, 0.45);
  background: #f1f5f9;
}

.query-delivery-pre {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 240px;
  overflow: auto;
}

.delivery-result-modal .delivery-hint-small {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.delivery-result-modal .delivery-order-line {
  color: #e2e8f0;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.delivery-result-modal .delivery-section-title {
  color: #5eead4;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.delivery-lines-pre {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 10px;
  color: #ecfdf5;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: min(50vh, 320px);
  overflow: auto;
}

.btn-delivery-copy {
  padding: 0.45rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(20, 184, 166, 0.5);
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
  color: #0f172a !important;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-delivery-copy:hover {
  filter: brightness(1.06);
}

.delivery-manual-section .delivery-manual-text {
  color: #cbd5e1;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.delivery-payment-wait {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.delivery-payment-wait-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: #93c5fd;
}

.delivery-payment-wait-sub {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.delivery-payment-warn {
  margin: 0;
  color: #fbbf24;
  font-size: 0.88rem;
}

.delivery-usdt-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(94, 234, 212, 0.2);
}

.delivery-usdt-meta {
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 0 0 0.65rem;
  line-height: 1.5;
}

.delivery-usdt-meta strong {
  color: #e2e8f0;
}

.delivery-usdt-memo {
  font-size: 0.86rem;
  color: #fcd34d;
  margin: 0 0 0.5rem;
}

.delivery-usdt-note {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

#delivery_usdt_chains {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.delivery-usdt-chain-card {
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 12px;
}

.delivery-usdt-chain-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #5eead4;
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.delivery-usdt-qr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.delivery-usdt-qrcode {
  flex-shrink: 0;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.delivery-usdt-qrcode img {
  display: block;
}

.delivery-usdt-address-col {
  flex: 1;
  min-width: 200px;
}

.delivery-usdt-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5eead4;
  margin-bottom: 0.35rem;
}

.delivery-usdt-address {
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.75rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 120px;
  overflow: auto;
}

.btn-copy-usdt {
  margin-top: 0;
}

.delivery-usdt-warn {
  font-size: 0.78rem;
  color: #f87171;
  margin: 0.75rem 0 0;
  line-height: 1.45;
}

.trade_amount {
  font-weight: 700;
  color: #be123c;
}

.tg-service {
  color: #0369a1;
  font-size: 13px;
  margin-right: 10px;
}

.wx-service {
  color: #15803d;
  font-size: 13px;
}

.pay-content {
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  margin-top: 18px;
  padding-top: 12px;
}

.pay-content label {
  font-size: 15px;
  color: #64748b;
  font-weight: 600;
}

.pay-button {
  display: inline-block;
  margin: 0 6px 8px 0;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 10px;
  color: #0f172a !important;
  background: linear-gradient(135deg, #a5f3fc, #5eead4);
  border: 1px solid rgba(20, 184, 166, 0.45);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.25);
  text-decoration: none !important;
  transition: filter 0.2s;
  font-weight: 700;
}

.pay-button:hover {
  filter: brightness(1.05);
  color: #042f2e !important;
}

.pay_list {
  padding-top: 8px;
}

.pay_list_methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay_list_confirm {
  margin-top: 8px;
}

.pay-button-option {
  background: #e2e8f0;
  border: 1px solid #94a3b8;
  color: #0f172a !important;
  box-shadow: none;
}

.pay-button-option.active {
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
}

.pay-button-usdt-trc.active {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.pay-button-usdt-bsc.active {
  background: linear-gradient(135deg, #eab308, #f59e0b);
}

.pay-button-wechat.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.pay-button-alipay.active {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.pay-button-confirm {
  width: 100%;
  text-align: center;
  margin: 0;
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #047857;
  color: #ecfdf5 !important;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}

.pay-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--aj-page-2);
}

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
