/* ============================================
   ISAAC GLOBAL DARK THEME
   Unified dark tech style across all pages
   ============================================ */

:root {
  --isaac-bg-deep: #f5f4ed;
  --isaac-bg-card: #faf9f5;
  --isaac-bg-card-hover: #efede4;
  --isaac-accent: #c96442;
  --isaac-accent-dim: #d97757;
  --isaac-accent-glow: rgba(201, 100, 66, 0.12);
  --isaac-text-primary: #141413;
  --isaac-text-secondary: #5e5d59;
  --isaac-text-muted: #87867f;
  --isaac-border: #e8e6dc;
  --isaac-gradient: linear-gradient(135deg, #c96442 0%, #d97757 100%);
}

/* === GLOBAL DARK BASE === */
body.isaac-dark {
  background: var(--isaac-bg-deep) !important;
  color: var(--isaac-text-primary) !important;
  font-family: 'Noto Sans SC', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.isaac-dark .site,
body.isaac-dark #page,
body.isaac-dark .wp-site-blocks {
  background: var(--isaac-bg-deep) !important;
}

/* === HEADER / NAV === */
body.isaac-dark header,
body.isaac-dark .site-header {
  background: rgba(245, 244, 237, 0.85) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--isaac-border) !important;
  z-index: 100 !important;
}

body.isaac-dark header *,
body.isaac-dark .site-header * {
  color: var(--isaac-text-primary) !important;
}

body.isaac-dark header a:hover,
body.isaac-dark .site-header a:hover {
  color: var(--isaac-accent) !important;
}

/* === COVER BLOCK (Hero) === */
body.isaac-dark .wp-block-cover__background {
  background-color: var(--isaac-bg-deep) !important;
}

/* === HEADINGS === */
body.isaac-dark h1:not(.has-text-color),
body.isaac-dark h2:not(.has-text-color),
body.isaac-dark h3:not(.has-text-color),
body.isaac-dark h4:not(.has-text-color) {
  color: var(--isaac-text-primary) !important;
}

/* === PARAGRAPHS & TEXT === */
body.isaac-dark p:not(.has-text-color),
body.isaac-dark .entry-content,
body.isaac-dark .has-contrast-color {
  color: var(--isaac-text-secondary) !important;
}

/* === CARD BLOCKS (the six dimension cards) === */
body.isaac-dark .wp-block-group[style*="background-color:#f8f9fa"],
body.isaac-dark .wp-block-group[style*="background-color: #f8f9fa"] {
  background-color: var(--isaac-bg-card) !important;
  border: 1px solid var(--isaac-border) !important;
  border-radius: 8px !important;
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease !important;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

body.isaac-dark .wp-block-group[style*="background-color:#f8f9fa"]:hover,
body.isaac-dark .wp-block-group[style*="background-color: #f8f9fa"]:hover {
  background-color: var(--isaac-bg-card-hover) !important;
  border-color: rgba(201, 100, 66, 0.3) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201, 100, 66, 0.08);
}

/* Card text */
body.isaac-dark .wp-block-group[style*="background-color:#f8f9fa"] p,
body.isaac-dark .wp-block-group[style*="background-color: #f8f9fa"] p {
  color: var(--isaac-text-secondary) !important;
}

/* Card link matches heading color */
body.isaac-dark .wp-block-group[style*="background-color:#f8f9fa"] h3.has-text-color a,
body.isaac-dark .wp-block-group[style*="background-color: #f8f9fa"] h3.has-text-color a {
  color: inherit !important;
  text-decoration: none !important;
}

/* === DARK SECTION BLOCKS (like A股行情工具) === */
body.isaac-dark .wp-block-group[style*="background-color:#161b22"] {
  background-color: var(--isaac-bg-card) !important;
  border: 1px solid var(--isaac-border) !important;
}

/* === BUTTONS === */
body.isaac-dark .wp-block-button__link {
  transition: all 0.3s ease !important;
}

body.isaac-dark .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--isaac-accent-glow);
}

