/**
 * NeiceXia 云签名系统 - 美化样式
 * 现代化设计，渐变背景，动画效果，响应式布局
 */

* {
    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, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* 步骤指示器 - 更美观 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
    padding: 0 20px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 2px;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.step.active .step-number {
    background: linear-gradient(135deg, #4caf50, #45a049);
    border-color: rgba(76, 175, 80, 0.5);
    transform: scale(1.2);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
    animation: pulse 2s infinite;
}

.step.completed .step-number {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border-color: rgba(33, 150, 243, 0.5);
    transform: scale(1.1);
}

.step-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: white;
    font-weight: 700;
    transform: scale(1.05);
}

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

/* 步骤内容 - 玻璃态设计 */
.step-content {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.step-content.active {
    display: block;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 50px;
}

.step-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.step-header p {
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
    line-height: 1.8;
}

/* 表单样式 - 更现代 */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2d3748;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* UDID 帮助器样式 */
.udid-helper {
    margin-top: 20px;
    background: linear-gradient(135deg, #f0f4ff, #e6f3ff);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
}

.helper-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.helper-icon {
    font-size: 1.5rem;
}

.helper-title {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.helper-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.helper-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.helper-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.helper-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.helper-btn.secondary {
    background: rgba(248, 250, 252, 0.9);
    color: #667eea;
    border: 2px solid #e2e8f0;
}

.helper-btn.secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-3px);
}

.helper-steps {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    text-align: left;
}

.helper-steps h5 {
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.helper-steps ol {
    margin-left: 25px;
    color: #555;
    line-height: 1.8;
}

.helper-steps li {
    margin-bottom: 10px;
    position: relative;
}

.helper-steps li::before {
    content: counter(list-item);
    position: absolute;
    left: -25px;
    top: 0;
    background: #667eea;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 按钮样式 - 更炫酷 */
.primary-btn,
.secondary-btn,
.install-btn,
.copy-btn {
    width: 100%;
    padding: 22px 25px;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.primary-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

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

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

.secondary-btn {
    background: rgba(248, 250, 252, 0.9);
    color: #667eea;
    border: 2px solid #e2e8f0;
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-3px);
}

.install-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.install-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.4);
}

.copy-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.3);
}

.copy-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 152, 0, 0.4);
}

.btn-loading {
    display: none;
}

.btn-icon {
    margin-right: 12px;
    font-size: 1.1rem;
}

/* 进度容器 - 更生动 */
.progress-container {
    text-align: center;
    padding: 20px;
}

.progress-steps {
    margin-bottom: 50px;
}

.progress-step {
    display: flex;
    align-items: center;
    padding: 25px;
    margin-bottom: 25px;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.progress-step.active {
    border-color: #667eea;
    background: rgba(240, 244, 255, 0.95);
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.progress-step.active::before {
    background: #667eea;
}

.progress-step.completed {
    border-color: #4caf50;
    background: rgba(240, 249, 255, 0.95);
}

.progress-step.completed::before {
    background: #4caf50;
}

.step-icon {
    font-size: 2.5rem;
    margin-right: 25px;
    width: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    transform: scale(1.1);
}

.step-info {
    flex: 1;
    text-align: left;
}

.step-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.step-status {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.progress-step.active .step-status {
    color: #667eea;
    font-weight: 600;
}

.progress-step.completed .step-status {
    color: #4caf50;
    font-weight: 600;
}

/* 进度条 - 更炫酷 */
.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 20px;
    overflow: hidden;
    margin: 40px 0;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 1.3rem;
    color: #667eea;
    font-weight: 600;
    margin-top: 20px;
}

/* 结果容器 - 更喜庆 */
.result-container {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    animation: successBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
    0% { transform: scale(0.3) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(0deg); }
    70% { transform: scale(0.9) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.result-container h3 {
    font-size: 2.5rem;
    color: #4caf50;
    margin-bottom: 20px;
    font-weight: 800;
}

.result-container p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.install-section {
    background: linear-gradient(135deg, #f0f9ff, #e6f3ff);
    border: 3px solid #2196f3;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.install-section::before {
    content: '🎯';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    opacity: 0.7;
}

.install-section h4 {
    color: #1976d2;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
}

.install-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.install-actions button {
    width: auto;
    min-width: 220px;
}

.install-tips {
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.install-tips p {
    margin-bottom: 20px;
    color: #1976d2;
    font-weight: 700;
    font-size: 1.1rem;
}

.install-tips ul {
    margin-left: 25px;
    color: #555;
    line-height: 1.8;
}

.install-tips li {
    margin-bottom: 10px;
    position: relative;
}

.install-tips li::before {
    content: '✓';
    position: absolute;
    left: -25px;
    top: 0;
    background: #4caf50;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 联系信息区域 - 更吸引人 */
.contact-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9c27b0, #7b1fa2, #e91e63);
}

.contact-section h3 {
    font-size: 2.5rem;
    color: #9c27b0;
    margin-bottom: 20px;
    font-weight: 800;
}

.contact-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.wechat-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, #f0f9ff, #e6f3ff);
    border: 2px solid #2196f3;
    border-radius: 20px;
    padding: 30px;
    margin: 0 auto;
    max-width: 500px;
}

.wechat-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.wechat-details {
    text-align: left;
}

.wechat-details h4 {
    color: #1976d2;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.wechat-id {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4caf50;
    margin-bottom: 10px;
    font-family: monospace;
    background: rgba(76, 175, 80, 0.1);
    padding: 8px 15px;
    border-radius: 10px;
    display: inline-block;
}

.contact-tip {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* 响应式设计 - 更完善 */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 30px;
        padding: 0;
    }
    
    .step-indicator::before {
        display: none;
    }
    
    .step-content {
        padding: 30px 20px;
    }
    
    .step-header h2 {
        font-size: 2.2rem;
    }
    
    .install-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .install-actions button {
        width: 100%;
        max-width: 300px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .step-label {
        font-size: 0.9rem;
    }
    
    .wechat-info {
        flex-direction: column;
        text-align: center;
    }
    
    .wechat-details {
        text-align: center;
    }
}

/* 加载状态 - 更流畅 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 禁用状态 */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 成功状态指示 */
.step.completed .step-number::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 18px 25px;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
    word-wrap: break-word;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
