/* 基础重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background-color: #12121a;
  color: #d4d4dc;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 背景 */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 30%, #1e1e3a 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, #1a1a2e 0%, transparent 50%),
    #12121a;
}

/* 导航栏 */
.header {
  border-bottom: 1px solid #2a2a3e;
  background: rgba(18, 18, 26, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #eeeef5;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #9a9aae;
  font-size: 0.925rem;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #eeeef5;
}

.qq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1ebcd8;
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}

.qq-btn:hover {
  background: #17a2ba;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  background: #2a2a3e;
  color: #a8a8c8;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid #3a3a52;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #eeeef5;
  letter-spacing: -1px;
}

.hero-title span {
  color: #f5a623;
}

.hero-desc {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #8a8aa0;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.15s;
}

.btn-primary {
  background: #f5a623;
  color: #12121a;
}

.btn-primary:hover {
  background: #e89a1a;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid #3a3a52;
  color: #c8c8d8;
}

.btn-outline:hover {
  border-color: #f5a623;
  color: #f5a623;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #2a2a3e;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #eeeef5;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.85rem;
  color: #7a7a92;
  margin-top: 2px;
}

/* 特色区 */
.features {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #eeeef5;
  letter-spacing: -0.5px;
}

.section-sub {
  color: #7a7a92;
  margin-top: 8px;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

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

.feature-card {
  background: #1a1a2a;
  border: 1px solid #2a2a3e;
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.15s, background 0.15s;
}

.feature-card:hover {
  border-color: #f5a623;
  background: #1e1e32;
}

.feature-card-icon {
  color: #f5a623;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #eeeef5;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.925rem;
  color: #8a8aa0;
  line-height: 1.6;
}

/* 加入区域 */
.join {
  padding: 60px 0 80px;
}

.join-panel {
  background: #1a1a2a;
  border: 1px solid #2a2a3e;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.join-info {
  flex: 1;
  min-width: 280px;
}

.join-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #eeeef5;
}

.join-desc {
  color: #8a8aa0;
  margin-top: 8px;
  font-size: 0.95rem;
}

.ip-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.ip-address {
  background: #12121a;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  color: #f5a623;
  border: 1px solid #2a2a3e;
  user-select: all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2a2a3e;
  color: #c8c8d8;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}

.copy-btn:hover {
  background: #3a3a52;
}

.copy-toast {
  font-size: 0.85rem;
  color: #4caf50;
  opacity: 0;
  transition: opacity 0.2s;
}

.copy-toast.show {
  opacity: 1;
}

.version-info {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8a8aa0;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-green {
  background: #4caf50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
}

.join-status {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 180px;
  padding-left: 40px;
  border-left: 1px solid #2a2a3e;
}

@media (max-width: 640px) {
  .join-status {
    padding-left: 0;
    border-left: none;
    padding-top: 20px;
    border-top: 1px solid #2a2a3e;
    width: 100%;
  }
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-item svg {
  color: #7a7a92;
  flex-shrink: 0;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
  flex-shrink: 0;
}

.status-label {
  display: block;
  font-size: 0.8rem;
  color: #7a7a92;
}

.status-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d4d4dc;
}

/* 画廊 */
.gallery {
  padding: 60px 0 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.gallery-card {
  background: #1a1a2a;
  border: 1px solid #2a2a3e;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.gallery-card:hover {
  border-color: #f5a623;
}

.gallery-img {
  aspect-ratio: 16 / 10;
  background: #22223a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a4a62;
}

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

.gallery-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #d4d4dc;
}

.gallery-info p {
  font-size: 0.85rem;
  color: #7a7a92;
  margin-top: 4px;
}

/* 页脚 */
.footer {
  border-top: 1px solid #2a2a3e;
  padding: 40px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .logo {
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.875rem;
  color: #7a7a92;
  max-width: 240px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #eeeef5;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: #8a8aa0;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #f5a623;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #2a2a3e;
  color: #8a8aa0;
  transition: background 0.15s, color 0.15s;
}

.footer-social a:hover {
  background: #f5a623;
  color: #12121a;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #2a2a3e;
  font-size: 0.8rem;
  color: #5a5a72;
}

/* 浮动复制提示 */
.float-toast {
  position: fixed;
  transform: translate(-50%, -100%);
  background: #2a2a3e;
  color: #d4d4dc;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999;
  border: 1px solid #3a3a52;
}

.float-toast.show {
  opacity: 1;
  transform: translate(-50%, -120%);
}
