/* ============================================
   广州纵横商务咨询服务有限公司 - 公共样式
   ============================================ */

/* CSS Variables */
:root {
  --primary: #1e3a5f;
  --primary-dark: #152a45;
  --accent: #c9a227;
  --accent-light: #e0b93a;
  --text-dark: #2d3748;
  --text-body: #4a5568;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: rgba(30, 58, 95, 0.06);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 999;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
  background: var(--bg-light);
}

/* ============================================
   Page Layout
   ============================================ */
.page-wrapper {
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 2rem 0;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1.5rem 0;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumb h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.6;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  margin-bottom: 0.25rem;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  color: var(--text-body);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.sidebar-list a:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 1rem;
}

.sidebar-list a::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
}

.contact-info-sidebar p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

.contact-info-sidebar .icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-info-sidebar strong {
  color: var(--primary);
  display: block;
  font-size: 1rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  background: var(--accent);
}

.footer-desc {
  opacity: 0.85;
  line-height: 1.8;
  font-size: 0.9rem;
}

.footer-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  opacity: 0.85;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-light);
  padding-left: 0.25rem;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ============================================
   Floating Contact Button
   ============================================ */
.float-contact {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
}

/* ============================================
   Cards & Components
   ============================================ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   Utility
   ============================================ */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.bg-white { background: white; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .breadcrumb h1 {
    font-size: 1.4rem;
  }

  .float-btn span {
    display: none;
  }

  .float-btn {
    padding: 0.875rem;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .navbar-inner {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .main-grid {
    padding: 1.5rem 0;
  }
}

/* ============================================
   Hero Carousel
   ============================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  margin-top: 70px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.72) 0%, rgba(30, 58, 95, 0.45) 100%);
  display: flex;
  align-items: center;
}

.carousel-content {
  max-width: 680px;
  color: white;
  animation: slideUp 0.7s ease both;
}

.carousel-slide.active .carousel-content {
  animation: slideUp 0.7s ease both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.carousel-content h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.carousel-content p {
  font-size: 1.1rem;
  opacity: 0.92;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.carousel-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.carousel-btn-outline {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.875rem 2rem;
}

.carousel-btn-outline:hover {
  background: rgba(255,255,255,0.28);
  color: white;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.carousel-prev { left: 1.5rem; }
.carousel-next { right: 1.5rem; }

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(201, 162, 39, 0.75);
  border-color: var(--accent);
}

.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active,
.carousel-dot:hover {
  background: var(--accent);
  transform: scale(1.3);
}

/* ============================================
   Contact Page Redesign
   ============================================ */
.contact-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
  color: white;
  padding: 4rem 0 3rem;
  text-align: center;
  margin-top: 70px;
}

.contact-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 520px;
  margin: 0 auto;
}

.contact-main-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-panel {
  background: linear-gradient(145deg, var(--primary) 0%, #2c5282 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: white;
}

.contact-info-panel h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-info-panel .subtitle {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  background: rgba(201, 162, 39, 0.25);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-light);
}

.contact-item-text h4 {
  font-size: 0.82rem;
  opacity: 0.72;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-item-text p {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-hours {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.contact-hours h4 {
  font-size: 0.85rem;
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  opacity: 0.88;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hours-row:last-child { border-bottom: none; }

.contact-form-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form-panel h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.contact-form-panel .subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.contact-stats {
  background: white;
  padding: 3rem 0;
}

.contact-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.contact-stat-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-stat-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.contact-stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-stat-label {
  font-size: 0.88rem;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero h1 {
    font-size: 1.8rem;
  }

  .hero-carousel {
    height: 420px;
  }

  .carousel-content h1 {
    font-size: 1.9rem;
  }

  .contact-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 340px;
  }

  .carousel-content h1 {
    font-size: 1.5rem;
  }

  .carousel-content p {
    font-size: 0.9rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 38px;
    height: 38px;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 1.5rem;
  }
}

