/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-color);
    position: relative;
    overflow-x: hidden;
}

/* ==================== 头部 ==================== */
.header {
    background: var(--primary-gradient);
    padding: 20px;
    text-align: center;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bg-color);
    border-radius: 50% 50% 0 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.logo i {
    font-size: 28px;
    animation: rotate 3s linear infinite;
}

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

/* ==================== 步骤条 ==================== */
.step-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 20px;
    position: relative;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 10px;
    margin-bottom: 25px;
    max-width: 60px;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.step-item.active .step-text {
    color: var(--primary-color);
    font-weight: 600;
}

.step-item.completed .step-circle {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    font-size: 0;
}

.step-item.completed .step-circle::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
}

/* ==================== 步骤内容 ==================== */
.step-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

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

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

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

.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-title p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 设备选择 ==================== */
.device-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.device-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.device-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.device-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.device-card.selected .check-icon {
    opacity: 1;
    color: var(--primary-color);
}

.device-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.device-icon.ios {
    background: linear-gradient(135deg, #1a1a1a 0%, #434343 100%);
    color: white;
}

.device-icon.android {
    background: linear-gradient(135deg, #3ddb85 0%, #00c853 100%);
    color: white;
}

.device-icon.harmonyos {
    background: linear-gradient(135deg, #cf0a2c 0%, #ff6b6b 100%);
    color: white;
}

.device-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.device-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.check-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--border-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* ==================== 恢复类型选择 ==================== */
.recovery-type-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.recovery-type-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.recovery-type-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.recovery-type-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.recovery-type-card.selected .check-icon {
    opacity: 1;
    color: var(--primary-color);
}

.type-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.type-info {
    flex: 1;
}

.type-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.type-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ==================== 数据恢复展示 ==================== */
.data-types-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.data-type-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.data-type-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.data-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.data-icon-wrap.video {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.data-icon-wrap.document {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.data-icon-wrap.chat {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.data-info {
    flex: 1;
}

.data-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.data-formats {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.data-status {
    font-size: 22px;
    color: var(--secondary-color);
}

.notice-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    padding: 12px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.notice-box i {
    color: var(--warning-color);
    font-size: 18px;
    margin-top: 2px;
}

.notice-box span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== 购买区域 ==================== */
.purchase-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.purchase-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
    transition: all 0.3s ease;
}

.purchase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.45);
}

.purchase-card:active {
    transform: translateY(-1px);
}

.purchase-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    backdrop-filter: blur(10px);
}

.purchase-text {
    flex: 1;
}

.purchase-title {
    font-size: 17px;
    font-weight: 700;
    color: white;
}

.purchase-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
}

.purchase-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== 按钮样式 ==================== */
.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-container.dual {
    justify-content: space-between;
    gap: 15px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 13px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==================== 弹窗样式 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1001;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 10;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px 25px;
    border-top: 1px solid var(--border-color);
}

/* ==================== 购买弹窗内容 ==================== */
.purchase-modal-content {
    max-width: 420px !important;
    border-radius: 20px !important;
    overflow-y: auto;
}

.purchase-modal-content .modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 18px 20px;
}

.purchase-modal-content .modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.purchase-tips {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.04) 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.purchase-tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #fbbf24, #f59e0b);
}

.tips-title {
    font-size: 14px;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-title i {
    font-size: 16px;
    animation: tipsGlow 2s ease-in-out infinite;
}

@keyframes tipsGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.purchase-tips p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    padding-left: 4px;
}

.packages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.package-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.package-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
    transform: translateY(-2px);
}

.package-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15), inset 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.package-card.popular {
    border-color: var(--warning-color);
    background: linear-gradient(145deg, #fffbf5 0%, #fff8f0 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.package-card.popular:hover {
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.15);
}

.popular-tag {
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    animation: popularTagPulse 2s infinite;
}

@keyframes popularTagPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
    }
}

.package-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.package-card.popular .package-tag {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

.package-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.package-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.package-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 6px;
}

.price-symbol {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-num {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -1px;
}

.price-unit {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 5px;
    font-weight: 500;
}

.package-original {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 14px;
    font-weight: 500;
}

.package-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.feature-item {
    font-size: 13px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.feature-item i {
    color: #10b981;
    font-size: 12px;
    width: 18px;
    height: 18px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-select {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.package-card:hover .package-select {
    color: #9ca3af;
}

.package-card.selected .package-select {
    color: #4f46e5;
    transform: translateY(-50%) scale(1.1);
}

.package-card.selected .package-select i::before {
    content: '\f058';
    font-weight: 400;
}

/* ==================== 协议区域 ==================== */
.agreement-section {
    margin-bottom: 20px;
}

.agreement-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.agreement-label input {
    display: none;
}

.check-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.check-box i {
    font-size: 12px;
    color: white;
    opacity: 0;
}

.agreement-label input:checked + .check-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.agreement-label input:checked + .check-box i {
    opacity: 1;
}

.agreement-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.agreement-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-buy {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #4f46e5 100%);
    background-size: 200% 100%;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.btn-buy::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: left 0.5s ease;
}

.btn-buy:hover:not(:disabled)::before {
    left: 100%;
}

.btn-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
    background-position: 100% 0;
}

.btn-buy:active:not(:disabled) {
    transform: translateY(0);
}

.btn-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    background: #9ca3af;
}

.btn-buy i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-buy:hover:not(:disabled) i {
    transform: scale(1.1);
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
    margin-top: 4px;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.badge i {
    font-size: 22px;
    color: #4f46e5;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.badge:hover i {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
}

.badge span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* ==================== 协议弹窗 ==================== */
.agreement-modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.agreement-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.agreement-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.agreement-content h4:first-child {
    margin-top: 0;
}

.agreement-content p {
    margin-bottom: 8px;
}

.btn-agree {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-agree:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

/* ==================== 支付弹窗 ==================== */
.pay-modal-content {
    text-align: center;
}

.pay-info {
    margin-bottom: 25px;
}

.pay-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.pay-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.pay-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--danger-color);
    line-height: 1;
}

.pay-package {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 10px;
}

.qrcode-section {
    margin-bottom: 25px;
}

.qrcode-box {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    display: inline-block;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.qrcode-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.qrcode-placeholder i {
    font-size: 80px;
    margin-bottom: 10px;
}

.qrcode-placeholder p {
    font-size: 14px;
}

.qrcode-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.qrcode-tips i {
    color: #07c160;
    font-size: 18px;
}

.pay-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pay-status p {
    font-size: 14px;
    color: var(--text-secondary);
}

.loading-dots {
    display: flex;
    gap: 6px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
    
    .modal-content {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
