/* ============================================================
   ABCMINT OTC · 样式
   行情终端风格的极简版式：白底、低饱和配色、13px 系统字体、
   数据表格、内容框、筛选条。全部为等价实现，无第三方资源。
   ============================================================ */

body {
  font: 13px/1.231 "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans",
    Verdana, Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  background-color: white;
  color: #2e3436;
  margin: 8px;
}

a { color: #204a87; }
a:hover { color: #3465a4; }

/* ---------- 页头 ---------- */
#header {
  background-color: #555753;
  padding: 5px;
  border-radius: 5px 5px 0 0;
}

#header table {
  color: #d3d7cf;
  width: 100%;
  /* 不折叠边框，保留浏览器默认的 2px 单元格间距。
     折叠掉的话表头会矮 4px（上下各少 2px），比对不齐 */
  border-collapse: separate;
  border-spacing: 2px;
}

#header td { border: none; }

#header .logo {
  font-size: 25px;
  white-space: nowrap;
}

#header .logo a { color: #d3d7cf; text-decoration: none; }
#header .logo .accent { color: #edd400; }

#header .logo .brandlogo {
  height: 50px;
  width: 50px;
  vertical-align: middle;
  margin-right: 8px;
  /* 比特币标志里的 ₿ 是右倾 14°，图标本身自带该角度；
     abcmint.svg 是不带角度的正六边形，这里用同样的角度补上 */
  transform: rotate(14deg);
}

#header .nav {
  text-align: right;
  line-height: 2;
}

a.header {
  color: #edd400;
  background-color: #888a85;
  padding: 4px 5px 5px 5px;
  border-radius: 3px;
  text-decoration: none;
}
a.header:hover { color: #fff; background-color: #a0a29d; }

/* ---------- 面包屑 ---------- */
div.breadcrumbs {
  background-color: #f6f6f5;
  padding: 2px 8px 3px 8px;
  margin-bottom: 10px;
  font-size: 11px;
  color: #999;
  border-top: 1px solid white;
  border-bottom: 1px solid #ccc;
  border-radius: 0 0 5px 5px;
  text-align: left;
}

/* ---------- 页脚 ---------- */
#footer {
  background-color: #f6f6f5;
  padding: 6px 8px;
  margin-top: 30px;
  font-size: 12px;
  color: #777;
  border-top: 1px solid white;
  border-bottom: 1px solid #ccc;
  text-align: center;
  clear: both;
  border-radius: 5px;
}

/* ---------- 首页左栏：赞助商广告位 ---------- */
/* 位置与 bitcoin-otc 首页一致：左栏浮起，正文整体右移 */
div.sponsors {
  float: left;
  width: 180px;
  text-align: center;
}

div.sponsors .inner {
  padding-left: 10px;
  padding-bottom: 10px;
}

div.sponsors hr { width: 80%; }

div.maincol { padding-left: 200px; }

/* ---------- 内容框 ---------- */
div.contentbox {
  background-color: #ffe0eb;
  border-style: none;
  padding: 10px;
  margin: 5px;
  width: 400px;
  float: left;
}

h2 { text-align: center; }
h4 { margin-bottom: 4px; }

/* ---------- 数据表 ---------- */
table.datadisplay {
  border: 1px solid #c6c9ff;
  border-collapse: collapse;
  margin: 6px 0;
}

table.datadisplay td {
  border: 1px solid #c6c9ff;
  padding: 4px;
  vertical-align: top;
}

table.datadisplay td.nowrap { white-space: nowrap; }
table.datadisplay td.num { text-align: right; font-variant-numeric: tabular-nums; }

table.datadisplay th {
  background-color: #f0f0ff;
  padding: 6px 10px;
  vertical-align: middle;
  text-align: left;
  white-space: nowrap;
}

