:root {
  --neon: #00FF66;
  --neon-dim: #00CC52;
  --neon-dark: #003311;
  --dark: #050505;
  --dark-2: #0a0a0a;
  --dark-3: #111111;
  --dark-4: #1a1a1a;
  --text: #f5f5f5;
  --muted: #888888;
}

* { 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", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 255, 102, 0.3);
  color: #fff;
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 102, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.bg-scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  top: -10%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: rgba(0, 255, 102, 0.08);
}

.glow-orb-2 {
  bottom: -10%;
  right: 15%;
  width: 350px;
  height: 350px;
  background: rgba(0, 255, 102, 0.05);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.clip-corner {
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
}

.text-glow {
  text-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 255, 102, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--dark);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.logo-text {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.logo-text span:first-child { color: #fff; }
.logo-text span:last-child { color: var(--neon); }

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.back-home {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.back-home:hover { color: var(--neon); }

.lang-switch {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: 6px;
  background: rgba(0, 255, 102, 0.05);
  color: var(--neon);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.lang-switch:hover {
  background: rgba(0, 255, 102, 0.1);
}

nav.desktop-nav {
  display: none;
}

nav.desktop-nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: color 0.2s;
}

nav.desktop-nav a:hover { color: var(--neon); }

nav.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--neon);
  transition: width 0.2s;
}

nav.desktop-nav a:hover::after { width: 60%; }

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.header-actions a.icon-link {
  color: #888;
  padding: 0.4rem;
  transition: color 0.2s;
}

.header-actions a.icon-link:hover { color: var(--neon); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--neon);
  color: var(--dark);
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary:hover {
  background: var(--neon-dim);
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: transparent;
  color: var(--neon);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 255, 102, 0.5);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-outline:hover {
  background: rgba(0, 255, 102, 0.1);
  border-color: var(--neon);
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--neon);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-nav {
  display: none;
  background: var(--dark-2);
  border-bottom: 1px solid rgba(0, 255, 102, 0.2);
  padding: 0.75rem 0;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: #aaa;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-nav a:hover {
  color: var(--neon);
  background: rgba(0, 255, 102, 0.08);
}

/* Page Hero */
.page-hero {
  position: relative;
  padding: 8rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 255, 102, 0.1);
  overflow: hidden;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 999px;
  background: rgba(0, 255, 102, 0.05);
  color: var(--neon);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.page-hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-hero h1 .neon {
  color: var(--neon);
  text-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
}

.page-hero p {
  color: #888;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Main Content */
main {
  position: relative;
  z-index: 10;
}

.content-section {
  padding: 3rem 0 5rem;
}

.article {
  max-width: 800px;
  margin: 0 auto;
}

.article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neon);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 102, 0.2);
}

.article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 1.75rem 0 0.75rem;
}

.article p {
  color: #aaa;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.article strong {
  color: #fff;
  font-weight: 700;
}

.article ul {
  margin: 1rem 0 1.5rem 1.25rem;
  color: #aaa;
}

.article ul li {
  margin-bottom: 0.6rem;
}

.article blockquote {
  border-left: 3px solid var(--neon);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(0, 255, 102, 0.05);
  border-radius: 0 8px 8px 0;
  color: #bbb;
}

.article blockquote strong {
  color: var(--neon);
}

.article code {
  background: rgba(0, 255, 102, 0.1);
  color: var(--neon);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 0.9em;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.trick-card {
  background: rgba(17, 17, 17, 0.6);
  border: 1px solid rgba(0, 255, 102, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.trick-card:hover {
  border-color: rgba(0, 255, 102, 0.4);
  background: rgba(0, 255, 102, 0.05);
  transform: translateY(-3px);
}

.trick-card h3 {
  color: var(--neon);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trick-card p {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.trick-card strong {
  color: #fff;
}

/* Table */
.table-section {
  margin-top: 2rem;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(0, 255, 102, 0.15);
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.5);
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 255, 102, 0.1);
}

th {
  background: rgba(0, 255, 102, 0.08);
  color: var(--neon);
  font-weight: 800;
  white-space: nowrap;
}

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

td {
  color: #aaa;
  vertical-align: top;
}

td code {
  display: inline-block;
  margin: 0.1rem 0;
}

/* Accordion */
.accordion {
  margin-top: 2rem;
  border: 1px solid rgba(0, 255, 102, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid rgba(0, 255, 102, 0.08);
}

.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  width: 100%;
  padding: 1.25rem;
  background: rgba(17, 17, 17, 0.5);
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s;
}

.accordion-header:hover { background: rgba(0, 255, 102, 0.05); }

.accordion-header .icon {
  color: var(--neon);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.accordion-item.active .accordion-header .icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(10, 10, 10, 0.5);
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  color: #999;
}

.accordion-content ol,
.accordion-content ul {
  margin: 0.75rem 0 0.75rem 1.25rem;
}

.accordion-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(0, 255, 102, 0.1);
  background: rgba(10, 10, 10, 0.5);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 360px;
  margin: 1rem 0;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 102, 0.15);
  border-radius: 8px;
  color: #888;
  transition: all 0.2s;
}

.footer-social a:hover {
  color: var(--neon);
  border-color: rgba(0, 255, 102, 0.4);
  background: rgba(0, 255, 102, 0.05);
}

.footer-links h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li + li { margin-top: 0.5rem; }

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 255, 102, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: #444;
  font-size: 0.7rem;
  font-family: "SF Mono", Monaco, monospace;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #555;
  font-size: 0.7rem;
  font-family: "SF Mono", Monaco, monospace;
}

.footer-status span {
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-2);
}

::-webkit-scrollbar-thumb {
  background: var(--neon);
  border-radius: 4px;
}

/* Responsive */
@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .back-home,
  .lang-switch {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  nav.desktop-nav { display: flex; }
  .header-actions { display: flex; }

  .page-hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
  }

  .content-section {
    padding: 4rem 0 6rem;
  }

  .article h2 {
    font-size: 1.75rem;
  }

  .article h3 {
    font-size: 1.25rem;
  }
}
