/* 华创金工 HCTIMING - 现代化布局（覆盖 legacy style3.css） */

:root {

  --hc-ink: #172023;

  --hc-muted: #647070;

  --hc-line: #dbe2df;

  --hc-paper: #fbfcfa;

  --hc-soft: #f1f5f3;

  --hc-teal: #1f786f;

  --hc-teal-dark: #155e57;

  --hc-red: #c92a30;

  --hc-gold: #d9a746;

  --hc-white: #ffffff;

  --hc-shadow: 0 12px 40px rgba(23, 32, 35, 0.1);

}



*, *::before, *::after { box-sizing: border-box; }



body {

  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif !important;

  background: var(--hc-paper) !important;

  color: var(--hc-ink);

  padding-top: 68px !important;

  margin: 0 !important;

}



/* ── 顶栏 ── */

.hc-site-header {

  position: fixed;

  top: 0; left: 0; right: 0;

  z-index: 9999;

  height: 68px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.16);

  background: rgba(16, 25, 27, 0.92);

  backdrop-filter: blur(14px);

  color: var(--hc-white);

}

.hc-nav {

  max-width: 1180px;

  margin: 0 auto;

  padding: 0 20px;

  height: 68px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

}

.hc-brand {

  display: flex;

  align-items: center;

  gap: 10px;

  font-weight: 700;

  color: var(--hc-white) !important;

  text-decoration: none !important;

}

.hc-brand-mark {

  width: 34px; height: 34px;

  display: grid; place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.32);

  background: rgba(255, 255, 255, 0.08);

  font-size: 16px;

}

.hc-nav-links {

  display: flex;

  gap: 18px;

  font-size: 14px;

}

.hc-nav-links a {

  color: rgba(255, 255, 255, 0.82);

  text-decoration: none;

}

.hc-nav-links a:hover,

.hc-nav-links a.active {

  color: var(--hc-white);

}

.hc-nav-links a.active {

  font-weight: 700;

  border-bottom: 2px solid var(--hc-gold);

  padding-bottom: 2px;

}



/* 隐藏旧版右侧浮动工具条（链接已并入 Hero） */

.global_toolbar { display: none !important; }



/* ── 主页 Hero ── */

.hc-timing-page { background: var(--hc-paper); }



.hc-hero {

  position: relative;

  padding: 56px 0 72px;

  color: var(--hc-white);

  background: linear-gradient(135deg, #0f1719 0%, #152428 55%, #1a3034 100%);

  overflow: hidden;

}

.hc-hero::before {

  content: "";

  position: absolute;

  inset: 0;

  background:

    radial-gradient(circle at 85% 20%, rgba(217, 167, 70, 0.12) 0%, transparent 45%),

    radial-gradient(circle at 10% 80%, rgba(31, 120, 111, 0.15) 0%, transparent 40%);

  pointer-events: none;

}

.hc-hero-inner {

  position: relative;

  z-index: 1;

  max-width: 1180px;

  margin: 0 auto;

  padding: 0 20px;

}

.hc-eyebrow {

  margin: 0 0 12px;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: var(--hc-gold);

}

.hc-hero-title {

  margin: 0 0 16px;

  font-size: clamp(28px, 4vw, 42px);

  font-weight: 800;

  line-height: 1.2;

  letter-spacing: 0.01em;

}

.hc-hero-sub {

  margin: 0 0 28px;

  max-width: 680px;

  font-size: 16px;

  line-height: 1.7;

  color: rgba(255, 255, 255, 0.78);

}

.hc-version {

  display: inline-block;

  margin-left: 6px;

  padding: 2px 8px;

  border-radius: 4px;

  background: rgba(201, 42, 48, 0.85);

  color: #fff;

  font-size: 13px;

  font-weight: 700;

  vertical-align: middle;

}

.hc-hero-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 20px;

}

.hc-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 10px 18px;

  border-radius: 6px;

  font-size: 14px;

  font-weight: 600;

  text-decoration: none !important;

  cursor: pointer;

  border: 1px solid transparent;

  transition: background 0.15s, border-color 0.15s, transform 0.15s;

  white-space: nowrap;

}

.hc-btn-primary {

  background: var(--hc-teal);

  border-color: var(--hc-teal);

  color: #fff !important;

}

.hc-btn-primary:hover {

  background: var(--hc-teal-dark);

  transform: translateY(-1px);

}

.hc-btn-ghost {

  background: rgba(255, 255, 255, 0.08);

  border-color: rgba(255, 255, 255, 0.22);

  color: rgba(255, 255, 255, 0.92) !important;

}

.hc-btn-ghost:hover {

  background: rgba(255, 255, 255, 0.16);

  border-color: rgba(255, 255, 255, 0.35);

}

