/* 全局排版与基础组件 */
body {
  background: #fff;
  /* 取消父主题对 body 的 640px 收窄，允许容器生效 */
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

a { color: var(--brand-accent); text-decoration: none; }
a:hover { color: #0f5bd7; }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

/* 桌面端：一般 section 内的容器采用 80% 版心宽度 */
@media (min-width: 1025px) {
  .section > .container {
    width: 80%;
    max-width: none; /* 以百分比为准 */
  }
  /* 限制该模块的 section 本体宽度到 80%，背景不再铺满 */
  .section.texture-dots.arke-capabilities {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  background: var(--brand-accent);
  color: #fff;
  font-size: var(--font-size-sm);
}
.btn.btn-secondary { background: #111; }
.btn:hover { filter: brightness(1.1); }

/* 邀请码门禁样式 */
.invite-gate { display:flex; align-items:center; justify-content:center; padding: var(--space-6) 0; }
.invite-panel {
  width: min(680px, 92vw);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 1px 0 rgba(2,6,23,0.04), 0 8px 18px rgba(2,6,23,0.04);
  padding: var(--space-3);
  text-align: center;
}
.invite-title { margin: 0 0 var(--space-2); color: var(--brand-primary); }
.invite-hint { margin: 0 0 var(--space-2); color: var(--text-muted); }
.invite-form { display:flex; align-items:center; justify-content:center; gap: 10px; }
.invite-input {
  width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
}
.invite-submit { padding: 10px 16px; border-radius: var(--radius-sm); background: var(--brand-accent); color: #fff; border: none; cursor: pointer; }
.invite-submit[disabled] { opacity: .6; cursor: not-allowed; }
.invite-feedback { margin-top: var(--space-1); font-size: var(--font-size-sm); color: var(--text-muted); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width: 640px) {
  .invite-form { flex-direction: column; }
  .invite-input { width: 100%; }
}

/* Hero 动态背景（Heidrick 风格简化） */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 54vh;
  display: flex;
  align-items: center;
}
.full-bleed {
  /* 让区块在主题的内容容器中仍然满屏铺开 */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  /* 防止出现细微的左右白边 */
  overflow-x: clip;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  /* 交由 .hero-bg 统一管理背景，避免与上层混合产生分割感 */
  background: none;
}

/* 首页头部动画背景：柔和蓝紫渐变 + 波纹 + 点阵 */
.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 无接缝的对角动画渐变 + 轻柔光斑 */
  background-image:
    radial-gradient(120% 80% at 20% 70%, rgba(128,160,255,0.35) 0%, rgba(128,160,255,0.0) 60%),
    radial-gradient(120% 80% at 85% 10%, rgba(186,150,255,0.30) 0%, rgba(186,150,255,0.0) 65%),
    linear-gradient(135deg, #e8d8ff 0%, #d6e4ff 50%, #e8f2ff 100%);
  background-size: auto, auto, 260% 260%;
  background-position: 0 0, 0 0, 0% 50%;
  animation: gradientShift 26s ease-in-out infinite;
  will-change: background-position;
  contain: paint;
}

/* 竖杠覆盖层：柔和软混合，轻缓漂移以掩盖分界线 */
.hero .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,0.18) 0px, rgba(255,255,255,0.18) 2px, rgba(255,255,255,0.00) 2px, rgba(255,255,255,0.00) 60px),
    repeating-linear-gradient(to right, rgba(11,31,63,0.06) 0px, rgba(11,31,63,0.06) 1px, transparent 1px, transparent 120px);
  background-size: 120px 100%, 240px 100%;
  background-position: 0 0, 0 0;
  mix-blend-mode: soft-light;
  opacity: 0.92;
  animation: barsDrift 20s linear infinite;
  will-change: background-position;
  contain: paint;
}

/* 轻微漂移，模仿官网头部的柔缓动效 */
@keyframes gradientShift {
  0%   { background-position: 0 0, 0 0,   0% 50%; }
  50%  { background-position: 0 0, 0 0, 100% 50%; }
  100% { background-position: 0 0, 0 0,   0% 50%; }
}

/* ---- Article Reactions ---- */
.arke-reactions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.35));
  backdrop-filter: blur(6px);
}
.arke-reaction-btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.arke-reaction-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.arke-reaction-btn.active { background: linear-gradient(180deg, #eef3ff, #e8f0ff); border-color: rgba(64, 100, 255, 0.35); }
.arke-reaction-counts { color: rgba(0,0,0,0.55); font-size: 13px; }

@keyframes barsDrift {
  0%   { background-position: 0px 0px, 0px 0px; }
  50%  { background-position: 240px 0px, 120px 0px; }
  100% { background-position: 0px 0px, 0px 0px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg::after { animation: none; }
}

/* 适配：减少动效时关闭动画 */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg { animation: none; }
}
.hero .content { position: relative; z-index: 2; }
.hero h1 { font-size: 42px; line-height: 1.2; margin-bottom: var(--space-3); color: var(--brand-primary); }
.hero p { font-size: 14px; color: var(--text-muted); max-width: 720px; }
.hero .actions { margin-top: var(--space-3); }

/* 左侧插画占位（Teamtailor 风格简化） */
.illustration {
  position: relative; width: 340px; height: 260px; margin-right: var(--space-4); z-index: 2;
}
.blob {
  position: absolute; width: 240px; height: 240px; border-radius: 50%; overflow: hidden;
  background: #fff; /* 纯白底，提升干净度与实感 */
  box-shadow: 0 18px 44px rgba(11,31,63,0.22), 0 4px 12px rgba(11,31,63,0.12);
  animation: blobMove 10s ease-in-out infinite;
}
/* 圆形图片裁剪 */
.blob-img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes blobMove {
  0% { transform: translate(0,0) scale(1); opacity: 0.8; }
  50% { transform: translate(12px,-8px) scale(1.05); opacity: 0.9; }
  100% { transform: translate(-8px,6px) scale(0.98); opacity: 0.85; }
}

/* 服务模块 */
.section { padding: var(--space-6) 0; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-2); }
.card {
  border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: var(--space-3); background: #fff;
  box-shadow: 0 1px 0 rgba(2,6,23,0.04), 0 8px 18px rgba(2,6,23,0.04);
}
.card h3 { margin: 0 0 var(--space-2); color: var(--brand-primary); }
.card p { color: var(--text-muted); }

/* 最新文章 */
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-1); }
.post-item { border: 1px solid var(--border-light); border-radius: var(--radius-xs); overflow: hidden; background: #fff; }
.post-thumb { height: 116px; background: var(--bg-soft); }
.post-content { padding: var(--space-1); }
.post-title { font-size: 15px; line-height: 1.25; color: var(--text-main); }
.post-meta { font-size: 11px; color: var(--text-muted); margin-top: var(--space-1); }

/* 新增：文章摘要，控制为两行，更精致紧凑 */
.post-excerpt {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 最新文章：轻度光影跟随效果（淡色） */
#posts .post-item { position: relative; transition: transform .2s ease, box-shadow .25s ease; }
#posts .post-item::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(26,115,232,0.14), rgba(26,115,232,0.00) 46%);
  opacity: 0; transition: opacity .25s ease;
}
#posts .post-item:hover::before { opacity: .85; }
#posts .post-item { box-shadow: 0 1px 0 rgba(2,6,23,0.03), 0 4px 14px rgba(2,6,23,0.03); }
#posts .post-item:hover { transform: translateY(-0.5px); box-shadow: 0 3px 10px rgba(2,6,23,0.06), 0 12px 24px rgba(26,115,232,0.05); }

@media (max-width: 640px) {
  /* 移动端不跟随指针，给一个更淡的静态高光提升质感 */
  #posts .post-item::before { opacity: .16; }
  #posts .post-item:hover { transform: none; }
}

/* 响应式 */
@media (max-width: 1024px) {
  .cards, .posts-grid { grid-template-columns: repeat(2,1fr); }
  .illustration { display: none; }
}
@media (max-width: 640px) {
  .cards, .posts-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

/* ---- 可编辑页脚信息（白卡片） ---- */
.arke-footer-info { padding: var(--space-4) 0 var(--space-3); background: transparent; }
.arke-footer-info__inner {
  width: min(980px, 92vw);
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 1px 0 rgba(2,6,23,0.04), 0 8px 18px rgba(2,6,23,0.04);
  padding: var(--space-3);
}
.arke-footer-info__title { margin: 0 0 var(--space-2); color: var(--brand-primary); font-weight: 600; }
.arke-footer-info__subtitle { margin: 0; color: var(--text-muted); }

/* 蓝色页脚区块：统一纵向间距，避免因文案长短造成突兀留白 */

/* 服务区（Capabilities）：圆角白背景卡片效果 */
.section.texture-dots.arke-capabilities,
.section.texture-light {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(2,6,23,0.04), 0 8px 18px rgba(2,6,23,0.04);
  overflow: hidden; /* 防止子元素溢出破坏圆角 */
  /* 放大且更淡的浅色纹理：仅微点阵，参考页脚的“淡而不密”感觉 */
  --light-texture-dot: rgba(106, 116, 158, 0.04);
  background-image: radial-gradient(var(--light-texture-dot) 1.2px, transparent 3px), radial-gradient(var(--light-texture-dot) 1.2px, transparent 3px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
}
body.skin-s2 .section.texture-dots.arke-capabilities,
body.skin-s2 .section.texture-light {
  /* 偏暖金调的更淡纹理，维持更大网格与轻透明度 */
  --light-texture-dot: rgba(209,165,64,0.05);
}
.site-footer { position: relative; background: linear-gradient(180deg, #0B1F3F 0%, #0A1B36 100%); }
/* 纹理变体：波浪、菱纹、格纹、浅浮雕（每次刷新随机其一） */
.site-footer.texture-wave::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .15;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(255,255,255,0.35) 1px, rgba(255,255,255,0.0) 2px),
    linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.00) 40%);
  background-size: 24px 24px, 100% 100%;
}
.site-footer.texture-wave::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; width: 100vw; height: 18px; pointer-events: none; opacity: .35;
  background:
    radial-gradient(circle at 9px 9px, rgba(255,255,255,0.65) 7px, rgba(255,255,255,0.0) 8px) 0 0/18px 18px repeat-x;
}

