/* ============================================
   NANGONG PG - 独家视觉设计系统
   风格：野兽派 × 解构网格 × 酸性渐变
   色彩：暗紫红 + 电光青柠 + 哑光黑
   字体：思源黑体(Noto Sans SC) 极端字重对比
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;700;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg: #0d0b0f;
  --clr-surface: #1a1520;
  --clr-primary: #b3005e;
  --clr-primary-light: #ff2e8a;
  --clr-accent: #b9ff50;
  --clr-accent-dim: #7ab830;
  --clr-text: #f0eae6;
  --clr-text-muted: #9a8e96;
  --clr-border: #3a2c3a;
  --clr-glass: rgba(179, 0, 94, 0.12);
  --font-sans: 'Noto Sans SC', -apple-system, 'Microsoft YaHei', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-med: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  --grid-gap: 2rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 容器 — 解构式宽边距 */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

/* 头部 — 玻璃态 + 斜切 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 11, 15, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition-med);
}

.site-header:hover {
  background: rgba(13, 11, 15, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* logo — 斜体 + 酸性切割 */
.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.logo::after {
  content: '◈';
  display: inline-block;
  font-size: 1.2rem;
  color: var(--clr-primary-light);
  margin-left: 0.2rem;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3) rotate(15deg); }
}

.logo:hover {
  color: white;
  text-shadow: 0 0 20px var(--clr-accent);
}

/* 主导航 — 字重极端对比 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.main-nav a {
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast), font-weight var(--transition-fast);
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width var(--transition-med);
}

.main-nav a:hover {
  color: var(--clr-accent);
  font-weight: 700;
}

.main-nav a:hover::before {
  width: 100%;
}

/* CTA按钮在导航中 */
.nav-cta {
  background: var(--clr-primary);
  color: white !important;
  padding: 0.5rem 1.4rem !important;
  border-radius: 0;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
  transition: all var(--transition-med);
}

.nav-cta:hover {
  background: var(--clr-accent);
  color: var(--clr-bg) !important;
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

/* 汉堡菜单 — 极简三条线 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-text);
  transition: all var(--transition-med);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse at center, var(--clr-primary) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(80px);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.1; }
  100% { transform: translate(-30px, 30px) scale(1.2); opacity: 0.25; }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(185, 255, 80, 0.08);
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--clr-accent);
  animation: fadeSlideUp 0.8s ease-out;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: white;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: fadeSlideUp 0.8s ease-out 0.1s both;
}

.hero-content h1 span {
  color: var(--clr-primary-light);
  display: block;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 400px;
}

.hero-image::after {
  content: '◈◈◈';
  font-size: 10rem;
  color: var(--clr-primary);
  opacity: 0.08;
  position: absolute;
  top: 10%;
  right: 5%;
  font-weight: 900;
  letter-spacing: -0.1em;
  transform: rotate(-15deg);
  pointer-events: none;
}

/* 按钮系统 — 野兽派切角 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-med);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}

.btn-primary {
  background: var(--clr-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--clr-accent);
  color: var(--clr-bg);
  clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 2px solid var(--clr-border);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 4% 100%);
}

.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: rgba(185, 255, 80, 0.05);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  transform: translateX(-4px);
}

/* ========== 通用区块 ========== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--clr-accent-dim);
  background: rgba(185, 255, 80, 0.06);
  padding: 0.3rem 1rem;
  margin-bottom: 1.2rem;
  border-right: 3px solid var(--clr-accent);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 640px;
  font-weight: 300;
  line-height: 1.7;
}

/* ========== 卡片网格 ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--grid-gap);
  margin-top: 3rem;
}

.category-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 2.5rem 1.8rem;
  position: relative;
  transition: all var(--transition-med);
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
  display: flex;
  flex-direction: column;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--clr-accent);
  transition: height var(--transition-slow);
}

.category-card:hover {
  border-color: var(--clr-primary-light);
  transform: translateY(-8px);
  clip-path: polygon(2% 0, 100% 0, 100% 100%, 0 98%);
}

.category-card:hover::before {
  height: 100%;
}

.card-icon {
  font-size: 2.8rem;
  color: var(--clr-primary-light);
  margin-bottom: 1.2rem;
  transition: transform var(--transition-med);
}

.category-card:hover .card-icon {
  transform: scale(1.1) rotate(-5deg);
  color: var(--clr-accent);
}

.category-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: white;
}

.category-card p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--clr-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  transition: gap var(--transition-fast);
}

.card-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.card-link:hover {
  gap: 0.8rem;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ========== 特性区块 ========== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
  position: relative;
}

.feature-block:nth-child(even) {
  direction: rtl;
}

.feature-block:nth-child(even) .feature-text {
  direction: ltr;
}

.feature-image {
  background: var(--clr-surface);
  aspect-ratio: 4/3;
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--clr-primary);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  transition: clip-path var(--transition-med);
}

.feature-block:hover .feature-image {
  clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%);
}

.feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(179, 0, 94, 0.08));
  pointer-events: none;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature-text h3 {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--clr-text-muted);
  font-weight: 300;
  padding-left: 0.5rem;
  border-left: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.feature-list li:hover {
  border-left-color: var(--clr-accent);
  color: var(--clr-text);
}

.feature-list li::before {
  content: '▸';
  color: var(--clr-accent);
  font-weight: 700;
}

/* ========== 统计条 ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  margin: 3rem 0;
}

.stat-item {
  background: var(--clr-surface);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  transition: background var(--transition-med);
}

.stat-item:hover {
  background: #1e1825;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--clr-accent);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========== 内容墙 ========== */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--clr-border);
  margin: 3rem 0;
}

