/* ========================================
   GMG科技 - 全局样式
   暗色科技主题 | 百度SEO优化版
   ======================================== */

/* === Design Tokens === */
:root {
  --bg-base: #0a0a0f;
  --bg-card: #101018;
  --bg-elevated: #16161f;
  --bg-hover: #1c1c28;

  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;

  --accent: #e63946;
  --accent-light: #f05565;
  --accent-dark: #c52d3a;
  --accent-glow: rgba(230, 57, 70, 0.15);
  --accent-glow-strong: rgba(230, 57, 70, 0.3);

  --border-color: #1e1e2e;
  --border-subtle: #16161f;

  --gradient-primary: linear-gradient(135deg, #e63946, #f05565);
  --gradient-hero: linear-gradient(180deg, rgba(10,10,15,0.4) 0%, rgba(10,10,15,0.7) 60%, #0a0a0f 100%);
  --gradient-text: linear-gradient(135deg, #ffffff, #f08090);
  --gradient-section: linear-gradient(180deg, transparent, rgba(16,16,24,0.6) 50%, transparent);

  --shadow-card: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-elegant: 0 10px 40px -10px rgba(230,57,70,0.2);
  --shadow-glow: 0 0 60px rgba(230,57,70,0.15);
  --shadow-glow-strong: 0 0 80px rgba(230,57,70,0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container-max: 1200px;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(230, 57, 70, 0.3);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* === Container === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.25rem; }
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--text-secondary);
}

/* === Utility Classes === */
.card-glass {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-base));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hover-lift {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
}

.section-divider {
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 66%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-family: var(--font-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-strong);
  transform: scale(1.05);
}

.btn-outline {
  background: rgba(230, 57, 70, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(230, 57, 70, 0.4);
}

.btn-outline:hover {
  background: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.6);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition-smooth), color var(--transition-fast);
}

.link-arrow:hover {
  gap: 10px;
  color: var(--accent-light);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 1024px) {
  .header-inner { height: 76px; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #fff;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent);
}

.nav-desktop a:hover {
  background: var(--bg-hover);
}

/* Mobile menu btn */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.nav-mobile.open { display: block; }

@media (min-width: 1024px) {
  .nav-mobile { display: none !important; }
}

.nav-mobile a {
  display: block;
  padding: 14px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,0.25), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4.25rem; }
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.125rem; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@media (min-width: 480px) {
  .hero-buttons { flex-direction: row; justify-content: center; }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  animation: float 3s ease-in-out infinite;
  transition: color var(--transition-fast);
}

.scroll-indicator:hover { color: var(--accent); }

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
  padding: 64px 0;
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-section);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative;
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
}

.stat-icon {
  color: var(--accent);
  margin-bottom: 12px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .stat-number { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .stat-number { font-size: 3rem; }
}

.stat-label {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ========================================
   CONTENT SECTIONS (alternating image-text)
   ======================================== */
.content-section {
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .content-section { padding: 96px 0; }
}

.content-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .content-row { flex-direction: row; gap: 64px; }
  .content-row.reverse { flex-direction: row-reverse; }
}

.content-image,
.content-text {
  width: 100%;
}

@media (min-width: 1024px) {
  .content-image,
  .content-text { width: 50%; }
}

.content-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 4px;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-base));
}

.content-image-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
}

.content-image-glow {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
}

.content-text h2 {
  margin-bottom: 20px;
}

.content-text p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-primary);
}

/* ========================================
   NEWS CARDS (list page)
   ======================================== */
.page-header {
  padding-top: 100px;
}

@media (min-width: 1024px) {
  .page-header { padding-top: 120px; }
}

.page-title {
  margin-bottom: 12px;
}

.page-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 600px;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.news-card {
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
}

.news-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(230, 57, 70, 0.9);
  color: #fff;
}

.news-card-body {
  padding: 20px;
}

.news-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-card:hover .news-card-title {
  color: var(--accent);
}

.news-card-excerpt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.news-card-more {
  margin-top: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-smooth);
}

.news-card:hover .news-card-more {
  gap: 8px;
}

/* ========================================
   ARTICLE PAGE
   ======================================== */
.article-header {
  margin-bottom: 28px;
}

.article-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-cover {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.article-body {
  max-width: 780px;
}

.article-body p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transition: color var(--transition-fast);
}

.back-link:hover { color: var(--accent); }

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-intro {
  margin-top: 24px;
  margin-bottom: 64px;
}

.about-intro p {
  max-width: 780px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 64px;
}

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 96px; }
}

.value-card {
  padding: 28px;
}

.value-card svg {
  color: var(--accent);
  margin-bottom: 16px;
}

.value-card h3 {
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-bottom: 64px;
}

@media (min-width: 1024px) {
  .timeline { margin-bottom: 96px; }
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -25px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.5);
}

.timeline-year {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Block */
.cta-block {
  text-align: center;
  padding: 48px 28px;
  margin-bottom: 64px;
}

@media (min-width: 1024px) {
  .cta-block { padding: 64px 48px; }
}

.cta-block p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 0.9375rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 48px 0;
}

@media (min-width: 1024px) {
  .footer { padding: 64px 0; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
}

.footer-brand p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 16px;
}

.footer h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-contact svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-links .sep {
  color: var(--text-muted);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay for children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
