/* ============================================
   AGI-Partner 易榕科技 - 官网样式系统
   Design: Cyberpunk Dark Theme
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --color-bg-primary: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-bg-card: rgba(30, 30, 45, 0.6);
  --color-text-primary: #ffffff;
  --color-text-secondary: #a1a1aa;
  --color-accent-purple: #6366f1;
  --color-accent-cyan: #22d3ee;
  --color-accent-pink: #ec4899;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(34, 211, 238, 0.3) 100%);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', var(--font-primary);
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 100px 0;
  
  /* Effects */
  --border-radius: 16px;
  --transition: all 0.3s ease;
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Container ===== */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-text-primary);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
  animation: bgFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-2%, -2%) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Section Common ===== */
.section {
  padding: var(--section-padding);
  position: relative;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gradient-glow);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-cyan);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== About Section ===== */
.about {
  background: var(--color-bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-glow);
}

.about-card .icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-glow);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* ===== Services Section ===== */
.services {
  background: var(--color-bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

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

.service-card:hover {
  transform: translateY(-4px);
}

.service-card .number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.service-card ul li::before {
  content: '✓';
  color: var(--color-accent-cyan);
  font-weight: bold;
}

/* ===== Works Section ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.work-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.work-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.work-card:hover .overlay {
  opacity: 1;
}

.work-card .overlay h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.work-card .overlay p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* ===== Contact Section ===== */
.contact {
  background: var(--color-bg-secondary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.contact-info p {
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-glow);
  border-radius: 12px;
  font-size: 1.25rem;
}

.contact-item span {
  color: var(--color-text-secondary);
}

.contact-cta {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 48px;
  text-align: center;
}

.contact-cta h4 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-cta p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-text {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-text-primary);
}

/* ===== Responsive ===== */

/* Large screens */
@media screen and (min-width: 1200px) {
  .container {
    max-width: 1280px;
  }
}

/* Tablet landscape */
@media screen and (min-width: 993px) and (max-width: 1199px) {
  :root {
    --container-width: 960px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet portrait */
@media screen and (min-width: 769px) and (max-width: 992px) {
  :root {
    --container-width: 720px;
    --section-padding: 80px 0;
  }
  
  .nav-links {
    gap: 24px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

/* Mobile landscape */
@media screen and (min-width: 577px) and (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 24px;
    transform: translateY(-150%);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 32px;
  }
  
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile portrait */
@media screen and (max-width: 576px) {
  :root {
    --section-padding: 50px 0;
    --border-radius: 12px;
  }
  
  .navbar {
    padding: 16px 0;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .logo img {
    width: 36px;
    height: 36px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 20px;
    transform: translateY(-150%);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle span {
    width: 22px;
    height: 2px;
  }
  
  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 60px;
  }
  
  .hero-badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-tag {
    padding: 4px 12px;
    font-size: 0.8rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .about-card {
    padding: 24px;
  }
  
  .about-card .icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 28px;
  }
  
  .service-card .number {
    font-size: 2.5rem;
  }
  
  .service-card h3 {
    font-size: 1.25rem;
  }
  
  .works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .work-card {
    aspect-ratio: 16/11;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-info h3 {
    font-size: 1.5rem;
  }
  
  .contact-info p {
    font-size: 0.95rem;
  }
  
  .contact-cta {
    padding: 32px 24px;
  }
  
  .contact-cta h4 {
    font-size: 1.25rem;
  }
  
  .footer {
    padding: 32px 0;
  }
  
  .footer-text {
    font-size: 0.85rem;
  }
  
  .footer-links {
    gap: 16px;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
