* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(177, 27, 26, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 400px;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(177, 27, 26, 0.15);
    border: 1px solid rgba(177, 27, 26, 0.1);
}

.header {
    /* background: linear-gradient(135deg, #fcb7c5 0%, #6da4c7 100%); */
    color: white;
    /* padding: 20px; */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-image {
    width: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 20px;
    margin-bottom: 10px;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
}

.features {
    margin-top: -4px;
    background: linear-gradient(135deg, #fcb7c5 0%, #6da4c7 100%);
    color: #233849;
    padding: 20px;
}

.features h3 {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 5px 0;
    font-size: 14px;
}

.feature-list li:before {
    content: "🔥 ";
    color: #FFD700;
    font-weight: bold;
    margin-right: 5px;
}

.steps {
    padding: 30px 20px;
}

.step {
    background: linear-gradient(135deg, #fcb7c5 0%, #6da4c7 100%);
    color: #233849;
    margin: 0 0 15px 0;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step:hover {
    background: linear-gradient(135deg, #a6a4a2 0%, #3d6f87 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 56, 177, 0.4);
    color: #1e2429;
}

.step-number {
    background: rgba(255,255,255,0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.step-content {
    flex: 1;
}

.step-title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.step:hover .arrow {
    transform: translateX(5px);
}

.banner-image {
    background: #f8f9fa;
    padding: 0;
    text-align: center;
    display: block;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.banner-placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: slideIn 0.3s;
}

.modal-header {
    background: linear-gradient(135deg, #fcb7c5 0%, #6da4c7 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.modal-body {
    padding: 30px 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #b11b1a;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #fcb7c5 0%, #6da4c7 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.info-message {
    background: #e3f2fd;
    color: #1565c0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* iOS专用跳转提示 */
.ios-jump-hint {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.ios-jump-link {
    background: #007aff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    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); }
}

.usage-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.security-notice {
    background: #e8f4fd;
    color: #0d47a1;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 12px;
    text-align: center;
}

.footer {
    background: #f8f9fa;
    padding: 0;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.footer-image {
    width: 100%;
    object-fit: cover;
    border-radius: 0 0 15px 15px;
}

.footer-content {
    padding: 15px;
}