.content-wall-item {
  background: var(--clr-surface);
  padding: 2.5rem;
  position: relative;
  transition: all var(--transition-med);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.content-wall-item:hover {
  background: #1e1825;
  transform: scale(1.02);
  z-index: 2;
  border: 1px solid var(--clr-primary-light);
}

.content-wall-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-wall-body h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.8rem;
}

.content-wall-body p {
  color: var(--clr-text-muted);
  font-weight: 300;
  font-size: 0.9rem;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 800px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 1.2rem 1.8rem;
  cursor: pointer;
  transition: all var(--transition-med);
  position: relative;
}

.faq-item::before {
  content: '?';
  position: absolute;
  right: 1.5rem;
  top: 1.2rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--clr-primary);
  transition: transform var(--transition-med);
}

.faq-item.active::before {
  transform: rotate(45deg);
  color: var(--clr-accent);
}

.faq-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  padding-right: 2rem;
  transition: color var(--transition-fast);
}

.faq-item:hover h4 {
  color: var(--clr-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-med);
  color: var(--clr-text-muted);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 1rem;
}

/* ========== CTA横幅 ========== */
.cta-banner {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  margin: 4rem 0;
  clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(179, 0, 94, 0.06), transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--clr-text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 4rem 0 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-brand .logo {
  font-size: 1.6rem;
}

.footer-brand p {
  color: var(--clr-text-muted);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-accent-dim);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  color: var(--clr-text-muted);
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer-col a:hover {
  color: var(--clr-accent);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding: 1.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  font-weight: 300;
}

/* ========== 辅助类 ========== */
.text-accent {
  color: var(--clr-accent);
}

.text-center {
  text-align: center;
}

.seo-description {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }

  .hero-content p {
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    min-height: 200px;
    order: -1;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-block:nth-child(even) {
    direction: ltr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(13, 11, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition-med);
    border-bottom: 1px solid var(--clr-border);
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav a {
    font-size: 1.1rem;
  }

  .nav-cta {
    clip-path: none;
    text-align: center;
    width: 100%;
  }

  .section {
    padding: 4rem 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .content-wall {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
    clip-path: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header-inner {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }

  .faq-item {
    padding: 1rem 1.2rem;
  }
}