/* 蓝图企服 - 首页自定义样式 */
:root {
    --theme-primary: #0ea5e9;
    --theme-secondary: #06b6d4;
}
.text-theme-primary { color: #0ea5e9; }
.text-theme-secondary { color: #06b6d4; }
.bg-theme-primary { background-color: #0ea5e9; }
.bg-theme-secondary { background-color: #06b6d4; }
.bg-theme-accent { background-color: #38bdf8; }
.hover\:text-theme-primary:hover { color: #0ea5e9; }
.group:hover .group-hover\:text-theme-primary { color: #0ea5e9; }
.group:hover .group-hover\:text-theme-secondary { color: #06b6d4; }
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    color: white;
}

* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html { scroll-behavior: smooth; }

.hero-gradient {
    position: relative;
    background-image: radial-gradient(circle at 15% 25%, rgba(6,182,212,0.12) 0%, transparent 55%), radial-gradient(circle at 85% 75%, rgba(168,85,247,0.08) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(56,189,248,0.05) 0%, transparent 60%), linear-gradient(180deg, #020617 0%, #020617 35%, #020617 70%, #020617 100%);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(56, 189, 248, 0.6);
    }
}

.business-accordion {
    display: flex;
    height: 620px;
}

.business-accordion .business-item {
    opacity: 1;
    animation: none;
}

.business-accordion .business-item:nth-child(1) { animation-delay: 0.1s; }
.business-accordion .business-item:nth-child(2) { animation-delay: 0.2s; }
.business-accordion .business-item:nth-child(3) { animation-delay: 0.3s; }
.business-accordion .business-item:nth-child(4) { animation-delay: 0.4s; }
.business-accordion .business-item:nth-child(5) { animation-delay: 0.5s; }
.business-accordion .business-item:nth-child(6) { animation-delay: 0.6s; }
.business-accordion .business-item:nth-child(7) { animation-delay: 0.7s; }
.business-accordion .business-item:nth-child(8) { animation-delay: 0.8s; }

.business-accordion .business-item:hover {
    animation: none;
}

.business-item {
    flex: 0.5;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.business-item.active {
    flex: 5;
}

.business-bg {
    position: absolute;
    inset: 0;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease, opacity 0.5s ease;
    filter: brightness(0.35) saturate(0.5);
    opacity: 0.6;
}

.business-item.active .business-bg {
    transform: scale(1.08);
    filter: brightness(0.5) saturate(0.7);
    opacity: 1;
}

.business-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.92) 100%);
}

.business-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 64px;
    color: white;
    opacity: 0;
    transform: translateY(40px);
    max-width: none;
    transition: none;
}

.business-item.active .business-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.business-label {
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.business-item.active .business-label {
    opacity: 0;
}

@media (max-width: 768px) {
    .business-accordion {
        display: grid !important;
        grid-template-columns: 1fr !important;
        height: auto !important;
        gap: 0.75rem !important;
        padding: 0 1.25rem !important;
    }
    
    .business-accordion .business-item {
        flex: none !important;
        height: 140px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    .business-accordion .business-item:hover,
    .business-accordion .business-item.active {
        transform: none !important;
    }
    
    .business-accordion .business-item.active,
    .business-accordion .business-item:hover {
        flex: none !important;
        height: 320px !important;
    }
    
    .business-accordion .business-item .business-bg {
        filter: brightness(0.7) saturate(0.9) !important;
        opacity: 0.9 !important;
        transform: scale(1) !important;
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    .business-accordion .business-item.active .business-bg,
    .business-accordion .business-item:hover .business-bg {
        filter: brightness(0.5) saturate(0.8) !important;
        opacity: 1 !important;
        transform: scale(1.05) !important;
    }
    
    .business-accordion .business-item .business-label {
        left: 24px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        writing-mode: horizontal-tb !important;
        transition: opacity 0.3s ease !important;
    }

    .business-accordion .business-item.active .business-label,
    .business-accordion .business-item:hover .business-label {
        opacity: 0 !important;
    }
    
    .business-accordion .business-item .business-content {
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        padding: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        transform: none !important;
        max-width: none !important;
        opacity: 0 !important;
        transition: none !important;
        text-align: left !important;
    }
    
    .business-accordion .business-item.active .business-content,
    .business-accordion .business-item:hover .business-content {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .business-accordion .business-item .business-content div:first-child {
        font-size: 1.375rem !important;
        margin-bottom: 0.75rem !important;
        text-align: left !important;
        font-weight: 300 !important;
    }
    
    .business-accordion .business-item .business-content p {
        font-size: 0.9375rem !important;
        line-height: 1.7 !important;
        text-align: left !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.card-hover {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
    box-shadow: 0 32px 80px -24px rgba(15,23,42,0.25);
    transform: translateY(-12px);
}

.btn-primary {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #0891b2 100%);
    transition: all 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    color: white;
}

.btn-primary span {
    position: relative;
    z-index: 10;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 50%, #0ea5e9 100%);
    opacity: 0;
    transition: opacity 0.36s ease;
    z-index: 1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 12px 30px -12px rgba(6, 182, 212, 0.6);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px -18px rgba(6, 182, 212, 0.7), 0 0 40px -10px rgba(6, 182, 212, 0.3);
    color: white;
}


.number-display {
    font-size: 7rem;
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.06em;
}

.stat-card {
    transition: all 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.section-tag {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
}

.section-title {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.section-desc {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #64748b;
}

.case-overlay {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.6) 0%, rgba(8, 145, 178, 0.6) 100%);
}

.case-card {
    position: relative;
    overflow: hidden;
}

.case-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33.333%;
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.case-card:hover .case-card-content {
    height: 100%;
    background: rgba(59, 130, 246, 0.5);
    justify-content: center;
}

.scroll-indicator {
    animation: bounce 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

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

.number-counter {
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.glow-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(100px);
    opacity: 0.5;
    mix-blend-mode: screen;
}

.nav-link {
    position: relative;
    font-weight: 400;
    transition: font-weight 0.3s ease;
}

/* 去掉下划线 */

.input-line {
    transition: all 0.48s ease;
}

.input-line:focus {
    border-color: #22c55e;
}

.bg-grid {
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
}

.yewu-bg-1 { background: url('../img/yewu-1.webp') center/cover no-repeat; }
.yewu-bg-2 { background: url('../img/yewu-2.webp') center/cover no-repeat; }
.yewu-bg-3 { background: url('../img/yewu-3.webp') center/cover no-repeat; }
.yewu-bg-4 { background: url('../img/yewu-4.webp') center/cover no-repeat; }
.yewu-bg-5 { background: url('../img/yewu-5.webp') center/cover no-repeat; }
.yewu-bg-6 { background: url('../img/yewu-6.webp') center/cover no-repeat; }
.yewu-bg-7 { background: url('../img/yewu-7.webp') center/cover no-repeat; }
.yewu-bg-8 { background: url('../img/yewu-8.webp') center/cover no-repeat; }


/* 新闻卡片样式 - 统一深色玻璃拟态风格 */
.news-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.5);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.news-card:hover img {
    transform: scale(1.08);
}

.news-card h3 {
    transition: color 0.3s ease;
}

.news-card:hover h3 {
    color: #0ea5e9;
}