body.isaac-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--isaac-accent) !important;
  color: var(--isaac-bg-deep) !important;
  font-weight: 700 !important;
}

body.isaac-dark .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: var(--isaac-accent) !important;
  color: var(--isaac-accent) !important;
  background: transparent !important;
}

body.isaac-dark .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(201, 100, 66, 0.1) !important;
}

/* === LINKS === */
body.isaac-dark a {
  color: var(--isaac-accent) !important;
  transition: all 0.3s ease;
}

body.isaac-dark a:hover {
  text-shadow: 0 0 10px var(--isaac-accent-glow);
}

/* Keep colored heading links their original color */
body.isaac-dark h3.has-text-color a {
  color: inherit !important;
}

/* === BLOCKQUOTE === */
body.isaac-dark blockquote {
  border-left-color: var(--isaac-accent) !important;
  color: var(--isaac-text-secondary) !important;
  font-style: italic;
}

body.isaac-dark blockquote cite {
  color: var(--isaac-text-muted) !important;
}

/* === FOOTER === */
body.isaac-dark footer,
body.isaac-dark .site-footer {
  background: var(--isaac-bg-deep) !important;
  border-top: 1px solid var(--isaac-border) !important;
  color: var(--isaac-text-muted) !important;
}

/* === SEPARATOR / HR === */
body.isaac-dark hr,
body.isaac-dark .wp-block-separator {
  border-color: var(--isaac-border) !important;
  opacity: 1;
}

/* === QUERY LOOP / POST CARDS === */
body.isaac-dark .wp-block-post {
  background: var(--isaac-bg-card) !important;
  border: 1px solid var(--isaac-border) !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  transition: all 0.4s ease !important;
}

body.isaac-dark .wp-block-post:hover {
  border-color: rgba(201, 100, 66, 0.3) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 100, 66, 0.06);
}

body.isaac-dark .wp-block-post-title a {
  color: var(--isaac-text-primary) !important;
}

body.isaac-dark .wp-block-post-excerpt {
  color: var(--isaac-text-secondary) !important;
}

body.isaac-dark .wp-block-post-date {
  color: var(--isaac-text-muted) !important;
}

/* === SCROLL REVEAL ANIMATIONS === */
.isaac-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.isaac-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.isaac-reveal-delay-1 { transition-delay: 0.1s; }
.isaac-reveal-delay-2 { transition-delay: 0.2s; }
.isaac-reveal-delay-3 { transition-delay: 0.3s; }

/* === GRID BACKGROUND (subtle) === */
body.isaac-dark::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 100, 66, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 100, 66, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

body.isaac-dark > * {
  position: relative;
  z-index: 1;
}

/* === GLOW ORB ANIMATION === */
body.isaac-dark::after {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(201, 100, 66, 0.04);
  filter: blur(120px);
  top: -150px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
  animation: isaacOrbFloat 20s ease-in-out infinite;
}

@keyframes isaacOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

/* === SMOOTH SCROLLING === */
html {
  scroll-behavior: smooth;
}

/* === SELECTION COLOR === */
body.isaac-dark ::selection {
  background: rgba(201, 100, 66, 0.25);
  color: #141413;
}

