/* 陈老师工作站首页 */

/* 强制全宽：突破主题侧边栏/容器限制，无需手动选模板 */
.chen-homepage {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  left: 0;
  --ch-primary: #1a1a2e;
  --ch-secondary: #16213e;
  --ch-accent: #ffd54a;
  --ch-accent-glow: rgba(255, 213, 74, 0.35);
  --ch-text: #e8e8f0;
  --ch-muted: rgba(232, 232, 240, 0.65);
  --ch-glass: rgba(255, 255, 255, 0.06);
  --ch-border: rgba(255, 213, 74, 0.2);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--ch-text);
  line-height: 1.6;
  overflow-x: hidden;
}
.chen-homepage *,
.chen-homepage *::before,
.chen-homepage *::after { box-sizing: border-box; }

.chen-homepage .ch-container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* ===== HERO ===== */
.chen-homepage .ch-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 20% 50%, #0f3460 0%, transparent 55%),
              radial-gradient(ellipse at 80% 20%, rgba(255, 213, 74, 0.08) 0%, transparent 45%),
              linear-gradient(160deg, #0d0d1a 0%, var(--ch-primary) 40%, var(--ch-secondary) 100%);
  overflow: hidden;
}
.chen-homepage .ch-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.chen-homepage .ch-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,213,74,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,213,74,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.chen-homepage .ch-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 100px 0 80px;
}
.chen-homepage .ch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ch-glass);
  border: 1px solid var(--ch-border);
  font-size: 13px;
  color: var(--ch-accent);
  letter-spacing: 2px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: ch-fade-up 0.8s ease both;
}
.chen-homepage .ch-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ch-accent);
  box-shadow: 0 0 12px var(--ch-accent-glow);
  animation: ch-pulse 2s ease infinite;
}
.chen-homepage .ch-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: 2px;
  animation: ch-fade-up 0.8s 0.1s ease both;
}
/* 金色流光高亮标题：首屏 + 各板块标题通用 */
.chen-homepage .ch-highlight {
  background: linear-gradient(135deg, #ffd54a, #fff8d6, #ffb300, #ffd54a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ch-shimmer 4s linear infinite;
  filter: drop-shadow(0 0 18px rgba(255, 213, 74, 0.45));
}
.chen-homepage .ch-hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--ch-muted);
  margin-bottom: 12px;
  min-height: 1.6em;
  animation: ch-fade-up 0.8s 0.2s ease both;
}
.chen-homepage .ch-type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--ch-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: ch-blink 0.8s step-end infinite;
}
.chen-homepage .ch-hero-desc {
  font-size: 15px;
  color: var(--ch-muted);
  max-width: 480px;
  margin-bottom: 36px;
  animation: ch-fade-up 0.8s 0.3s ease both;
}
.chen-homepage .ch-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: ch-fade-up 0.8s 0.4s ease both;
}
.chen-homepage .ch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.chen-homepage .ch-btn-primary {
  background: linear-gradient(135deg, var(--ch-accent), #ffb300);
  color: var(--ch-primary);
  box-shadow: 0 8px 32px var(--ch-accent-glow);
}
.chen-homepage .ch-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--ch-accent-glow);
  color: var(--ch-primary);
}
.chen-homepage .ch-btn-ghost {
  background: var(--ch-glass);
  color: var(--ch-text);
  border: 1px solid var(--ch-border);
  backdrop-filter: blur(8px);
}
.chen-homepage .ch-btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--ch-accent);
  color: var(--ch-accent);
}
.chen-homepage .ch-hero-visual {
  position: relative;
  animation: ch-fade-up 1s 0.3s ease both;
}
.chen-homepage .ch-hero-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--ch-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--ch-accent-glow);
}
.chen-homepage .ch-hero-img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 213, 74, 0.1));
  z-index: 1;
  pointer-events: none;
}
.chen-homepage .ch-hero-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.chen-homepage .ch-hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: rgba(22, 33, 62, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--ch-border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  animation: ch-float 4s ease-in-out infinite;
}
.chen-homepage .ch-hero-float-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ch-accent);
}
.chen-homepage .ch-hero-float-card strong {
  display: block;
  color: var(--ch-accent);
  font-size: 15px;
}
.chen-homepage .ch-hero-float-card span {
  font-size: 12px;
  color: var(--ch-muted);
}
.chen-homepage .ch-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ch-muted);
  font-size: 12px;
  letter-spacing: 2px;
  animation: ch-fade-up 1s 1s ease both;
  z-index: 2;
}
.chen-homepage .ch-scroll-hint .ch-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--ch-border);
  border-radius: 12px;
  position: relative;
}
.chen-homepage .ch-scroll-hint .ch-mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--ch-accent);
  border-radius: 2px;
  animation: ch-scroll-dot 1.5s ease infinite;
}

