/* ===================================================
   甘蔗园 MC 服务器网站 — 全局样式
   =================================================== */

/* ---------- HarmonyOS Sans SC 字体声明 ---------- */
@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('/assets/fonts/HarmonyOS_SansSC/HarmonyOS_SansSC_Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('/assets/fonts/HarmonyOS_SansSC/HarmonyOS_SansSC_Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('/assets/fonts/HarmonyOS_SansSC/HarmonyOS_SansSC_Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('/assets/fonts/HarmonyOS_SansSC/HarmonyOS_SansSC_Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('/assets/fonts/HarmonyOS_SansSC/HarmonyOS_SansSC_Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- CSS 变量 ---------- */
:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --primary-light: #dcfce7;
  --accent: #facc15;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
  --nav-h: 64px;
  --transition: 0.25s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'HarmonyOS Sans SC', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
svg {
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---------- 容器 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 多页布局：main 避开固定导航 ---------- */
.page-main {
  padding-top: var(--nav-h);
}

/* ===================================================
   导航栏
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, .1);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
  margin-right: auto;
}

.logo-icon {
  font-size: 22px;
  color: var(--primary);
}

.logo-text {
  letter-spacing: 0.04em;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary-dark);
  background: var(--primary-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================================
   按钮
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, .3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, .4);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, .5);
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .2);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

/* ===================================================
   Hero / 轮播
   =================================================== */
.hero-section {
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: 500px;
  overflow: hidden;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .7s ease;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .2) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 24px 0 60px;
}

.pixel-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(34, 197, 94, .2);
  border: 1px solid rgba(34, 197, 94, .4);
  font-size: 12px;
  font-weight: 500;
  color: #86efac;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, .8);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Pixel art 装饰 */
.slide-art {
  position: absolute;
  right: 8%;
  bottom: 10%;
  z-index: 1;
  pointer-events: none;
}

.mc-block {
  position: absolute;
  border-radius: 2px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  animation: blockFloat 4s ease-in-out infinite;
}

.b1 {
  width: 60px;
  height: 60px;
  right: 0;
  bottom: 0;
  animation-delay: 0s;
  background: rgba(34, 197, 94, .15);
}

.b2 {
  width: 44px;
  height: 44px;
  right: 64px;
  bottom: 16px;
  animation-delay: .5s;
}

.b3 {
  width: 36px;
  height: 36px;
  right: 20px;
  bottom: 64px;
  animation-delay: 1s;
  background: rgba(250, 204, 21, .1);
}

.b4 {
  width: 28px;
  height: 28px;
  right: 80px;
  bottom: 64px;
  animation-delay: 1.5s;
}

.b5 {
  width: 50px;
  height: 50px;
  right: 110px;
  bottom: 0;
  animation-delay: 2s;
}

.mc-tree {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(34, 197, 94, .3);
  position: relative;
  right: 0;
  bottom: 0;
}

.mc-tree::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 36px solid rgba(34, 197, 94, .25);
}

@keyframes blockFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* 轮播控制按钮 */
.slide-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 24px;
  border: 1px solid rgba(255, 255, 255, .25);
  line-height: 1;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-btn:hover {
  background: rgba(255, 255, 255, .3);
}

.slide-btn.prev {
  left: 20px;
}

.slide-btn.next {
  right: 20px;
}

.slide-dots {
  position: absolute;
  bottom: 90px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* IP 悬浮条 */
.ip-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50px;
  padding: 8px 20px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.ip-label {
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
}

.ip-value {
  font-weight: 600;
  font-family: monospace;
  letter-spacing: .04em;
}

.ip-copy {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  transition: background var(--transition);
}

.ip-copy:hover {
  background: var(--primary-dark);
}

/* ===================================================
   统计条
   =================================================== */
.stats-bar {
  background: var(--card);
  border-bottom: 0.5px solid var(--border);
  padding: 28px 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 8px 16px;
  border-right: 0.5px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ===================================================
   公用 Section 样式
   =================================================== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ===================================================
   介绍 — 特性卡片
   =================================================== */
.about-section {
  background: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.icon-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.icon-yellow {
  background: #fef9c3;
  color: #a16207;
}

.icon-red {
  background: #fee2e2;
  color: #b91c1c;
}

.icon-purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.icon-teal {
  background: #ccfbf1;
  color: #0f766e;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 游戏模式 */
.mode-section {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 0.5px solid var(--border);
}

.mode-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.mode-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mode-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
  background: var(--bg);
  transition: border-color var(--transition);
}

.mode-card.active-mode {
  border-color: var(--primary);
  background: #f0fdf4;
}

.mode-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.mode-dot.green {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e88;
}

.mode-dot.blue {
  background: #3b82f6;
}

.mode-dot.yellow {
  background: #eab308;
}

.mode-dot.purple {
  background: #a855f7;
}

.mode-card strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

.mode-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.mode-badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  background: var(--primary);
  color: #fff;
  height: fit-content;
}

/* ===================================================
   下载 Section
   =================================================== */
.download-section {
  background: #f1f5f9;
}

.steps-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 56px;
}

.step-item {
  flex: 1;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 0.5px solid var(--border);
  transition: box-shadow var(--transition);
}

.step-item:hover {
  box-shadow: var(--shadow-md);
}

.step-arrow {
  flex-shrink: 0;
  align-self: center;
  font-size: 28px;
  color: var(--text-light);
  padding: 0 12px;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 12px;
  -webkit-text-stroke: 2px var(--primary);
}

.step-body h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.version-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: #fef9c3;
  color: #854d0e;
  font-size: 12px;
  font-weight: 500;
}

.copy-ip-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: monospace;
  font-size: 13px;
}

/* 客户端卡片 */
.client-section {}

.client-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.client-card {
  position: relative;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.client-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.client-card.highlight {
  border-color: var(--primary);
}

.client-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
}

.client-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.client-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.client-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ===================================================
   状态 Section
   =================================================== */
.status-section {
  background: var(--bg);
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.status-main-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 transparent;
}

.status-indicator.online {
  background: #22c55e;
  animation: statusPulse 2s infinite;
}

.status-indicator.offline {
  background: #ef4444;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.status-label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

.status-text {
  font-size: 15px;
  font-weight: 600;
}

.status-ping {
  margin-left: auto;
  font-family: monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}

.ping-good {
  color: #16a34a;
}

.ping-warn {
  color: #ea580c;
}

.ping-bad {
  color: #dc2626;
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-icon {
  font-size: 22px;
}

.metric-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.good {
  color: #16a34a;
}

.warn {
  color: #ea580c;
}

.bad {
  color: #dc2626;
}

.metric-unit {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-name {
  font-size: 12px;
  color: var(--text-muted);
}

.chart-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-title {
  font-size: 14px;
  font-weight: 600;
}

.chart-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.chart-area {
  position: relative;
  width: 100%;
  height: 160px;
}

.chart-area-lg {
  height: 300px;
}

.chart-area canvas,
.chart-area-lg canvas {
  width: 100% !important;
  height: 100% !important;
}

/* 图表时间切换按钮 */
.chart-btns {
  display: flex;
  gap: 6px;
}

.chart-btn {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 0.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.chart-btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
}

.chart-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.info-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.info-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
}

.info-row:last-child {
  border: none;
  padding-bottom: 0;
}

.info-row span:first-child {
  color: var(--text-muted);
}

.info-val {
  font-weight: 500;
}

/* 公告 */
.announce-section {
  margin-top: 32px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 0.5px solid var(--border);
}

.announce-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.announce-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.announce-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 14px;
}

.announce-date {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.announce-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.announce-badge.new {
  background: #dcfce7;
  color: #15803d;
}

.announce-badge.event {
  background: #fef9c3;
  color: #854d0e;
}

.announce-badge.fix {
  background: #dbeafe;
  color: #1e40af;
}

/* ===================================================
   联系 Section
   =================================================== */
.contact-section {
  background: #f1f5f9;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-cards,
.contact-form-wrap {
  height: 100%;
}

.contact-cards {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 14px;
}

.contact-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-link {
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

/* 表单 */
.contact-form-wrap {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 13px;
  color: var(--primary-dark);
  text-align: center;
  margin-top: 4px;
  min-height: 18px;
}

/* ===================================================
   页脚
   =================================================== */
.footer {
  background: #1e293b;
  color: rgba(255, 255, 255, .75);
  padding: 56px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo-img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: inline-block;
  margin-left: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  margin-top: 10px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: .04em;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 0.5px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}

.footer-bottom *::selection {
  color: #ffffff;
  background: #22c55e;
}

.footer-bottom::-moz-selection,
.footer-bottom *::-moz-selection {
  color: #ffffff;
  background: #22c55e;
}

/* ===================================================
   回到顶部
   =================================================== */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(34, 197, 94, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-3px);
}

/* ===================================================
   响应式
   =================================================== */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .steps-wrapper {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
    align-self: center;
    padding: 8px 0;
  }

  .client-grid {
    grid-template-columns: 1fr 1fr;
  }

  .client-grid .client-card:last-child {
    grid-column: span 2;
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: calc(100svh - var(--nav-h));
    min-height: auto;
    max-height: none;
  }

  .slideshow {
    height: 100%;
    min-height: auto;
  }

  .slide {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #0a0f1a !important;
  }

  .slide[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #0a0f1a !important;
  }

  .slide-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, .55) 100%);
  }

  .slide-content {
    padding: 0 20px;
    max-width: 100%;
    text-align: center;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .hero-sub {
    font-size: 0.85rem;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-btns {
    justify-content: center;
  }

  .slide-art {
    display: none;
  }

  .slide-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .slide-btn.prev {
    left: 8px;
  }

  .slide-btn.next {
    right: 8px;
  }

  .slide-dots {
    bottom: 70px;
  }

  .pixel-badge {
    font-size: 11px;
    padding: 3px 10px;
  }

  /* 导航栏 */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    padding: 12px 16px 20px;
    border-bottom: 0.5px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  .nav-item {
    padding: 10px 14px;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  .stat-item:last-child,
  .stat-item:nth-child(even) {
    border-right: none;
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .mode-list {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .ip-bar {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 30px;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .mode-section {
    padding: 20px;
  }

  .copy-ip-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-announce-item {
    flex-wrap: wrap;
  }

  .admin-announce-title {
    flex: 0 0 100%;
    order: 3;
    margin-top: 4px;
  }

  .admin-announce-item>div:last-child {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .metric-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-grid {
    grid-template-columns: 1fr;
  }

  .client-grid .client-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* 无障碍 */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/*=================================*/
/* 右上角管理员圆形按钮（位于导航栏内部） */
.admin-avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
  transition: all 0.3s ease;
  user-select: none;
}

.admin-avatar-btn:hover {
  transform: scale(1.08);
  background: rgba(45, 55, 72, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 登录状态小圆点 */
.admin-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  border: 2px solid rgba(30, 41, 59, 0.85);
  transition: background 0.3s ease;
}

/* 已登录状态：绿点 */
.admin-avatar-btn.is-login .admin-status-dot {
  background: #22c55e;
}

.admin-avatar-btn.is-login .admin-icon {
  filter: brightness(1.2);
}

.admin-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/*=================================*/

/* ===================================================
   页面占位（空模板页面通用）
   =================================================== */
.page-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 60px 24px;
}

.page-placeholder .placeholder-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.page-placeholder h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-placeholder p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
}

/* ===================================================
   服务器集锦 — 画廊网格
   =================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.gallery-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gallery-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-info {
  padding: 14px 16px;
}

.gallery-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-date {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   模态框
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: var(--card);
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  overflow: hidden;
}

.modal-sm {
  width: 380px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  font-size: 22px;
  color: var(--text-muted);
  padding: 0 4px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 20px;
}

/* ===================================================
   管理员后台样式
   =================================================== */
.admin-announce-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  margin-bottom: 8px;
}

.admin-announce-date {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.admin-announce-title {
  font-size: 14px;
  flex: 1;
}

.admin-btn-edit {
  background: #e2e8f0 !important;
  color: #64748b !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
}

.admin-btn-edit:hover {
  background: #cbd5e1 !important;
}

.admin-btn-del {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
}

.admin-btn-del:hover {
  background: #fecaca !important;
}

/* ===================================================
   事件时间线
   =================================================== */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -19px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 2px var(--primary-light);
  z-index: 1;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================================================
   留言板
   =================================================== */
.msg-form-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.msg-item {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.msg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.msg-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.msg-time {
  font-size: 12px;
  color: var(--text-light);
}

.msg-delete {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.msg-delete:hover {
  color: #dc2626;
}

.msg-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===================================================
   Toast 提示 / 自定义弹窗
   =================================================== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.toast-success {
  background: #16a34a;
}

.toast-error {
  background: #dc2626;
}

.toast-info {
  background: #1e293b;
}

.toast-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-12px);
}

/* prompt 弹窗 */
.prompt-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  margin-top: 8px;
}

.prompt-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}

/* announce-item clickable */
.announce-item[data-detail] {
  cursor: pointer;
  transition: background var(--transition);
}

.announce-item[data-detail]:hover {
  background: var(--primary-light);
}