/* === RESPONSIVE / MOBILE === */
@media (max-width: 781px) {
  body.isaac-dark::after {
    width: 300px;
    height: 300px;
  }

  /* Hero section */
  body.isaac-dark .wp-block-cover {
    min-height: 70vh !important;
    padding: 2rem 1.2rem !important;
  }

  body.isaac-dark .wp-block-cover h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
    line-height: 1.3 !important;
  }

  body.isaac-dark .wp-block-cover p {
    font-size: 0.95rem !important;
  }

  /* Buttons stack on mobile */
  body.isaac-dark .wp-block-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
  }

  body.isaac-dark .wp-block-button {
    width: 100% !important;
  }

  body.isaac-dark .wp-block-button__link {
    width: 100% !important;
    text-align: center !important;
    padding: 0.9rem 1.5rem !important;
    font-size: 0.95rem !important;
  }

  /* Cards stack vertically with spacing */
  body.isaac-dark .wp-block-columns {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  body.isaac-dark .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }

  /* Card inner padding */
  body.isaac-dark .wp-block-group[style*="background-color:#f8f9fa"],
  body.isaac-dark .wp-block-group[style*="background-color: #f8f9fa"] {
    padding: 1.2rem !important;
  }

  body.isaac-dark .wp-block-group[style*="background-color:#f8f9fa"] h3,
  body.isaac-dark .wp-block-group[style*="background-color: #f8f9fa"] h3 {
    font-size: 1.1rem !important;
  }

  body.isaac-dark .wp-block-group[style*="background-color:#f8f9fa"] p,
  body.isaac-dark .wp-block-group[style*="background-color: #f8f9fa"] p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  /* Section headings */
  body.isaac-dark h2 {
    font-size: clamp(1.2rem, 4vw, 1.6rem) !important;
    padding: 0 1rem !important;
  }

  /* Content padding */
  body.isaac-dark .alignwide {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* A股工具 card */
  body.isaac-dark .wp-block-group[style*="background-color:#161b22"] {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    padding: 1.5rem 1.2rem !important;
    border-radius: 8px !important;
  }

  /* Quote section */
  body.isaac-dark blockquote {
    font-size: 1rem !important;
    padding: 0.8rem 1rem !important;
  }

  /* Post cards */
  body.isaac-dark .wp-block-post {
    padding: 1.2rem !important;
  }

  /* Footer spacing */
  body.isaac-dark footer {
    padding: 1.5rem 1rem !important;
  }

  /* Reduce hover lift on mobile (touch) */
  body.isaac-dark .wp-block-group[style*="background-color:#f8f9fa"]:hover,
  body.isaac-dark .wp-block-group[style*="background-color: #f8f9fa"]:hover {
    transform: none;
  }

  /* Grid background smaller on mobile */
  body.isaac-dark::before {
    background-size: 40px 40px;
  }
}

/* === TOP BAR (Login + Recent Posts) === */
.isaac-topbar {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 200;
}

.isaac-topbar-item {
  position: relative;
}

.isaac-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(201, 100, 66, 0.08);
  border: 1px solid rgba(201, 100, 66, 0.2);
  border-radius: 6px;
  color: var(--isaac-accent) !important;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.isaac-topbar-btn:hover {
  background: rgba(201, 100, 66, 0.15);
  border-color: rgba(201, 100, 66, 0.4);
  box-shadow: 0 0 15px rgba(201, 100, 66, 0.1);
}

.isaac-topbar-btn svg {
  flex-shrink: 0;
}

/* Dropdown Panel */
.isaac-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 70vh;
  background: #faf9f5;
  border: 1px solid rgba(201, 100, 66, 0.15);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(201, 100, 66, 0.05);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
}

.isaac-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.isaac-panel-header {
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff !important;
  border-bottom: 1px solid rgba(201, 100, 66, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(201, 100, 66, 0.03);
}


.isaac-post-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--isaac-text-muted) !important;
  background: rgba(201, 100, 66, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.isaac-panel-loading {
  padding: 2rem;
  text-align: center;
  color: var(--isaac-text-muted) !important;
  font-size: 0.85rem;
}

/* Posts List */
.isaac-posts-list {
  overflow-y: auto;
  max-height: 55vh;
}

.isaac-post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid rgba(232, 230, 220, 0.5);
  color: var(--isaac-text-secondary) !important;
  text-decoration: none !important;
  transition: background 0.2s ease;
  gap: 0.8rem;
}

.isaac-post-item:hover {
  background: var(--isaac-bg-card-hover);
  color: var(--isaac-accent) !important;
}

.isaac-post-title {
  font-size: 0.88rem;
  line-height: 1.4;
  flex: 1;
  color: inherit !important;
}

