/* 全站默认浅色：纸白 + 墨蓝。菜单页与首页同一套，不随页面切换变色。 */

[data-theme="light"] body,
.theme-light body {
  background: #F5F6F8 !important;
}

[data-theme="light"] body::before,
.theme-light body::before {
  opacity: 0 !important;
  animation: none !important;
}

[data-theme="light"] body::after,
.theme-light body::after {
  background:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px) !important;
  background-size: 48px 48px, 48px 48px !important;
  opacity: 0.8 !important;
  animation: none !important;
}

[data-theme="light"] .glass-card,
[data-theme="light"] .index-hero-card,
.theme-light .glass-card,
.theme-light .index-hero-card {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045) !important;
}

[data-theme="light"] .site-brand-name,
.theme-light .site-brand-name {
  background: none !important;
  -webkit-text-fill-color: #12141A !important;
  color: #12141A !important;
}

[data-theme="light"] .site-brand-tld,
.theme-light .site-brand-tld {
  background: none !important;
  -webkit-text-fill-color: #1D4ED8 !important;
  color: #1D4ED8 !important;
}

[data-theme="light"] .index-hero-eyebrow,
.theme-light .index-hero-eyebrow {
  color: #1E3A8A !important;
  background: #F4F6FB !important;
  border-color: #E3E8F2 !important;
}

[data-theme="light"] .index-home .hero-step,
.theme-light .index-home .hero-step {
  color: #1E3A8A !important;
  background: #EEF3FF !important;
  border-color: #D7E2F8 !important;
}

[data-theme="light"] .index-home .hero-flow-codebox,
.theme-light .index-home .hero-flow-codebox,
[data-theme="light"] .hero-flow-codebox,
.theme-light .hero-flow-codebox {
  background: #F7F8FA !important;
}