/* ===== SECTION COMMON ===== */
.chen-homepage .ch-section {
  padding: 96px 0;
  position: relative;
}
.chen-homepage .ch-section-dark {
  background: var(--ch-primary);
}
.chen-homepage .ch-section-deeper {
  background: linear-gradient(180deg, var(--ch-primary), #0d0d1a);
}
.chen-homepage .ch-section-header {
  text-align: center;
  margin-bottom: 56px;
}
.chen-homepage .ch-section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--ch-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.chen-homepage .ch-section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: 2px;
}
.chen-homepage .ch-section-header p {
  color: var(--ch-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
}
.chen-homepage .ch-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.chen-homepage .ch-reveal.ch-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== DINO ZONE ===== */
.chen-homepage .ch-dino-zone {
  padding: 0;
  background: var(--ch-primary);
}
.chen-homepage .chen-workstation {
  --cw-bg: #1a1a2e;
  --cw-accent: #ffd54a;
  --cw-text: #e8e8f0;
  --cw-sky: #f7f7f7;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cw-bg);
}
.chen-homepage .chen-workstation .cw-marquee-wrap {
  background: linear-gradient(90deg, #16213e, #0f3460, #16213e);
  border-bottom: 2px solid var(--cw-accent);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
}
.chen-homepage .chen-workstation .cw-marquee-wrap::before,
.chen-homepage .chen-workstation .cw-marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.chen-homepage .chen-workstation .cw-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #16213e, transparent);
}
.chen-homepage .chen-workstation .cw-marquee-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, #16213e, transparent);
}
.chen-homepage .chen-workstation .cw-marquee {
  display: flex;
  white-space: nowrap;
  animation: ch-scroll 18s linear infinite;
}
.chen-homepage .chen-workstation .cw-marquee span {
  display: inline-block;
  padding: 0 48px;
  font-size: clamp(16px, 3vw, 22px);
  font-weight: bold;
  color: var(--cw-accent);
  letter-spacing: 4px;
  text-shadow: 0 0 12px rgba(255, 213, 74, 0.4);
}
.chen-homepage .chen-workstation .cw-marquee .cw-dot {
  color: var(--cw-text);
  opacity: 0.5;
  padding: 0 8px;
}
.chen-homepage .chen-workstation .cw-game-wrap {
  background: var(--cw-sky);
  line-height: 0;
}
.chen-homepage .chen-workstation .cw-canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.chen-homepage .chen-workstation .cw-footer {
  padding: 10px 20px 14px;
  text-align: center;
  font-size: 13px;
  color: rgba(232, 232, 240, 0.55);
}
.chen-homepage .chen-workstation .cw-footer strong {
  color: var(--cw-accent);
}

/* ===== ABOUT ===== */
.chen-homepage .ch-about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.chen-homepage .ch-about-photo {
  position: relative;
}
.chen-homepage .ch-about-photo img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--ch-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.chen-homepage .ch-about-ring {
  position: absolute;
  inset: -16px;
  border: 1px solid var(--ch-border);
  border-radius: 28px;
  animation: ch-rotate-slow 20s linear infinite;
}
.chen-homepage .ch-about-ring::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--ch-accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--ch-accent);
}
.chen-homepage .ch-about-content h3 {
  font-size: 28px;
  margin: 0 0 20px;
  color: var(--ch-accent);
}
.chen-homepage .ch-about-content p {
  color: var(--ch-muted);
  margin-bottom: 16px;
  font-size: 15px;
}
.chen-homepage .ch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.chen-homepage .ch-tags span {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--ch-glass);
  border: 1px solid var(--ch-border);
  font-size: 13px;
  color: var(--ch-accent);
}