.isaac-post-date {
  font-size: 0.72rem;
  color: var(--isaac-text-muted) !important;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

/* === ULTIMATE MEMBER DARK THEME === */
body.isaac-dark .um-form,
body.isaac-dark .um {
  background: var(--isaac-bg-card) !important;
  border: 1px solid var(--isaac-border) !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  max-width: 480px;
  margin: 2rem auto !important;
}

body.isaac-dark .um .um-field-label,
body.isaac-dark .um .um-field-label label {
  color: var(--isaac-text-primary) !important;
  font-weight: 500;
}

body.isaac-dark .um input[type="text"],
body.isaac-dark .um input[type="password"],
body.isaac-dark .um input[type="email"],
body.isaac-dark .um textarea,
body.isaac-dark .um select {
  background: #faf9f5 !important;
  border: 1px solid #e8e6dc !important;
  border-radius: 8px !important;
  color: #141413 !important;
  font-size: 0.95rem !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
}

body.isaac-dark .um input[type="text"]:focus,
body.isaac-dark .um input[type="password"]:focus,
body.isaac-dark .um input[type="email"]:focus,
body.isaac-dark .um textarea:focus {
  border-color: var(--isaac-accent) !important;
  box-shadow: 0 0 12px rgba(201, 100, 66, 0.15) !important;
  background: #faf9f5 !important;
  outline: none !important;
}

body.isaac-dark .um input::placeholder {
  color: #87867f !important;
}

/* UM Submit buttons */
body.isaac-dark .um .um-button,
body.isaac-dark .um input[type="submit"],
body.isaac-dark .um a.um-button {
  background: linear-gradient(135deg, #c96442, #d97757) !important;
  color: #f5f4ed !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.8rem 2rem !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none !important;
}

body.isaac-dark .um .um-button:hover,
body.isaac-dark .um input[type="submit"]:hover,
body.isaac-dark .um a.um-button:hover {
  box-shadow: 0 4px 20px rgba(201, 100, 66, 0.3) !important;
  transform: translateY(-1px);
}

/* UM links */
body.isaac-dark .um a:not(.um-button) {
  color: var(--isaac-accent) !important;
}

/* UM notice/error messages */
body.isaac-dark .um .um-notice {
  background: rgba(201, 100, 66, 0.08) !important;
  border: 1px solid rgba(201, 100, 66, 0.2) !important;
  color: var(--isaac-text-primary) !important;
  border-radius: 8px !important;
}

body.isaac-dark .um .um-notice.err {
  background: rgba(255, 68, 68, 0.08) !important;
  border-color: rgba(255, 68, 68, 0.3) !important;
}

body.isaac-dark .um .um-notice.success {
  background: rgba(201, 100, 66, 0.08) !important;
  border-color: rgba(201, 100, 66, 0.3) !important;
}

/* UM header/title */
body.isaac-dark .um .um-header,
body.isaac-dark .um-form .um-header {
  color: var(--isaac-text-primary) !important;
}

/* UM icons */
body.isaac-dark .um .um-field-icon i,
body.isaac-dark .um .um-icon {
  color: var(--isaac-text-muted) !important;
}

/* UM profile page */
body.isaac-dark .um-profile .um-profile-headericon a,
body.isaac-dark .um-profile .um-profile-photo {
  border-color: var(--isaac-border) !important;
}

body.isaac-dark .um-profile .um-profile-meta {
  color: var(--isaac-text-secondary) !important;
}

body.isaac-dark .um-profile .um-main-meta {
  color: var(--isaac-text-primary) !important;
}

body.isaac-dark .um-profile .um-profile-nav {
  background: var(--isaac-bg-deep) !important;
  border-color: var(--isaac-border) !important;
}

body.isaac-dark .um-profile .um-profile-nav-item a {
  color: var(--isaac-text-secondary) !important;
}

body.isaac-dark .um-profile .um-profile-nav-item.active a {
  color: var(--isaac-accent) !important;
  border-bottom-color: var(--isaac-accent) !important;
}

/* UM account page */
body.isaac-dark .um-account .um-account-side li a {
  color: var(--isaac-text-secondary) !important;
}

body.isaac-dark .um-account .um-account-side li.um-account-tab-active a {
  color: var(--isaac-accent) !important;
}

body.isaac-dark .um-account .um-account-main {
  background: var(--isaac-bg-card) !important;
}

/* UM members directory */
body.isaac-dark .um-members .um-member {
  background: var(--isaac-bg-card) !important;
  border: 1px solid var(--isaac-border) !important;
  border-radius: 8px !important;
}

body.isaac-dark .um-members .um-member:hover {
  border-color: rgba(201, 100, 66, 0.3) !important;
}

body.isaac-dark .um-members .um-member-name a {
  color: var(--isaac-text-primary) !important;
}

/* UM password reset */
body.isaac-dark .um-password .um-col-alt {
  background: var(--isaac-bg-card) !important;
}

/* UM checkbox/radio */
body.isaac-dark .um .um-field-checkbox label,
body.isaac-dark .um .um-field-radio label {
  color: var(--isaac-text-secondary) !important;
}

/* UM dropdown */
body.isaac-dark .um .select2-container .select2-selection {
  background: #faf9f5 !important;
  border-color: #e8e6dc !important;
  color: #141413 !important;
}

body.isaac-dark .select2-dropdown {
  background: #faf9f5 !important;
  border-color: #e8e6dc !important;
}

body.isaac-dark .select2-results__option {
  color: var(--isaac-text-secondary) !important;
}

body.isaac-dark .select2-results__option--highlighted {
  background: rgba(201, 100, 66, 0.1) !important;
  color: var(--isaac-accent) !important;
}

/* Posts list scrollbar */
.isaac-posts-list::-webkit-scrollbar {
  width: 4px;
}
.isaac-posts-list::-webkit-scrollbar-track {
  background: transparent;
}
.isaac-posts-list::-webkit-scrollbar-thumb {
  background: var(--isaac-border);
  border-radius: 2px;
}

/* === COMMENT SECTION DARK THEME === */
body.isaac-dark .comments-area,
body.isaac-dark .comment-respond {
  background: var(--isaac-bg-card) !important;
  border: 1px solid var(--isaac-border) !important;
  border-radius: 8px !important;
  padding: 2rem !important;
  margin-top: 2rem !important;
}

body.isaac-dark .comment-form input,
body.isaac-dark .comment-form textarea {
  background: var(--isaac-bg-deep) !important;
  border: 1px solid var(--isaac-border) !important;
  border-radius: 6px !important;
  color: var(--isaac-text-primary) !important;
  padding: 0.7rem 1rem !important;
}

body.isaac-dark .comment-form input:focus,
body.isaac-dark .comment-form textarea:focus {
  border-color: var(--isaac-accent) !important;
}

body.isaac-dark .comment-form .submit,
body.isaac-dark .form-submit input[type="submit"] {
  background: var(--isaac-accent) !important;
  color: var(--isaac-bg-deep) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.7rem 2rem !important;
  font-weight: 700 !important;
  cursor: pointer;
}

body.isaac-dark .comment-list .comment {
  border-bottom: 1px solid var(--isaac-border) !important;
  padding: 1rem 0 !important;
}

body.isaac-dark .comment-author {
  color: var(--isaac-accent) !important;
}

body.isaac-dark .comment-content p {
  color: var(--isaac-text-secondary) !important;
}

body.isaac-dark .comment-metadata,
body.isaac-dark .comment-metadata a {
  color: var(--isaac-text-muted) !important;
  font-size: 0.8rem;
}

/* === MOBILE TOPBAR === */
@media (max-width: 781px) {
  .isaac-topbar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    background: rgba(245, 244, 237, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--isaac-border);
    padding: 0.6rem 1rem;
    justify-content: center;
    gap: 0.8rem;
    z-index: 9999;
  }

  .isaac-topbar-btn {
    flex: 1;
    justify-content: center;
    padding: 0.7rem 0.5rem;
    font-size: 0.8rem;
  }

  .isaac-panel {
    position: fixed;
    bottom: 52px;
    top: auto;
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    max-height: 60vh;
    transform: translateY(8px);
  }

  .isaac-panel.is-open {
    transform: translateY(0);
  }

  /* Add bottom padding to page content so topbar doesn't cover it */
  body.isaac-dark {
    padding-bottom: 60px !important;
  }
}

/* === SCROLLBAR === */
body.isaac-dark ::-webkit-scrollbar {
  width: 6px;
}
body.isaac-dark ::-webkit-scrollbar-track {
  background: var(--isaac-bg-deep);
}
body.isaac-dark ::-webkit-scrollbar-thumb {
  background: var(--isaac-border);
  border-radius: 3px;
}
body.isaac-dark ::-webkit-scrollbar-thumb:hover {
  background: var(--isaac-accent-dim);
}

/* ============================================
   HOMEPAGE RENOVATION - DAN FRAMEWORK STYLES
   ============================================ */

/* === EYEBROW TEXT === */
.isaac-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--isaac-accent) !important;
  font-weight: 500;
  margin-bottom: 0.5rem !important;
  opacity: 0.9;
}

