/* ============================================
   爱内科技宠物托运官网样式表
   设计风格：现代企业级营销型
   ============================================ */

/* ---------- CSS变量定义 ---------- */
:root {
    /* 主色调 */
    --color-primary-50: #FFF5F2;
    --color-primary-100: #FFE8E1;
    --color-primary-500: #FF6B35;
    --color-primary-600: #E85A28;
    
    /* 辅助色 */
    --color-secondary-500: #2E86AB;
    --color-secondary-600: #2563EB;
    
    /* 中性色 */
    --color-neutral-50: #FAFAFA;
    --color-neutral-100: #F5F5F5;
    --color-neutral-900: #1A1A2E;
    
    /* 字体 */
    --font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    
    /* 过渡 */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* ---------- 基础重置与全局样式 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* 为固定导航栏预留空间 */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--color-primary-500);
    color: white;
}

/* ---------- 自定义滚动条 ---------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-neutral-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary-500), var(--color-secondary-500));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-primary-600), #1E40AF);
}

/* ============================================
   导航栏 Navbar
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar .nav-link {
    color: var(--color-neutral-900);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    position: relative;
    transition: var(--transition-base);
    text-shadow: none;
}

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

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary-500);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

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

.navbar .cta-button-nav {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: white;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.navbar .cta-button-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* 移动端菜单 */
.mobile-menu-dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    margin-top: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mobile-nav-link {
    color: var(--color-neutral-900);
    font-weight: 500;
}

/* ============================================
   首屏英雄区 Hero Section
   ============================================ */
.hero-section {
    min-height: 100vh;
    position: relative;
}

.hero-bg-gradient {
    background: linear-gradient(
        135deg,
        #FFF5F2 0%,
        #FFFFFF 25%,
        #F0F9FF 50%,
        #FFFFFF 75%,
        #FEF3E2 100%
    );
}

.hero-bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 134, 171, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 40%);
}

/* 二维码卡片 */
.qrcode-card {
    max-width: 340px;
    animation: float-qrcode 3s ease-in-out infinite;
}

.qrcode-glow {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-secondary-500));
    filter: blur(20px);
    opacity: 0.3;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

.qrcode-pulse {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-secondary-500));
    filter: blur(30px);
    opacity: 0.2;
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes float-qrcode {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(1.05); }
}

@keyframes pulse-ring {
    0% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.02); }
    100% { opacity: 0.2; transform: scale(1); }
}

.qrcode-container {
    position: relative;
}

.qrcode-container img {
    border-radius: 16px;
    transition: var(--transition-base);
}

.qrcode-container:hover img {
    transform: scale(1.02);
}

/* 数据项动画 */
.data-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.data-item:nth-child(1) { animation-delay: 0.3s; }
.data-item:nth-child(2) { animation-delay: 0.5s; }
.data-item:nth-child(3) { animation-delay: 0.7s; }

/* ============================================
   动画关键帧
   ============================================ */

/* 淡入上移 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 淡入左移 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 淡入右移 */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease 0.2s both;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease 0.4s both;
}

/* 浮动动画 */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.08); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 25px) scale(1.03); }
}

.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-float-medium { animation: float-medium 10s ease-in-out infinite; }
.animate-float-fast { animation: float-fast 6s ease-in-out infinite; }

/* ============================================
   服务优势区 Advantages
   ============================================ */

/* 区块标题入场动画 */
.section-header {
    opacity: 0;
    transform: translateY(30px);
}

.section-header.visible {
    animation: fadeInUp 0.8s ease forwards;
}

/* 优势卡片入场 */
.advantage-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.advantage-card:nth-child(1).visible { transition-delay: 0.1s; }
.advantage-card:nth-child(2).visible { transition-delay: 0.2s; }
.advantage-card:nth-child(3).visible { transition-delay: 0.3s; }
.advantage-card:nth-child(4).visible { transition-delay: 0.4s; }
.advantage-card:nth-child(5).visible { transition-delay: 0.5s; }
.advantage-card:nth-child(6).visible { transition-delay: 0.6s; }

