/* 环鑫财务官网样式 */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Hero 背景 */
.hero-section {
    background: linear-gradient(135deg, #0f2a52 0%, #1e4a8a 50%, #163a6e 100%);
}

.hero-bg {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(217, 119, 6, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 40%);
}

.hero-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* 导航栏滚动效果 */
#header {
    background: transparent;
}

#header.scrolled {
    background: rgba(15, 42, 82, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1023px) {
    #header {
        background: rgba(15, 42, 82, 0.92);
        backdrop-filter: blur(12px);
    }

    #mobileMenu {
        max-height: calc(100svh - 4rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 玻璃卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 数据统计条 */
.stats-bar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
}

.stats-bar-mobile .stat-item {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0.75rem;
}

@media (min-width: 1024px) {
    .stats-bar-mobile .stat-item {
        background: transparent;
        border-radius: 0;
    }

    .stats-bar-mobile .stat-item + .stat-item {
        border-left: 1px solid #f3f4f6;
    }
}

/* 区块标签 */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #1e4a8a;
    background: #eff6ff;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
}

/* 关于我们视觉区 */
.about-visual {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
}

/* 服务卡片 */
.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(30, 74, 138, 0.1);
    border-color: #bfdbfe;
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 1.5rem;
    color: #1e4a8a;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #1e4a8a, #163a6e);
}

.service-card:hover .service-icon i {
    color: white;
}

/* 优势卡片 */
.advantage-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 承诺卡片 */
.commitment-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    height: 100%;
}

.commitment-card:hover {
    box-shadow: 0 12px 32px rgba(30, 74, 138, 0.08);
    border-color: #dbeafe;
}

/* 专家卡片 */
.expert-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(30, 74, 138, 0.08);
    border: 1px solid #f3f4f6;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e4a8a;
    background: #eff6ff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* 案例卡片 */
.case-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    height: 100%;
}

.case-card:hover {
    box-shadow: 0 12px 32px rgba(30, 74, 138, 0.08);
}

/* 联系卡片 */
.contact-info-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(30, 74, 138, 0.06);
    border: 1px solid #f3f4f6;
    height: 100%;
}

/* 浮动咨询按钮 */
.float-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.float-contact:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.5);
    color: white;
}

.float-contact i {
    font-size: 1.125rem;
}

@media (max-width: 640px) {
    .float-contact-text {
        display: none;
    }

    .float-contact {
        width: 3.25rem;
        height: 3.25rem;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        bottom: calc(1.25rem + env(safe-area-inset-bottom));
        right: calc(1rem + env(safe-area-inset-right));
    }

    .service-card,
    .commitment-card,
    .case-card,
    .advantage-card,
    .expert-card,
    .contact-info-card {
        padding: 1.25rem;
    }

    .service-card:hover,
    .advantage-card:hover {
        transform: none;
    }

    .section-tag {
        font-size: 0.6875rem;
        padding: 0.3rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 选中高亮 */
::selection {
    background: #dbeafe;
    color: #1e4a8a;
}
