/* Anchnet-inspired shared theme */
:root {
  --brand-primary: #0c3c8c;
  --brand-secondary: #2f74ff;
  --brand-accent: #ff8a00;
  --brand-light: #f4f7fb;
  --brand-text: #14203a;
  --brand-muted: #5b6b86;
  --brand-border: #e3e9f2;
  --brand-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

body {
  background: var(--brand-light);
  color: var(--brand-text);
  letter-spacing: 0.12px;
}

/* Hero surfaces */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0b2f6b 0%, #0c3c8c 45%, #0a2f6a 100%);
  color: #ffffff;
}
.page-hero > * {
  position: relative;
  z-index: 1;
}
.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero h4 {
  color: #ffffff;
}
.page-hero p {
  color: #cfe0ff;
}

h1, h2, h3, h4 {
  color: var(--brand-text);
  letter-spacing: 0.2px;
}

p {
  color: var(--brand-muted);
}

a {
  color: inherit;
}

/* Top navigation */
#navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--brand-shadow);
  border-bottom: 1px solid var(--brand-border);
  backdrop-filter: blur(8px);
}
#navbar .nav-link {
  color: var(--brand-text) !important;
  font-weight: 500;
}
#navbar .nav-link:hover,
#navbar .nav-link.active {
  color: var(--brand-primary) !important;
}
#navbar .nav-link::after {
  background-color: var(--brand-primary) !important;
}
#navbar a .text-white {
  color: var(--brand-primary) !important;
}
#navbar a .text-blue-300 {
  color: #7aa6e8 !important;
}

/* Buttons */
.btn-hover {
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(12, 60, 140, 0.18);
}
.btn-hover:hover {
  transform: translateY(-1px) scale(1.02);
}

/* Cards */
.card-hover,
.bg-white.rounded-xl,
.bg-white.rounded-2xl {
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow);
}

/* Sections */
.bg-light {
  background-color: var(--brand-light) !important;
}

/* Text colors */
.text-gray-600 { color: var(--brand-muted) !important; }
.text-gray-700 { color: #4b5b73 !important; }
.text-gray-800 { color: #1f2a44 !important; }
.text-darkest { color: #0b1a33 !important; }
.text-blue-300 { color: #7aa6e8 !important; }
.text-blue-200 { color: #9bb8f2 !important; }

/* Accent colors */
.bg-primary { background-color: var(--brand-primary) !important; }
.bg-secondary { background-color: var(--brand-secondary) !important; }
.bg-accent { background-color: var(--brand-accent) !important; }
.text-accent { color: var(--brand-accent) !important; }

/* Forms */
.form-input {
  border-radius: 10px;
  border-color: var(--brand-border);
}
.form-input:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.18);
}

/* Footer-like dark sections */
.bg-primary.text-white {
  background: linear-gradient(180deg, #0b2f6b 0%, #0c3c8c 45%, #0a2f6a 100%) !important;
}
.bg-primary.text-white,
.bg-primary.text-white * {
  color: #ffffff !important;
}
.bg-primary.text-white a:hover {
  opacity: 0.9;
}

/* Scroll reveal */
.scroll-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.2, 0, 0, 1), transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Layout */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Responsive tuning */
@media (max-width: 768px) {
  .pt-32 { padding-top: 6rem !important; }
  .pb-16 { padding-bottom: 3rem !important; }
  .py-20 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  .py-16 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .text-5xl { font-size: 2.5rem !important; }
  .text-4xl { font-size: 2rem !important; }
}

/* Footer */
footer {
  background: linear-gradient(180deg, #0b2f6b 0%, #0c3c8c 45%, #0a2f6a 100%) !important;
}

/* Nav underline interaction */
.nav-underline .nav-link {
  padding: 0.75rem 0.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-underline .nav-link::after {
  left: 50%;
  bottom: -0.9rem;
  width: 3.5rem;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-accent);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-underline .nav-link:hover::after,
.nav-underline .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.nav-underline .nav-link:hover,
.nav-underline .nav-link.active {
  color: var(--brand-primary) !important;
}

/* 统一现代专业风格（仅样式增强，不改结构） */
.home-polish {
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(11, 42, 107, 0.08), transparent 60%),
        radial-gradient(900px 500px at 88% 0%, rgba(22, 119, 255, 0.06), transparent 55%),
        linear-gradient(180deg, #f7f9fd 0%, #ffffff 45%, #f1f5fb 100%);
    color: #1f2a44;
}

.home-polish #navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(227, 233, 242, 0.9);
    box-shadow: 0 14px 36px rgba(12, 26, 62, 0.12);
    backdrop-filter: blur(10px);
}

.home-polish .hero-section {
    background: linear-gradient(120deg, #0b2f6b 0%, #0c3c8c 52%, #0a2f6a 100%);
}
.home-polish .hero-section::before {
    content: '';
    position: absolute;
    inset: -20% 0 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(255,255,255,0.18), transparent 46%),
        radial-gradient(circle at 82% 10%, rgba(255,255,255,0.12), transparent 40%);
    opacity: 0.85;
    pointer-events: none;
}
.home-polish .hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.06), transparent 50%);
    pointer-events: none;
}
.home-polish .hero-grid {
    background-image:
        radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px, 64px 64px, 64px 64px;
    opacity: 0.7;
}
.home-polish .hero-title {
    text-shadow: 0 18px 46px rgba(3, 12, 38, 0.45);
}
.home-polish .hero-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #d9e7ff;
    box-shadow: 0 12px 28px rgba(7, 18, 56, 0.25);
}
.home-polish .hero-panel {
    position: relative;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(230, 238, 249, 0.9);
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: 0 28px 70px rgba(6, 23, 62, 0.28);
    backdrop-filter: blur(8px);
}
.home-polish .hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(22,119,255,0.45), transparent);
}
.home-polish .hero-step {
    border-radius: 12px;
    border: 1px solid rgba(230, 238, 249, 0.9);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 26px rgba(12, 26, 62, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-polish .hero-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(12, 26, 62, 0.16);
}

.home-polish .hero-actions .hero-cta {
    box-shadow: 0 18px 40px rgba(7, 18, 56, 0.24);
}
.home-polish .hero-actions .hero-cta:hover {
    transform: translateY(-2px);
}

.home-polish .cloud-partner-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(227, 233, 242, 0.9);
    box-shadow: 0 16px 34px rgba(11, 26, 60, 0.12);
}
.home-polish .cloud-partner-card::before {
    background: linear-gradient(90deg, transparent, rgba(22,119,255,0.35), transparent);
}
.home-polish .cloud-partner-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 44px rgba(11, 26, 60, 0.18);
}

.home-polish .scroll-animate {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.home-polish .hero-content {
    animation: hero-rise 0.7s cubic-bezier(0.2, 0, 0, 1) both;
}
.home-polish .hero-panel {
    animation: hero-panel 0.85s cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-panel {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
