/* ============================================================
   长亭白网络 一号机 — 主页样式
   浅色 / 深色模式 通过 html.dark 切换
   ============================================================ */

:root {
  --ct-bg: #f2f2f2;
  --ct-bg-deep: #e8e8e8;
  --ct-text: #111111;
  --ct-text-soft: #444444;
  --ct-card-bg: rgba(255, 255, 255, 0.78);
  --ct-card-border: rgba(255, 255, 255, 0.9);
  --ct-card-shadow: rgba(0, 0, 0, 0.12);
  --ct-compass-dim: #9a9a9a;
  --ct-compass-active: #1a1a2e;
  --ct-header-bg: #e7e7e7;
  --ct-nav-color: #1a1a1a;
  --ct-toggle-bg: rgba(255, 255, 255, 0.9);
  --ct-toggle-border: rgba(0, 0, 0, 0.14);
  --ct-poem-shadow: rgba(0, 0, 0, 0.4);
}

html.dark {
  --ct-bg: #26272b;
  --ct-bg-deep: #1f2024;
  --ct-text: #e6e8ee;
  --ct-text-soft: #b8bcc8;
  --ct-card-bg: rgba(38, 40, 46, 0.82);
  --ct-card-border: rgba(255, 255, 255, 0.1);
  --ct-card-shadow: rgba(0, 0, 0, 0.5);
  --ct-compass-dim: #4d4d4d;
  --ct-compass-active: #ffffff;
  --ct-header-bg: #232428;
  --ct-nav-color: #d5d9e2;
  --ct-toggle-bg: rgba(40, 42, 48, 0.9);
  --ct-toggle-border: rgba(255, 255, 255, 0.18);
  --ct-poem-shadow: rgba(0, 0, 0, 0.7);
}

/* ============================================================
   页面基底
   ============================================================ */

html.dark body {
  background-color: var(--ct-bg-deep);
}

.u-section-1 {
  position: relative;
  overflow: hidden;
  background-color: var(--ct-bg);
}

html.dark .u-section-1,
html.dark .u-section-1:before {
  background-color: var(--ct-bg);
}

.u-section-1 .u-sheet-1 {
  min-height: 720px;
  position: relative;
  z-index: 1;
  padding: 40px 0 60px;
  box-sizing: border-box;
}

/* 深色模式下的顶栏 */
html.dark .u-header {
  background-color: var(--ct-header-bg);
}

html.dark .u-header .u-nav-link {
  color: var(--ct-nav-color);
}

html.dark .u-header .u-nav-link:hover {
  color: #ffffff;
}

/* ============================================================
   左侧内容：诗词 + 二维码 + 关注语
   ============================================================ */

.home-left {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 30px 20px;
  box-sizing: border-box;
}

.u-section-1 .u-text-1 {
  font-family: dce3a9fa-d4a5-0a7b-b08b-c2b81e83ff57;
  font-size: 2.4rem;
  line-height: 1.5;
  color: var(--ct-text);
  --animation-custom_in-translate_x: 0px;
  --animation-custom_in-translate_y: 0px;
  --animation-custom_in-opacity: 0;
  --animation-custom_in-rotate: 0deg;
  --animation-custom_in-scale: 1;
  text-shadow: 2px 2px 8px var(--ct-poem-shadow);
  text-align: left;
  margin: 0;
}

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-img {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 6px 18px var(--ct-card-shadow);
  box-sizing: border-box;
}

.u-section-1 .u-text-2 {
  font-weight: 800;
  color: var(--ct-text-soft);
  margin: 0;
  letter-spacing: 0.15em;
}

/* ============================================================
   访客信息 + 服务器状态（小卡片，并排）
   ============================================================ */

.info-cards {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: nowrap;   /* 强制并排：服务器状态始终在访客信息右侧 */
  gap: 14px;
  align-items: stretch;
}

.visitor-info,
.server-status {
  flex: 1 1 0;
  min-width: 0;
  max-width: 380px;
  background: var(--ct-card-bg);
  border: 1px solid var(--ct-card-border);
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 4px 14px var(--ct-card-shadow);
  backdrop-filter: blur(6px);
}

