* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

.container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url("../lybg0.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 导航 - 完整恢复 */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 28px 60px;
    padding-top: calc(28px + env(safe-area-inset-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}
.logo {
    height: 46px;
}
.nav-menu {
    display: flex;
    gap: 40px;
}
.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}
.nav-menu a:hover {
    opacity: 0.8;
}

/* 左侧圆形动画 */
.float-circles {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 32px;
    z-index: 10;
    flex-wrap: wrap;
    max-width: 500px;
}
.circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 13px;
    padding: 6px;
    opacity: 0;

    animation: floatSmooth 4s ease-in-out infinite alternate,
               breatheScale 5s ease-in-out infinite,
               seqFade 7s ease-in-out infinite;
}
.circle .icon {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 4px;
}

.circle:nth-child(1) { width: 76px; height: 76px; transform: translateY(-32px);animation-delay: 0s,0s,0s; }
.circle:nth-child(2) { width: 88px; height: 88px; transform: translateY(18px); animation-delay: 0s,0.5s,1s; }
.circle:nth-child(3) { width: 70px; height: 70px; transform: translateY(-26px);animation-delay: 0s,1s,2s; }
.circle:nth-child(4) { width: 82px; height: 82px; transform: translateY(24px); animation-delay: 0s,1.5s,3s; }
.circle:nth-child(5) { width: 94px; height: 94px; transform: translateY(-18px);animation-delay: 0s,2s,4s; }
.circle:nth-child(6) { width: 66px; height: 66px; transform: translateY(12px); animation-delay: 0s,2.5s,5s; }

@keyframes floatSmooth {
    from { transform: translateY(0); }
    to   { transform: translateY(-10px); }
}
@keyframes breatheScale {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes seqFade {
    0%  { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100%{ opacity: 0; }
}

/* 右侧内容 */
.main-box {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    text-align: right;
    z-index: 10;
}

/* 标题样式 */
.title-line {
    font-size: 54px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.3;
}

/* PC端：逐字动画 */
@media (min-width: 769px) {
    .char {
        display: inline-block !important;
        opacity: 0;
        filter: blur(6px);
        transform: translateY(12px);
        animation: charFadeInUp 0.9s cubic-bezier(0.25, 0.1, 0.15, 1) forwards;
    }
    @keyframes charFadeInUp {
        to {
            opacity: 1;
            filter: blur(0);
            transform: translateY(0);
        }
    }
}

/* 移动端：彻底修复版式 + 缩小文字 + 横版显示 */
@media (max-width:768px) {
    .char {
        all: unset !important;
        display: inline !important;
        opacity: 1 !important;
    }
    .title-line {
        font-size: 32px !important;
        text-align: center !important;
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInUp 0.8s ease-out forwards;
    }
    .line1 { animation-delay: 0.2s; }
    .line2 { animation-delay: 0.5s; }
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.qrcode-group {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    opacity: 0;
    animation: fadeIn 1.4s ease 2.3s forwards;
    margin-top: 30px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
.qrcode-item { text-align: center; }
.qrcode-item img { width: 120px; height: 120px; margin-bottom: 8px; border-radius: 8px; }
.qrcode-item p { color: #fff; font-size:14px; }

.copyright {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
    opacity: 0.9;
    z-index: 10;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal {
    background: #fff;
    width: 90%;
    max-width: 700px;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    animation: modalOpen 0.3s ease;
}
@keyframes modalOpen {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 22px;
    color: #666;
    cursor: pointer;
}
.modal h2 { color: #ff7d00; margin-bottom:20px; font-size:26px; }
.modal p { color:#333; line-height:1.8; font-size:15px; margin-bottom:12px; }
.contact-modal-body { display:flex; gap:30px; align-items:center; }
.contact-text { flex:1; text-align:left; }
.contact-qrcode { width:140px; height:140px; border-radius:8px; }

/* 移动端布局 */
@media (max-width:768px) {
    .container { background-image: url("../lybg3.jpg"); }
    .float-circles { display:none !important; }
    .navbar { padding:20px; padding-top: calc(20px + env(safe-area-inset-top)); }
    .logo { height:36px; }
    .nav-menu { gap:20px; }
    .main-box {
        top:18%;
        left:50%;
        transform:translateX(-50%);
        text-align:center;
        width: 100%;
    }
    .qrcode-group { justify-content:center; }
    .copyright { font-size:12px; bottom:10px; }
    .contact-modal-body { flex-direction:column; gap:20px; }
    .contact-text { width:100%; text-align:left !important; }
}
