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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    position: relative;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: white;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -300px;
    right: -200px;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.circle-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.05);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.02);
    }
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 32px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: #667eea;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

h1 {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 32px;
    font-weight: 700;
}

.ip-container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.ip-loader {
    display: flex;
    gap: 8px;
}

.ip-loader .dot {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.ip-loader .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.ip-loader .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.ip-address {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
    letter-spacing: 1px;
    word-break: break-all;
    animation: fadeIn 0.5s ease;
}

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

.info {
    background: #f7fafc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    animation: fadeIn 0.5s ease 0.2s both;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.info-item .label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.info-item .value {
    font-size: 14px;
    color: #2d3748;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.copy-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease 0.4s both;
}

.copy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.copy-btn:active {
    transform: scale(0.98);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.copy-btn svg {
    width: 20px;
    height: 20px;
}

.hint {
    margin-top: 16px;
    font-size: 13px;
    color: #a0aec0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card {
        padding: 40px 24px;
    }

    h1 {
        font-size: 24px;
    }

    .ip-address {
        font-size: 28px;
    }

    .icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 32px 20px;
        border-radius: 20px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .ip-address {
        font-size: 22px;
    }

    .icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .info-item .label,
    .info-item .value {
        font-size: 13px;
    }

    .copy-btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .circle-1 {
        width: 400px;
        height: 400px;
    }

    .circle-2 {
        width: 300px;
        height: 300px;
    }
}
