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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    flex: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.download-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

.message {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.message.hidden {
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.info-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    color: #333;
}

.info-section h3 {
    margin-bottom: 15px;
    color: #667eea;
    font-size: 1.3rem;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.info-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .footer {
        padding: 15px;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* 重要提示框样式 */
.important-notice {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.1);
}

.important-notice h4 {
    color: #e67e22;
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.important-notice h4:before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 18px;
}

.important-notice p {
    color: #8b4513;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.important-notice ol {
    color: #8b4513;
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.important-notice li {
    margin-bottom: 8px;
}

.important-notice li:last-child {
    margin-bottom: 0;
}

/* 微信环境提示样式 */
.wechat-env-tip {
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    animation: fadeInDown 0.5s ease-out;
}

.wechat-env-tip .tip-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wechat-env-tip .tip-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.wechat-env-tip .tip-text {
    color: #1565c0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* 微信下载提示弹窗样式 */
.wechat-tips-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.wechat-tips-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

.wechat-tips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e1e5e9;
}

.wechat-tips-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.wechat-tips-body {
    padding: 20px 24px 24px;
}

.wechat-tips-body p {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.wechat-tips-body ol {
    margin: 0 0 20px 0;
    padding-left: 20px;
    color: #555;
}

.wechat-tips-body li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.url-copy-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.direct-download-section {
    background: #e8f5e8;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0 20px 0;
    text-align: center;
}

.direct-download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.direct-download-btn:hover {
    background: linear-gradient(135deg, #45a049, #3e8e41);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    color: white;
    text-decoration: none;
}

.download-note {
    font-size: 12px !important;
    color: #2e7d32 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

.url-container {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px 0;
}

.url-container input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: white;
}

.copy-btn {
    padding: 8px 16px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #1976d2;
}

.copy-instruction {
    font-size: 12px !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* 移动端优化 */
@media (max-width: 768px) {
    .wechat-tips-modal {
        padding: 10px;
    }
    
    .wechat-tips-content {
        max-height: 90vh;
    }
    
    .wechat-tips-header {
        padding: 16px 20px 12px;
    }
    
    .wechat-tips-body {
        padding: 16px 20px 20px;
    }
    
    .wechat-env-tip .tip-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .direct-download-btn {
        padding: 14px 28px;
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .url-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .copy-btn {
        width: 100%;
        padding: 10px 16px;
    }
} 