/* ===== FEATURES ===== */
.chen-homepage .ch-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.chen-homepage .ch-feature-card {
  background: var(--ch-glass);
  border: 1px solid var(--ch-border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.chen-homepage .ch-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--ch-accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.chen-homepage .ch-feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--ch-accent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.chen-homepage .ch-feature-card:hover::before { opacity: 1; }
.chen-homepage .ch-feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}
.chen-homepage .ch-feature-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
.chen-homepage .ch-feature-card p {
  font-size: 13px;
  color: var(--ch-muted);
  margin: 0;
  line-height: 1.7;
}

/* ===== GALLERY ===== */
.chen-homepage .ch-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.chen-homepage .ch-gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ch-border);
  cursor: pointer;
}
.chen-homepage .ch-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.chen-homepage .ch-gallery-item:hover img {
  transform: scale(1.08);
}
.chen-homepage .ch-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.chen-homepage .ch-gallery-item:hover .ch-gallery-overlay { opacity: 1; }
.chen-homepage .ch-gallery-overlay span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ch-accent);
}
.chen-homepage .ch-g1 { grid-column: span 7; grid-row: span 2; min-height: 320px; }
.chen-homepage .ch-g2 { grid-column: span 5; min-height: 152px; }
.chen-homepage .ch-g3 { grid-column: span 5; min-height: 152px; }
.chen-homepage .ch-g4 { grid-column: span 4; min-height: 180px; }
.chen-homepage .ch-g5 { grid-column: span 4; min-height: 180px; }
.chen-homepage .ch-g6 { grid-column: span 4; min-height: 180px; }

/* ===== STATS ===== */
.chen-homepage .ch-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.chen-homepage .ch-stat-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--ch-glass);
  border: 1px solid var(--ch-border);
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.chen-homepage .ch-stat-num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--ch-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.chen-homepage .ch-stat-num[data-suffix]::after {
  content: attr(data-suffix);
  font-size: 0.6em;
}
.chen-homepage .ch-stat-label {
  font-size: 14px;
  color: var(--ch-muted);
  letter-spacing: 1px;
}

/* ===== CTA ===== */
.chen-homepage .ch-cta {
  text-align: center;
  padding: 80px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,213,74,0.12), rgba(15,52,96,0.6));
  border: 1px solid var(--ch-border);
  position: relative;
  overflow: hidden;
}
.chen-homepage .ch-cta::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--ch-accent-glow), transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.chen-homepage .ch-cta h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 16px;
}
.chen-homepage .ch-cta p {
  color: var(--ch-muted);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ===== ANIMATIONS ===== */
@keyframes ch-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ch-shimmer {
  to { background-position: 200% center; }
}
@keyframes ch-blink {
  50% { opacity: 0; }
}
@keyframes ch-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes ch-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ch-scroll-dot {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}
@keyframes ch-rotate-slow {
  to { transform: rotate(360deg); }
}
@keyframes ch-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .chen-homepage .ch-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 80px 0 100px;
  }
  .chen-homepage .ch-hero-desc { margin-left: auto; margin-right: auto; }
  .chen-homepage .ch-hero-btns { justify-content: center; }
  .chen-homepage .ch-hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .chen-homepage .ch-hero-float-card { left: 50%; transform: translateX(-50%); bottom: -16px; }
  .chen-homepage .ch-about-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .chen-homepage .ch-features-grid { grid-template-columns: repeat(2, 1fr); }
  .chen-homepage .ch-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .chen-homepage .ch-g1, .chen-homepage .ch-g2, .chen-homepage .ch-g3,
  .chen-homepage .ch-g4, .chen-homepage .ch-g5, .chen-homepage .ch-g6 {
    grid-column: span 6;
    min-height: 200px;
  }
}
@media (max-width: 560px) {
  .chen-homepage .ch-features-grid,
  .chen-homepage .ch-stats-grid { grid-template-columns: 1fr; }
  .chen-homepage .ch-g1, .chen-homepage .ch-g2, .chen-homepage .ch-g3,
  .chen-homepage .ch-g4, .chen-homepage .ch-g5, .chen-homepage .ch-g6 {
    grid-column: span 12;
  }
  .chen-homepage .ch-section { padding: 64px 0; }
}

/* 首页激活时：隐藏主题默认标题、去掉多余内边距 */
body.chen-homepage-active .entry-title,
body.chen-homepage-active .page-title,
body.chen-homepage-active .wp-block-post-title,
body.chen-homepage-active .ast-single-post-order .entry-header {
  display: none !important;
}
body.chen-homepage-active .entry-content,
body.chen-homepage-active .wp-block-post-content {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}
body.chen-homepage-active .site-content .ast-container,
body.chen-homepage-active .site-content .container,
body.chen-homepage-active .content-area {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