.site-footer.texture-diamond::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .32; mix-blend-mode: normal;
  /* 更明显的菱形重复图案 + 点位（LV 风格简化） */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6'%3E%3Cpath d='M24 4 L44 24 L24 44 L4 24 Z'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.18'%3E%3Ccircle cx='24' cy='12' r='2'/%3E%3Ccircle cx='12' cy='24' r='2'/%3E%3Ccircle cx='36' cy='24' r='2'/%3E%3Ccircle cx='24' cy='36' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 36px 36px;
  background-repeat: repeat;
}
@media (max-width: 640px) {
  .site-footer.texture-diamond::after { opacity: .26; background-size: 32px 32px; }
}

.site-footer.texture-grid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, rgba(255,255,255,0.00) 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, rgba(255,255,255,0.00) 1px);
  background-size: 26px 26px, 26px 26px;
}

.site-footer.texture-emboss { box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.25); }
.site-footer.texture-emboss::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.00) 60%);
}

/* 布局：去除链接区，版权另起一行 */
.site-footer .footer-content { 
  display:grid; grid-template-columns: 1fr auto; grid-auto-rows: auto; 
  align-items:flex-start; gap: 14px; padding: 28px 0 20px; 
}
.site-footer .footer-brand strong { display:block; margin: 0 0 8px; color: #fff; font-size: 18px; letter-spacing: .2px; }
.site-footer .footer-brand strong::after { content: ""; display:block; width: 56px; height: 2px; margin-top: 8px; background: rgba(255,255,255,0.35); border-radius: 2px; }
.site-footer .footer-brand p { margin: 10px 0 0; opacity: .92; color: #fff; max-width: 980px; line-height: 1.8; }
.site-footer .footer-copy span { color: #fff; opacity: .85; font-size: 13px; }

/* 布局定位：联系方式右侧，版权独占底部一行 */
.site-footer .footer-brand { grid-column: 1; }
.site-footer .footer-contact { 
  grid-column: 2; 
  align-self: start; 
  justify-self: end; 
  /* 让卡片离右侧的 Live2D 猫保持安全距离 */
  margin-right: 220px; 
}
.site-footer .footer-copy { grid-column: 1 / -1; }

/* 联系方式卡片样式与发光效果 */
.site-footer .footer-contact .contact-card {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; 
  background: rgba(255,255,255,0.04); 
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset;
  overflow: hidden; /* 防止发光在边界处聚集 */
}
.site-footer .footer-contact .contact-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  /* 更柔和的居中光晕，避免边界发亮 */
  background: radial-gradient(80% 80% at 60% 40%, rgba(32,167,255,0.50), rgba(32,167,255,0.00) 58%);
  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .25s ease;
}
.site-footer .footer-contact .contact-card:hover::before { opacity: .85; }
.site-footer .footer-contact .contact-text { color: #fff; opacity: .95; font-size: 14px; }
.site-footer .footer-contact .contact-image { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,0.35); }

@media (max-width: 720px) {
  .site-footer .footer-content { grid-template-columns: 1fr; }
  .site-footer .footer-contact { grid-column: 1; justify-self: start; margin-right: 0; }
}

/* 保持网格布局，不再在移动端切换到 flex，避免样式错乱 */

/* 页头满屏深色条（参考 Spencer Stuart） */
.site-header, .header, .navbar {
  position: relative;
  /* 防止顶部满屏条纹在极少数情况下触发横向滚动 */
  overflow-x: clip;
}
.site-header::before, .header::before, .navbar::before,
.site-header::after, .header::after, .navbar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 10px; /* 可按需加粗 */
  background: #0B1F3F; /* 深色条 */
  opacity: 0.10; /* 克制不抢眼 */
  pointer-events: none;
}
.site-header::before, .header::before, .navbar::before { top: -10px; }
.site-header::after, .header::after, .navbar::after { bottom: -10px; }

/* 页脚（满屏、简版） */
.site-footer.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
.site-footer { background: #0B1F3F; color: #CFD8E3; padding: var(--space-4) 0; }
.site-footer a { color: #DBEAFE; }
.site-footer a:hover { color: #FFFFFF; }
.footer-content { display: flex; flex-direction: column; gap: var(--space-3); align-items: start; }
.footer-brand strong { font-size: 18px; color: #FFFFFF; }
.footer-copy { margin-top: var(--space-3); border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-2); font-size: 14px; color: #9AA5B1; }

/* 底部满屏渐变分隔带 */
.gradient-strip.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
.gradient-strip {
  height: 12px;
  /* 默认蓝色主题（与 #0B1F3F 协调） */
  background: linear-gradient(90deg,
    rgba(11,31,63,0.22) 0%,
    rgba(11,31,63,0.16) 50%,
    rgba(11,31,63,0.12) 100%
  );
}
/* 深棕主题：与 #1D1A15 协调 */
body.skin-s2 .gradient-strip {
  background: linear-gradient(90deg,
    rgba(29,26,21,0.22) 0%,
    rgba(29,26,21,0.16) 50%,
    rgba(29,26,21,0.12) 100%
  );
}

/* 文章区满屏背景图（内容仍保持容器宽度） */
.bg-photo-section.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
.bg-photo-section {
  position: relative;
  padding: var(--space-6) 0; /* 与页脚形成舒适间隔 */
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0.86)),
    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=2000&q=60');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-photo-section .container { position: relative; z-index: 1; }

/* 白色毛玻璃 + 星空镂空纹理覆盖层（直接用于首页文章区） */
.glass-starholes { position: relative; overflow: hidden; isolation: isolate; contain: paint; }
/* 确保正文内容位于特效层之上，避免被毛玻璃模糊 */
.glass-starholes > .container { position: relative; z-index: 3; }
.glass-starholes::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(9px) saturate(108%) contrast(98%);
  /* 使用 mask 形成“镂空”星点：白色为可见，黑色为镂空 */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Crect width='100%25' height='100%25' fill='white'/%3E%3Cg fill='black' opacity='0.85'%3E%3Ccircle cx='20' cy='24' r='2.2'/%3E%3Ccircle cx='46' cy='18' r='1.8'/%3E%3Ccircle cx='72' cy='34' r='2.6'/%3E%3Ccircle cx='108' cy='22' r='2.0'/%3E%3Ccircle cx='150' cy='26' r='1.8'/%3E%3Ccircle cx='182' cy='18' r='2.2'/%3E%3Ccircle cx='28' cy='66' r='2.6'/%3E%3Ccircle cx='56' cy='58' r='1.6'/%3E%3Ccircle cx='86' cy='72' r='2.2'/%3E%3Ccircle cx='120' cy='64' r='1.9'/%3E%3Ccircle cx='156' cy='70' r='2.8'/%3E%3Ccircle cx='180' cy='60' r='1.7'/%3E%3Ccircle cx='18' cy='108' r='1.9'/%3E%3Ccircle cx='42' cy='100' r='2.3'/%3E%3Ccircle cx='74' cy='106' r='1.7'/%3E%3Ccircle cx='104' cy='98' r='2.6'/%3E%3Ccircle cx='132' cy='110' r='2.0'/%3E%3Ccircle cx='162' cy='100' r='2.4'/%3E%3Ccircle cx='188' cy='106' r='1.8'/%3E%3Ccircle cx='30' cy='146' r='2.0'/%3E%3Ccircle cx='52' cy='138' r='2.6'/%3E%3Ccircle cx='88' cy='150' r='1.8'/%3E%3Ccircle cx='118' cy='142' r='2.4'/%3E%3Ccircle cx='146' cy='154' r='2.0'/%3E%3Ccircle cx='178' cy='148' r='2.5'/%3E%3Ccircle cx='18' cy='182' r='2.2'/%3E%3Ccircle cx='46' cy='178' r='1.8'/%3E%3Ccircle cx='80' cy='186' r='2.6'/%3E%3Ccircle cx='114' cy='176' r='2.0'/%3E%3Ccircle cx='150' cy='188' r='1.8'/%3E%3Ccircle cx='186' cy='180' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Crect width='100%25' height='100%25' fill='white'/%3E%3Cg fill='black' opacity='0.85'%3E%3Ccircle cx='20' cy='24' r='2.2'/%3E%3Ccircle cx='46' cy='18' r='1.8'/%3E%3Ccircle cx='72' cy='34' r='2.6'/%3E%3Ccircle cx='108' cy='22' r='2.0'/%3E%3Ccircle cx='150' cy='26' r='1.8'/%3E%3Ccircle cx='182' cy='18' r='2.2'/%3E%3Ccircle cx='28' cy='66' r='2.6'/%3E%3Ccircle cx='56' cy='58' r='1.6'/%3E%3Ccircle cx='86' cy='72' r='2.2'/%3E%3Ccircle cx='120' cy='64' r='1.9'/%3E%3Ccircle cx='156' cy='70' r='2.8'/%3E%3Ccircle cx='180' cy='60' r='1.7'/%3E%3Ccircle cx='18' cy='108' r='1.9'/%3E%3Ccircle cx='42' cy='100' r='2.3'/%3E%3Ccircle cx='74' cy='106' r='1.7'/%3E%3Ccircle cx='104' cy='98' r='2.6'/%3E%3Ccircle cx='132' cy='110' r='2.0'/%3E%3Ccircle cx='162' cy='100' r='2.4'/%3E%3Ccircle cx='188' cy='106' r='1.8'/%3E%3Ccircle cx='30' cy='146' r='2.0'/%3E%3Ccircle cx='52' cy='138' r='2.6'/%3E%3Ccircle cx='88' cy='150' r='1.8'/%3E%3Ccircle cx='118' cy='142' r='2.4'/%3E%3Ccircle cx='146' cy='154' r='2.0'/%3E%3Ccircle cx='178' cy='148' r='2.5'/%3E%3Ccircle cx='18' cy='182' r='2.2'/%3E%3Ccircle cx='46' cy='178' r='1.8'/%3E%3Ccircle cx='80' cy='186' r='2.6'/%3E%3Ccircle cx='114' cy='176' r='2.0'/%3E%3Ccircle cx='150' cy='188' r='1.8'/%3E%3Ccircle cx='186' cy='180' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: 240px 240px; mask-size: 240px 240px;
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
}
/* 深棕主题下的毛玻璃基色略暖，并保留镂空星点 */
body.skin-s2 .glass-starholes::before { background: rgba(244,242,238,0.62); }

/* 云层淡入淡出与轻缓漂移（若隐若现） */
.glass-starholes::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(80% 60% at 20% 40%, rgba(190,205,255,0.12) 0%, rgba(190,205,255,0.00) 60%),
    radial-gradient(70% 50% at 80% 60%, rgba(210,220,255,0.11) 0%, rgba(210,220,255,0.00) 60%),
    radial-gradient(60% 50% at 60% 20%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.00) 55%);
  background-size: auto, auto, auto;
  background-position: 0% 0%, 0% 0%, 0% 0%;
  filter: blur(2px);
  opacity: 0.35;
  animation: cloudDrift 36s ease-in-out infinite, cloudFade 18s ease-in-out infinite;
  will-change: background-position, opacity;
  transform: translateZ(0);
}

@keyframes cloudDrift {
  0%   { background-position:   0%  0%,   0%  0%,   0%  0%; }
  50%  { background-position:  20% 10%, -12% 18%,  10% -6%; }
  100% { background-position:   0%  0%,   0%  0%,   0%  0%; }
}
@keyframes cloudFade {
  0%   { opacity: 0.30; }
  50%  { opacity: 0.48; }
  100% { opacity: 0.30; }
}

/* 低动效偏好：关闭云层动画但保留视觉 */
@media (prefers-reduced-motion: reduce) {
  .glass-starholes::after { animation: none; opacity: 0.35; }
}

/* 结构类：移除内联样式对应的类（不改变视觉） */
.hero-flex { display: flex; align-items: center; gap: 32px; }
.section-title { margin-bottom: 24px; }

/* 文章页：毛玻璃从较模糊逐渐变清晰（不影响正文可读性） */
.single .glass-starholes::before {
  opacity: 0.58;
  backdrop-filter: blur(12px) saturate(108%) contrast(98%);
  animation: glassClear 2400ms ease-out 150ms forwards;
}
@keyframes glassClear {
  0%   { opacity: 0.58; backdrop-filter: blur(12px) saturate(108%) contrast(98%); }
  100% { opacity: 0.38; backdrop-filter: blur(6px)  saturate(108%) contrast(98%); }
}
@media (prefers-reduced-motion: reduce) {
  .single .glass-starholes::before { animation: none; opacity: 0.38; backdrop-filter: blur(6px) saturate(108%) contrast(98%); }
}

/* 两侧点状纹理（轻度，随主题色调） */
.glass-starholes .edge-dots {
  position: absolute; top: 0; bottom: 0; width: 340px; pointer-events: none;
  z-index: 2; /* 高于毛玻璃覆层，确保可见 */
  opacity: 0.58;
  background-image: radial-gradient(var(--light-texture-dot, rgba(130,150,190,0.34)) 2.2px, transparent 6px);
  background-size: 18px 18px;
}
.glass-starholes .edge-left { left: 0; -webkit-mask-image: radial-gradient(130% 80% at -20% 50%, rgba(0,0,0,1) 24%, rgba(0,0,0,0) 72%); mask-image: radial-gradient(130% 80% at -20% 50%, rgba(0,0,0,1) 24%, rgba(0,0,0,0) 72%); }
.glass-starholes .edge-right { right: 0; -webkit-mask-image: radial-gradient(130% 80% at 120% 50%, rgba(0,0,0,1) 24%, rgba(0,0,0,0) 72%); mask-image: radial-gradient(130% 80% at 120% 50%, rgba(0,0,0,1) 24%, rgba(0,0,0,0) 72%); }

/* 深棕主题下的点状纹理颜色更暖、更淡 */
body.skin-s2 .glass-starholes .edge-dots {
  background-image: radial-gradient(rgba(160,140,100,0.34) 2.2px, transparent 6px);
  opacity: 0.58;
}
.header-brandbar.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
.header-brandbar {
  background: #0B1F3F;
  color: #FFFFFF;
  /* 去掉底部内阴影白线 */
  box-shadow: none;
}
.brandbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; }
.brand-name { font-weight: 600; font-size: 22px; letter-spacing: 0.3px; color: #FFFFFF; }
.brand-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.4); margin: 0 12px; display: inline-block; }
.brand-region { font-weight: 700; font-size: 18px; color: #8BB174; }
.brand-region.badge { padding: 0; border: 0; border-radius: 0; line-height: inherit; }

.brand-actions { display:flex; align-items:center; gap:12px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2);
  font-size: 14px; line-height: 1; cursor: pointer;
}
.lang-toggle:hover { background: rgba(255,255,255,0.18); }
.lang-toggle .label-zh { font-weight: 600; }
.lang-toggle .divider { opacity: 0.7; }
.lang-toggle.active-en .label-en { font-weight: 700; }