.vi-title {
  color: var(--ct-text);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  padding-bottom: 6px;
  margin-bottom: 2px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

html.dark .vi-title {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.vi-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 0;
}

.vi-row + .vi-row {
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

html.dark .vi-row + .vi-row {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.vi-label {
  color: var(--ct-text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  flex: 0 0 auto;
}

.vi-value {
  color: var(--ct-text);
  font-weight: 700;
  font-size: 0.78rem;
  text-align: right;
  word-break: break-all;
}

.vi-value-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 网络状态指示灯（闪烁） */
.net-led {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #999;
  box-shadow: 0 0 6px rgba(153, 153, 153, 0.6);
}

.net-led.on {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.8);
  animation: led-blink 1.2s ease-in-out infinite;
}

.net-led.off {
  background: #e74c3c;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.8);
  animation: led-blink 0.6s ease-in-out infinite;
}

.net-led.wait {
  background: #f1c40f;
  box-shadow: 0 0 6px rgba(241, 196, 15, 0.7);
  animation: led-blink 0.4s ease-in-out infinite;
}

@keyframes led-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* CPU 占用进度条 */
.cpu-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 2px 0 6px;
}

html.dark .cpu-bar {
  background: rgba(255, 255, 255, 0.12);
}

.cpu-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #2ecc71, #f1c40f, #e74c3c);
  background-size: 200% 100%;
  transition: width 0.6s ease;
}

/* ============================================================
   右侧：罗盘式时钟（纯文本，只露出左大半边）
   ============================================================ */

.clock-stage {
  position: absolute;
  top: 50%;
  right: -195px;
  transform: translateY(-50%);
  width: 660px;
  height: 660px;
  pointer-events: none;
  z-index: 0;
}

.roulette-clock {
  position: absolute;
  left: 0;
  top: 0;
  width: 660px;
  height: 660px;
}

/* 文字环：6 组（月/日/星期/时/分/秒）同心圆，文字沿圆周排列 */
.rc-rings {
  position: absolute;
  inset: 0;
}

.rc-ring {
  position: absolute;
  inset: 0;
}

.rc-ring span {
  position: absolute;
  left: 50%;
  top: 50%;
  white-space: nowrap;
  font-family: 'Roboto', 'Open Sans', sans-serif;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--ct-compass-dim);
  transition: left 1s ease-in-out, top 1s ease-in-out, color 0.3s;
  will-change: left, top;
}

.rc-ring span.active {
  color: var(--ct-compass-active);
  font-weight: 700;
}

/* ============================================================
   深色模式开关
   ============================================================ */

.theme-toggle {
  position: fixed;
  top: 100px;
  right: 18px;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ct-toggle-border);
  background: var(--ct-toggle-bg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.3s, border-color 0.3s;
  backdrop-filter: blur(4px);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1199px) {
  .clock-stage {
    right: -220px;
    width: 600px;
    height: 600px;
  }

  .roulette-clock {
    width: 600px;
    height: 600px;
  }

  .u-section-1 .u-text-1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 991px) {
  .clock-stage {
    right: -280px;
    width: 540px;
    height: 540px;
  }

  .roulette-clock {
    width: 540px;
    height: 540px;
  }

  .u-section-1 .u-text-1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 767px) {
  .u-section-1 .u-sheet-1 {
    min-height: 700px;
  }

  .home-left {
    max-width: 100%;
    padding: 20px 14px;
    align-items: flex-start;
  }

  .u-section-1 .u-text-1 {
    font-size: 1.6rem;
    text-align: left;
  }

  .info-cards {
    gap: 10px;
  }

  .visitor-info,
  .server-status {
    padding: 8px 12px;
  }

  .clock-stage {
    top: auto;
    bottom: -130px;
    right: -110px;
    transform: none;
    width: 430px;
    height: 430px;
  }

  .roulette-clock {
    width: 430px;
    height: 430px;
  }

  .theme-toggle {
    top: 90px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .u-section-1 .u-sheet-1 {
    min-height: 660px;
    padding-bottom: 260px;
  }

  .u-section-1 .u-text-1 {
    font-size: 1.4rem;
  }

  .qr-img {
    width: 112px;
    height: 112px;
  }

  .clock-stage {
    bottom: -150px;
    right: -110px;
    width: 380px;
    height: 380px;
  }

  .roulette-clock {
    width: 380px;
    height: 380px;
  }

  .info-cards {
    gap: 8px;
    width: 100%;
  }

  .visitor-info,
  .server-status {
    padding: 6px 8px;
    font-size: 0.9em;
  }

  .vi-label {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .vi-value {
    font-size: 0.68rem;
  }

  .net-led {
    width: 9px;
    height: 9px;
  }
}
/* page-custom-fonts */
@font-face {
  font-family: 'dce3a9fa-d4a5-0a7b-b08b-c2b81e83ff57';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/dce3a9fa-d4a5-0a7b-b08b-c2b81e83ff57.ttf);
}
