* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff00ff 0%, #8b00ff 100%);
    overflow-x: hidden;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.content {
    text-align: center;
    color: white;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.title-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: 120px;
    object-fit: contain;
}

.subtitle-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.subtitle {
    font-size: 24px;
    font-weight: 400;
    color: white;
    line-height: 1.5;
    margin: 0;
    letter-spacing: -0.3px;
}

.emoji {
    font-size: 32px;
    display: block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.instruction {
    font-size: 16px;
    font-weight: 400;
    color: white;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

.connect-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: white;
    border: 1px solid #8b00ff;
    border-radius: 12px;
    color: #8b00ff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.connect-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 255, 0.3);
    background-color: #f8f8ff;
}

.connect-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 0, 255, 0.2);
}

.connect-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wallet-icon {
    width: 20px;
    height: 20px;
    stroke: #8b00ff;
    flex-shrink: 0;
}

.connect-button:hover .wallet-icon {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title-logo {
        max-height: 90px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    .instruction {
        font-size: 14px;
    }
    
    .connect-button {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .title-logo {
        max-height: 70px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .content {
        gap: 24px;
    }
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, #ff00ff, #8b00ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.06);
    border: none;
    font-size: 20px;
    color: rgba(60, 66, 66, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgba(60, 66, 66, 1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 40px;
}

.modal-left {
    padding-right: 32px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-right {
    padding-left: 32px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #25292E;
    margin: 0 0 8px 0;
}

.modal-subtitle {
    font-size: 14px;
    color: rgba(60, 66, 66, 0.6);
    margin: 0 0 20px 0;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.wallet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.wallet-item:hover {
    background-color: rgba(60, 66, 66, 0.1);
}

.wallet-item:active {
    background-color: rgba(60, 66, 66, 0.15);
}

.wallet-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
}

.wallet-item span {
    font-size: 16px;
    font-weight: 500;
    color: #25292E;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(60, 66, 66, 0.06);
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #25292E;
    margin: 0 0 8px 0;
}

.info-content p {
    font-size: 14px;
    color: rgba(60, 66, 66, 0.6);
    margin: 0;
    line-height: 1.5;
}

.get-wallet-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: #0E76FD;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-top: 8px;
}

.get-wallet-btn:hover {
    background-color: #0c6ae8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 118, 253, 0.3);
}

.get-wallet-btn:active {
    transform: translateY(0);
}

.learn-more-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #0E76FD;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.learn-more-link:hover {
    color: #0c6ae8;
    text-decoration: underline;
}

/* 响应式设计 - 模态框 */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
    
    .modal-left {
        padding-right: 0;
        padding-bottom: 32px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .modal-right {
        padding-left: 0;
        padding-top: 32px;
    }
    
    .modal-content {
        max-height: 85vh;
    }
}
