* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 科技感背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
        radial-gradient(circle at 50% 50%, rgba(26,115,232,0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundMove 20s linear infinite;
}

/* 科技感网格动画 */
@keyframes backgroundMove {
    0% { 
        background-position: 0 0, 0 0, 0 0;
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% { 
        background-position: 0 100%, 0 100%, 0 0;
        transform: scale(1);
    }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: clamp(15px, 4vh, 25px);
    padding: clamp(10px, 2vh, 15px) 0;
    background: linear-gradient(135deg, rgba(26,115,232,0.9), rgba(13,71,161,0.9));
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(26,115,232,0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255,255,255,0.1) 50%,
        transparent 100%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.company-name {
    font-size: clamp(20px, 5vw, 28px);
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(26,115,232,0.5);
}

.title {
    font-size: clamp(18px, 4vw, 24px);
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(26,115,232,0.7);
}

.device-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: clamp(15px, 3vh, 20px);
    margin-bottom: clamp(15px, 3vh, 20px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    margin-bottom: clamp(10px, 2vh, 15px);
    border-left: 3px solid #1a73e8;
    padding-left: clamp(10px, 2vw, 15px);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(12px, 3.5vw, 14px);
    margin-bottom: 5px;
}

.info-value {
    color: #ffffff;
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 500;
    word-break: break-all;
}

.udid-container {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.udid-label {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
    display: block;
}

.udid-value {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    word-break: break-all;
    display: block;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border-left: 3px solid #1a73e8;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.copy-btn, .get-again-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.copy-btn::before, .get-again-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: 0.5s;
}

.copy-btn:hover::before, .get-again-btn:hover::before {
    left: 100%;
}

.copy-btn:hover, .get-again-btn:hover {
    background: linear-gradient(135deg, #0d47a1, #1a73e8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,115,232,0.4);
}

.copy-success {
    text-align: center;
    color: #4caf50;
    font-size: 14px;
    margin-top: 8px;
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.copy-success.show {
    display: block;
}

.main-content {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.qr-section {
    text-align: center;
    margin-bottom: 25px;
}

.qr-container {
    display: inline-block;
    padding: 25px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.2),
        inset 0 0 30px rgba(26,115,232,0.1),
        0 0 20px rgba(26,115,232,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(26,115,232,0.3);
    position: relative;
    overflow: hidden;
    width: 200px;
    height: 200px;
}

.qr-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid rgba(26,115,232,0.4);
    border-radius: 17px;
    z-index: -1;
    box-shadow: 
        0 0 20px rgba(26,115,232,0.2),
        inset 0 0 15px rgba(26,115,232,0.1);
}

.qr-container::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid rgba(26,115,232,0.2);
    border-radius: 18px;
    z-index: -2;
    background: linear-gradient(135deg, 
        rgba(26,115,232,0.3) 0%,
        rgba(26,115,232,0.2) 30%,
        rgba(26,115,232,0.1) 60%,
        transparent 100%
    );
    filter: blur(2px);
}

.qr-text {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    text-shadow: 0 0 10px rgba(26,115,232,0.5);
    letter-spacing: 0.5px;
    font-weight: 500;
    transform: translateY(50%);
}

.steps {
    margin-bottom: 25px;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.step-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(26,115,232,0.5);
}

.step p {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    background: linear-gradient(135deg, #0d47a1, #1a73e8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,115,232,0.4);
}

.help-section {
    margin-top: 25px;
}

.help-item {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.problem {
    color: #1a73e8;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(26,115,232,0.3);
}

.answer {
    color: #aaa;
    font-size: 13px;
}

.language-switch {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%) scale(1.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: rgba(26, 115, 232, 0.2);
    padding: 6px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
    box-shadow: 
        0 0 20px rgba(26, 115, 232, 0.4),
        0 0 10px rgba(26, 115, 232, 0.2) inset;
    animation: pulse 2s infinite;
    width: 70px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(26, 115, 232, 0.4); }
    50% { box-shadow: 0 0 30px rgba(26, 115, 232, 0.6); }
    100% { box-shadow: 0 0 20px rgba(26, 115, 232, 0.4); }
}

.language-switch a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 50px;
    text-shadow: 0 0 15px rgba(26, 115, 232, 0.8);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.language-switch a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 115, 232, 0.2) 0%,
        rgba(26, 115, 232, 0.1) 50%,
        rgba(26, 115, 232, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-switch a:hover::before {
    opacity: 1;
}

.language-switch a:hover {
    background-color: rgba(26, 115, 232, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(26, 115, 232, 0.5);
}

.language-switch a.active {
    background: linear-gradient(135deg, rgba(232, 26, 26, 0.95), rgba(161, 13, 13, 0.95));
    color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
    animation: activePulse 2s infinite;
}

@keyframes activePulse {
    0% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }
    100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
}

@media (max-width: 375px) {
    .container {
        padding: 10px;
    }
    
    .header {
        margin-bottom: 15px;
        padding: 10px 0;
    }
    
    .company-name {
        font-size: 20px;
    }
    
    .title {
        font-size: 18px;
    }
    
    .device-info {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .info-item {
        margin-bottom: 10px;
        padding-left: 10px;
    }
    
    .info-label {
        font-size: 12px;
    }
    
    .info-value {
        font-size: 14px;
    }
}

@media (min-width: 376px) and (max-width: 428px) {
    .container {
        padding: 12px;
    }
    
    .header {
        margin-bottom: 18px;
        padding: 12px 0;
    }
    
    .company-name {
        font-size: 22px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .device-info {
        padding: 15px;
        margin-bottom: 18px;
    }
    
    .info-item {
        margin-bottom: 12px;
        padding-left: 12px;
    }
    
    .info-label {
        font-size: 13px;
    }
    
    .info-value {
        font-size: 15px;
    }
} 