/* ========================================================
   x-panel 官网样式  ·  深色主题
   ======================================================== */

:root {
  --bg:        #0f0f13;
  --bg-surface:#18181e;
  --bg-card:   #1e1e26;
  --bg-hover:  #24242e;
  --border:    #2a2a36;
  --border-2:  #333345;

  --primary:   #63e2b7;
  --primary-d: #45c99a;
  --primary-l: rgba(99, 226, 183, 0.12);
  --accent:    #63e2b7;

  --text-1:    #f0f0f5;
  --text-2:    #a0a0b8;
  --text-3:    #666680;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --trans:     cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 容器 ── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 导航 ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 15, 19, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
  color: var(--text-1);
  flex-shrink: 0;
}

.logo-icon { width: 28px; height: 28px; border-radius: 7px; display: block; object-fit: cover; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-2);
  transition: color .18s var(--trans), background .18s var(--trans);
}

.nav-links a:hover { color: var(--text-1); background: var(--bg-hover); }

.nav-cta { flex-shrink: 0; }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--trans);
  border: none; text-decoration: none;
  white-space: nowrap;
}

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.btn-primary {
  background: var(--primary);
  color: #0e0e12;
}
.btn-primary:hover {
  background: var(--primary-d);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 226, 183, 0.28);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1.5px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-l);
  transform: translateY(-1px);
}

.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Hero ── */
.hero {
  padding: 120px 24px 80px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,226,183,0.12) 0%, transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%);
  animation: drift1 12s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,226,183,0.06) 0%, transparent 70%);
  bottom: 80px; right: -80px;
  animation: drift2 16s ease-in-out infinite alternate;
}

@keyframes drift1 { 0% { transform: translateX(-50%) scale(1); } 100% { transform: translateX(-55%) scale(1.1); } }
@keyframes drift2 { 0% { transform: translateY(0) scale(1); }   100% { transform: translateY(-40px) scale(1.15); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,226,183,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,226,183,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 720px; width: 100%;
}
 

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 22px;
}

.accent { color: var(--primary); }

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: 28px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border-2); }

/* ── 应用截图预览 ── */
.hero-preview {
  position: relative; z-index: 1;
  margin-top: 72px;
  width: 100%; max-width: 860px;
}

.preview-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(99,226,183,0.06),
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 20px 40px -10px rgba(0,0,0,0.4);
  transform: perspective(1200px) rotateX(4deg) translateY(0);
  transition: transform .4s var(--trans), box-shadow .4s var(--trans);
}

.preview-window:hover {
  transform: perspective(1200px) rotateX(0deg) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(99,226,183,0.1),
    0 60px 100px -20px rgba(0,0,0,0.65),
    0 30px 50px -10px rgba(0,0,0,0.45);
}

.preview-titlebar {
  display: flex; align-items: center;
  padding: 14px 18px;
  background: rgba(30,30,38,0.9);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.preview-dots { display: flex; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.preview-title {
  flex: 1; text-align: center;
  font-size: 12px; font-weight: 600;
  color: var(--text-3); letter-spacing: 0.5px;
}

.preview-actions-placeholder { width: 56px; }

.preview-body { display: flex; height: 340px; }

.preview-sidebar {
  width: 140px; flex-shrink: 0;
  background: rgba(24,24,30,0.8);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
}

.sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  cursor: default;
  transition: background .15s;
}
.sidebar-item.active {
  background: var(--primary-l);
  color: var(--primary);
}
.si-icon { font-size: 14px; }

.preview-main { flex: 1; padding: 16px; overflow: hidden; }

.main-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mh-title { font-size: 16px; font-weight: 700; color: var(--text-1); }

.version-switcher {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px; color: var(--primary); font-weight: 600;
}

.version-list { display: flex; flex-direction: column; gap: 8px; }

.version-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color .15s;
}
.version-row.active { border-color: var(--primary); background: var(--primary-l); }