[data-theme="light"] .primary-btn,
[data-theme="light"] .index-hero-card .primary-btn,
[data-theme="light"] .hero-generate-btn,
[data-theme="light"] .quick-help-demo-btn,
[data-theme="light"] .export-btn,
.theme-light .primary-btn,
.theme-light .index-hero-card .primary-btn,
.theme-light .hero-generate-btn,
.theme-light .quick-help-demo-btn,
.theme-light .export-btn,
.index-home .hero-flow-action .hero-generate-btn,
.index-home .hero-flow-action .primary-btn.hero-generate-btn {
  color: #fff !important;
  background: #1D4ED8 !important;
  border: 1px solid #1D4ED8 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

.index-home .hero-flow-action .hero-generate-btn::before,
.index-home .hero-flow-action .hero-generate-btn::after,
.index-hero-card .hero-flow-action .primary-btn::before,
.index-hero-card .hero-flow-action .primary-btn::after,
.index-hero-card .hero-flow-action .hero-generate-btn::before,
.index-hero-card .hero-flow-action .hero-generate-btn::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

[data-theme="light"] .primary-btn:hover,
[data-theme="light"] .hero-generate-btn:hover,
.theme-light .primary-btn:hover,
.theme-light .hero-generate-btn:hover,
.index-home .hero-flow-action .hero-generate-btn:hover {
  color: #fff !important;
  background: #1A47C4 !important;
  border-color: #1A47C4 !important;
  box-shadow: none !important;
  transform: none !important;
}

.index-home .index-hero-card .hero-flow-action .hero-generate-btn:hover,
.index-home .index-hero-card .hero-flow-action .hero-generate-btn:focus,
.index-home .index-hero-card .hero-flow-action .hero-generate-btn:focus-visible,
[data-theme="light"] .index-hero-card .hero-flow-action .hero-generate-btn:hover,
[data-theme="light"] .index-hero-card .hero-flow-action .hero-generate-btn:focus,
.theme-light .index-hero-card .hero-flow-action .hero-generate-btn:hover,
.theme-light .index-hero-card .hero-flow-action .hero-generate-btn:focus {
  color: #fff !important;
  background: #1A47C4 !important;
  border-color: #1A47C4 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  outline: none !important;
}

.index-home .index-hero-card .hero-flow-action .hero-generate-btn:active,
[data-theme="light"] .index-hero-card .hero-flow-action .hero-generate-btn:active,
.theme-light .index-hero-card .hero-flow-action .hero-generate-btn:active {
  color: #fff !important;
  background: #173FAE !important;
  border-color: #173FAE !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

[data-theme="light"] .hero-tutorial-link,
.theme-light .hero-tutorial-link,
.hero-tutorial-link {
  color: #E11D48 !important;
  background: #fff !important;
  border: 1px solid #FECDD3 !important;
  animation: tutorialBreath 2.2s ease-in-out infinite !important;
}

[data-theme="light"] .hero-tutorial-link-text,
.theme-light .hero-tutorial-link-text,
.hero-tutorial-link-text {
  color: #E11D48 !important;
}

[data-theme="light"] .hero-tutorial-link:hover,
[data-theme="light"] .hero-tutorial-link.is-open,
.theme-light .hero-tutorial-link:hover,
.theme-light .hero-tutorial-link.is-open,
.hero-tutorial-link:hover,
.hero-tutorial-link.is-open {
  color: #BE123C !important;
  background: #FFF1F2 !important;
  border-color: #E11D48 !important;
  transform: none !important;
}

[data-theme="light"] .hero-tutorial-link-icon,
.theme-light .hero-tutorial-link-icon,
.hero-tutorial-link-icon {
  color: #E11D48 !important;
  background: #FFE4E6 !important;
}

@keyframes tutorialBreath {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(225, 29, 72, 0.18),
      0 0 10px rgba(225, 29, 72, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(225, 29, 72, 0.08),
      0 0 22px rgba(225, 29, 72, 0.48);
  }
}

.nav-pill-toolbox,
.nav-pill-toolbox:hover,
.nav-pill-toolbox.active,
[data-theme="light"] .nav-pill-toolbox,
[data-theme="dark"] .nav-pill-toolbox {
  background: #1D4ED8 !important;
  border-color: #1D4ED8 !important;
  box-shadow: none !important;
  animation: none !important;
  color: #fff !important;
}

.nav-pill-toolbox:hover {
  background: #1E40AF !important;
  border-color: #1E40AF !important;
}

.nav-pill-toolbox::before,
.nav-pill-toolbox::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

[data-theme="light"] .nav-links.nav-links-v2,
.theme-light .nav-links.nav-links-v2 {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

[data-theme="light"] .nav-pill.active:not(.nav-pill-toolbox),
.theme-light .nav-pill.active:not(.nav-pill-toolbox) {
  background: #EEF3FF !important;
  color: #1D4ED8 !important;
  border-color: #D7E2F8 !important;
}

[data-theme="light"] .nav-pill.active:not(.nav-pill-toolbox) .nav-pill-label,
.theme-light .nav-pill.active:not(.nav-pill-toolbox) .nav-pill-label {
  color: #1D4ED8 !important;
  -webkit-text-fill-color: #1D4ED8 !important;
}

[data-theme="light"] .hero-panel,
.theme-light .hero-panel,
[data-theme="light"] .hero-flow-field-box,
.theme-light .hero-flow-field-box {
  border-color: #E3E8F0 !important;
}

[data-theme="light"] .app-header,
.theme-light .app-header {
  border-bottom-color: #E6E8EE !important;
}

[data-theme="light"] .hero-tutorial-sub,
.theme-light .hero-tutorial-sub {
  color: #1D4ED8 !important;
}

[data-theme="light"] .index-hero-tagline,
.theme-light .index-hero-tagline {
  color: #64748B !important;
}

[data-theme="light"] .index-hero-card h1::after,
.theme-light .index-hero-card h1::after,
[data-theme="light"] .app-header::after,
.theme-light .app-header::after {
  background: #1D4ED8 !important;
}

/* 菜单页共用同一套浅色变量，避免进子页又回到青绿 */
[data-theme="light"],
.theme-light {
  --brand-indigo: #1D4ED8;
  --brand-violet: #1E40AF;
  --brand-cyan: #3B82F6;
  --brand-emerald: #1D4ED8;
  --brand-live-teal: #1D4ED8;
  --brand-live-cyan: #3B82F6;
  --brand-primary: #1D4ED8;
  --brand-gradient: #1D4ED8;
  --brand-gradient-nav: #1D4ED8;
  --brand-gradient-soft: #F3F6FB;
  --btn-teal: #1D4ED8;
  --btn-teal-deep: #1E40AF;
  --btn-teal-mid: #2563EB;
  --btn-teal-bright: #DBEAFE;
  --btn-gradient: #1D4ED8;
  --btn-gradient-hover: #1E40AF;
  --btn-shadow: none;
  --btn-shadow-hover: none;
  --bg-base: #F5F6F8;
  --bg-primary: #F5F6F8;
  --bg-secondary: #EEF0F3;
  --bg-tertiary: #E6E8EE;
  --accent-primary: #1D4ED8;
  --accent-secondary: #3B82F6;
  --glass-surface: #fff;
  --glass-surface-2: #fff;
  --card-bg-1: #fff;
  --nav-bg-1: #fff;
  --nav-bg-2: #fff;
  --border-primary: rgba(15, 23, 42, 0.08);
  --text-primary: #12141A;
}

[data-theme="light"] .page-main-card > .app-header::after,
.theme-light .page-main-card > .app-header::after {
  background: #1D4ED8 !important;
}

/* IP 指南卡片不要铺满的玻璃色罩，避免深字压在蓝紫底上 */
[data-theme="light"] .ipcheck-page::before,
[data-theme="light"] .ipcheck-page::after,
.theme-light .ipcheck-page::before,
.theme-light .ipcheck-page::after {
  content: none !important;
  display: none !important;
  background: none !important;
  animation: none !important;
  mix-blend-mode: normal !important;
  opacity: 0 !important;
}

[data-theme="light"] .ipcheck-page,
.theme-light .ipcheck-page {
  background: #fff !important;
  box-shadow: inset 0 3px 0 #1D4ED8, 0 10px 28px rgba(15, 23, 42, 0.045) !important;
}

[data-theme="light"] .tool-hub-card,
[data-theme="light"] .ip-hub-card,
[data-theme="light"] .tool-page-card,
[data-theme="light"] .ipcheck-page,
.theme-light .tool-hub-card,
.theme-light .ip-hub-card,
.theme-light .tool-page-card,
.theme-light .ipcheck-page {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* IP 指南内卡：跟全站纸白 + 墨蓝，去掉半透明青绿底 */
[data-theme="light"] .ipcheck-badge,
.theme-light .ipcheck-badge,
[data-theme="light"] .ipc-tl-dot,
.theme-light .ipc-tl-dot {
  background: #1D4ED8 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

[data-theme="light"] .ipcheck-note--match,
.theme-light .ipcheck-note--match {
  background: #EEF3FF !important;
  background-image: none !important;
  border-color: #C7D7FE !important;
  color: #12141A !important;
}

[data-theme="light"] .ipcheck-note--match strong,
[data-theme="light"] .ipcheck-note--match b,
.theme-light .ipcheck-note--match strong,
.theme-light .ipcheck-note--match b {
  color: #1D4ED8 !important;
}

[data-theme="light"] .ipcheck-note--alert,
.theme-light .ipcheck-note--alert {
  background: #FFF7ED !important;
  background-image: none !important;
  border-color: #FDBA74 !important;
  color: #12141A !important;
}

[data-theme="light"] .ipc-flow,
.theme-light .ipc-flow,
[data-theme="light"] .ipc-tl-card,
.theme-light .ipc-tl-card,
[data-theme="light"] .ipcheck-card,
.theme-light .ipcheck-card {
  background: #fff !important;
  background-image: none !important;
  border-color: #E3E8F0 !important;
}

[data-theme="light"] .ipc-flow,
.theme-light .ipc-flow {
  background: #F8FAFC !important;
}

[data-theme="light"] .ipcheck-card--do,
.theme-light .ipcheck-card--do,
[data-theme="light"] .ipcheck-ok,
.theme-light .ipcheck-ok {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #047857 !important;
}

[data-theme="light"] .ipcheck-card--do h3,
.theme-light .ipcheck-card--do h3 {
  color: #047857 !important;
}

[data-theme="light"] .ipcheck-card--dont,
.theme-light .ipcheck-card--dont {
  background: #FFF1F2 !important;
  border-color: #FECDD3 !important;
}

[data-theme="light"] .ipcheck-card--dont h3,
.theme-light .ipcheck-card--dont h3 {
  color: #E11D48 !important;
}

[data-theme="light"] .ipcheck-card-idx,
[data-theme="light"] .ipcheck-ext-link,
[data-theme="light"] .ipc-back,
.theme-light .ipcheck-card-idx,
.theme-light .ipcheck-ext-link,
.theme-light .ipc-back {
  color: #1D4ED8 !important;
}

/* 实底之后不再做大面积模糊和循环高光，滚动和悬停都更快 */
[data-theme="light"] .glass-card,
[data-theme="light"] .page-main-card,
[data-theme="light"] .nav-links,
[data-theme="light"] .lang-dropdown,
[data-theme="light"] .primary-btn,
[data-theme="light"] .hero-generate-btn,
.theme-light .glass-card,
.theme-light .page-main-card,
.theme-light .nav-links,
.theme-light .lang-dropdown,
.theme-light .primary-btn,
.theme-light .hero-generate-btn {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme="light"] .glass-card::before,
[data-theme="light"] .glass-card::after,
.theme-light .glass-card::before,
.theme-light .glass-card::after {
  animation: none !important;
  content: none !important;
  display: none !important;
}

[data-theme="light"] .glass-card,
[data-theme="light"] .page-main-card,
[data-theme="light"] .ipcheck-cta,
[data-theme="light"] .ipc-more,
[data-theme="light"] .nav-pill,
.theme-light .glass-card,
.theme-light .page-main-card,
.theme-light .ipcheck-cta,
.theme-light .ipc-more,
.theme-light .nav-pill {
  transition-duration: 0.12s !important;
}

[data-theme="light"] .ipcheck-cta::after,
[data-theme="light"] .ipc-more::after,
.theme-light .ipcheck-cta::after,
.theme-light .ipc-more::after {
  display: none !important;
  content: none !important;
  transition: none !important;
}