.hc-hero-links {

  display: flex;

  flex-wrap: wrap;

  gap: 16px;

  font-size: 13px;

}

.hc-hero-links a {

  color: rgba(255, 255, 255, 0.55);

  text-decoration: none;

  border-bottom: 1px solid rgba(255, 255, 255, 0.2);

  padding-bottom: 1px;

}

.hc-hero-links a:hover { color: var(--hc-gold); }



/* ── 模型卡片网格 ── */

.hc-models-section {

  padding: 48px 0 56px;

  margin-top: -24px;

}

.hc-section-inner {

  max-width: 1180px;

  margin: 0 auto;

  padding: 0 20px;

}

.hc-section-head {

  margin-bottom: 28px;

}

.hc-section-head h2 {

  margin: 0 0 8px;

  font-size: 24px;

  font-weight: 800;

  color: var(--hc-ink);

}

.hc-section-head p {

  margin: 0;

  color: var(--hc-muted);

  font-size: 15px;

}

.hc-model-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;

}

.hc-model-card {

  display: flex;

  flex-direction: column;

  background: var(--hc-white);

  border: 1px solid var(--hc-line);

  border-radius: 10px;

  padding: 24px 22px 20px;

  box-shadow: var(--hc-shadow);

  transition: transform 0.2s, box-shadow 0.2s;

}

.hc-model-card:hover {

  transform: translateY(-3px);

  box-shadow: 0 18px 48px rgba(23, 32, 35, 0.13);

}

.hc-model-card-head {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 12px;

}

.hc-model-tag {

  display: inline-block;

  padding: 3px 10px;

  border-radius: 999px;

  background: var(--hc-soft);

  color: var(--hc-teal);

  font-size: 12px;

  font-weight: 700;

}

.hc-model-icon {

  font-size: 22px;

  color: var(--hc-teal);

}

.hc-model-title {

  margin: 0 0 8px;

  font-size: 17px;

  font-weight: 700;

  color: var(--hc-ink);

}

.hc-model-desc {

  margin: 0 0 16px;

  flex: 1;

  font-size: 14px;

  line-height: 1.65;

  color: var(--hc-muted);

}

.hc-select-label {

  display: block;

  margin-bottom: 6px;

  font-size: 12px;

  font-weight: 600;

  color: var(--hc-muted);

  text-transform: uppercase;

  letter-spacing: 0.06em;

}

.hc-model-select,

.hc-model-card .selectize-control {

  width: 100% !important;

}



/* ── 信息区 + 页脚 ── */

.hc-info-section {

  padding: 0 0 48px;

  border-top: 1px solid var(--hc-line);

  background: var(--hc-soft);

}

.hc-info-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 32px;

  padding-top: 40px;

}

.hc-info-block h3 {

  margin: 0 0 14px;

  font-size: 16px;

  font-weight: 700;

  color: var(--hc-ink);

}

.hc-info-block p,

.hc-info-block li {

  margin: 0;

  font-size: 14px;

  line-height: 1.75;

  color: var(--hc-muted);

}

.hc-info-block ul {

  margin: 0;

  padding-left: 18px;

}

.hc-info-block li + li { margin-top: 6px; }

.hc-contact-list {

  list-style: none;

  padding: 0 !important;

}

.hc-contact-list li {

  display: flex;

  align-items: flex-start;

  gap: 10px;

  margin-bottom: 10px;

}

.hc-contact-list .fa {

  color: var(--hc-teal);

  margin-top: 3px;

  width: 14px;

}

.hc-contact-list a {

  color: var(--hc-teal);

  text-decoration: none;

}

.hc-site-footer {

  background: var(--hc-ink);

  color: rgba(255, 255, 255, 0.55);

  text-align: center;

  padding: 20px;

  font-size: 13px;

}

.hc-site-footer p { margin: 0; }



/* ── 弹窗 / 表格 / 表单（K 线大图模式） ── */

.about-modal .modal-dialog {
  width: 98vw !important;
  max-width: 1580px !important;
  margin: 10px auto !important;
}

.about-modal .modal-content {
  border-radius: 10px !important;
  border: 1px solid var(--hc-line) !important;
  box-shadow: 0 24px 64px rgba(23, 32, 35, 0.2) !important;
  overflow: hidden;
  max-height: calc(100vh - 20px);
  display: flex;
  flex-direction: column;
}

.about-modal .modal-header {
  background: var(--hc-soft);
  border-bottom: 1px solid var(--hc-line) !important;
  padding: 14px 20px !important;
  flex-shrink: 0;
}

.about-modal .modal-title {
  font-weight: 700 !important;
  color: var(--hc-ink) !important;
  font-size: 16px !important;
}

