/* ===========================================================
   Groww H5 — Futures & Options
   旧业务中心（business-shell）改成 28 页的绿色 H5 语言。
   =========================================================== */

.gw-fno { padding-bottom: calc(var(--gw-tabbar-h) + 24px); }

.gw-fno-title {
  margin: 14px var(--gw-pad) 0;
  font-size: 26px;
  font-weight: var(--gw-fw-bold);
  color: var(--gw-ink);
  letter-spacing: -0.6px;
  line-height: 1.2;
}
.gw-fno-sub {
  margin: 7px var(--gw-pad) 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gw-ink-3);
}

/* 分类药丸：复用 .gw-listchips 的横滑 */
.gw-fno-cats { padding-top: 16px; }
.gw-fno-cats .gw-chip { text-decoration: none; }

/* 搜索框 */
.gw-fno-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 14px var(--gw-pad) 0;
}
.gw-fno-search-icon {
  position: absolute;
  left: 12px;
  display: flex;
  color: var(--gw-ink-3);
  pointer-events: none;
}
.gw-fno-search-icon .gw-icon { width: 17px; height: 17px; }
.gw-fno-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-r-md);
  background: #fff;
  font-size: 13.5px;
  color: var(--gw-ink);
  appearance: none;
}
.gw-fno-search input::placeholder { color: var(--gw-ink-3); }
.gw-fno-search input:focus { outline: none; border-color: var(--gw-green); }

/* 期货 / 期权分段 */
.gw-fno-tabs {
  display: flex;
  gap: 8px;
  margin: 14px var(--gw-pad) 0;
}
.gw-fno-tab {
  flex: 1 1 0;
  height: 36px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-r-pill);
  background: #fff;
  color: var(--gw-ink-2);
  font-size: 13px;
  font-weight: var(--gw-fw-med);
}
.gw-fno-tab.is-active {
  border-color: transparent;
  background: var(--gw-green-soft);
  color: var(--gw-green);
  font-weight: var(--gw-fw-semi);
}

/* 分区标题 */
.gw-fno-section { margin-top: 22px; }
.gw-fno-section h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 var(--gw-pad) 12px;
  font-size: 16px;
  font-weight: var(--gw-fw-bold);
  color: var(--gw-ink);
}
.gw-fno-count {
  font-size: 11.5px;
  font-weight: var(--gw-fw-med);
  color: var(--gw-ink-3);
}

/* 合约卡 */
.gw-fno-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 var(--gw-pad);
}
.gw-fno-card {
  padding: 16px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-r-lg);
  background: #fff;
}
.gw-fno-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gw-fno-badge {
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--gw-green-soft);
  color: var(--gw-green);
  font-size: 10px;
  font-weight: var(--gw-fw-semi);
  letter-spacing: 0.4px;
}
.gw-fno-lot { font-size: 11px; color: var(--gw-ink-3); }

.gw-fno-card h3 {
  margin: 11px 0 0;
  font-size: 15.5px;
  font-weight: var(--gw-fw-bold);
  color: var(--gw-ink);
  line-height: 1.3;
}
.gw-fno-sym {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--gw-ink-3);
  letter-spacing: 0.3px;
}
.gw-fno-price {
  margin-top: 12px;
  font-size: 25px;
  font-weight: var(--gw-fw-bold);
  color: var(--gw-ink);
  letter-spacing: -0.7px;
}

.gw-fno-meta {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  border-top: 1px solid var(--gw-line-2);
}
.gw-fno-meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gw-line-2);
}
.gw-fno-meta span { font-size: 12.5px; color: var(--gw-ink-3); }
.gw-fno-meta b { font-size: 13px; font-weight: var(--gw-fw-semi); color: var(--gw-ink); }

.gw-fno-open {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: none;
  border-radius: 9px;
  background: var(--gw-green);
  color: #fff;
  font-size: 14.5px;
  font-weight: var(--gw-fw-semi);
}
/* 合约名可点进详情（原图就是这么挂的，卡内不另设一行链接） */
.gw-fno-name { color: inherit; text-decoration: none; }

/* 持仓卡 */
.gw-fno-positions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 var(--gw-pad);
}
.gw-fno-pos {
  padding: 14px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-r-lg);
  background: #fff;
}
.gw-fno-pos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gw-fno-pos-head strong { font-size: 14.5px; font-weight: var(--gw-fw-bold); color: var(--gw-ink); }
.gw-fno-side {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: var(--gw-fw-semi);
}
.gw-fno-side.is-long { background: var(--gw-green-soft); color: var(--gw-green); }
.gw-fno-side.is-short { background: #fdeceb; color: #e0453b; }

.gw-fno-pos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.gw-fno-pos-grid > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gw-fno-pos-grid span { font-size: 10.5px; color: var(--gw-ink-3); }
.gw-fno-pos-grid b { font-size: 13px; font-weight: var(--gw-fw-semi); color: var(--gw-ink); }

.gw-fno-close {
  width: 100%;
  height: 38px;
  margin-top: 13px;
  border: 1px solid var(--gw-line);
  border-radius: 8px;
  background: #fff;
  color: var(--gw-ink);
  font-size: 13px;
  font-weight: var(--gw-fw-semi);
}

.gw-fno-realized {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--gw-line-2);
}
.gw-fno-realized span { font-size: 11.5px; color: var(--gw-ink-3); }
.gw-fno-realized b { font-size: 13.5px; font-weight: var(--gw-fw-bold); }

.gw-fno-note {
  margin: 22px var(--gw-pad) 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--gw-ink-3);
}