/* 移动端优化（更紧凑） */
@media (max-width: 640px) {
  /* 两侧留白与页头元素尺寸 */
  .container { padding-left: 12px; padding-right: 12px; }
  .brandbar-inner { min-height: 50px; padding: 8px 0; }
  .brand-name { font-size: 17px; }
  .brand-divider { margin: 0 6px; height: 16px; }
  .brand-region { font-size: 15px; }
  .brand-actions .lang-toggle { padding: 4px 8px; font-size: 11px; }

  /* Hero 文案与按钮堆叠 */
  .hero { min-height: 38vh; margin-top: 0; margin-bottom: 0;}
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 13px; }
  .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .actions .btn { margin-left: 0 !important; padding: 7px 12px; }

  /* 模块与卡片间距收敛 */
  .section { padding-top: var(--space-4); padding-bottom: var(--space-4); }
  .card { padding: var(--space-2); }

  /* 文章列表更紧凑 */
  .posts-grid { grid-template-columns: 1fr; gap: var(--space-2); }
  .post-thumb { height: 120px; }
  .post-content { padding: var(--space-2); }
  .post-title { font-size: 14px; line-height: 1.25; }

  .bg-photo-section { padding: var(--space-4) 0; }
  .footer-content { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* iOS 安全区适配（刘海屏） */
@supports (padding: env(safe-area-inset-left)) {
  @media (max-width: 640px) {
    .container { 
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
    }
  }
}

/* 核心能力表格风格 */
.cap-table { border-top: 1px solid var(--border-light); }
.cap-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 2fr;
  gap: var(--space-3);
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.cap-row.cap-head { font-weight: 600; color: var(--brand-primary); }
.cap-col.title { font-weight: 600; color: var(--text-main); font-size: 15px; }
.cap-col.value { color: var(--text-main); font-size: 14px; }
.cap-col.desc { color: var(--text-muted); font-size: 13px; }

@media (max-width: 1024px) {
  .cap-row { grid-template-columns: 1.1fr 0.9fr 1.8fr; }
}
@media (max-width: 640px) {
  .cap-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .cap-row.cap-head { display: none; }
  .cap-col.title { font-size: 16px; }
}

/* 覆盖父主题博客列表的下边框与间距（按你的要求去掉） */
.blog article {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* 轻纹理背景与小图点缀（可用于白色留白区） */
.texture-dots {
  position: relative;
  background-image: radial-gradient(circle at 1px 1px, rgba(13,37,65,0.045) 1px, transparent 1px);
  background-size: 8px 8px;
  overflow: hidden; /* 确保侧边装饰不溢出 */
}
.texture-dots::before,
.texture-dots::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 220px;
  pointer-events: none;
  opacity: 0.72; /* 明显一些 */
  mix-blend-mode: soft-light;
  /* 左右装饰：大柔光 + 竖向柔光条 + 小光点 + 细条纹 */
  background-image:
    radial-gradient(60% 100% at 30% 50%, rgba(26,115,232,0.18) 0%, rgba(26,115,232,0.00) 70%),
    radial-gradient(50% 80% at 70% 30%, rgba(139,92,246,0.16) 0%, rgba(139,92,246,0.00) 70%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.22) 0 2px, rgba(255,255,255,0.00) 2px 28px),
    radial-gradient(8px 8px at 20% 18%, rgba(26,115,232,0.26) 0%, rgba(26,115,232,0.00) 60%),
    radial-gradient(6px 6px at 60% 34%, rgba(139,92,246,0.22) 0%, rgba(139,92,246,0.00) 60%),
    radial-gradient(7px 7px at 32% 68%, rgba(11,31,63,0.20) 0%, rgba(11,31,63,0.00) 60%),
    radial-gradient(10px 10px at 78% 82%, rgba(26,115,232,0.18) 0%, rgba(26,115,232,0.00) 70%);
  background-repeat: no-repeat;
  animation: sideFloat 18s ease-in-out infinite;
}
.texture-dots::before { left: 0; }
.texture-dots::after  { right: 0; }

