/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #1677ff 0%, #00d4ff 50%, #1890ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* 背景动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(45deg, #1677ff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(22, 119, 255, 0.2);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 15px rgba(22, 119, 255, 0.3));
    }
    50% {
        filter: brightness(1.1) drop-shadow(0 0 25px rgba(22, 119, 255, 0.5));
    }
}

.container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 120px rgba(255, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
    animation: cardFloat 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 卡片浮动动画 */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-10px) rotateX(2deg); }
}

/* 光泽效果 */
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shine 8s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.logo {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    animation: logoPulse 2s ease-in-out infinite;
}

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

/* 脉冲光环 */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 330px;
    height: 330px;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}


.subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.content {
    position: relative;
    z-index: 1;
}

.benefits {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    gap: 15px;
}

.benefit-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(240, 240, 240, 0.8));
    border-radius: 15px;
    box-shadow:
        5px 5px 15px rgba(0, 0, 0, 0.1),
        -5px -5px 15px rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow:
        5px 10px 20px rgba(0, 0, 0, 0.15),
        -5px -5px 15px rgba(255, 255, 255, 0.7);
}

.benefit-item .icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.benefit-item span:last-child {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.action-area {
    text-align: center;
}

.copy-btn {
    background: linear-gradient(45deg, #1677ff, #00d4ff);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow:
        0 10px 30px rgba(22, 119, 255, 0.4),
        0 0 60px rgba(22, 119, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.copy-btn:hover::before {
    width: 300px;
    height: 300px;
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 40px rgba(22, 119, 255, 0.5),
        0 0 80px rgba(22, 119, 255, 0.3);
}

.copy-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 24px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.tip {
    color: #666;
    font-size: 14px;
    opacity: 0.8;
}

.qr-section {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.scan-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.qr-wrapper {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.qr-code {
    width: 150px;
    height: 150px;
    border-radius: 10px;
}

/* 浮动元素 */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.float-element {
    position: absolute;
    font-size: 30px;
    animation: float 8s ease-in-out infinite;
    opacity: 0.6;
}

.element-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 70%;
    right: 10%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 4s;
}

.element-4 {
    top: 30%;
    right: 5%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(10deg);
    }
    66% {
        transform: translateY(10px) rotate(-10deg);
    }
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translate(-50%, -50%) scale(1);
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    font-size: 16px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
        margin: 10px;
    }

    .title {
        font-size: 30px;
    }

    .subtitle {
        font-size: 16px;
    }

    .logo {
        width: 200px;
        height: 200px;
    }

    .pulse-ring {
        width: 230px;
        height: 230px;
    }

    .logo-wrapper {
        margin-bottom: 5px;
    }

    .benefits {
        gap: 10px;
        margin-bottom: 30px;
    }

    .benefit-item {
        padding: 10px 8px;
    }

    .benefit-item .icon {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .benefit-item span:last-child {
        font-size: 11px;
    }

    .action-area {
        margin-bottom: 30px;
    }

    .copy-btn {
        padding: 16px 32px;
        font-size: 18px;
    }

    .qr-code {
        width: 120px;
        height: 120px;
    }

    .float-element {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 25px 15px;
    }

    .title {
        font-size: 26px;
    }

    .copy-btn {
        padding: 15px 30px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .benefits {
        flex-direction: column;
        gap: 10px;
    }

    .benefit-item {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .card {
        background: rgba(30, 30, 30, 0.95);
        color: white;
    }

    .subtitle,
    .tip,
    .scan-text {
        color: #ccc;
    }

    .benefit-item {
        background: linear-gradient(145deg, rgba(50, 50, 50, 0.8), rgba(30, 30, 30, 0.8));
        color: white;
    }

    .benefit-item span:last-child {
        color: #ccc;
    }

    .qr-wrapper {
        background: #333;
    }
}