/* ============================================
   墨小九网络技术 - 暗黑科技风样式表
   品牌色：红盾 #E84040 | 金色 #D4A853 | 暗夜 #0A0A0A
   ============================================ */

/* === 1. CSS 变量 === */
:root {
  --bg-dark: #0A0A0A;
  --bg-nav: rgba(10, 10, 10, 0.9);
  --orange-shield: #F97316;
  --orange-shield-light: #FF8C00;
  --orange-shield-dark: #C2410C;
  --orange-glow: rgba(249, 115, 22, 0.35);
  --gold: #D4A853;
  --gold-light: #F0D080;
  --gold-glow: rgba(212, 168, 83, 0.3);
  --gold-border: rgba(212, 168, 83, 0.6);
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dim: rgba(255, 255, 255, 0.35);
  --border-dark: rgba(255, 255, 255, 0.08);
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 2. Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === 3. Typography === */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

/* === 4. Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--gold-border);
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(212,168,83,0.1), rgba(212,168,83,0.05));
  opacity: 0;
  transition: var(--transition);
}
.btn-gold:hover {
  border-color: var(--gold-light);
  box-shadow: 0 0 20px var(--gold-glow), inset 0 0 20px rgba(212,168,83,0.05);
  transform: translateY(-2px);
}
.btn-gold:hover::before { opacity: 1; }
.btn-primary-dark {
  background: linear-gradient(135deg, #F97316, #C2410C);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(249,115,22,0.3);
}
.btn-primary-dark:hover {
  box-shadow: 0 8px 30px rgba(249,115,22,0.5);
  transform: translateY(-2px);
}

/* === 5. Header / Navigation === */
.header-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
}
.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--orange-shield-light), var(--orange-shield-dark));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 0 12px var(--orange-glow);
}
.logo span { font-weight: 400; opacity: 0.5; font-size: 0.8rem; margin-left: 2px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu a {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: var(--transition);
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a.active {
  color: var(--gold-light);
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--gold-glow);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === 6. Hero Banner === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 0 60px;
}

/* Particle background */
.hero-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold-glow), 0 0 12px rgba(212,168,83,0.2);
  animation: particleFloat linear infinite;
  opacity: 0;
}
@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-300px) translateX(50px) scale(0); opacity: 0; }
}

/* Radial glow behind shield */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, rgba(212,168,83,0.05) 30%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* === 7. Shield === */
.shield-container {
  display: inline-block;
  position: relative;
  margin-bottom: 32px;
}
.shield {
  width: 180px;
  height: 200px;
  position: relative;
  margin: 0 auto;
}
.shield-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px var(--orange-glow)) drop-shadow(0 0 60px rgba(249,115,22,0.2));
  animation: shieldFloat 4s ease-in-out infinite;
}
@keyframes shieldFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.shield-character {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  z-index: 2;
  line-height: 1;
}
.shield-star {
  position: absolute;
  top: 8%;
  left: 58%;
  font-size: 1.5rem;
  color: var(--gold);
  z-index: 2;
  animation: starSpin 4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}
@keyframes starSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

/* Light rays from shield */
.shield-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
}
.ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 80px;
  background: linear-gradient(to top, var(--gold), transparent);
  transform-origin: bottom center;
  opacity: 0;
  animation: rayFlash 2s ease-out infinite;
}
@keyframes rayFlash {
  0% { opacity: 0; transform: translate(-50%, 0) rotate(var(--angle)) scaleY(0.5); }
  30% { opacity: 0.6; }
  100% { opacity: 0; transform: translate(-50%, 0) rotate(var(--angle)) scaleY(1.5); }
}

/* === 8. Hero Text === */
.hero-content {
  max-width: 700px;
  margin: 0 auto;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(255,255,255,0.05);
}
.hero-content .hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 36px;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* === 9. Section Common === */
.section { padding: 80px 0; }
.section-dark { background: #0E0E0E; }
.section-darker { background: #080808; }

/* === 10. Section Headers with gold accent === */
.section-title {
  color: var(--text);
  position: relative;
  display: inline-block;
}
.section-title-wrapper {
  text-align: center;
  margin-bottom: 48px;
}
.section-title-bar {
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* === 11. Services Section === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  border-color: rgba(212,168,83,0.3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
  background: rgba(255,255,255,0.03);
}
.service-card:hover .service-icon {
  border-color: var(--gold-border);
  box-shadow: 0 0 20px var(--gold-glow);
  background: rgba(212,168,83,0.05);
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === 12. Stats Section === */
.stats-section {
  background: linear-gradient(135deg, #0E0E0E, #111);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item { color: var(--text); }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === 13. About Section === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-shield {
  width: 240px;
  height: 260px;
  filter: drop-shadow(0 0 40px rgba(249,115,22,0.3));
}
.about-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.about-content .about-tagline {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.about-features { margin-top: 24px; }
.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.about-features li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* === 14. Cases Section === */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  transition: var(--transition);
}
.case-card:hover {
  border-color: rgba(212,168,83,0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.case-image {
  height: 200px;
  background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(212,168,83,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.case-info { padding: 20px 24px 24px; }
.case-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.case-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.case-tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  border-radius: 999px;
  font-size: 0.75rem;
}

/* === 15. News Section === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  padding: 24px;
  transition: var(--transition);
}
.news-card:hover {
  border-color: rgba(212,168,83,0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.news-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.news-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}
.news-more:hover { color: var(--gold-light); }

/* === 16. Partners Section === */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
}
.partner-item {
  height: 70px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: var(--transition);
  padding: 12px;
}
.partner-item:hover {
  border-color: rgba(212,168,83,0.2);
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
}

/* === 17. CTA Section === */
.cta-section {
  background: linear-gradient(135deg, #0E0E0E, #111);
  border-top: 1px solid var(--border-dark);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 12px;
}
.cta-section .cta-tagline {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* === 18. Footer === */
.footer {
  background: #080808;
  border-top: 1px solid var(--border-dark);
  color: var(--text-muted);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 280px;
}
.footer h4 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer ul a:hover { color: var(--gold-light); }
.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--text-dim);
}
.footer-contact .icon { color: var(--gold); flex-shrink: 0; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--gold-light); }

/* === 19. Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* === 20. Page Banner (子页面) === */
.page-banner {
  background: linear-gradient(135deg, #0E0E0E, #080808);
  border-bottom: 1px solid var(--border-dark);
  padding: 120px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner h1 {
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-banner p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.breadcrumb {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--gold); }

/* === 21. Subpage Content === */
.page-content { padding: 60px 0; }
.page-content .container { max-width: 900px; }

/* === 22. Responsive === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border-dark);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    backdrop-filter: blur(20px);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-menu a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }
  .section-title { font-size: 1.5rem; }
  .hero { min-height: 100vh; padding: 80px 0 40px; }
  .hero-content h1 { font-size: 1.8rem; letter-spacing: 1px; }
  .hero-content .hero-subtitle { font-size: 0.9rem; letter-spacing: 1px; }
  .shield { width: 130px; height: 145px; }
  .shield-character { font-size: 3rem; }
  .shield-star { font-size: 1.2rem; }
  .services-grid,
  .cases-grid,
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-section h2 { font-size: 1.4rem; }
  .page-banner { padding: 100px 0 40px; }
  .page-banner h1 { font-size: 1.5rem; }
  .section { padding: 50px 0; }
  .about-grid { text-align: center; }
  .about-features li { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.5rem; }
  .shield { width: 110px; height: 125px; }
  .shield-character { font-size: 2.5rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}