/* === CREDIBILITY BAR === */
.isaac-credibility-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  background: rgba(250, 249, 245, 0.9) !important;
  border-top: 1px solid var(--isaac-border);
  border-bottom: 1px solid var(--isaac-border);
}

.isaac-credibility-bar p {
  font-size: 0.85rem !important;
  color: var(--isaac-text-secondary) !important;
  white-space: nowrap;
  margin: 0 !important;
}

.isaac-credibility-bar strong {
  color: var(--isaac-accent) !important;
  font-weight: 700;
}

/* === PAIN POINTS LIST === */
.isaac-pain-section p {
  position: relative;
  padding-left: 1.5rem !important;
  font-size: 1.05rem !important;
  color: var(--isaac-text-secondary) !important;
  border-bottom: 1px solid rgba(232, 230, 220, 0.5);
  padding-bottom: 0.8rem !important;
  margin-bottom: 0.8rem !important;
}

.isaac-pain-section p::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--isaac-accent);
  font-weight: 700;
}

.isaac-pain-section .isaac-pain-closer {
  padding-left: 0 !important;
  border-bottom: none;
  color: var(--isaac-accent) !important;
  font-weight: 600;
  font-size: 1.1rem !important;
  margin-top: 1.5rem !important;
}

.isaac-pain-section .isaac-pain-closer::before {
  display: none;
}

