﻿/* ============================================
   Qiantian - Global Styles
   ============================================ */

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

:root {
  --primary-color: #1e3a8a;
  --secondary-color: #3b82f6;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   Animations & Keyframes
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: rotate(0);
  }
}

/* ============================================
   Utility Classes
   ============================================ */

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

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  animation: slideInUp 0.8s ease-out;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 60px;
  animation: slideInUp 0.8s ease-out 0.1s both;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: #d97706;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  animation: slideInLeft 0.6s ease-out;
}

.logo svg {
  width: 40px;
  height: 40px;
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  animation: slideInDown 0.6s ease-out;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 50%, var(--secondary-color) 100%);
  color: white;
  padding: 150px 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="white" opacity="0.05"/><circle cx="80" cy="80" r="25" fill="white" opacity="0.05"/><path d="M0,50 Q25,30 50,50 T100,50" stroke="white" stroke-width="0.5" fill="none" opacity="0.1"/></svg>');
  background-repeat: repeat;
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 30px;
  animation: slideInLeft 0.8s ease-out;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  animation: slideInLeft 0.8s ease-out 0.1s both;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 20px;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.92);
  background-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hero .btn-outline:hover {
  background-color: #ffffff;
  color: #1e3a8a;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero .btn-outline:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.hero-image {
  position: relative;
  animation: slideInRight 0.8s ease-out;
}

.hero-image svg,
.hero-image img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  animation: float 6s ease-in-out infinite;
}

/* ============================================
   Feature Cards
   ============================================ */

.features {
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: scaleIn 0.6s ease-out;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ============================================
   Homepage Extended Sections
   ============================================ */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.kpi-item {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.kpi-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1;
}

.kpi-label {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

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

.delivery-step {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.delivery-step-number {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.delivery-step h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.delivery-step p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================
   Services Section
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.service-item {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  animation: scaleIn 0.6s ease-out;
}

.service-item:hover {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.service-item h4 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.service-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============================================
   Team & Culture
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.team-member {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.member-avatar {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-avatar svg {
  width: 100px;
  height: 100px;
  fill: white;
}

.member-info {
  padding: 20px;
  text-align: center;
}

.member-info h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.member-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============================================
   News & Blog Grid
   ============================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.news-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 700;
}

.news-content {
  padding: 25px;
}

.news-date {
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.news-card h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.news-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.news-card a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-card a:hover {
  color: var(--primary-color);
}

/* ============================================
   Contact Form
   ============================================ */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.6s ease-out;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  width: 100%;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background: linear-gradient(135deg, #10245f 0%, #15337f 100%);
  color: white;
  padding: 28px 0 8px;
  border-top: 3px solid rgba(245, 158, 11, 0.55);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 1fr 0.85fr;
  gap: 18px;
  margin-bottom: 14px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.footer-section {
  font-size: 0.93rem;
}

.footer-section h4 {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.footer-section ul {
  list-style: none;
  margin: 0;
}

.footer-section li {
  margin-bottom: 4px;
  line-height: 1.45;
}

.footer-section p {
  margin: 0;
  line-height: 1.5;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

@media (max-width: 1100px) {
  .footer-content {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 14px;
  }
}

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

@media (max-width: 768px) {
  nav ul {
    display: none;
    gap: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: 500px;
    padding: 100px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .feature-card {
    min-height: auto;
    padding: 25px;
  }

  .features-grid {
    gap: 20px;
  }

  .kpi-value {
    font-size: 1.9rem;
  }

  .delivery-step {
    padding: 22px;
  }

  nav.active ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary-color);
    padding: 20px;
  }

  nav.active a::after {
    display: none;
  }

  .hero-image {
    order: -1;
  }

  .contact-form {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 450px;
    padding: 80px 0;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section {
    padding: 30px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .feature-card {
    min-height: auto;
    padding: 15px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .features-grid,
  .services-grid,
  .team-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .kpi-grid,
  .delivery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ============================================
   Loading & Transitions
   ============================================ */

.page-load {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-on-scroll {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

/* ============================================
   Scrollbar Styling
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  header,
  footer,
  .mobile-menu-btn {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}