@keyframes sideFloat {
  0% {
    background-position:
      30% 50%, 70% 30%, 0 0, 20% 18%, 60% 34%, 32% 68%, 78% 82%;
    background-size:
      60% 100%, 50% 80%, auto, 8px 8px, 6px 6px, 7px 7px, 10px 10px;
    opacity: 0.62;
  }
  50% {
    background-position:
      36% 54%, 64% 36%, 0 22px, 24% 22%, 56% 40%, 28% 64%, 82% 76%;
    background-size:
      62% 100%, 52% 82%, auto, 9px 9px, 6px 6px, 8px 8px, 12px 12px;
    opacity: 0.78;
  }
  100% {
    background-position:
      30% 50%, 70% 30%, 0 0, 20% 18%, 60% 34%, 32% 68%, 78% 82%;
    background-size:
      60% 100%, 50% 80%, auto, 8px 8px, 6px 6px, 7px 7px, 10px 10px;
    opacity: 0.62;
  }
}
.texture-dots::after {
  content: "";
  position: absolute; right: 12px; top: 12px; width: 32px; height: 32px;
  background-repeat: no-repeat; background-size: contain;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%230b1f3f'%3E%3Ccircle cx='16' cy='16' r='2' opacity='0.35'/%3E%3Ccircle cx='8' cy='8' r='1' opacity='0.2'/%3E%3Ccircle cx='24' cy='10' r='1.5' opacity='0.25'/%3E%3C/g%3E%3C/svg%3E");
}
@media (max-width: 640px) {
  .texture-dots { background-size: 12px 12px; }
  .texture-dots::before,
  .texture-dots::after { width: 140px; opacity: 0.46; }
}

