* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #000428, #004e92);
    color: #ffffff;
    line-height: 1.6;
    position: relative;
}

.page-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
}

.page-container {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    padding: min(20px, 3vh);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.header, .main-content, .footer, 
.qr-frame, .feature-item, .scan-text {
    pointer-events: auto;
}

.header {
    flex: 0 0 auto;
    padding: min(15px, 2vh) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: min(24px, 5vw);
    font-weight: 700;
    color: #FFD700;
    margin-bottom: min(10px, 1.5vh);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: shimmer 2s infinite;
}

.title {
    font-size: min(28px, 6vw);
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: min(20px, 3vh);
}

.qr-section {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container {
    text-align: center;
}

.qr-frame {
    width: min(160px, 40vw);
    height: min(160px, 40vw);
    margin: 0 auto;
    padding: min(10px, 1.5vh);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qr-code {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.scan-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    animation: scan 2s linear infinite;
    box-shadow: 0 0 10px #FFD700;
}

.scan-text {
    margin-top: min(15px, 2vh);
    font-size: min(16px, 4vw);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.service-features {
    flex: 0 1 auto;
    display: grid;
    gap: min(12px, 2vh);
    padding: 0 min(10px, 1.5vw);
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: min(12px, 2vh) min(15px, 3vw);
    display: flex;
    align-items: center;
    gap: min(15px, 3vw);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-origin: center;
    animation: fadeInUp 0.5s ease backwards;
}

.feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: min(24px, 5vw);
    width: min(40px, 10vw);
    height: min(40px, 10vw);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    animation: pulse 2s infinite;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: min(16px, 4vw);
    font-weight: 500;
    margin-bottom: min(4px, 0.5vh);
}

.feature-text p {
    font-size: min(14px, 3.5vw);
    color: rgba(255, 255, 255, 0.7);
}

.footer {
    flex: 0 0 auto;
    padding: min(10px, 1.5vh) 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    font-size: min(14px, 3.5vw);
    color: rgba(255, 255, 255, 0.6);
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

@keyframes shimmer {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* 悬浮效果 */
@media (hover: hover) {
    .feature-item {
        transition: transform 0.3s ease, background-color 0.3s ease;
    }
    
    .feature-item:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.08);
    }
}
