/**
 * US Job Board - Modern SaaS Design System
 * Theme: "Vibrant & Tech-Forward"
 * Palette: Indigo / Violet / Rose
 */

/* M1: Google Fonts 已在 header.php 中加载，此处移除重复导入以优化性能 */

:root {
    /* Modern SaaS Palette */
    --primary-color: #4F46E5;
    /* Indigo 600 */
    --primary-hover: #4338CA;
    /* Indigo 700 */
    --primary-light: #E0E7FF;
    /* Indigo 100 */

    --secondary-color: #8B5CF6;
    /* Violet 500 */
    --secondary-hover: #7C3AED;
    /* Violet 600 */

    --accent-color: #F43F5E;
    /* Rose 500 */
    --accent-hover: #E11D48;
    /* Rose 600 */

    /* Additional Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #17a2b8;

    /* Neutrals - Clean & Cool */
    --bg-body: #F9FAFB;
    /* Cool Gray 50 */
    --bg-white: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.8);

    --text-dark: #111827;
    /* Gray 900 */
    --text-medium: #374151;
    /* Gray 700 */
    --text-muted: #6B7280;
    /* Gray 500 */
    --text-light: #9CA3AF;
    /* Gray 400 */

    --border-color: #E5E7EB;
    /* Gray 200 */

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    /* More rounded for modern look */
    --border-radius-lg: 24px;
    --border-radius-pill: 9999px;

    /* Shadows - Soft & Layered */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.3);
    --shadow-gold: 0 8px 25px rgba(255, 215, 0, 0.3);

    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-hero: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    --gradient-gold: linear-gradient(45deg, #FFD700, #FFA500);
    --gradient-success: linear-gradient(45deg, #10b981, #059669);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);

    /* Text Gradients */
    --text-gradient: linear-gradient(45deg, #FFD700, #FFA500, #FF6B35);
    --highlight-gradient: linear-gradient(45deg, #10b981, #17a2b8);

    /* Animation Variables */
    --animation-fast: 0.3s;
    --animation-normal: 0.6s;
    --animation-slow: 1.2s;
    --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Bootstrap Icons 绝对路径兜底，避免字体加载失败导致方框 */
@font-face {
    font-family: "bootstrap-icons";
    src: url("/assets/vendor/bootstrap-icons/fonts/bootstrap-icons.woff2") format("woff2"),
    url("/assets/vendor/bootstrap-icons/fonts/bootstrap-icons.woff") format("woff"),
    url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/fonts/bootstrap-icons.woff2") format("woff2");
    font-display: swap;
}
.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal !important;
}
body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-medium);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    /* Heavier headings */
    letter-spacing: -0.025em;
    /* Tighter tracking */
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

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

/* Button Styles - Modern & Gradients */
.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.625rem 1.5rem;
    border-radius: var(--border-radius-pill);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, #F87171 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #EF4444 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(244, 63, 94, 0.4);
    color: white;
}

.btn-white {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-white:hover {
    background: var(--bg-body);
    border-color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

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

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

/* Card Styles - Glass & Float */
.card {
    background: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Subtle border */
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover,
.hover-lift-sm:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.1);
}

/* Navbar - Glassmorphism */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    color: var(--text-dark) !important;
    letter-spacing: -0.03em;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-medium);
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Hero Section - Mesh Gradient */
.hero-gradient {
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(244, 63, 94, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%);
    position: relative;
    overflow: hidden;
}

/* Form Controls - Modern */
.form-control,
.form-select {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background-color: #F9FAFB;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #FFFFFF;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Badges - Pills */
.badge {
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: var(--border-radius-pill);
    letter-spacing: 0.02em;
}

.badge-remote {
    background-color: #ECFDF5;
    /* Green 50 */
    color: #059669;
    /* Green 600 */
    border: 1px solid rgba(5, 150, 105, 0.1);
}

.tag-soft {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.8em;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 6px;
    margin-right: 0.5rem;
}

.tag-soft-primary {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.tag-soft-gray {
    background-color: #F3F4F6;
    color: var(--text-medium);
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-extrabold {
    font-weight: 800 !important;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

.shadow-glow {
    box-shadow: var(--shadow-glow) !important;
}

/* Animations */
.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.blur-3xl {
    filter: blur(64px);
}

.letter-spacing-1 {
    letter-spacing: 0.1em;
}

/* ========================================================================
   US Job Board - Homepage Optimization Styles
   远程/兼职工作平台首页优化样式
   ======================================================================== */

/* ========== 远程工作类型标签 (H1) ========== */
.badge-remote-full {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
}

.badge-remote-hybrid {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
}

.badge-remote-flexible {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
}

.badge-onsite {
    background: #F3F4F6;
    color: #6B7280;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
}

/* ========== 时薪标签样式 (C1) ========== */
.tag-soft-success {
    background-color: #D1FAE5;
    color: #059669;
    font-weight: 600;
}

.tag-soft-primary {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

/* ========== 已验证标识动画 (M5) ========== */
.badge-verified {
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

/* ========== 公司 Logo 样式 (M6) ========== */
.company-logo-box {
    width: 56px;
    height: 56px;
    overflow: hidden;
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========== 职位卡片优化 ========== */
.job-title-text {
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 快捷筛选按钮 ========== */
.quick-filter-btn {
    font-size: 0.875rem;
    white-space: nowrap;
}

/* ========== 移动端优化 (H5) ========== */
@media (max-width: 767.98px) {

    /* Hero 区域优化 */
    .hero-gradient {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .hero-gradient h1.display-3 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }

    .hero-gradient .lead {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }

    /* 快捷筛选按钮缩小 */
    .quick-filter-btn {
        padding: 0.375rem 0.625rem !important;
        font-size: 0.8rem !important;
    }

    /* 搜索框优化 */
    .search-box-container {
        border-radius: 16px !important;
        padding: 0.5rem !important;
    }

    .search-box-container input {
        font-size: 0.9rem !important;
    }

    /* 职位卡片间距优化 */
    .card-body {
        padding: 0.875rem !important;
    }

    .company-logo-box {
        width: 48px;
        height: 48px;
    }

    .job-title-text {
        font-size: 0.95rem;
    }

    /* 标签缩小 */
    .tag-soft {
        font-size: 0.75rem;
        padding: 0.25em 0.6em;
    }

    /* 统计数据优化 */
    .stats-bar h2 {
        font-size: 1.5rem !important;
    }

    /* 底部特性图标 */
    .hero-gradient .d-flex.gap-4 {
        gap: 0.75rem !important;
    }

    .hero-gradient .d-flex.gap-4 .fw-bold {
        font-size: 0.8rem;
    }

    .hero-gradient .d-flex.gap-4 .fs-4 {
        font-size: 1.25rem !important;
    }
}

/* ========== 平板优化 ========== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-gradient h1.display-3 {
        font-size: 2.5rem !important;
    }

    .company-logo-box {
        width: 52px;
        height: 52px;
    }
}

/* ========== 深色模式下拉菜单 ========== */
.dropdown-menu {
    border: 1px solid var(--border-color);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* ========== 工具提示优化 ========== */
.tooltip {
    font-size: 0.8rem;
}

/* ========== Section 间距统一 ========== */
.py-6 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ========== Job Alert 表单样式 ========== */
#jobAlertForm .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

#jobAlertForm .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========== Apply 按钮优化 (M4) ========== */
.card .btn-primary.btn-sm {
    padding: 0.375rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.card .btn-primary.btn-sm:hover {
    transform: translateX(3px);
}

/* ========== 时薪高亮显示 ========== */
.hourly-rate-highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: #059669;
}

/* ========== Hero 宽度与搜索卡片优化 ========== */
.hero-container-wide {
    max-width: 1240px;
}

@media (min-width: 1400px) {
    .hero-container-wide {
        max-width: 1320px;
    }
}

.hero-search-card {
    max-width: 1080px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-stats-row {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Featured Jobs 板块美化 ========== */
.featured-jobs-section {
    background: radial-gradient(circle at 10% 10%, rgba(79, 70, 229, 0.06), transparent 35%),
                radial-gradient(circle at 90% 20%, rgba(236, 72, 153, 0.05), transparent 38%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.job-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 15px 30px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(79, 70, 229, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
}

.job-card-hover-bg {
    opacity: 0;
}

.job-card:hover .job-card-hover-bg {
    opacity: 1;
}

.job-meta {
    gap: 0.35rem;
}

.job-chip {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.job-chip.gray {
    background: #f3f4f6;
    color: #4b5563;
}

.job-footer {
    border-top: 1px dashed #e5e7eb;
    padding-top: 0.75rem;
}

.job-footer small {
    color: #6b7280;
}

/* ========================================================================
   New Design System Additions (Greek Style)
   ======================================================================== */

/* 1. Animation System */

/* Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(35deg);
    }

    100% {
        transform: translateX(100%) rotate(35deg);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }

    40%,
    43% {
        transform: translateY(-8px);
    }

    70% {
        transform: translateY(-4px);
    }

    90% {
        transform: translateY(-2px);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Utility Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-ring {
    animation: pulse-ring 2s infinite;
}

.animate-rotate {
    animation: rotate 20s linear infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease-in-out infinite;
}

/* 2. Glassmorphism System */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 3. Floating Card System */
.floating-card {
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
    z-index: 20;
}

/* 4. Particle & Decoration System */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.decoration-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(255, 255, 255, 0.15);
}

/* 5. Trust Badges */
.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-pill);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* 6. Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--primary-color);
}

/* 7. Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* 9. Category Card 3D Effect */
.category-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.category-card .category-icon-box i {
    font-family: "bootstrap-icons" !important;
    font-size: 1.9rem;
    color: var(--primary-color);
    line-height: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(79, 70, 229, 0.3) !important;
}

.category-card .category-icon-box {
    transition: all 0.4s ease;
}

.category-card:hover .category-icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-primary);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.category-card:hover .category-icon-box i {
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff !important;
    /* Fallback */
}

/* 10. CTA Section Decoration */
.cta-section {
    /* 深色对比背景，保证文字可读性 */
    background: linear-gradient(135deg, #0f172a 0%, #111827 45%, #0b1224 100%) !important;
    color: #e2e8f0 !important;
    position: relative;
    overflow: hidden;
}

.cta-section h3,
.cta-section h2,
.cta-section .lead {
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.cta-section p,
.cta-section li {
    color: #e5e7eb;
}

/* 保证表单玻璃卡片与深色背景对比足够 */
.cta-section .card {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #f8fafc !important;
}

.cta-section .card .form-label,
.cta-section .card .form-check-label,
.cta-section .card .btn,
.cta-section .card input {
    color: #f8fafc !important;
}

.cta-section .card .form-control::placeholder {
    color: rgba(248, 250, 252, 0.8) !important;
}

.cta-section .card input,
.cta-section .card .form-control-glass {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .card .btn.btn-white {
    background: #fff !important;
    color: var(--primary-color) !important;
}

.cta-section .list-unstyled li,
.cta-section .text-white-50 {
    color: rgba(248, 250, 252, 0.85) !important;
}

.cta-decoration-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.form-control-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(5px);
}

.form-control-glass::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control-glass:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.form-check-input-glass {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.form-check-input-glass:checked {
    background-color: #fff;
    border-color: #fff;
}

.form-check-input-glass:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%234F46E5' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* 11. Hero Gradient Background (Modern SaaS Mesh) */
.hero-gradient {
    background-color: #F8FAFC;
    /* Slate 50 */
    background-image:
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
        /* Indigo */
        radial-gradient(at 100% 0%, rgba(244, 63, 94, 0.15) 0px, transparent 50%),
        /* Rose */
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        /* Violet */
        radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    /* Emerald */
    position: relative;
}

/* Enhance text readability on mesh background */
.hero-gradient h1,
.hero-gradient p {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