@media (prefers-reduced-motion: reduce) {
  .texture-dots::before,
  .texture-dots::after { animation: none; }
}

/* ===== Cursor Trail (dual-tube glow) ===== */
.cursor-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999; /* above content but below modals if any */
}

@media (max-width: 767px) {
  /* Keep mobile clean: script默认禁用，但若启用时降低层级 */
  .cursor-trail-canvas { z-index: 1; }
}

/* Magic wand cursor */
body.cursor-wand-enabled { cursor: none; }
.cursor-wand {
  position: fixed;
  left: 0; top: 0;
  width: 26px; height: 26px;
  transform: translate3d(-9999px, -9999px, 0);
  pointer-events: none;
  z-index: 10000; /* above trail canvas */
  transition: opacity 160ms ease;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(147, 197, 253, 0.35)) drop-shadow(0 0 14px rgba(139, 92, 246, 0.25));
  /* 以 SVG 尖端 (22,8) 为旋转与缩放原点，确保对齐 */
  transform-origin: 22px 8px;
}
.cursor-wand svg { display: block; }
@media (max-width: 767px) {
  body.cursor-wand-enabled { cursor: auto; }
  .cursor-wand { display: none; }
}

/* 图片悬停放大（Spencer 风格简化）：用于首页“最新文章”缩略图 */
.post-thumb { position: relative; display: block; overflow: hidden; }
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1) translateZ(0);
  transition: transform .6s cubic-bezier(.22,.61,.36,1), filter .6s;
}
.post-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.00), rgba(11,31,63,0.22));
  opacity: 0; transition: opacity .6s;
}
.post-item:hover .post-thumb img { transform: scale(1.08) translateZ(0); filter: saturate(1.05) brightness(1.02); }
.post-item:hover .post-thumb::after { opacity: 1; }

