/* 龙元官网 - 静态站点样式系统 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #667eea;
  --primary-light: #8b9fea;
  --primary-dark: #5a6fd6;
  --secondary: #764ba2;
  --accent: #f093fb;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-reverse: linear-gradient(135deg, #764ba2 0%, #667eea 100%);

  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #999;
  --text-light: #e2e8f0;
  --text-light-muted: #94a3b8;

  --bg-white: #ffffff;
  --bg-light: #f5f7fa;
  --bg-lighter: #e8eaf0;
  --bg-dark: #1a1a1a;
  --bg-darker: #0f0f0f;
  --bg-dark-card: rgba(30, 41, 59, 0.6);
  --bg-dark-header: rgba(15, 15, 35, 0.95);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 48px rgba(0,0,0,0.15);
  --shadow-primary: 0 8px 20px rgba(102,126,234,0.3);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --font: 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 24px; }
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(102,126,234,0.4);
  color: #fff;
}
.btn-outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--primary);
  border: none;
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-dark {
  background: var(--bg-dark-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
}
.card-dark:hover {
  border-color: rgba(102,126,234,0.3);
  box-shadow: 0 8px 32px rgba(102,126,234,0.15);
}
.card-body { padding: 24px; }
.card-cover { overflow: hidden; }
.card-cover img { transition: transform var(--transition-base); width: 100%; }
.card:hover .card-cover img { transform: scale(1.05); }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-dark-header);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(102,126,234,0.2);
  transition: all var(--transition-base);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.header-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.header-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.header-nav a:hover,
.header-nav a.active {
  color: #67e8f9;
  background: rgba(103,232,249,0.1);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-dark-header);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(102,126,234,0.2);
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 12px 16px; width: 100%; }
}

/* Footer */
.site-footer {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.8);
  padding: 60px 24px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.8;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}
.footer-filing {
  margin-top: 8px;
  font-size: 13px;
}
.footer-filing a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-filing a:hover {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease forwards;
}
.hero p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Logo Scroll */
.logo-scroll-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  padding: 40px 0;
}
.logo-scroll-track {
  display: flex;
  animation: scrollLeft 60s linear infinite;
  width: max-content;
}
.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 50px;
  transition: transform 0.3s ease;
}
.logo-item img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
  filter: grayscale(20%);
}
.logo-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}
.logo-scroll-wrapper:hover .logo-scroll-track {
  animation-play-state: paused;
}

/* CTA Section */
.cta-section {
  padding: 100px 40px;
  background: var(--gradient);
  text-align: center;
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 24px;
}
.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Page Banner */
.page-banner {
  padding: 120px 24px 60px;
  background: var(--gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.page-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--text-muted); }

/* Tag */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgba(102,126,234,0.1);
  color: var(--primary);
  margin: 2px 4px 2px 0;
}
.tag-dark {
  background: rgba(102,126,234,0.2);
  color: #a5b4fc;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 40px 24px;
}
.feature-icon {
  font-size: 48px;
  margin-bottom: 24px;
}

/* Product Card */
.product-card .card-body { padding: 20px; }
.product-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.product-card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.product-card .category {
  font-size: 13px;
  color: var(--text-muted);
}

/* News Card */
.news-card .card-body { padding: 20px; }
.news-card .news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.news-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .news-summary {
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Solution Card */
.solution-card {
  padding: 32px;
  background: var(--bg-dark-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
  transition: all var(--transition-base);
}
.solution-card:hover {
  border-color: rgba(102,126,234,0.3);
  box-shadow: 0 8px 32px rgba(102,126,234,0.15);
  transform: translateY(-4px);
}
.solution-card .sol-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.solution-card h4 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}
.solution-card p {
  color: var(--text-light-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Team Card */
.team-card { text-align: center; }
.team-card .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid rgba(102,126,234,0.3);
}
.team-card h4 { margin-bottom: 4px; }
.team-card .position { color: var(--primary); font-size: 14px; margin-bottom: 12px; }
.team-card .bio { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-info-card {
  padding: 32px;
  background: var(--bg-dark-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
}
.contact-info-card h3 { color: #fff; margin-bottom: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-item .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item .label { color: var(--text-light-muted); font-size: 13px; margin-bottom: 2px; }
.contact-item .value { color: #fff; font-size: 15px; }

.contact-form-card {
  padding: 32px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 { margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font);
  border: 1px solid var(--bg-lighter);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: var(--bg-white);
  color: var(--text-primary);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Job Card */
.job-card {
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(102,126,234,0.2);
}
.job-card h4 { font-size: 18px; margin-bottom: 12px; }
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.job-meta .salary { color: var(--primary); font-weight: 600; }

/* Case Card */
.case-card .card-body { padding: 20px; }
.case-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.case-card .case-industry {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 8px;
}
.case-card .case-desc {
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Detail Page */
.detail-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}
.detail-content h1 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bg-lighter);
}
.detail-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.detail-body p { margin-bottom: 16px; }
.detail-body h2 { margin: 32px 0 16px; font-size: 1.5rem; }
.detail-body h3 { margin: 24px 0 12px; font-size: 1.25rem; }
.detail-body ul, .detail-body ol { margin: 12px 0; padding-left: 24px; list-style: disc; }
.detail-body li { margin-bottom: 8px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--bg-lighter);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination .active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes scrollDown {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

.animate-fade-in { animation: fadeIn 0.6s ease; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease 1s forwards;
  opacity: 0;
}
.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 10px;
  position: relative;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  animation: scrollDown 2s ease-in-out infinite;
}

/* Particle Canvas */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 16px; }
  .page-banner { padding: 100px 16px 40px; }
  .hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