.v-name { flex: 1; font-size: 13px; font-weight: 500; color: var(--text-1); }
.v-badge {
  font-size: 10px; font-weight: 700;
  background: var(--primary);
  color: #0e0e12;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.3px;
}
.v-actions { display: flex; gap: 6px; }
.v-btn {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 4px;
  cursor: pointer;
}
.v-btn.start { background: var(--primary-l); color: var(--primary); border: 1px solid rgba(99,226,183,0.3); }
.v-btn.stop  { background: rgba(255,95,87,0.1); color: #ff5f57; border: 1px solid rgba(255,95,87,0.3); }

/* ── Section 通用 ── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-surface); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-l);
  color: var(--primary);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(99,226,183,0.2);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.8px;
  color: var(--text-1);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px; color: var(--text-2);
  max-width: 520px; margin: 0 auto;
}

/* ── 功能卡片 ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .25s var(--trans);
}

.feature-card:hover {
  border-color: rgba(99,226,183,0.35);
  background: var(--bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -10px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,226,183,0.08);
}

.feature-icon-wrap {
  width: 48px; height: 48px;
  background: var(--primary-l);
  border: 1px solid rgba(99,226,183,0.18);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background .2s;
}

.feature-card:hover .feature-icon-wrap {
  background: rgba(99,226,183,0.18);
}

.feature-icon { width: 22px; height: 22px; color: var(--primary); }

.feature-card h3 {
  font-size: 16px; font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px; color: var(--text-2); line-height: 1.65;
}

/* ── 支持软件 ── */
.softwares-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.software-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all .25s var(--trans);
}

.software-card:hover {
  border-color: rgba(99,226,183,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.4);
}

.software-card-muted { opacity: 0.55; }

.sw-icon { font-size: 36px; margin-bottom: 10px; }
.sw-name { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.sw-cat  {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--text-3);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  margin-bottom: 12px;
}
.sw-desc { font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* ── 下载区 ── */
.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  flex-wrap: wrap;
}

.dl-info { flex: 1; min-width: 280px; }

.dl-desc { font-size: 15px; color: var(--text-2); margin-bottom: 20px; line-height: 1.7; }

.dl-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }

.dl-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2);
}

.dl-list li svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

.dl-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 240px; }

.dl-btn-wrap { display: flex; flex-direction: column; gap: 12px; width: 100%; }

.dl-main-btn { flex-direction: row; }

.btn-text-group { display: flex; flex-direction: column; align-items: flex-start; }
.btn-main-text { line-height: 1.2; }
.btn-sub-text  { font-size: 11px; font-weight: 400; opacity: 0.7; }

.dl-note { font-size: 12px; color: var(--text-3); text-align: right; }

/* ── Footer ── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}

.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  margin-bottom: 28px;
}

.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700;
  color: var(--text-1);
}
.footer-logo-img { width: 28px; height: 28px; border-radius: 7px; display: block; object-fit: cover; }

.footer-links { display: flex; gap: 8px; }
.footer-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-3);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text-1); }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.copyright { font-size: 13px; color: var(--text-3); }

.icp-info {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}

.icp-info a {
  color: var(--text-2);
  display: flex; align-items: center; gap: 5px;
  transition: color .15s;
}
.icp-info a:hover { color: var(--primary); }

.icp-badge { display: block; width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

.icp-sep { color: var(--text-3); }

/* ── 响应式 ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta  { margin-left: auto; }

  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 20px; }
  .stat-divider { height: 28px; }

  .preview-sidebar { display: none; }
  .preview-body { height: 240px; }

  .features-grid { grid-template-columns: 1fr; }
  .softwares-row { grid-template-columns: repeat(2, 1fr); }

  .download-box { padding: 32px 24px; flex-direction: column; }
  .dl-actions  { align-items: stretch; width: 100%; }
  .dl-btn-wrap { width: 100%; }
  .dl-note     { text-align: center; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -0.8px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .softwares-row { grid-template-columns: repeat(2, 1fr); }
}