@media (max-width: 640px) {
  .post-item:hover .post-thumb img { transform: scale(1.03) translateZ(0); }
  .post-item:hover .post-thumb::after { opacity: 0.9; }
}

/* 文章正文图片悬停放大与渐变覆层（不改变内容结构） */
.entry-content .wp-block-image,
.entry-content figure.wp-block-image,
.entry-content .wp-block-gallery .blocks-gallery-item,
.entry-content .zoomable {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img,
.entry-content .zoomable img,
.entry-content img.aligncenter,
.entry-content img.size-large,
.entry-content img.size-full {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1) translateZ(0);
  transition: transform .6s cubic-bezier(.22,.61,.36,1), filter .6s;
}
.entry-content .wp-block-image::after,
.entry-content .zoomable::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.00), rgba(11,31,63,0.18));
  opacity: 0; transition: opacity .6s;
}
.entry-content .wp-block-image:hover img,
.entry-content .zoomable:hover img,
.entry-content .wp-block-gallery .blocks-gallery-item:hover img {
  transform: scale(1.06) translateZ(0);
  filter: saturate(1.03) brightness(1.01);
}
.entry-content .wp-block-image:hover::after,
.entry-content .zoomable:hover::after { opacity: 1; }

@media (max-width: 640px) {
  .entry-content .wp-block-image:hover img,
  .entry-content .zoomable:hover img,
  .entry-content .wp-block-gallery .blocks-gallery-item:hover img {
    transform: scale(1.03) translateZ(0);
  }
  .entry-content .wp-block-image:hover::after,
  .entry-content .zoomable:hover::after { opacity: 0.9; }
}

