/* ============================================================
 * 头部专属样式 - header.css
 * 包含:.header / .header-inner / .header-right / .header-phone /
 *       .phone-icon / .phone-text / .btn-yuyue / .btn-consult / logo-*
 * 响应式:桌面正常 / 平板略紧凑 / 手机继续显示(不隐藏)
 * 加载位置:在 premium.css 之后,nav.css 之后,entry.css 之后,main2.css 之后
 * ============================================================ */

/* ========== 头部容器 ========== */
.header {
    background: var(--white);
    padding: 18px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== Logo 区域 ========== */
.logo-box {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    display: block;
    height: 50px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-hero);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    font-weight: bold;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: iconShine 3s infinite;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-text p {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 3px;
    font-weight: 500;
    margin-top: 4px;
}

.brand-eq {
    margin: 0 8px;
    color: var(--accent);
}

.brand-primary { color: var(--primary); }
.brand-secondary { color: var(--accent); }

/* ========== 头部右侧 - 桌面:电话 + 按钮组 ========== */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 电话方块 */
.header-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(145deg, #f0f4f8, #e8ecf0);
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 61, 98, 0.1);
}

.phone-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-teal);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.phone-text {
    display: flex;
    flex-direction: column;
}

.phone-text span {
    font-size: 12px;
    color: var(--text-light);
}

.phone-text strong {
    font-size: 16px;
    color: var(--primary);
}

/* 预约按钮(金) */
.btn-yuyue {
    padding: 14px 28px;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.btn-yuyue:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
    color: var(--primary-dark);
}

/* 一键咨询按钮 */
.btn-consult {
    padding: 14px 24px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-consult:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================================
 * 平板 - ≤1024px 头部简化
 * ============================================================ */
@media (max-width: 1024px) {
    .header-right {
        gap: 12px;
    }

    .header-phone {
        padding: 10px 14px;
    }

    .phone-text span {
        display: none;  /* "专家热线" 文字隐藏 */
    }

    .btn-yuyue,
    .btn-consult {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============================================================
 * 平板 - ≤992px 略紧凑(不隐藏)
 * ============================================================ */
@media (max-width: 992px) {
    .header-right {
        gap: 10px;
    }

    .header-phone {
        padding: 8px 12px;
    }

    .phone-text span {
        display: none;  /* "专家热线" 文字隐藏 */
    }

    .phone-text strong {
        font-size: 14px;
    }

    .btn-yuyue,
    .btn-consult {
        padding: 8px 14px;
        font-size: 12px;
    }

    .logo-text h1 {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 18px;
    }

    .brand-eq {
        display: none;
    }
}

/* ============================================================
 * 手机 - ≤768px
 * header-right 继续显示(不隐藏),只做紧凑适配
 * ============================================================ */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header-right {
        gap: 6px;
    }

    .header-phone {
        padding: 6px 10px;
        gap: 6px;
    }

    .phone-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .phone-text strong {
        font-size: 13px;
    }

    .btn-yuyue,
    .btn-consult {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* logo 适配手机 */
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .logo-text h1 {
        font-size: 13px;
        line-height: 1.3;
    }

    .logo-text p {
        font-size: 9px;
        letter-spacing: 1px;
    }
}

/* ============================================================
 * 小屏手机 - ≤480px 头部最紧凑(隐藏按钮,只留 logo + 电话)
 * ============================================================ */
@media (max-width: 480px) {
    .header {
        padding: 8px 0;
    }

    /* 隐藏预约/咨询按钮,只留 logo + 电话 */
    .header-right .btn-yuyue,
    .header-right .btn-consult {
        display: none;
    }

    .header-right {
        gap: 8px;
    }

    .header-phone {
        padding: 5px 8px;
    }

    .phone-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .phone-text strong {
        font-size: 12px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .logo-text h1 {
        font-size: 12px;
    }

    .logo-img {
        height: 32px;
        max-width: 160px;
    }
}
