/* 巨量星辰 - 主样式文件 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #1a5fa8;
  --primary-dark: #0d3d6e;
  --primary-light: #2980d4;
  --accent: #00c8ff;
  --accent2: #0ef;
  --dark: #080f1e;
  --dark2: #0d1a30;
  --dark3: #122040;
  --text: #e8edf5;
  --text-muted: #8899bb;
  --border: rgba(41, 128, 212, 0.25);
  --card-bg: rgba(13, 26, 48, 0.8);
  --white: #ffffff;
  --success: #00c97b;
  --warning: #f5a623;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 15, 30, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(8, 15, 30, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text .cn { 
  font-size: 18px; 
  font-weight: 700; 
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1.2;
}

.nav-logo-text .en { 
  font-size: 10px; 
  color: var(--accent); 
  letter-spacing: 3px;
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s;
  position: relative;
  font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(41, 128, 212, 0.15);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--accent)) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 200, 255, 0.3) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(26, 95, 168, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0, 200, 255, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #080f1e 0%, #0d1a30 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(26, 95, 168, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 95, 168, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  animation: float linear infinite;
  opacity: 0;
}

@keyframes float {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 95, 168, 0.2);
  border: 1px solid rgba(26, 95, 168, 0.4);
  color: var(--accent);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: 1px;
}

.hero-text .badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

.hero-text h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 300;
  letter-spacing: 4px;
}

.hero-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 95, 168, 0.5);
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--accent);
  background: rgba(26, 95, 168, 0.1);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.stat-item .num {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-item .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-hexagon-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
}

.hex-ring {
  position: absolute;
  border: 1px solid rgba(26, 95, 168, 0.3);
  border-radius: 50%;
  animation: spin linear infinite;
}

.hex-ring:nth-child(1) { width: 360px; height: 360px; top: 20px; left: 20px; animation-duration: 20s; }
.hex-ring:nth-child(2) { width: 280px; height: 280px; top: 60px; left: 60px; animation-duration: 15s; animation-direction: reverse; border-color: rgba(0, 200, 255, 0.2); }
.hex-ring:nth-child(3) { width: 200px; height: 200px; top: 100px; left: 100px; animation-duration: 10s; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hex-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-center img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.4));
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.4)); }
  50% { filter: drop-shadow(0 0 40px rgba(0, 200, 255, 0.7)); }
}

.hex-orbit {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ===== SECTION COMMON ===== */
section { padding: 80px 0; }

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(26, 95, 168, 0.15);
  border: 1px solid rgba(26, 95, 168, 0.4);
  color: var(--accent);
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 3px;
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: var(--dark2);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 95, 168, 0.1) 0%, transparent 70%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(26, 95, 168, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(26, 95, 168, 0.15);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(26, 95, 168, 0.3), rgba(0, 200, 255, 0.1));
  border: 1px solid rgba(26, 95, 168, 0.4);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(26, 95, 168, 0.4);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13px;
  margin-top: 20px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s;
}

.service-card:hover .arrow { opacity: 1; }

/* ===== NEWS SECTION ===== */
.news-section { background: var(--dark); }

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 95, 168, 0.5);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

.news-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  overflow: hidden;
  position: relative;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-img .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--dark3), rgba(26, 95, 168, 0.2));
}

.news-card-body { padding: 24px; }

.news-cat {
  display: inline-block;
  background: rgba(26, 95, 168, 0.2);
  color: var(--accent);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-weight: 500;
}

.news-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== ABOUT STRIP ===== */
.about-strip {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark3));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-strip-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}

.about-strip-text p {
  font-size: 15px;
  color: rgba(232, 237, 245, 0.75);
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-strip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.about-stat .num {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.about-stat .label {
  font-size: 13px;
  color: rgba(232, 237, 245, 0.6);
  margin-top: 6px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

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

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand .logo img { height: 40px; }

.footer-brand .logo span { 
  font-size: 18px; 
  font-weight: 700; 
  color: var(--white);
  letter-spacing: 2px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-contact { font-size: 13px; color: var(--text-muted); }
.footer-contact div { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

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

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== BREADCRUMB ===== */
.page-header {
  padding: 100px 0 50px;
  background: linear-gradient(180deg, var(--dark2) 0%, var(--dark) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb span { margin: 0 8px; }

/* ===== CARDS COMMON ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

/* ===== LOADING ===== */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .about-strip-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(8, 15, 30, 0.98); padding: 20px; flex-direction: column; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .container { padding: 0 20px; }
  .hero-content { padding: 100px 20px 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.partners-scroll {
  overflow: hidden;
  position: relative;
}

.partners-scroll::before,
.partners-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.partners-scroll::before {
  left: 0;
  background: linear-gradient(90deg, var(--dark2) 0%, transparent 100%);
}

.partners-scroll::after {
  right: 0;
  background: linear-gradient(-90deg, var(--dark2) 0%, transparent 100%);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scrollPartners 30s linear infinite;
  width: max-content;
}

.partners-track:hover {
  animation-play-state: paused;
}

@keyframes scrollPartners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 30px;
  border-radius: 12px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.partner-item:hover {
  background: rgba(26, 95, 168, 0.1);
  transform: translateY(-4px);
}

.partner-item img {
  height: 100px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.partner-item:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.partner-item span {
  color: var(--text-muted);
  font-size: 32px;
  font-weight: 1000;
  white-space: nowrap;
  transition: color 0.3s;
}

.partner-item:hover span {
  color: var(--text);
}

@media (max-width: 768px) {
  .partners-track {
    gap: 30px;
    animation-duration: 20s;
  }

  .partner-item {
    padding: 15px 20px;
  }

  .partner-item img {
    height: 45px;
    max-width: 130px;
  }

  .partner-item span {
    font-size: 14px;
  }

  .partners-scroll::before,
  .partners-scroll::after {
    width: 40px;
  }
}