.advantage-card:hover {
    border-color: rgba(255, 107, 53, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ============================================
   业务流程区 Process
   ============================================ */

/* 流程步骤入场 */
.process-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step:nth-child(1).visible { transition-delay: 0.1s; }
.process-step:nth-child(2).visible { transition-delay: 0.25s; }
.process-step:nth-child(3).visible { transition-delay: 0.4s; }
.process-step:nth-child(4).visible { transition-delay: 0.55s; }

/* 连接线动画 */
.process-line {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.process-line.visible {
    transform: scaleX(1);
}

/* 步骤圆圈悬浮效果 */
.step-circle {
    position: relative;
    overflow: visible;
}

.step-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: step-pulse 2s ease-in-out infinite;
}

@keyframes step-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.1; }
}

/* ============================================
   关于我们 About
   ============================================ */

.about-content {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 统计卡片 */
.stat-card {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card.visible {
    opacity: 1;
    transform: scale(1);
}

.stat-card:nth-child(1).visible { transition-delay: 0.2s; }
.stat-card:nth-child(2).visible { transition-delay: 0.35s; }
.stat-card:nth-child(3).visible { transition-delay: 0.5s; }
.stat-card:nth-child(4).visible { transition-delay: 0.65s; }

/* 信任标签悬浮 */
.trust-badge {
    transition: var(--transition-base);
    cursor: default;
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   底部CTA CTA Section
   ============================================ */
.cta-section {
    position: relative;
}

.cta-bg-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ============================================
   页脚 Footer
   ============================================ */

.footer a {
    transition: var(--transition-fast);
}

.footer-col {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.footer-col.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-col:nth-child(1).visible { transition-delay: 0.1s; }
.footer-col:nth-child(2).visible { transition-delay: 0.2s; }
.footer-col:nth-child(3).visible { transition-delay: 0.3s; }

/* ============================================
   数字计数器样式增强
   ============================================ */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   响应式设计 Responsive Design
   ============================================ */

/* 大屏幕优化 */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* 平板适配 */
@media (max-width: 1024px) {
    .hero-section .lg\:col-span-3 {
        order: 2;
    }
    
    .hero-section .lg\:col-span-2 {
        order: 1;
    }
    
    .qrcode-card {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* 手机端适配 */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 64px;
    }
    
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .qrcode-card {
        max-width: 260px;
    }
    
    /* 减少首屏数据字号 */
    .counter[data-target] {
        font-size: 2rem !important;
    }
    
    /* 流程步骤垂直排列调整 */
    .process-step {
        padding: 1.5rem 1rem;
    }
    
    /* 关于区域堆叠 */
    .about-stats-grid {
        grid-template-columns: 1fr !important;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* CTA区域调整 */
    .cta-section .flex-col {
        align-items: center;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .qrcode-card {
        max-width: 240px;
    }
    
    .qrcode-container img {
        max-width: 220px;
        height: auto;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    /* 优势卡片内边距减小 */
    .advantage-card {
        padding: 1.5rem;
    }
    
    /* 统计卡片 */
    .stat-card {
        padding: 2rem;
    }
}

/* ============================================
   辅助功能与可访问性 Accessibility
   ============================================ */

/* 减少动效偏好（尊重用户系统设置） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --color-primary-500: #CC4F20;
        --color-secondary-500: #1E40AF;
    }
}

/* 焦点可见性（键盘导航） */
:focus-visible {
    outline: 3px solid var(--color-primary-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* 跳转到主要内容链接（隐藏但可访问） */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary-500);
    color: white;
    padding: 1rem 2rem;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   打印样式 Print Styles
   ============================================ */
@media print {
    .navbar,
    .cta-button-nav,
    .qrcode-glow,
    .qrcode-pulse,
    .hero-bg-pattern,
    .cta-bg-pattern {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}