/* ===== PAGE WRAPPER ===== */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 12px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: #1a1a1a;
  font-size: 13px;
  line-height: 1.5;
}
.page *, .page *::before, .page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.page button {
  font-family: Arial;
}
.page button:active {
  border: 0;
}


/* ===== 实时五档行情 ===== */
.realtime-card {
  background: #fff;
  border-radius: 4px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}

.realtime-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.realtime-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #206798;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s;
}

.realtime-card.collapsed .realtime-toggle {
  transform: none;
}

.realtime-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.realtime-body {
  padding: 12px 16px 16px;
  transition: none;
}

.realtime-card.collapsed .realtime-body {
  display: none;
}

/* 控制栏 */
.realtime-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
}

.ctrl-link {
  color: #206798;
  text-decoration: none;
}
.ctrl-link:hover { text-decoration: underline; }

.ctrl-check {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #555;
  cursor: pointer;
}

/* 两栏行情 */
.quote-panels {
  display: grid;
  justify-content: start;
  grid-auto-flow: column;
  gap: 16px;
}

.quote-panel {
  width: 430px;
  border: 1px solid #e8ecf0;
  border-radius: 6px;
  overflow: hidden;
}

/* 信息头部区域 */
.qp-info {
  background: #f0f4fb;
  padding: 10px 12px;
}

.qp-info-top {
  align-items: baseline;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.qp-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.qp-name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.page .sup_r120::after
 {
    content: '120%';
    top: -5px;
    font-size: 10px;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    color: orange;
    display: inline-block;
    -webkit-transform: scale(.9);
    transform: scale(.9);
    z-index: 10;
}

.qp-code {
  font-size: 14px;
  color: #888;
}
a:hover .qp-name,
a:hover .qp-code {
  color: #206798;
}

.qp-price-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 14px;
}

.qp-label {
  color: #666;
}

.qp-price {
  font-weight: 600;
  font-size: 14px;
}

.qp-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 12px;
}

.qp-kv {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 14px;
  line-height: 1.6;
}

.qp-k {
  color: #666;
  white-space: nowrap;
}

.qp-v {
  color: #222;
}

.qp-v.bold, .qp-k.bold {
  font-weight: 700;
}

/* 五档报价表格 */
.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: url(/static/img/table-bg.png) repeat;
  line-height: 1.4;
}

.order-table .up {
  color: #e03030;
}
.order-table .down {
  color: #0aab5b;
}

.order-table thead tr {
  background: #f8f8f8;
}

.order-table th {
  padding: 6px 10px;
  text-align: left;
  font-weight: 500;
  color: #888;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.order-table td {
  padding: 5px 10px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}

.order-table tr:last-child td {
  border-bottom: none;
}

