/* ==========================================================================
   CCL SUPPLY CHAIN CO., LTD. (楚天环宇国际物流) - Executive Corporate Edition
   Color Palette Derived Strictly from Original CCL Logo:
   - Logo Maritime Blue: #2E597B / #1B3B56
   - Logo Sail Crimson Red: #C81E1E
   - Logo Sail Gold/Amber: #D97706
   - Clean Corporate Backgrounds: #FFFFFF & #F4F7FA
   ========================================================================== */

:root {
  --ccl-blue: #2e597b;
  --ccl-blue-dark: #1b3b56;
  --ccl-blue-deeper: #10263a;
  --ccl-blue-light: #ebf2f7;
  --ccl-red: #c81e1e;
  --ccl-red-dark: #991b1b;
  --ccl-gold: #d97706;
  --ccl-gold-light: #fef3c7;
  --ccl-bg-gray: #f4f7fa;
  --ccl-border: #dce4ec;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Scroll Offset for Sticky Header */
section[id], div[id].scroll-target {
  scroll-margin-top: 5.5rem;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  margin: 0;
  overflow-x: hidden;
}

/* Corporate Top Bar & Header */
.bg-ccl-blue {
  background-color: var(--ccl-blue);
}
.bg-ccl-blue-dark {
  background-color: var(--ccl-blue-dark);
}
.bg-ccl-blue-deeper {
  background-color: var(--ccl-blue-deeper);
}
.text-ccl-blue {
  color: var(--ccl-blue);
}
.text-ccl-blue-dark {
  color: var(--ccl-blue-dark);
}
.text-ccl-red {
  color: var(--ccl-red);
}
.border-ccl-blue {
  border-color: var(--ccl-blue);
}

/* Corporate Hero Banner & AI Rotating Background */
.corporate-hero {
  position: relative;
  background-color: #10263a;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  z-index: 1;
  transform: scale(1.05);
  transition: opacity 1.2s ease-in-out, transform 8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.hero-bg-slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

/* Crystal-Clear Hero Vignette: Soft gradient on text area (left), wide open visibility on images (right) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(10, 24, 40, 0.78) 0%, rgba(10, 24, 40, 0.45) 44%, rgba(10, 24, 40, 0.12) 75%, rgba(10, 24, 40, 0.04) 100%),
    linear-gradient(to bottom, rgba(10, 24, 40, 0.35) 0%, transparent 22%, transparent 75%, rgba(10, 24, 40, 0.55) 100%);
  pointer-events: none;
  z-index: 3;
}

.hero-title-shadow {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 4px 24px rgba(0, 0, 0, 0.65);
}

.hero-text-shadow {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.hero-slide-btn {
  background-color: rgba(10, 24, 40, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #f8fafc;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-slide-btn:hover {
  background-color: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.50);
  color: #ffffff;
}

.hero-slide-btn.active {
  background-color: #f59e0b;
  border-color: #fbbf24;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.65);
}

/* Corporate Navigation Links: Dynamic Active Color State */
.nav-link {
  position: relative;
  color: #334155;
  font-weight: 600;
  padding: 0.5rem 0.35rem;
  transition: color 0.2s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: #c81e1e;
}

.nav-link.active {
  color: #c81e1e !important;
  font-weight: 700 !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #c81e1e, #d97706);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-nav-item.active {
  background-color: #c81e1e !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Corporate Cards */
.corp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.corp-card:hover {
  border-color: #94b4d1;
  box-shadow: 0 12px 28px -8px rgba(27, 59, 86, 0.12);
  transform: translateY(-2px);
}

/* Primary Buttons matching Logo Colors */
.btn-ccl-primary {
  background-color: var(--ccl-blue);
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-ccl-primary:hover {
  background-color: var(--ccl-blue-dark);
  box-shadow: 0 6px 16px rgba(27, 59, 86, 0.22);
}

.btn-ccl-accent {
  background: linear-gradient(90deg, #c81e1e 0%, #d9530f 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.btn-ccl-accent:hover {
  opacity: 0.94;
  box-shadow: 0 6px 16px rgba(200, 30, 30, 0.28);
}

/* Technical Spec Tabs */
.corp-tab-btn {
  border-bottom: 3px solid transparent;
  color: #475569;
  font-weight: 600;
  transition: all 0.2s ease;
}
.corp-tab-btn.active {
  color: var(--ccl-blue-dark);
  border-bottom-color: var(--ccl-red);
  background-color: #f8fafc;
}

.equip-btn.active {
  background-color: var(--ccl-blue);
  color: #ffffff;
  border-color: var(--ccl-blue);
}
.dg-btn.active {
  background-color: var(--ccl-blue-dark);
  color: #ffffff;
  border-color: var(--ccl-red);
}

/* ==========================================================================
   Authentic Chinese VAT Electronic Invoice (数电票 / 增值税发票) 1:1 Preview
   ========================================================================== */
.vat-invoice-paper {
  background-color: #fffdf9;
  border: 2px solid #a8422b;
  border-radius: 4px;
  color: #332211;
  font-family: 'SimSun', 'Songti SC', 'Microsoft YaHei', serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
}

.vat-invoice-title {
  color: #9e331e;
  font-weight: 700;
  letter-spacing: 3px;
  border-bottom: 2px double #a8422b;
  padding-bottom: 6px;
  display: inline-block;
}

.vat-seal-ellipse {
  width: 126px;
  height: 62px;
  border: 2.5px solid rgba(210, 35, 35, 0.82);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(210, 35, 35, 0.85);
  font-family: 'SimSun', 'Microsoft YaHei', sans-serif;
  font-weight: bold;
  transform: rotate(-4deg);
  pointer-events: none;
  user-select: none;
}

.vat-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid #a8422b;
}
.vat-table th,
.vat-table td {
  border: 1px solid #b5543f;
  padding: 6px 8px;
  font-size: 12px;
}
.vat-table th {
  color: #9e331e;
  font-weight: 700;
  background-color: rgba(168, 66, 43, 0.04);
}
.vat-label {
  color: #9e331e;
  font-weight: 700;
  font-size: 12px;
}

@media print {
  body * {
    visibility: hidden;
  }
  #invoice-preview-modal,
  #invoice-preview-modal * {
    visibility: visible;
  }
  #invoice-preview-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
  }
  .no-print {
    display: none !important;
  }
}