.about-modal .modal-body {
  background: var(--hc-white);
  padding: 12px 16px 20px !important;
  overflow-x: auto;
  overflow-y: auto;
  flex: 1 1 auto;
  max-height: calc(100vh - 110px);
}

.about-modal .modal-body .example { margin: 0; }

/* K 线 / 净值图表：全宽加高 */
.about-modal .modal-body div[id^="container"],
.about-modal .modal-body div[id*="container"] {
  box-sizing: border-box !important;
  min-width: 100% !important;
  width: 100% !important;
  height: min(880px, calc(100vh - 160px)) !important;
  min-height: 760px !important;
}

#hc-modal-root:empty { display: none; }

.hc-loading-toast.show {
  opacity: 1;
  pointer-events: none;
}

/* 策略绩效指标条 */
.hc-perf-panel {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7faf9 0%, #fff 100%);
}

.hc-perf-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hc-perf-strategy-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--hc-ink);
  padding-top: 4px;
  border-top: 1px dashed var(--hc-line);
}

.hc-perf-strategy-name:first-child {
  border-top: 0;
  padding-top: 0;
}

.hc-perf-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: stretch;
}

.hc-perf-period {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border-radius: 6px;
  background: rgba(31, 120, 111, 0.1);
  color: var(--hc-teal);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.hc-perf-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hc-perf-item {
  padding: 8px 10px;
  border: 1px solid var(--hc-line);
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}

.hc-perf-label {
  display: block;
  margin-bottom: 4px;
  color: var(--hc-muted);
  font-size: 12px;
  line-height: 1.2;
}

.hc-perf-val {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--hc-ink);
  font-variant-numeric: tabular-nums;
}

.hc-perf-val.is-pos { color: var(--hc-red); }
.hc-perf-val.is-neg { color: #228b50; }
.hc-perf-val.is-muted { color: var(--hc-muted); }

.hc-perf-empty {
  color: var(--hc-muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hc-perf-row {
    grid-template-columns: 1fr;
  }
  .hc-perf-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hc-perf-period {
    justify-content: flex-start;
    padding: 6px 10px;
  }
}



.selectize-control.single .selectize-input,

.selectize-dropdown {

  border-radius: 6px !important;

  border-color: var(--hc-line) !important;

  font-size: 14px !important;

}

.selectize-control.single .selectize-input.focus {

  border-color: var(--hc-teal) !important;

  box-shadow: 0 0 0 3px rgba(31, 120, 111, 0.12) !important;

}



.card-tabs-bar.graygreen {

  border-bottom: 1px solid var(--hc-line);

  margin-bottom: 0;

}

.card-tabs-bar.graygreen a {

  padding: 12px 16px !important;

  font-size: 14px !important;

  color: var(--hc-muted) !important;

  text-decoration: none !important;

}

.card-tabs-bar.graygreen a.active {

  color: var(--hc-teal) !important;

  font-weight: 700;

  border-top: 3px solid var(--hc-teal) !important;

  background: var(--hc-white) !important;

}

.card-tabs-stack.graygreen div[data-tab] {

  padding: 12px 0 0 !important;

  background: transparent !important;

  border: none !important;

}



.table.table-striped,

table.dataTable { font-size: 13px; }

.table thead th,

table.dataTable thead th {

  background: var(--hc-soft) !important;

  color: var(--hc-ink) !important;

  font-weight: 700 !important;

  border-bottom: 2px solid var(--hc-line) !important;

}

.table tbody tr:hover td {

  background: rgba(31, 120, 111, 0.06) !important;

}



.btn-primary {

  background: var(--hc-teal) !important;

  border-color: var(--hc-teal) !important;

}

.btn-danger {

  background: var(--hc-red) !important;

  border-color: var(--hc-red) !important;

}



.hc-loading-toast {

  position: fixed;

  bottom: 24px; right: 24px;

  z-index: 10000;

  padding: 10px 16px;

  border-radius: 6px;

  background: var(--hc-ink);

  color: #fff;

  font-size: 13px;

  opacity: 0;

  pointer-events: none;

  transition: opacity 0.2s;

}

.hc-loading-toast.show { opacity: 1; }



/* 隐藏 legacy 区块（已被新布局替代） */

.about, .buttom, footer:not(.hc-site-footer) { display: none !important; }



@media (max-width: 960px) {

  .hc-model-grid,

  .hc-info-grid { grid-template-columns: 1fr 1fr; }

  .hc-nav-links { display: none; }

}

@media (max-width: 640px) {

  .hc-model-grid,

  .hc-info-grid { grid-template-columns: 1fr; }

  .hc-hero { padding: 40px 0 56px; }

  .hc-hero-actions .hc-btn { flex: 1 1 calc(50% - 10px); }

}

