/* Daocaijing Homepage — Apple / Google Restrained Design System */
.bbt-guide-link { display: none !important; }

/* 1. Ruthless Subtraction: eliminate choice overload & redundant stacked bars */
.bbt-market-tools { display: none !important; }
.df-accent-picker { display: none !important; }
@media (min-width: 1024px) {
  .bbt-live-rail { display: none !important; }
  .bbt-grid--rail .bbt-news-panel .mp-wrap--strip { display: none !important; }
}

/* Tone down screaming blue top-right buy CTA so primary action stands alone */
.bbt-buy-cta {
  background: transparent !important;
  color: #424245 !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}
.bbt-buy-cta:hover {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
:root[data-theme="dark"] .bbt-buy-cta {
  color: #d2d2d7 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* 2. Refined Typography & Hairline Surfaces */
.bbt {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
}

/* Soften global macro bar */
.bbt-macro {
  background: var(--surface, #ffffff) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}
:root[data-theme="dark"] .bbt-macro {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
.bbt-macro-tag {
  background: #f5f5f7 !important;
  color: #6e6e73 !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}
:root[data-theme="dark"] .bbt-macro-tag {
  background: #242426 !important;
  color: #a1a1a6 !important;
}

/* 3. Whisper-Quiet Apple Hero (.dc-visitor-start) */
.dc-visitor-start {
  background: var(--surface, #ffffff) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 18px var(--dc-gutter, 22px) 16px !important;
}
:root[data-theme="dark"] .dc-visitor-start {
  background: var(--surface, #0b0e11) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
.dc-visitor-copy h1 {
  font-size: 21px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #1d1d1f !important;
  margin-bottom: 3px !important;
}
:root[data-theme="dark"] .dc-visitor-copy h1 { color: #f5f5f7 !important; }
.dc-visitor-copy p {
  font-size: 13px !important;
  color: #6e6e73 !important;
}
:root[data-theme="dark"] .dc-visitor-copy p { color: #a1a1a6 !important; }
.dc-visitor-actions {
  gap: 8px !important;
}
.dc-visitor-actions .df-hero-daily {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #1d1d1f;
  color: #ffffff !important;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none !important;
  transition: opacity .15s ease;
  white-space: nowrap;
}
.dc-visitor-actions .df-hero-daily:hover { opacity: 0.86; }
:root[data-theme="dark"] .dc-visitor-actions .df-hero-daily {
  background: #f5f5f7;
  color: #1d1d1f !important;
}
.dc-visitor-actions a.dc-visitor-primary {
  background: transparent !important;
  color: #6e6e73 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
.dc-visitor-actions a.dc-visitor-primary:hover {
  background: transparent !important;
  color: #1d1d1f !important;
}
:root[data-theme="dark"] .dc-visitor-actions a.dc-visitor-primary {
  color: #a1a1a6 !important;
  border: none !important;
}
:root[data-theme="dark"] .dc-visitor-actions a.dc-visitor-primary:hover {
  background: transparent !important;
  color: #f5f5f7 !important;
}

/* 4. Minimalist 6-Tile US Market Strip (#df-us-pulse-bar) */
#df-us-pulse-bar {
  padding: 12px var(--dc-gutter, 22px) 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--surface, #ffffff);
}
:root[data-theme="dark"] #df-us-pulse-bar {
  background: var(--surface, #0b0e11);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.df-pulse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.df-pulse-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6e6e73;
}
:root[data-theme="dark"] .df-pulse-title { color: #a1a1a6; }
.df-pulse-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.df-pulse-links a {
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.df-pulse-links a:hover { text-decoration: underline; }
:root[data-theme="dark"] .df-pulse-links a { color: #2997ff; }
.df-pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.df-pulse-grid::-webkit-scrollbar { display: none; }
.df-pulse-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f5f5f7;
  text-decoration: none !important;
  transition: background .18s cubic-bezier(.22,1,.36,1), border-color .18s ease, transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease;
  min-width: 128px;
}
.df-pulse-card:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.df-pulse-card:active {
  transform: scale(0.985);
}
:root[data-theme="dark"] .df-pulse-card {
  background: #1c1c1e;
}
:root[data-theme="dark"] .df-pulse-card:hover {
  background: #242426;
  border-color: rgba(255, 255, 255, 0.16);
}
.df-pc-row1 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.df-pc-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:root[data-theme="dark"] .df-pc-name { color: #f5f5f7; }
.df-pc-sym {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #86868b;
}
.df-pc-row2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.df-pc-price {
  font-weight: 600;
  color: #424245;
}
:root[data-theme="dark"] .df-pc-price { color: #d2d2d7; }
.df-pc-chg.is-up { color: #15803d; font-weight: 600; }
.df-pc-chg.is-dn { color: #dc2626; font-weight: 600; }
:root[data-theme="dark"] .df-pc-chg.is-up { color: #30d158; }
:root[data-theme="dark"] .df-pc-chg.is-dn { color: #ff453a; }

/* 5. Calm News Rows & Quiet Hover Actions */
.bbt-nrow {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}
:root[data-theme="dark"] .bbt-nrow {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
.bbt-nrow .bbt-nact {
  opacity: 0.38;
  transition: opacity .15s ease;
}
.bbt-nrow:hover .bbt-nact {
  opacity: 1;
}

/* 6. Clean Sidebar Links (no underline, monochrome icon) */
aside.bbt-side-nav a.bbt-side-item {
  text-decoration: none !important;
}
.df-side-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.72;
}

/* 7. Remove redundant bottom-right floating AI dock (top bar & left nav already have AI entry; fixes right-rail overlap) */
.bbt-ai-dock {
  display: none !important;
}
.bbt-rail {
  padding-bottom: 24px !important;
}

/* 8. Serene Apple-style Footer & Retention Strip (#df-home-retain-bar) */
#df-home-retain-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px var(--dc-gutter, 22px);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: #f5f5f7;
  font-size: 12.5px;
}
:root[data-theme="dark"] #df-home-retain-bar {
  background: #141416;
  border-top-color: rgba(255, 255, 255, 0.08);
}
.df-ret-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.df-ret-label {
  font-weight: 500;
  color: #424245;
}
:root[data-theme="dark"] .df-ret-label { color: #d2d2d7; }
.df-ret-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.df-ret-form input {
  height: 32px;
  width: 210px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #ffffff;
  color: #1d1d1f;
  font-size: 12.5px;
  outline: none;
}
.df-ret-form input:focus { border-color: #0071e3; }
:root[data-theme="dark"] .df-ret-form input {
  background: #1c1c1e;
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.16);
}
.df-ret-form button {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: #1d1d1f;
  color: #ffffff;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.df-ret-form button:hover { opacity: 0.86; }
:root[data-theme="dark"] .df-ret-form button {
  background: #f5f5f7;
  color: #1d1d1f;
}
.df-ret-msg {
  font-size: 12px;
  color: #15803d;
  font-weight: 500;
}
:root[data-theme="dark"] .df-ret-msg { color: #30d158; }
.df-trust-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.df-trust-links a {
  color: #6e6e73;
  text-decoration: none;
}
.df-trust-links a:hover {
  color: #1d1d1f;
  text-decoration: underline;
}
:root[data-theme="dark"] .df-trust-links a { color: #86868b; }
:root[data-theme="dark"] .df-trust-links a:hover { color: #f5f5f7; }

@media (max-width: 768px) {
  .df-pulse-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .df-pulse-card { flex: 0 0 128px; }
  .df-ret-form input { width: 175px; }
  #df-home-retain-bar { padding-bottom: 72px; }
  .bbt-macro { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
}
