:root {
    --primary-color: rgba(64, 158, 255, 0.8);
    --primary-glow: rgba(82, 183, 255, 0.6);
    --secondary-glow: rgba(100, 200, 255, 0.4);
    --text-color: #2c3e50;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --content-width: clamp(320px, 90vw, 1200px);
    --logo-size: clamp(75px, 12.5vw, 140px);
    --mobile-logo-size: clamp(90px, 22.5vw, 160px);
    --brand-font-size: clamp(22px, 3.5vw, 34px);
    --mobile-brand-font-size: clamp(28px, 6vw, 40px);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    position: relative;
    overflow: hidden;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    height: 100vh;
    padding: 2rem;
    display: flex;
    gap: clamp(3rem, 5vw, 8rem);
    align-items: center;
    justify-content: center;
    overflow: auto;
    position: relative;
    z-index: 1;
}

.phone-frame {
    background: linear-gradient(145deg, #e8edf2, #d8dde2);
    border-radius: 45px;
    padding: 6px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 8px 24px -8px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    width: min(450px, 90vw);
    height: min(850px, 85vh);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.phone-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 45px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.3)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(140px, 35%);
    height: 25px;
    background: linear-gradient(to bottom, #e8edf2, #d8dde2);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.08);
}

.phone-notch::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #409EFF, #64B4FF);
    border-radius: 50%;
    box-shadow: 
        0 0 6px 2px rgba(64, 158, 255, 0.3),
        0 0 2px rgba(64, 158, 255, 0.5);
}

.phone-content {
    flex: 1;
    background: #fff;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    margin: 8px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.phone-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.content-area {
    flex: 1;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 2.5vw, 3rem);
    padding: clamp(1.5rem, 2.5vw, 3rem);
    margin: auto 0;
}

.logo-section {
    text-align: center;
    width: 100%;
    max-width: 200px;
    padding: 0 1rem;
}

.logo {
    width: var(--logo-size);
    height: auto;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.brand-name {
    font-size: var(--brand-font-size);
    color: #fff;
    margin: 0 0 1.5rem 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(82, 183, 255, 0.3);
}

/* 删除轮播图相关样式，添加二维码样式 */
.qrcode-container {
    position: fixed;
    right: clamp(15px, 2vw, 30px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(180px, 15vw, 240px);
    padding: clamp(0.8rem, 1vw, 1.2rem);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: 100;
    transition: all 0.3s ease;
}

.qrcode-container img {
    width: clamp(140px, 12vw, 180px);
    height: clamp(140px, 12vw, 180px);
    border-radius: 8px;
    padding: 6px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.qrcode-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 500;
    text-align: center;
    margin: 0;
}

/* 优化版权信息显示 */
.footer {
    text-align: center;
    font-size: clamp(11px, 1.1vw, 14px);
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
    padding: 0.5rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer p {
    margin: 3px 0;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer .icp-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 5px auto;
}

.footer .icp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0 5px;
    white-space: nowrap;
    font-size: clamp(8px, 0.8vw, 10px);
}

.footer .icp-icon {
    width: clamp(14px, 1.8vw, 18px);
    height: auto;
    vertical-align: middle;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #52b7ff;
}

/* 移动端配置 */
@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }
    
    .container {
        flex-direction: column;
        padding: clamp(0.8rem, 2vw, 1rem);
        gap: clamp(1rem, 2vw, 2rem);
        height: auto;
        min-height: 100vh;
    }

    .phone-frame {
        display: none;
    }

    .content-area {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .logo-section {
        max-width: 100%;
        padding: 0;
    }

    .custom-button {
        width: 100% !important;
        height: clamp(60px, 10vw, 70px) !important;
        font-size: clamp(16px, 2vw, 20px) !important;
    }
    
    .footer {
        margin-top: clamp(1rem, 2vw, 2rem);
        font-size: clamp(11px, 1.1vw, 13px);
    }

    .qrcode-container {
        display: none;
    }

    .footer {
        font-size: 11px;
        padding: 0.3rem;
    }

    .logo {
        width: var(--mobile-logo-size);
        margin-bottom: 1rem;
    }

    .brand-name {
        font-size: var(--mobile-brand-font-size);
        margin: 0 0 2rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }
    
    .content-area {
        max-width: 320px;
        gap: 1rem;
    }
    
    .logo-section {
        max-width: 320px;
    }
    
    .custom-button {
        height: 55px !important;
        font-size: 15px !important;
    }
    
    .footer {
        font-size: 11px;
    }

    .qrcode-container {
        max-width: 240px;
        padding: 1rem;
    }

    .qrcode-container img {
        width: 160px;
        height: 160px;
    }
}

/* 添加背景动效样式 */
.interactive-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(82, 183, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(82, 183, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    transform: perspective(1000px) rotateX(60deg);
    transform-origin: center;
    pointer-events: none;
}

.cursor-follow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.particle {
    position: absolute;
    background: var(--primary-glow);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 添加动画效果 */
@keyframes particleFade {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(2); }
}

/* 磁吸效果背景 */
.magnetic-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.magnetic-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, 
        rgba(82, 183, 255, 0.6), 
        rgba(100, 200, 255, 0.4)
    );
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.15s ease-out;
    box-shadow: 
        0 0 15px rgba(82, 183, 255, 0.5),
        0 0 5px rgba(100, 200, 255, 0.3);
}

