:root {
  --primary: #64748B;
  --secondary: #0F172A;
  --accent: #38BDF8;
  --bg-dark: #0F172A;
  --bg-darker: #020617;
  --bg-card: #1E293B;
  --text-main: #F1F5F9;
  --text-muted: #64748B;
  --border-glow: rgba(56, 189, 248, 0.3);
  --shadow-glow: rgba(56, 189, 248, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', system-ui, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.75) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--text-main);
}

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-darker);
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #020617 0%, #0F172A 50%, #1E293B 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(2, 6, 23, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  max-width: 920px;
}

.hero-logo {
  width: clamp(120px, 22vw, 180px);
  margin: 0 auto 1.75rem;
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.55), 0 0 120px rgba(56, 189, 248, 0.2);
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #38BDF8 0%, #F1F5F9 50%, #64748B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-glow {
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
  color: #0F172A;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.85);
}

.btn-3d {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 0 #075985, 0 6px 20px rgba(56, 189, 248, 0.3);
}

.btn-3d:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #075985, 0 4px 15px rgba(56, 189, 248, 0.5);
}

.btn-glass {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  max-width: 100%;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.heading-line {
  position: relative;
  padding-bottom: 1rem;
}

.heading-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.heading-bar {
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.card-glass {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}

.card-glass:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
}

.card-bordered {
  background: #1E293B;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.35s ease;
}

.card-bordered:hover {
  transform: scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.card-icon {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin: 3rem 0;
}

.footer {
  background: var(--bg-darker);
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--border-glow);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.footer-contact-item img {
  width: 130px;
  height: 130px;
  border-radius: 10px;
  border: 1px solid var(--border-glow);
  object-fit: cover;
}

.footer-contact-item .label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-contact-item .value {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
}

.footer-contact-item .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.125rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-contact-item .btn-link:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1.5rem;
  justify-content: center;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

.footer-info {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.page-header {
  position: relative;
  padding: 8rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, #020617 0%, #0F172A 100%);
  border-bottom: 1px solid var(--border-glow);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #38BDF8 0%, #F1F5F9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header p {
  position: relative;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumb {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.code-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.code-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.code-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.2);
}

.code-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
  color: #0F172A;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.code-list {
  list-style: none;
  margin-top: 1rem;
}

.code-list li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.1);
}

.code-list li:last-child {
  border-bottom: none;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.toc {
  position: sticky;
  top: 100px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.toc h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glow);
}

.toc ul {
  list-style: none;
}

.toc li {
  margin-bottom: 0.625rem;
}

.toc a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: block;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
}

.toc a:hover {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border-left-color: var(--accent);
}

.article-body {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.9;
}

.article-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
  color: var(--text-main);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--accent);
}

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-main);
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--accent);
  font-weight: 600;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text-main);
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 12px;
  overflow: hidden;
}

.tier-table th,
.tier-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  font-size: 0.9rem;
}

.tier-table th {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  font-weight: 700;
}

.tier-table tr:last-child td {
  border-bottom: none;
}

.tier-table tr:hover {
  background: rgba(56, 189, 248, 0.05);
}

.news-feature {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-glow);
  transition: all 0.35s ease;
}

.news-feature:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.2);
}

.news-feature-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.news-feature-body {
  padding: 1.75rem;
}

.news-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.news-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.news-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.news-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.news-list-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.news-list-item:hover {
  border-color: var(--accent);
  background: rgba(30, 41, 59, 0.7);
}

.news-list-item img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-list-item-body {
  flex: 1;
}

@media (max-width: 560px) {
  .news-list-item {
    flex-direction: column;
  }
  .news-list-item img {
    width: 100%;
    height: 180px;
  }
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.screenshot-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-glow);
  transition: all 0.35s ease;
}

.screenshot-grid img:hover {
  transform: scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stat-num {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #38BDF8 0%, #F1F5F9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.glow-text {
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.guide-aside {
  display: none;
}

.guide-mobile-toc {
  display: block;
}

@media (min-width: 1024px) {
  .guide-layout {
    grid-template-columns: 280px 1fr;
  }
  .guide-aside {
    display: block;
  }
  .guide-mobile-toc {
    display: none;
  }
}

@media (max-width: 375px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .nav-container {
    padding: 0.75rem 1rem;
  }
  .section {
    padding: 3rem 1rem;
  }
}
