* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    font-family: 'Microsoft YaHei', sans-serif;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: var(--pc-bg);
    transition: background-image 0.5s ease;
}

.glass-container {
    width: 90%;
    max-width: 600px;
    margin: 2rem;
    perspective: 1000px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: grab;
    overflow: hidden;
}

.drag-handle {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    cursor: grab;
    transition: all 0.2s ease;
}

.drag-handle:active {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%) scaleX(1.2);
}

.card-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h1 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.05em;
}

.subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    max-width: 80%;
    margin: 0 auto;
}

.action-buttons {
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
}

.action-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 1.4rem 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.1));
}

.action-btn:hover::before {
    opacity: 1;
}

.btn-icon {
    font-size: 1.6rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.glass-footer {
    padding: 2rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

@keyframes bodyShake {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    15% { transform: translate(-4px, 3px) rotate(-1deg); }
    30% { transform: translate(4px, -2px) rotate(1.5deg); }
    45% { transform: translate(-3px, 1px) rotate(-0.5deg); }
    60% { transform: translate(2px, -1px) rotate(0.8deg); }
}

@keyframes edgeBounce {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-12px); }
    75% { transform: translateX(12px); }
}

.card-shake { animation: bodyShake 0.6s ease; }
.edge-click { animation: edgeBounce 0.45s ease; }

@media (max-width: 768px) {
    body::before { background-image: var(--mobile-bg); }
    
    .glass-card {
        border-radius: 18px;
        margin: 1rem;
    }
    
    .card-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .card-header h1 {
        font-size: 2rem;
    }
    
    .action-buttons {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .action-btn {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .glass-container {
        width: 95%;
        margin: 1rem;
    }
    
    .drag-handle {
        width: 50px;
        height: 3px;
        top: 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}