/* ============================================================
   易急速开锁换锁 品牌样式表
   版本：V1.0
   最后更新：2026-07-17
   说明：适用于 yijisu.cn 总站及各城市分站
   ============================================================ */

/* ========== 一、CSS 变量与重置 ========== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #f59e0b;
    --success: #10b981;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    --wechat-green: #07C160;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: #f9fafb;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ========== 二、通用组件 ========== */

/* ---- 按钮 ---- */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-outline-card {
    display: inline-block;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.btn-outline-card:hover {
    background: var(--primary);
    color: white;
}


/* ========== 三、头部导航 ========== */
.header {
    background: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.5px;
}
.logo-text span {
    font-weight: normal;
    color: var(--gray);
    font-size: 0.9rem;
}
.nav-links {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    align-items: center;
}
.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-external {
    color: #0d37f0;
    font-weight: bold;
}


/* ========== 四、页脚 ========== */
.footer {
    background: #0f172a;
    color: white;
    padding: 2rem 0 1.5rem;
    margin-top: 2rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-container h4 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}
.footer-container p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-contact {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.8;
}
.footer-contact i {
    width: 20px;
    color: #64748b;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: white;
}
.footer-info {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.footer-info .beianhao {
    color: #94a3b8;
    font-size: 0.8rem;
}


/* ========== 五、悬浮电话按钮 ========== */
.floating-phone-wrap {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 9999;
    pointer-events: none;
}
.floating-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
    pointer-events: auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.floating-phone-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.55);
}
.floating-phone-btn:active {
    transform: scale(0.94);
}
.floating-phone-btn::before,
.floating-phone-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.35);
    transform: translate(-50%, -50%);
    animation: phoneRipple 2.2s ease-out infinite;
    z-index: -1;
    pointer-events: none;
}
.floating-phone-btn::after {
    animation-delay: 1.1s;
    background: rgba(37, 99, 235, 0.2);
}
@keyframes phoneRipple {
    0% { width: 100%; height: 100%; opacity: 0.9; }
    100% { width: 200%; height: 200%; opacity: 0; }
}


/* ========== 六、响应式适配 ========== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .floating-phone-wrap {
        right: 8px;
        bottom: 8px;
    }
    .floating-phone-btn {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .floating-phone-wrap {
        right: 6px;
        bottom: 6px;
    }
    .floating-phone-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}