/* 单篇文章页面包屑（返回首页） */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.post-breadcrumb .breadcrumb-home {
  text-decoration: none;
  color: var(--brand-primary);
  padding: 6px 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background .2s, color .2s, box-shadow .2s;
}
.post-breadcrumb .breadcrumb-home:hover {
  background: #f7f9fc;
  color: #2f5fa3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Live2D右下角定位覆盖（优先于资源自带CSS） */
#landlord { left: auto !important; right: 0 !important; bottom: 0 !important; }
@media (max-width: 860px) { #landlord { display: none !important; } }

/* ---- dvw overrides to avoid horizontal overflow when scrollbar present ---- */
@supports (width: auto) {
  /* 仅桌面端使用 99.5dvw，移动端保持默认 100vw 以避免过窄 */
  @media (min-width: 641px) {
    .full-bleed { width: 99.5dvw; margin-left: -50dvw; margin-right: -50dvw; margin-top: 0; margin-bottom: 0; }
    .site-footer.full-bleed,
    .gradient-strip.full-bleed,
    .bg-photo-section.full-bleed,
    .header-brandbar.full-bleed { width: 99.5dvw; margin-left: -50dvw; margin-right: -50dvw; }
  }

  .site-header::before, .header::before, .navbar::before,
  .site-header::after, .header::after, .navbar::after { width: 100dvw; }

  .cursor-trail-canvas { width: 100dvw; }
}

/* 移动端页脚更舒适的留白与字号 */
@media (max-width: 640px) {
  .site-footer .footer-content { padding: 24px 18px; gap: 12px; }
  .site-footer .footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 6px; }
  .site-footer .footer-copy span { font-size: 12px; }
}