/* === STORY SECTION === */
.isaac-story-section .wp-block-columns {
  gap: 3rem !important;
}

.isaac-pullquote {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--isaac-accent) !important;
  line-height: 1.4 !important;
  border-left: 3px solid var(--isaac-accent) !important;
  padding-left: 1.5rem !important;
  position: static;

}

/* === MECHANISM CARDS === */
.isaac-mechanism-cards .wp-block-column {
  background: var(--isaac-bg-card) !important;
  border: 1px solid var(--isaac-border) !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  transition: all 0.4s ease !important;
}

.isaac-mechanism-cards .wp-block-column:hover {
  border-color: rgba(201, 100, 66, 0.3) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201, 100, 66, 0.08);
}

.isaac-mechanism-cards .wp-block-column h3 {
  color: var(--isaac-accent) !important;
  font-size: 1.15rem !important;
  margin-bottom: 0.8rem !important;
}

/* === OFFER CARDS (6-grid) === */
.isaac-offer-cards .wp-block-group[style*="background-color"] h3 {
  font-size: 1.1rem !important;
}

.isaac-card-cta {
  display: inline-block !important;
  margin-top: 0.8rem !important;
  font-size: 0.85rem !important;
  color: var(--isaac-accent) !important;
  font-weight: 600 !important;
  transition: transform 0.2s ease;
}

.isaac-card-cta:hover {
  transform: translateX(4px);
}

/* === PRODUCT HIGHLIGHT (A股工具) === */
.isaac-product-highlight {
  text-align: center;
}

.isaac-product-highlight .wp-block-columns {
  justify-content: center !important;
}

.isaac-product-sub {
  color: var(--isaac-text-muted) !important;
  font-size: 0.95rem !important;
  margin-top: 0.5rem !important;
}