table.datadisplay tr.even { background-color: #eeeeec; }
table.datadisplay tr.odd { background-color: #ffffff; }

table.datadisplay tr:hover { background-color: #fff8dc; }

/* 过期挂单灰显，不抢注意力 */
table.datadisplay tr.expired td { color: #999; }
table.datadisplay tr.expired:hover { background-color: #fff; }

/* 单元格内的次要说明，例如报价的「可议」标记 */
td .cell-sub {
  display: block;
  font-size: 11px;
  color: #a06a1a;
}

/* 宽表横向滚动（桌面端同样需要：挂单簿有 12 列） */
.tablewrap { overflow-x: auto; }

/* ---------- 收款方式标签：颜色本身就是风险提示 ---------- */
.pay {
  display: inline-block;
  padding: 1px 5px;
  margin: 1px 3px 1px 0;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}

/* 不可撤销：中性，不抢注意力 */
.pay-final { background-color: #eeeeec; color: #555753; border: 1px solid #d3d7cf; }

/* 可撤销：警告色，这是必须盯住的那一类 */
.pay-reversible { background-color: #ffe0e0; color: #a40000; border: 1px solid #e0a0a0; }

/* 未知方式：平台不认识，风险自评 */
.pay-unknown { background-color: #fff0cc; color: #a06a1a; border: 1px solid #e8c880; }

div.legend {
  background-color: #f6f6f5;
  border: 1px solid #d3d7cf;
  padding: 6px 10px;
  margin: 6px 0;
  font-size: 12px;
  color: #555753;
}

/* ---------- 联系区块（详情页） ---------- */
div.contactbox {
  background-color: #fff8dc;
  border: 1px solid #edd400;
  border-left: 4px solid #a06a1a;
  padding: 10px 14px;
  margin: 10px 0;
}

div.contactbox .contactvalue {
  display: block;
  margin-top: 4px;
  font-family: "DejaVu Sans Mono", Consolas, monospace;
  font-size: 16px;
  color: #2e3436;
  word-break: break-all;
}

/* ---------- 筛选条 ---------- */
div.filter {
  background-color: #e9b96e;
  border: 1px dashed #f57900;
  padding: 4px 8px;
  margin-bottom: 3px;
  text-align: center;
}

div.filter select,
div.filter input[type="text"] {
  font: inherit;
  padding: 1px 3px;
  border: 1px solid #a06a1a;
  background: #fff;
}

div.filter input[type="submit"],
div.filter button {
  font: inherit;
  padding: 1px 8px;
  cursor: pointer;
}

/* ---------- 摘要 ---------- */
div.summary {
  background-color: #f0f0ff;
  border: 1px solid #c6c9ff;
  padding: 5px 8px;
  margin-bottom: 6px;
}

/* ---------- 表头徽标 ---------- */
.type-buy { color: #1a6d1a; font-weight: bold; }
.type-sell { color: #a40000; font-weight: bold; }

/* ---------- 提示块 ---------- */
p.notice {
  background-color: #fce94f;
  border: 1px solid #edd400;
  padding: 6px 8px;
  margin: 8px 0;
}

p.disclaimer {
  background-color: #f6f6f5;
  border-left: 4px solid #888a85;
  padding: 8px 10px;
  font-size: 12px;
  color: #555753;
}

div.clear { clear: both; }

/* ---------- 代码 / 等宽 ---------- */
code, .mono {
  font-family: "DejaVu Sans Mono", "Bitstream Vera Sans Mono", Consolas, monospace;
  font-size: 12px;
}

code {
  background-color: #f0f0ff;
  padding: 0 3px;
  border-radius: 2px;
}

pre.code {
  background-color: #f6f6f5;
  border: 1px solid #d3d7cf;
  border-left: 3px solid #888a85;
  padding: 8px 10px;
  margin: 6px 0;
  font-family: "DejaVu Sans Mono", "Bitstream Vera Sans Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}

/* ---------- 密钥状态 ---------- */
.key-valid { color: #1a6d1a; font-weight: bold; }
.key-expired { color: #a06a1a; font-weight: bold; }
.key-revoked { color: #a40000; font-weight: bold; }

/* ---------- 报价走势图（服务端内联 SVG，无 JavaScript） ---------- */
div.chart {
  margin: 10px 0;
  max-width: 720px;
}

svg.priceline {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d3d7cf;
  background-color: #fdfdfd;
}

svg.priceline .line {
  fill: none;
  stroke: #3465a4;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

svg.priceline .lastdot { fill: #3465a4; }

svg.priceline .lbl {
  font-family: "Lucida Grande", "DejaVu Sans", Verdana, "Microsoft YaHei", sans-serif;
  font-size: 10px;
  fill: #777;
}

/* ---------- 步骤块 ---------- */
div.step {
  border: 1px solid #d3d7cf;
  border-top: 3px solid #555753;
  padding: 10px 14px;
  margin: 12px 0;
  background-color: #fdfdfd;
}
div.step h3 { margin-top: 0; }

/* ---------- 信誉：正负分与封禁标记 ---------- */
.pos { color: #1a6d1a; }
.neg { color: #a40000; }

/* 封禁标记：一眼看出这个身份被冻结了 */
.flag-bad {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background-color: #a40000;
  border-radius: 2px;
}

/* 全站统计行（信誉库顶部） */
p.statline {
  background-color: #f6f6f5;
  border-left: 4px solid #888a85;
  padding: 6px 10px;
  margin: 8px 0;
  font-size: 12px;
  color: #555753;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
  body { margin: 4px; }
  #header td { display: block; text-align: left !important; }
  #header .logo { font-size: 20px; }
  #header .logo .brandlogo { height: 40px; width: 40px; }
  #header .nav { text-align: left; }
  div.contentbox { width: auto; float: none; }
  div.sponsors { float: none; width: auto; }
  div.sponsors .inner { padding-left: 0; }
  div.maincol { padding-left: 0; }
  .tablewrap { overflow-x: auto; }
}
