/**
 * 阿凡客智能科技 - 品牌主题样式
 * 配色方案：深海科技蓝 + 活力科技橙
 */

/* ===== 全局变量覆盖 ===== */
:root {
    /* 主色调 - 深海科技蓝 */
    --primary: #0d4a8c;
    --primary-dark: #083560;
    --primary-light: #e8f4fc;
    --primary-gradient: linear-gradient(135deg, #0d4a8c 0%, #1a6fc4 100%);
    
    /* 强调色 - 活力科技橙 */
    --accent: #f26522;
    --accent-dark: #d14d0f;
    --accent-light: #fff3ed;
    
    /* 中性色 */
    --text: #1a1a2e;
    --text-light: #5a5a6e;
    --text-muted: #8a8a9a;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --white: #ffffff;
    
    /* 阴影和效果 */
    --shadow: 0 4px 20px rgba(13, 74, 140, 0.08);
    --shadow-hover: 0 12px 40px rgba(13, 74, 140, 0.15);
    --shadow-accent: 0 4px 20px rgba(242, 101, 34, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 顶部信息条 - 深色专业风格 ===== */
.top-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 2px solid var(--accent);
}

/* ===== 导航栏 - 毛玻璃效果 ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(13, 74, 140, 0.1);
}

.navbar-brand .brand-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-brand .brand-sub {
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 导航菜单 */
.nav-menu a {
    font-weight: 500;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px 2px 0 0;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: calc(100% - 36px);
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary);
}

/* 电话按钮 */
.nav-tel {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 15px;
    box-shadow: var(--shadow-accent);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-tel:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(242, 101, 34, 0.35);
}

/* ===== 按钮样式 ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 74, 140, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(13, 74, 140, 0.4);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 25px rgba(242, 101, 34, 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

/* ===== 区块标题样式 ===== */
.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    z-index: -1;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 25px;
}

/* ===== 卡片样式优化 ===== */
.solution-card,
.case-card,
.news-card,
.product-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    transition: var(--transition);
}

.solution-card:hover,
.case-card:hover,
.news-card:hover,
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.solution-card::before,
.case-card::before,
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: var(--radius) var(--radius) 0 0;
}

.solution-card:hover::before,
.case-card:hover::before,
.product-card:hover::before {
    transform: scaleX(1);
}

/* 解决方案图标 */
.solution-icon {
    background: var(--primary-light);
    border-radius: 16px;
    transition: var(--transition);
}

.solution-card:hover .solution-icon {
    background: var(--primary-gradient);
    transform: scale(1.1) rotate(5deg);
}

.solution-icon i {
    color: var(--primary);
    transition: var(--transition);
}

.solution-card:hover .solution-icon i {
    color: #fff;
}

/* ===== Banner样式优化 ===== */
.banner-slider {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d4a8c 100%);
    position: relative;
    overflow: hidden;
}

.banner-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.banner-tag {
    background: var(--accent);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.banner-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.banner-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #e8f4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

/* ===== 统计栏样式 ===== */
.stats-bar {
    background: var(--primary-gradient);
    position: relative;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.stat-num {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #ffd4c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 页脚样式 ===== */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.footer-brand h3 {
    background: linear-gradient(135deg, #fff 0%, #e8f4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col h4 {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* 浮动咨询按钮 */
.float-consult a {
    background: var(--accent);
    border-radius: 8px 0 0 8px;
    font-weight: 600;
}

.float-consult a:hover {
    background: var(--accent-dark);
}

/* 回到顶部 */
#backTop {
    background: var(--accent);
    box-shadow: var(--shadow-accent);
}

#backTop:hover {
    background: var(--accent-dark);
}

/* ===== 响应式优化 ===== */
@media(max-width:767px){
    .banner-title {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .nav-tel {
        display: none;
    }
}
