/* 南宫pg官方网站 - 企业级服务专家 - 独特CSS设计系统 */
/* 视觉风格：新野兽派 + 渐变流体 + 大胆排版 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;500;700;900&display=swap');

:root {
  --primary: #FF4D6D;
  --primary-dark: #C9184A;
  --secondary: #FFB703;
  --accent: #00F5D4;
  --bg-dark: #0B090A;
  --bg-card: #161A1D;
  --text-light: #F5F3F4;
  --text-muted: #A4161A;
  --glass-bg: rgba(255, 77, 109, 0.08);
  --glass-border: rgba(255, 77, 109, 0.2);
  --font: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== 容器 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* ===== 头部 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 9, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.25rem 0;
  transition: var(--transition);
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-light) !important;
  padding: 0.6rem 1.8rem !important;
  border-radius: 50px;
  font-weight: 700 !important;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 77, 109, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 77, 109, 0.5);
  color: var(--text-light) !important;
}

.nav-cta::before {
  display: none !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 100;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-light);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== 英雄区 ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 0 4rem;
  background: radial-gradient(circle at 20% 50%, rgba(255, 77, 109, 0.15), transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 245, 212, 0.1), transparent 50%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 77, 109, 0.08));
  transform: rotate(-15deg);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(255, 183, 3, 0.1);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 183, 3, 0.2);
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-light) 30%, var(--primary) 70%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  text-shadow: none;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  margin-top: 3rem;
  width: 100%;
  max-width: 600px;
  height: 400px;
  background: linear-gradient(135deg, var(--glass-bg), transparent);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" fill="none" stroke="%23FF4D6D" stroke-width="0.5" opacity="0.3"/><circle cx="50" cy="50" r="20" fill="none" stroke="%2300F5D4" stroke-width="0.5" opacity="0.3"/></svg>') center/cover no-repeat;
  opacity: 0.4;
  animation: pulseRotate 20s linear infinite;
}

@keyframes pulseRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  font-family: var(--font);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(255, 77, 109, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px rgba(255, 77, 109, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--glass-bg);
  transform: translateY(-3px);
}

/* ===== 通用区块 ===== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.2rem;
  height: 2px;
  background: var(--secondary);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ===== 卡片网格 ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border);
  box-shadow: 0 20px 60px rgba(255, 77, 109, 0.1);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--glass-bg), transparent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.category-card:hover .card-icon {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.2), transparent);
  transform: scale(1.05);
}

.category-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.card-link:hover {
  gap: 1rem;
  color: var(--accent);
}

/* ===== 特色区块 ===== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.feature-image {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, var(--glass-bg), rgba(0, 245, 212, 0.05));
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-image::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.1), transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.feature-text {
  padding: 1rem;
}

.feature-text h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.feature-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ===== 数据统计 ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  transition: var(--transition);
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== 内容墙 ===== */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.content-wall-item {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  cursor: default;
}

.content-wall-item:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border);
  box-shadow: 0 15px 40px rgba(255, 77, 109, 0.08);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--glass-bg), rgba(0, 245, 212, 0.05));
}

.content-wall-body {
  padding: 1.5rem;
}

.content-wall-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.content-wall-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--glass-border);
}

.faq-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.faq-item h4::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active h4::after {
  transform: rotate(45deg);
  content: '×';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 1rem;
}

/* ===== CTA横幅 ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.1), rgba(0, 245, 212, 0.05));
  border-radius: 30px;
  padding: 4rem 3rem;
  text-align: center;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 77, 109, 0.05), transparent 50%);
  animation: rotateBg 30s linear infinite;
}

@keyframes rotateBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-weight: 300;
  position: relative;
  z-index: 2;
}

.cta-banner .btn {
  position: relative;
  z-index: 2;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--glass-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.5rem;
}

.footer-brand .logo {
  font-size: 1.8rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.4rem 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ===== 工具类 ===== */
.text-accent {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.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: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    z-index: 99;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav a {
    font-size: 1.2rem;
  }

  .nav-cta {
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
  }

  .hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-image {
    height: 250px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .feature-image {
    height: 300px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem 0;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .content-wall {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header-inner {
    padding: 0.8rem 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .feature-image {
    height: 220px;
  }

  .feature-text h3 {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner {
    padding: 2rem 1rem;
    border-radius: 20px;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }

  .faq-item {
    padding: 1rem 1.2rem;
  }

  .category-card {
    padding: 1.5rem;
  }

  .content-wall-item img {
    height: 160px;
  }
}