.order-table tr.sell td:first-child { color: #888; }
.order-table tr.buy  td:first-child { color: #888; }

.order-table tr.divider td {
  padding: 0;
  height: 12px;
  background: #e8ecf0;
  border: none;
  text-align: center;
  color: #FFFACD;
  font-size: 12px;
}

@media (max-width: 720px) {
  .quote-panels {
    grid-template-columns: 1fr;
  }
}


/* ===== HEADER CARD ===== */
.header-card {
  background: #fff;
  border-radius: 4px;
  padding: 18px 20px 0;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.bond-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.badge-code {
  background: #e8f0fe;
  color: #206798;
  border: 1px solid #c5d8f7;
}

.badge-stock {
  background: #e8f0fe;
  color: #206798;
  border: 1px solid #c5d8f7;
  cursor: pointer;
}

.badge-industry {
  background: #f0f0f0;
  color: #666;
  border: 1px solid #e0e0e0;
}
.badge-industry a {
  color: #666;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.price {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
}

.change {
  font-size: 16px;
  font-weight: 600;
}

.change.up {
  color: #e03030;
}
.change.down {
  color: #0aab5b;
}


/* Metrics strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #f0f0f0;
}

.metrics-strip--bordered {
  border-top: 1px solid #f0f0f0;
}

.metrics-strip--6col {
  grid-template-columns: repeat(6, 1fr);
}

.metric-cell {
  padding: 12px 10px;
  border-right: 1px solid #f0f0f0;
}

.metric-cell:last-child {
  border-right: none;
}

.metric-label {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}
.metric-value {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}
.metric-label div,
.metric-value div {
    flex-grow: 0.5;
}

.metric-value.red  { color: #e03030; }
.metric-value.orange { color: #e07800; }
.metric-value.green  { color: #0aab5b; }

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 12px;
  align-items: start;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}

.card--collapsed .card-body {
  display: none;
}

.card-header {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background .15s;
}

.card:not(.card--collapsed) .card-header {
  border-bottom-color: #f0f0f0;
}

.card-header:hover {
  background: #fafafa;
}

.card-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.card-title-sub {
  font-size: 12px;
  color: #aaa;
  margin-right: 8px;
}

.card-toggle {
  font-size: 12px;
  color: #bbb;
}

.card-body {
  padding: 14px 16px;
}

.card-body--no-pad {
  padding: 0;
}

.card.bond-tips {
  background-color: #FFFACD;
}
.tips-bg  { 
  display: flex;
  gap: 5px;
  flex-direction: column;
  flex-wrap: nowrap;
}
.tips-bg div>span:first-child{
    margin-left: 0px;
}
.tips-bg div>span{
    margin-left: 5px;
}
.tips-bg a {
    color: #4d4d4d;
}


/* ===== INFO GRID (基本信息) ===== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.info-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.info-item {
  padding: 9px 0;
  border-bottom: 1px solid #f5f5f5;
}

.info-item:nth-last-child(-n+4) {
  border-bottom: none;
}

.info-label {
  font-size: 11px;
  color: #999;
  margin-bottom: 3px;
}

.info-value {
  font-size: 13px;
  font-weight: 500;
  color: #222;
}

.info-value.red   { color: #e03030; }
.info-value.green { color: #0aab5b; }

/* ===== TRIGGER GRID (触发价格) ===== */
.trigger-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trigger-item {
  background: #fafafa;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #f0f0f0;
}

#redeem_status a,
#adjust_condition a,
#redeem_status a:hover span,
#adjust_condition a:hover span {
  color: #999;
}

.trigger-label {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.trigger-price {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.trigger-sub {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
  line-height: 1.4;
}

.trigger-count {
  font-size: 11px;
  color: #aaa;
}

/* ===== TAG GROUPS (概念标签) ===== */
.tag-group {
  margin-bottom: 12px;
}

.tag-group:last-child {
  margin-bottom: 0;
}

.tag-group-label {
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
  font-weight: 500;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  background: #f5f7fa;
  border: 1px solid #e8ecf0;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.tag.new::after {
    content: '新';
    color: #ff0000;
    margin-left: 5px;
    padding: 3px 6px;
    margin-right: -5px;
}

.tag:hover {
  background: #eaf0fb;
  border-color: #b8ccf0;
  color: #206798;
}

/* ===== CALCULATOR ===== */
.calc-tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
}

.calc-tab {
  flex: 1;
  height: 40px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.calc-tab:hover {
  color: #206798;
}

.calc-tab.active {
  color: #206798;
  border-bottom-color: #206798;
  font-weight: 600;
}

.calc-panel {
  display: none;
}

.calc-panel.active {
  display: block;
}
.calc-panel .calc-search {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  gap: 8px;
}
.calc-panel .calc-msg {
  padding: 14px 16px;
}


.calc-row {
}
.calc-table {
  padding: 0 14px 16px;
  line-height: 2;
}
.calc-table td {
  vertical-align: top;
}
.calc-input-wrap {
  flex: 1;
  position: relative;
}
.calc-input-wrap.yuan::after {
  content: '元';
}
.calc-input-wrap.percent::after {
  content: '%';
}
.calc-input-wrap::after {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
}
.calc-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  outline: none;
  transition: border-color .15s;
}

.calc-input:focus {
  border-color: #206798;
}

.calc-btn {
  height: 38px;
  padding: 0 18px;
  background: #206798;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.calc-btn:hover {
  background: #206798;
}

/* ===== DISCUSSION LIST ===== */

.related-tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
}

.related-tab {
  flex: 1;
  height: 40px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.related-tab:hover {
  color: #206798;
}

.related-tab.active {
  color: #206798;
  border-bottom-color: #206798;
  font-weight: 600;
}

.related-panel {
  display: none;
}

.related-panel.active {
  display: block;
}
.related-panel .more {
  text-align: right;
  padding: 13px 16px;
}

.discussion-list {
  list-style: none;
}

.discussion-item {
  padding: 11px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background .15s;
}

.discussion-item:last-child {
  border-bottom: none;
}

.discussion-item:hover {
  background: #fafafa;
}

.discussion-title {
  font-size: 13px;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.4;
}

.discussion-meta {
  font-size: 11px;
  color: #bbb;
}
.discussion-more {
  text-align: right;
  padding-right: 10px;
}



.related-bond-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.related-bond-table th {
  padding: 7px 12px;
  text-align: center;
  background: #f8f9fb;
  font-weight: 500;
  color: #777;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.related-bond-table td {
  padding: 7px 12px;
  text-align: center;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  white-space: nowrap;
}

.related-bond-table tbody tr:last-child td {
  border-bottom: none;
}

.related-bond-table tbody tr:hover {
  background: #fafbfd;
}

.announcement-list {
  list-style: none;
}
.announcement-item {
  padding: 11px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  display: flex; 
  flex-direction: row; 
  line-height: 1.65;
  gap: 16px;
}
.related-panel .no-data {
  padding: 11px 16px;
  line-height: 1.65;
  font-size: 12.5px;
  color: #444;
}
.discussion-item:last-child {
  border-bottom: none;
}
.announcement-item:hover {
  background: #fafafa;
}
.announcement-item .announcement-item-title {
  font-size: 12.5px;
  color: #444;
  flex-grow: 1;
}
.announcement-item .announcement-item-date {
  color: #bbb;
  width: 85px;
  flex-shrink: 0;
}
.related-hidden {
  display: none;
}


/* ===== COLORS (shared) ===== */
.red   { color: #e03030; }
.green { color: #0aab5b; }
.orange { color: #e07800; }

/* ===== 转股价调整历史 ===== */
.history-section-title {
  padding: 8px 14px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  background: #f7f8fa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.history-table-wrap {
  overflow-x: auto;
}

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

.history-table th {
  padding: 7px 12px;
  text-align: center;
  /* background: #f8f9fb; */
  font-weight: 500;
  color: #777;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.history-table td {
  padding: 7px 12px;
  text-align: center;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  white-space: nowrap;
}

.history-table tbody tr:last-child td {
  border-bottom: none;
}

.history-table tbody tr:hover {
  background: #fafbfd;
}

.type-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

.type-tag.down-mod {
  background: #fff3e0;
  color: #e07800;
  border: 1px solid #ffd699;
}

/* 展开/收起按钮 */
.expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 9px 0;
  background: #f7f8fa;
  border: none;
  border-top: 1px solid #eee;
  font-size: 12.5px;
  color: #206798;
  cursor: pointer;
  transition: background .15s;
}

.expand-btn:hover {
  background: #eef2fb;
}

.expand-btn-icon {
  font-size: 12px;
  transition: transform .25s;
}

.expand-btn.expanded .expand-btn-icon {
  transform: rotate(180deg);
}

/* 隐藏的额外行 */
.adjust-hidden,
.nomod-hidden {
  display: none;
}

.type-tag.other {
  background: #f0f0f0;
  color: #777;
  border: 1px solid #e0e0e0;
}

/* ===== 条款说明 ===== */
.clause-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clause-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clause-label {
  font-size: 12.5px;
  color: #888;
  font-weight: 500;
}

.clause-content {
  background: #f7f8fa;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  line-height: 1.7;
}

.clause-formula {
  background: #f7f8fa;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  /* font-family: "Courier New", "Consolas", monospace; */
  letter-spacing: 0.3px;
}

/* ===== 募资用途 ===== */
.fund-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

/* 更多字段分隔线 */
.more-fields-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px -16px 14px;
}

/* ===== 更多字段 ===== */
.more-section {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.more-section--last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

/* .more-section-title {
  font-size: 12px;
  color: #aaa;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
} */

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
}

.more-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.more-label {
  font-size: 11px;
  color: #999;
}

.more-value {
  font-size: 13px;
  color: #222;
  font-weight: 500;
}

.more-value.bold {
  font-weight: 700;
}

/* ===== 转债基金持仓数据 ===== */
.fund-tabs {
  display: flex;
  /* border-bottom: 1px solid #f0f0f0; */
  background: #fff;
}

.fund-tab {
  flex: 1;
  height: 38px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.fund-tab:hover { color: #206798; }

.fund-tab.active {
  color: #206798;
  border-bottom-color: #206798;
  font-weight: 600;
}

.fund-panel { display: none; }
.fund-panel.active { display: block; }

.fund-period-title {
  padding: 10px 16px 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: Arial;
  color: #999;
  /* background-color: #f5f6f8; */
}

.fund-table th {
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
  padding: 6px 8px;
}

.fund-table td {
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
  padding: 5px 8px;
}

.fund-table th:first-child,
.fund-table td:first-child { text-align: center; }

.fund-table .text-left {
  text-align: left;
  white-space: normal;
  min-width: 100px;
  max-width: 150px;
  line-height: 1.4;
}

.fund-code {
  color: #206798 !important;
  font-weight: 500;
  text-align: center !important;
}
.fund-code a {
  color: #206798 !important;
}

.fund-table .up   { color: #e03030; }
.fund-table .down { color: #0aab5b; }

.fund-hidden { display: none; }

.fund-summary {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
  padding: 8px 14px;
  background: #f8f9fb;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #555;
  font-weight: 500;
}

.fund-summary span { text-align: right; }
.fund-summary span:first-child { text-align: left; }

/* ===== 转债十大持有人 ===== */
.card:has(.holder-search) {
  overflow: visible;
}
.holder-search-panel { display: none; }
.holder-season-panel { display: none; }
.holder-search-panel.active {display: block; }
.holder-season-panel.active {display: block; }

.holder-search .awesomplete { flex:1;}
.holder-search .awesomplete > input { width: 100%;}
.holder-search {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  gap: 8px;
  background-color: #f7f8fa;
}
.holder-search-bar {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  gap: 8px;
  font-size: 13px;
}
.holder-search-bar .holder-search-title {
  font-size: 13px;
  font-weight: 600;
  color: #999;
}
.holder-search-bar .holder-search-close {}
.holder-search-bar .holder-search-close .close-btn {
  height: 20px;
  padding: 0 5px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.holder-search-label { font-size: 13px; color: #555; white-space: nowrap; }
.holder-search-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 13px;
  outline: none;
  color: #333;
}
.holder-search-input:focus { border-color: #206798; }
.holder-search-btn {
  background: none; border-color: transparent; cursor: pointer;
  color: #999; font-size: 16px; padding: 2px 6px; line-height: 1;
  border:none;
}

.holder-tabs {
  display: flex;
  /* flex-wrap: wrap; */
  /* border-bottom: 2px solid #eee; */
}
.holder-search-tab,
.holder-tab {
  flex: 1; 
  /* padding: 10px 0; */
  height: 38px;
  background: none; border: none;
  cursor: pointer; font-size: 13px; color: #888;
  border-bottom: 2px solid transparent;
  transition: color .15s;
  max-width: 200px;
  min-width: 100px;
}
.holder-search-tab.active,
.holder-tab.active { color: #206798; border-bottom-color: #206798; font-weight: 600;  }

.holder-search-tabs {
  position: relative;
  width: 780px;
  overflow: hidden;
  padding: 0 10px;
}
.holder-search-tabs-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.holder-search-tabs-container::-webkit-scrollbar {
  display: none;
}
.slide-arrow {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  width: 10px;
  height: 20px;
  border-radius: 2px;
  border: none;
  background: #269abc;
  color: #fff;
  cursor: pointer;
  z-index: 9;
  font-weight: 600;
  display: none;
}
.slide-left { left: 0; }
.slide-right { right: 0; }



.holder-search-panel,
.holder-panel { display: none; }
.holder-search-panel.active,
.holder-panel.active { display: block; }
.holder-search-panel {
  background-color: #f7f8fa;
  margin-bottom: 12px;
  padding: 0 10px;
}

.holder-search-table th,
.holder-table th {
  text-align: center;
  /* background: #f5f6f8; */
  font-size: 12px;
  font-weight: 500;
  color: #666;
  padding: 6px 8px;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
}
.holder-search-table td,
.holder-table td {
  text-align: center;
  font-size: 12px;
  padding: 5px 8px;
  white-space: nowrap;
}

.holder-search-table th:first-child,
.holder-search-table td:first-child,
.holder-table th:first-child,
.holder-table td:first-child {
  text-align: left;
  white-space: normal;
  /* min-width: 220px; */
  line-height: 1.4;
  padding-left: 14px;
}
.holder-search-table .up,
.holder-table .up { color: #e03030; }
.holder-search-table .down,
.holder-table .down { color: #0aab5b; }
.holder-hidden { display: none; }

/* 非报告期公告表 */
.announce-table th[rowspan],
.announce-table th[colspan] {
  vertical-align: middle;
}
.announce-table thead tr:first-child th { border-bottom: 1px solid #e0e0e0; }
.announce-link {
  color: #206798;
  font-weight: 500;
  cursor: pointer;
}

.holder-summary-row td {
  background: #f8f9fb;
  color: #555;
  font-weight: 500;
  font-size: 12px;
  border-top: 1.5px solid #fff;
}
.holder-summary-row td:first-child { padding-left: 14px; }

/* ===== 历史数据表 ===== */
.redeem_days_cnt{
    display: inline-block;
    float: right;
    color: red;
    text-align: center;
    width: 20px;
    border: 1px solid red;
    border-radius: 20px;
}

.adjust_days_cnt{
    display: inline-block;
    float: right;
    color: green;
    text-align: center;
    width: 20px;
    border: 1px solid green;
    border-radius: 20px;
}
.history-minmax {
  display: flex;
  gap: 32px;
  padding: 8px 14px;
  font-size: 12px;
  color: #888;
  border-bottom: 1px solid #eee;
  background: #fafbfc;
}
.history-minmax strong { color: #333; font-weight: 600; }

.price-history-wrap {
  overflow-x: auto;
  overflow-y: scroll;
  max-height: 1000px; /* ≈ 60 rows */
}
.price-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: url(/static/img/table-bg.png) repeat;
}
.price-history-table thead th {
  position: sticky;
  top: 0;
  /* z-index: 2; */
  background: #fff;
  text-align: center;
  padding: 6px 4px;
  font-weight: 500;
  color: #555;
  border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
  cursor: pointer;
}
.price-history-table thead th.headerSortDown::before{
  visibility: visible;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid #ccc;
}
.price-history-table thead th.headerSortUp::before{
  visibility: visible;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #ccc;
}
.price-history-table thead th::before {
  visibility: hidden;
  position: absolute;
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}


.price-history-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background .1s;
}
.price-history-table tbody tr:hover { background: #f5f8ff; }
.price-history-table tbody td {
  text-align: center;
  padding: 4px 4px;
  color: #333;
  white-space: nowrap;
}
.price-history-table .td-seq { color: #999; width: 36px; }
.price-history-table .td-date { text-align: left; padding-left: 10px; color: #555; }
.price-history-table .up   { color: #e03030; }
.price-history-table .down { color: #0aab5b; }
.price-history-table .row-highlight { background: #fff8e1 !important; }
.price-history-table .row-highlight td { font-weight: 500; }

/* ===== 备注 & 共享计划 ===== */
.note-block { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
.note-block:last-child { border-bottom: none; }
.note-block-title {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.note-block-exit {
  text-align: right;
}
.note-block-exit-btn {
  color: #fff;
  background-color: #269abc;
  padding: 4px 12px;
  border-radius: 4px;
  border:0;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.my-note-body {
  font-size: 13px;
  color: #333;
  line-height: 1.7;
  white-space: pre-wrap;
}
.my-note-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.my-note-label {
  flex-shrink: 0;
  width: 80px;
  font-size: 13px;
  font-weight: 700;
  color: #222;
  padding: 0 14px;
}
.my-note-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 0;
}
.my-note-content:has(form) span.jisilu-icons {
    display: none;
}

.my-note-placeholder {
  font-size: 13px;
  color: #aaa;
  cursor: pointer;
}
.my-note-edit {
  font-size: 14px;
  cursor: pointer;
  color: #bbb;
  opacity: 0.6;
}
.my-note-btn {
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  margin-right: 10px;
}
.my-note-btn--save {
  background: #206798;
  color: #fff;
  border-color: #206798;
}
.my-note-btn--save:hover {
  background: #2f5baa;
}
.my-note-btn--cancal {
  border-color: #ddd;
}


.shared-note-list { display: flex; flex-direction: column; gap: 12px; }
.shared-note-item { display: flex; flex-direction: column; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid #f5f5f5; margin-bottom: 10px; }
.shared-note-item:last-child { border-bottom: 1px solid transparent; }
.sn-hidden { display: none; }

/* ===== Tooltip ===== */
.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 50%;
  background: #bbb;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  user-select: none;
  outline: none;
}
.tip-icon:hover,
.tip-icon:focus {
  background: #888;
}
.tip-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  font-weight: normal;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 5px;
  pointer-events: none;
  z-index: 999;
}
.tip-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
}
.tip-icon:hover .tip-popup,
.tip-icon:focus .tip-popup,
.tip-icon.active .tip-popup {
  display: block;
}
.shared-note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #aaa;
}
.shared-note-author {
  font-weight: 600;
  color: #206798;
}
.shared-note-date { color: #bbb; }
.shared-note-text {
  font-size: 12.5px;
  color: #444;
  line-height: 1.65;
  padding-left: 2px;
}

/* ===== 通栏图表 ===== */
.chart-fullwidth {
  width: 100%;
  background: #fff;
  border-top: 2px solid #eef0f4;
  margin-top: 28px;
  padding: 18px 0 60px;
}
.chart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px 10px;
}
.chart-label { font-size: 13px; color: #555; }
.chart-select {
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  color: #333;
}
.chart-reset-btn {
  margin-left: auto;
  padding: 5px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: #444;
}
.chart-reset-btn:hover { background: #f5f5f5; }

/* ===== 自选 & 拉黑按钮 ===== */
.title-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.page button.action-btn {
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.page button.action-btn.action-btn--watchlist { color: #888; }
.page button.action-btn.action-btn--watchlist:hover { border-color: #f5a623; color: #f5a623; background: #fffbf2; }
.page button.action-btn.action-btn--watchlist.active { border-color: #f5a623; color: #f5a623; background: #fffbf2; font-weight: 600; }
.page button.action-btn.action-btn--watchlist .a { display: none;}
.page button.action-btn.action-btn--watchlist .b { display: inline;}
.page button.action-btn.action-btn--watchlist.active .a { display: inline;}
.page button.action-btn.action-btn--watchlist.active .b { display: none;}

.page button.action-btn.action-btn--blacklist { color: #888; }
.page button.action-btn.action-btn--blacklist:hover { border-color: #e03030; color: #e03030; background: #fff5f5; }
.page button.action-btn.action-btn--blacklist.active { border-color: #e03030; color: #e03030; background: #fff5f5; font-weight: 600; }
.page button.action-btn.action-btn--blacklist .a { display: none;}
.page button.action-btn.action-btn--blacklist .b { display: inline;}
.page button.action-btn.action-btn--blacklist.active .a { display: inline;}
.page button.action-btn.action-btn--blacklist.active .b { display: none;}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-strip .metric-cell:nth-child(2n) {
    border-right: none;
  }

  .trigger-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}
