/* ===========================
   CSS Variables
   =========================== */
:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --accent: #f0a500;
  --accent-hover: #d4940a;
  --accent-glow: rgba(240, 165, 0, 0.15);
  --text-primary: #e0e0e0;
  --text-secondary: #888;
  --text-muted: #555;
  --border-color: rgba(255, 255, 255, 0.06);
  --font-stack: -apple-system, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  --header-height: 64px;
  --container-width: 1080px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ===========================
   Header
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-color);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  height: 32px;
  width: auto;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link--active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(240, 165, 0, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(22, 33, 62, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.text-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 420px;
}

/* Download Button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 36px;
  background: var(--accent);
  color: #0f0f1a;
  border-radius: 10px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 20px rgba(240, 165, 0, 0.25);
}

.btn-download:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240, 165, 0, 0.35);
}

.btn-download:active {
  transform: translateY(0);
}

.btn-icon {
  width: 28px;
  height: 28px;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-main {
  font-size: 16px;
  line-height: 1.3;
}

.btn-sub {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 400;
}

/* ===========================
   Showcase
   =========================== */
.showcase {
  padding: 80px 0 100px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 48px;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* Laptop Frame */
.laptop-frame {
  max-width: 820px;
  margin: 0 auto;
}

.laptop-screen {
  background: #000;
  border-radius: 8px 8px 0 0;
  border: 2px solid #333;
  border-bottom: none;
  padding: 8px 8px 0;
  position: relative;
}

.laptop-screen::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
  margin: 0 auto 8px;
}

.showcase-img {
  width: 100%;
  border-radius: 4px 4px 0 0;
}

.laptop-base {
  height: 18px;
  background: linear-gradient(to bottom, #2a2a2a, #1f1f1f);
  border-radius: 0 0 4px 4px;
  position: relative;
}

.laptop-base::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #333;
  border-radius: 0 0 4px 4px;
}

/* ===========================
   Announcements
   =========================== */
.announcements {
  padding: 60px 0 100px;
}

.announcement-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-secondary);
  transition: background var(--transition);
  cursor: default;
}

.announcement-item:hover {
  background: var(--bg-tertiary);
}

.announcement-tag {
  flex-shrink: 0;
  font-size: 12px;
  padding: 2px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 3px;
  font-weight: 500;
}

.announcement-content {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement-date {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ===========================
   Footer
   =========================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
  padding: 2px 4px;
}

.footer-links a:hover {
  color: var(--accent);
}

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

.footer-icp,
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===========================
   Fade-in Animation
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-logo {
    width: 68px;
    height: 68px;
  }

  .btn-download {
    padding: 12px 28px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .announcement-item {
    padding: 14px 16px;
    gap: 10px;
  }

  .announcement-date {
    display: none;
  }

  .laptop-frame {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 60px;
  }
}