/* 优化粒子样式 */
.magnetic-particle.tiny {
    width: 2px;
    height: 2px;
    opacity: 0.6;
    transition: transform 0.1s ease-out;
}

.magnetic-particle.small {
    width: 3px;
    height: 3px;
    opacity: 0.7;
    transition: transform 0.12s ease-out;
}

.magnetic-particle.medium {
    width: 4px;
    height: 4px;
    opacity: 0.8;
    transition: transform 0.15s ease-out;
}

.magnetic-particle.large {
    width: 5px;
    height: 5px;
    opacity: 0.9;
    transition: transform 0.18s ease-out;
}

.magnetic-particle.huge {
    width: 6px;
    height: 6px;
    opacity: 1;
    transition: transform 0.2s ease-out;
}

/* 响应式调整 */
@media (min-width: 1440px) {
    .content-area {
        max-width: 450px;
    }
    
    .logo-section {
        max-width: 360px;
    }
}

@media (max-width: 1200px) {
    .content-area {
        max-width: 380px;
    }
    
    .logo-section {
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .content-area {
        max-width: 350px;
        gap: 1.5rem;
    }
    
    .logo-section {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 1rem;
    }

    .phone-frame {
        display: none;
    }
}

.button-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
}

.custom-button {
    width: 280px !important;
    height: 80px !important;
    margin: 0 auto !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: none !important;
    color: #2c3e50 !important;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.custom-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.8), rgba(100, 180, 255, 0.9));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.custom-button .button-content {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    position: relative !important;
    z-index: 2 !important;
}

.custom-button i {
    font-size: 1.8em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #52b7ff, #64c8ff);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin: 0 !important;
}

.custom-button span {
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    position: relative !important;
    z-index: 2 !important;
    transition: all 0.4s ease !important;
    white-space: nowrap !important;
    color: #fff !important;
}

.custom-button:hover {
    transform: translateY(-5px) !important;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}

.custom-button:hover::before {
    opacity: 1;
}

.custom-button:hover i,
.custom-button:hover span {
    -webkit-text-fill-color: white !important;
    color: white !important;
}

.custom-button.active {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, 
        rgba(64, 158, 255, 0.9), 
        rgba(100, 180, 255, 0.9)
    ) !important;
}

.custom-button.active i,
.custom-button.active span {
    -webkit-text-fill-color: white !important;
    color: white !important;
}

/* 移动端按钮适配 */
@media (max-width: 768px) {
    .button-group {
        gap: 1.5rem;
        width: 90%;
        margin: 0 auto;
    }

    .custom-button {
        width: 100% !important;
        max-width: 280px !important;
        height: clamp(60px, 10vw, 70px) !important;
        font-size: clamp(16px, 2vw, 20px) !important;
    }
}

@media (max-width: 480px) {
    .button-group {
        width: 85%;
        gap: 1.2rem;
    }

    .custom-button {
        max-width: 260px !important;
        height: 55px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 360px) {
    .button-group {
        width: 80%;
    }

    .custom-button {
        max-width: 240px !important;
    }
}

/* 添加动态光斑效果 */
@keyframes floatingLight {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(10px, -10px); opacity: 0.8; }
}

.light-spot {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(82, 183, 255, 0.15) 0%,
        rgba(100, 200, 255, 0.1) 30%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    animation: floatingLight 8s infinite ease-in-out;
}

.light-spot:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: -2s;
}

.light-spot:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: -4s;
}

/* 响应式调整 */
@media (max-width: 1600px) {
    .qrcode-container {
        transform: translateY(-50%) scale(0.9);
    }
}

@media (max-width: 1400px) {
    .qrcode-container {
        transform: translateY(-50%) scale(0.85);
    }
}

@media (max-width: 1200px) {
    .qrcode-container {
        transform: translateY(-50%) scale(0.8);
        right: 10px;
    }
}

/* 在较小屏幕上隐藏二维码 */
@media (max-width: 992px) {
    .qrcode-container {
        display: none;
    }
}

@media (max-width: 500px) {
    .footer .icp-container {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .footer .icp {
        font-size: 8px;
        margin: 0 3px;
    }
}
