/* 基础变量与重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #ff6b81;
    --secondary: #a78bfa;
    --light: #fff5f8;
    --dark: #4a4063;
    --shadow: 0 8px 30px rgba(255, 107, 129, 0.3);
}
body {
    margin: 0;
    overflow-x: hidden;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.start-bg {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* 背景层 */
.bg-img {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-image: url('../images/bg2.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
}
.bg-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    backdrop-filter: blur(2px);
}
/* 爱心容器 */
.love-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
}
/* 大爱心样式 */
.love {
    position: absolute;
    width: clamp(28px, 5vw, 40px); /* 响应式尺寸：小屏28px 大屏40px */
    height: clamp(28px, 5vw, 40px);
    background-color: var(--primary);
    transform: rotate(45deg);
    animation: floatUp 18s linear infinite;
    opacity: 0;
    box-shadow: 0 0 20px rgba(255, 107, 129, 0.7);
    transition: all 0.3s ease;
}
.love::before, .love::after {
    content: '';
    position: absolute;
    width: inherit;
    height: inherit;
    background-color: inherit;
    border-radius: 50%;
}
.love::before { top: calc(-50% + 1px); left: 0; } /* 用百分比适配响应式 */
.love::after { top: 0; left: calc(-50% + 1px); }
.love.medium {
    width: clamp(20px, 3vw, 28px);
    height: clamp(20px, 3vw, 28px);
}
.love.purple {
    background-color: var(--secondary);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.7);
}
@keyframes floatUp {
    0% {
        transform: rotate(45deg) translateY(100vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    15% {
        opacity: 0.8;
    }
    50% {
        transform: rotate(45deg) translateY(50vh) translateX(20px) scale(0.9);
    }
    85% {
        opacity: 0.6;
    }
    100% {
        transform: rotate(45deg) translateY(-50px) translateX(-15px) scale(0.6);
        opacity: 0;
    }
}
/* 爱情鞭炮容器 */
.firecracker-container {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
}
/* 鞭炮引线 */
.firecracker {
    position: absolute;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to top, var(--primary), rgba(255, 107, 129, 0.4));
    transform-origin: bottom center;
    animation: firecrackerRise 2s linear forwards;
    opacity: 0;
}
/* 鞭炮炸开小爱心 */
.firecracker-love {
    position: absolute;
    width: clamp(12px, 2vw, 16px); /* 响应式小爱心 */
    height: clamp(12px, 2vw, 16px);
    background-color: var(--primary);
    transform: rotate(45deg);
    opacity: 0;
    box-shadow: 0 0 8px rgba(255, 107, 129, 0.8);
}
.firecracker-love::before, .firecracker-love::after {
    content: '';
    position: absolute;
    width: inherit;
    height: inherit;
    background-color: inherit;
    border-radius: 50%;
}
.firecracker-love::before { top: calc(-50% + 1px); left: 0; }
.firecracker-love::after { top: 0; left: calc(-50% + 1px); }
@keyframes firecrackerRise {
    0% {
        height: 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        height: 80vh;
        opacity: 0;
    }
}
@keyframes explode {
    0% {
        transform: rotate(45deg) scale(0);
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        transform: rotate(45deg) scale(1.2);
        opacity: 0;
    }
}
.header-box{
    display: flex;
    box-shadow: 0 2px 15px rgba(255, 107, 129, 0.15);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
    position: fixed;
    z-index: 10;
    width: 100%;
    justify-content: center;
    top: 0;
}
/* 顶部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 70%;
}


.header-left, .header-right {
    display: flex;
    align-items: center;
}

.service-tel {
    display: flex;
    align-items: center;
    color: white;
    font-size: 16px;
}

.service-tel i {
    margin-right: 8px;
    font-size: 18px;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.site-name {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* 响应式布局 */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        padding: 15px;
    }

    .header-left, .header-right {
        margin: 5px 0;
    }

    .logo {
        height: 35px;
    }

    .site-name {
        font-size: 20px;
    }

    .service-tel {
        font-size: 14px;
    }
}
/* 核心卡片（重点响应式优化） */
.center-card {
    border-radius: clamp(16px, 4vw, 20px); /* 响应式圆角 */
    position: relative;
    width: clamp(280px, 85vw, 380px); /* 最大380px 最小280px */
    height: clamp(320px, 65vh, 460px); /* 高度随屏幕变化 */
    z-index: 3;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.center-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 107, 129, 0.3);
}
.center-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
}
.center-card:hover img {
    transform: scale(1.05);
}
.center-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 40%);
    z-index: 1;
    pointer-events: none;
}
.card-label {
    position: absolute;
    bottom: 20px; /* 小屏减少距离 */
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    padding: 0 15px;
}
.card-title {
    color: white;
    font-size: clamp(18px, 4vw, 24px); /* 响应式标题 */
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.card-desc {
    color: rgba(255,255,255,0.9);
    font-size: clamp(13px, 3vw, 15px); /* 响应式描述 */
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
/* 底部信息 */
.footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    color: var(--dark);
    font-size: clamp(12px, 2.5vw, 13px); /* 响应式文字 */
    line-height: 1.8;
    z-index: 3;
    padding: 12px 0; /* 小屏减少内边距 */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 107, 129, 0.1);
}
/* 分断点优化 */
@media (max-width: 360px) {
    .card-label {
        bottom: 15px;
    }
    .footer div {
        line-height: 1.6; /* 超小屏减少行高避免溢出 */
    }
}
@media (min-width: 768px) {
    .firecracker {
        width: 4px; /* 大屏加粗引线 */
    }
    .love {
        box-shadow: 0 0 25px rgba(255, 107, 129, 0.8); /* 大屏增强阴影 */
    }
}
a{
    text-decoration: none;
}