/* === LEAD MAGNET === */
.isaac-lead-magnet {
  background: rgba(201, 100, 66, 0.03) !important;
  border: 1px solid rgba(201, 100, 66, 0.15) !important;
  border-radius: 16px !important;
  padding: 3rem !important;
  text-align: center;
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.isaac-lead-magnet h2 {
  color: var(--isaac-text-primary) !important;
  margin-bottom: 0.5rem !important;
}

.isaac-lead-magnet p {
  color: var(--isaac-text-secondary) !important;
}

.isaac-lead-magnet .isaac-checklist p {
  text-align: left !important;
  padding-left: 0.5rem !important;
  font-size: 0.95rem !important;
}

.isaac-lead-form {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.isaac-lead-form input[type="email"] {
  background: var(--isaac-bg-deep) !important;
  border: 1px solid var(--isaac-border) !important;
  border-radius: 8px !important;
  color: #fff !important;
  padding: 0.9rem 1.2rem !important;
  font-size: 1rem !important;
  width: 300px;
  max-width: 100%;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.isaac-lead-form input[type="email"]:focus {
  border-color: var(--isaac-accent) !important;
  box-shadow: 0 0 15px rgba(201, 100, 66, 0.1) !important;
}

.isaac-lead-form input[type="email"]::placeholder {
  color: #87867f;
}

.isaac-lead-form button[type="submit"] {
  background: linear-gradient(135deg, #c96442, #d97757) !important;
  color: #f5f4ed !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.9rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  font-family: 'Noto Sans SC', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.isaac-lead-form button[type="submit"]:hover {
  box-shadow: 0 4px 20px rgba(201, 100, 66, 0.3) !important;
  transform: translateY(-1px);
}

.isaac-lead-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.isaac-lead-small {
  font-size: 0.78rem !important;
  color: var(--isaac-text-muted) !important;
  margin-top: 0.8rem !important;
}

.isaac-lead-msg {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.isaac-lead-msg.success {
  color: var(--isaac-accent) !important;
}

.isaac-lead-msg.error {
  color: #ff4444 !important;
}

/* === CHOICE CTA === */
.isaac-choice-section .wp-block-columns {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.isaac-choice-left {
  padding: 2rem !important;
  color: var(--isaac-text-muted) !important;
  border: 1px solid var(--isaac-border) !important;
  border-radius: 12px !important;
  opacity: 0.6;
  background: transparent !important;
}

.isaac-choice-left p {
  color: var(--isaac-text-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
}

.isaac-choice-right {
  padding: 2rem !important;
  border: 1px solid rgba(201, 100, 66, 0.3) !important;
  border-radius: 12px !important;
  background: rgba(201, 100, 66, 0.03) !important;
}

.isaac-choice-right p {
  color: var(--isaac-text-secondary) !important;
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
}

/* === CLOSING QUOTE === */
.isaac-closing-quote {
  text-align: center !important;
  padding: 4rem 2rem !important;
}

.isaac-closing-quote blockquote {
  border-left: none !important;
  font-size: 1.6rem !important;
  font-style: italic !important;
  color: var(--isaac-text-primary) !important;
  max-width: 600px;
  margin: 0 auto !important;
  padding: 0 !important;
}

.isaac-closing-quote .isaac-addendum {
  margin-top: 1.5rem !important;
  font-size: 0.95rem !important;
  color: var(--isaac-text-muted) !important;
  font-style: normal !important;
}

/* === SECTION SPACING === */
.isaac-section {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.isaac-section-alt {
  background: rgba(201, 100, 66, 0.015) !important;
}

/* === HOMEPAGE MOBILE === */
@media (max-width: 781px) {
  .isaac-credibility-bar {
    gap: 1rem;
    padding: 1rem;
  }

  .isaac-credibility-bar p {
    font-size: 0.75rem !important;
    white-space: normal;
    text-align: center;
  }

  .isaac-pullquote {
    position: static !important;
    font-size: 1.2rem !important;
    margin-top: 1.5rem !important;
  }

  .isaac-mechanism-cards .wp-block-column {
    padding: 1.5rem !important;
  }

  .isaac-lead-magnet {
    padding: 2rem 1.5rem !important;
  }

  .isaac-lead-form input[type="email"] {
    width: 100%;
  }

  .isaac-choice-section .wp-block-columns {
    flex-direction: column !important;
  }

  .isaac-closing-quote blockquote {
    font-size: 1.2rem !important;
  }

  .isaac-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
}
/* === REGISTRATION SECTION === */
.isaac-register-section {
  max-width: 640px;
  margin: 3rem auto;
  padding: 3rem 2.5rem;
  background: linear-gradient(145deg, #0f1020, #0a0b18);
  border: 1px solid #1e1e3a;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.isaac-register-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--isaac-accent), #d97757, var(--isaac-accent));
  opacity: 0.7;
}
.isaac-register-section::after {
  content: '';
  position: absolute;
  top: -60%; left: -30%;
  width: 160%; height: 160%;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 100, 66, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.isaac-register-inner {
  position: relative;
  z-index: 1;
}
.isaac-register-title {
  text-align: center;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 0.5rem !important;
  letter-spacing: -0.02em;
}
.isaac-register-sub {
  text-align: center;
  color: #5e5d59 !important;
  font-size: 0.95rem !important;
  margin: 0 0 1.8rem !important;
}
.isaac-register-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1.2rem;
  background: rgba(201, 100, 66, 0.03);
  border: 1px solid rgba(201, 100, 66, 0.08);
  border-radius: 12px;
}
.isaac-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #c0c0d0 !important;
}
.isaac-benefit-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.isaac-register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.isaac-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.isaac-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.isaac-form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5e5d59 !important;
  letter-spacing: 0.03em;
}
.isaac-register-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #faf9f5 !important;
  border: 1px solid #e8e6dc !important;
  border-radius: 10px;
  color: #141413 !important;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
  font-family: inherit;
}
.isaac-register-form input:focus {
  border-color: var(--isaac-accent) !important;
  box-shadow: 0 0 16px rgba(201, 100, 66, 0.12);
  background: #faf9f5 !important;
}
.isaac-register-form input::placeholder {
  color: #87867f;
}
.isaac-register-btn {
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #c96442, #d97757) !important;
  color: #f5f4ed !important;
  border: none !important;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  letter-spacing: 0.02em;
}
.isaac-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 100, 66, 0.25);
}
.isaac-register-btn:active {
  transform: translateY(0);
}
.isaac-register-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.isaac-register-msg {
  text-align: center;
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-top: 0.3rem;
}
.isaac-register-msg.success { color: #22c55e; }
.isaac-register-msg.error { color: #ef4444; }
.isaac-register-login {
  text-align: center;
  font-size: 0.85rem;
  color: #666 !important;
  margin-top: 0.5rem !important;
}
.isaac-register-login a {
  color: var(--isaac-accent) !important;
  text-decoration: none;
  font-weight: 600;
}
/* 已登录时隐藏注册区 */
body.logged-in .isaac-register-section {
  display: none;
}

@media (max-width: 560px) {
  .isaac-register-section {
    margin: 2rem 1rem;
    padding: 2rem 1.2rem;
  }
  .isaac-form-row {
    grid-template-columns: 1fr;
  }
  .isaac-register-benefits {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   CLAUDE SERIF OVERRIDE (injected by recolor)
   ============================================ */
body.isaac-dark h1,
body.isaac-dark h2,
body.isaac-dark h3,
body.isaac-dark h4,
body.isaac-dark h5,
body.isaac-dark h6,
body.isaac-dark .wp-block-heading {
  font-family: Georgia, "Times New Roman", Times, serif !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  color: var(--isaac-text-primary) !important;
}
body.isaac-dark blockquote,
body.isaac-dark blockquote p {
  font-family: Georgia, "Times New Roman", Times, serif !important;
  color: var(--isaac-text-primary) !important;
}
