/* ========================================
   新意公关官网 - 样式表
   仿照 cyancomms.cn 风格
   ======================================== */

/* CSS Variables */
:root {
  --primary: #C4161C;
  --primary-dark: #a01015;
  --secondary: #333333;
  --text: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 12px 0;
  transition: all 0.3s ease;
}

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

.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 60px;
  width: auto;
  display: block;
}

.logo:hover {
  transform: scale(1.02);
}

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

.nav-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

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

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

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

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

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--secondary);
}

/* ========================================
   Hero Section - with Carousel
   ======================================== */
.hero {
  height: 100vh;
  min-height: 650px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 70px;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 22, 28, 0.85) 0%, rgba(15, 52, 96, 0.85) 100%);
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 25px;
  line-height: 1.2;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
  margin-bottom: 40px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  z-index: 1;
  animation: bounce 2s infinite;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(15px); }
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

/* ========================================
   Sections - with Scroll Animations
   ======================================== */
.section {
  padding: 80px 0;
  overflow: visible;
  position: relative;
  z-index: 1;
  min-height: auto;
}

/* Stacking effect - sections move at different speeds */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: -1;
  transform: inherit;
}

.section-title {
  opacity: 1 !important;
  transform: none;
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 60px;
  color: var(--secondary);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 20px auto 0;
}

/* Override scroll-reveal for section-title */
.section-title.scroll-reveal {
  opacity: 1 !important;
  transform: none;
}

/* Scroll Animation - Simple fade up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.animated {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-right.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Cards scroll reveal animation */
.service-card,
.capability-item,
.case-card,
.client-logo-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.animated,
.capability-item.animated,
.case-card.animated,
.client-logo-item.animated {
  opacity: 1;
  transform: translateY(0);
}

.about-card {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-card.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Contact items - no scroll animation, just fade in */
.contact-item {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.contact-item.animated {
  opacity: 1;
}

/* Active nav link */
.nav-links a.active {
  color: var(--primary) !important;
}

/* Hero content parallax */
.hero-content {
  will-change: transform, opacity;
}

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

.about-desc {
  font-size: 1.15rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  color: var(--text-light);
  line-height: 1.9;
}

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

.about-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 12px;
  border-left: 5px solid var(--primary);
  transition: all 0.4s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.about-card h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: var(--secondary);
}

.about-card ul {
  list-style: none;
}

.about-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-card li:last-child {
  border-bottom: none;
}

.about-card li::before {
  content: '→';
  color: var(--primary);
  font-weight: bold;
}

.about-card li strong {
  color: var(--primary);
}

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

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

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  display: block;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

.subsection-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary);
}

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

.capability-item {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  transition: all 0.4s ease;
}

.capability-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.capability-item h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

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

/* ========================================
   Cases Section
   ======================================== */
.cases {
  background: var(--white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 35px;
}

.case-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.5s ease;
}

.case-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.case-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.case-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(0);
  transition: filter 0.5s ease;
}

.case-card:hover .case-image::before {
  filter: blur(2px);
}

.case-placeholder {
  background: rgba(0,0,0,0.4);
  padding: 12px 24px;
  border-radius: 6px;
  color: var(--white);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.case-card h3 {
  font-size: 1.2rem;
  padding: 25px 25px 12px;
  color: var(--secondary);
}

.case-card p {
  padding: 0 25px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.case-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 25px;
  color: var(--primary);
  font-weight: 600;
  border-top: 1px solid var(--border);
  transition: all 0.3s ease;
}

.case-link:hover {
  background: var(--bg-light);
  padding-left: 30px;
}

/* ========================================
   Clients Section
   ======================================== */
.clients {
  background: var(--bg-light);
}

.clients-desc {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 50px;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
}

.client-logo-item {
  background: var(--white);
  padding: 30px 50px;
  border-radius: 10px;
  color: var(--text-light);
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.client-logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ========================================
   Contact Section - Pure Display
   ======================================== */
.contact {
  background: var(--white);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px 30px;
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateX(10px);
}

.contact-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-label {
  font-weight: bold;
  color: var(--secondary);
  font-size: 1rem;
}

.contact-value {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  height: 36px;
  width: auto;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.footer-links a {
  opacity: 0.8;
  transition: all 0.3s ease;
}

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

.copyright,
.beian {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 15px;
}

/* ========================================
   Floating Chat Widget
   ======================================== */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(196, 22, 28, 0.4);
  transition: all 0.3s ease;
}

.chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(196, 22, 28, 0.5);
}

.chat-btn img {
  width: 28px;
  height: 28px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 550px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 70px 0;
  }

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

  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }

  .carousel-indicators {
    bottom: 80px;
  }
}

/* ========================================
   Additional Animations
   ======================================== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.pulse {
  animation: pulse 2s infinite;
}

/* Stagger animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
