/* 基础变量 */
:root {
    --primary-color: #b639f0;
    --primary-hover: #9b2ed6;
    --text-color: #FFFFFF;
    --text-light: #A0A0A0;
    --bg-color: #1B1B1B;
    --card-bg: #242424;
    --border-color: #333333;
    --shadow: 0 1px 3px rgba(0,0,0,0.2);
    --transition: all 0.2s ease;
    --error-color: #FF3B30;
    --border-radius: 8px;
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    background: var(--card-bg);
    min-height: 100vh;
    padding: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
}

.text-muted {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 16px;
}

.step-title {
    font-size: 17px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 8px;
}

.step-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.checklist-item {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

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

.checklist-item h3 {
    font-size: 17px;
    margin-bottom: 4px;
    color: var(--text-color);
}

.checklist-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 20px 0;
    padding: 0 4px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.error-message {
    color: #FF453A;
    font-size: 13px;
    margin: 4px 0 0 28px;
    display: none;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding: 0 4px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.button.disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

.button.disabled:hover {
    background: var(--border-color);
    transform: none;
}

.button-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.button-primary:hover,
.button-primary:focus {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(182, 57, 240, 0.2);
}

.button-primary.disabled {
    background-color: var(--text-light);
    color: #fff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-primary.disabled:hover {
    background-color: var(--text-light);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.button-secondary {
    background-color: var(--bg-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.button-secondary:active {
    background-color: rgba(182, 57, 240, 0.1);
}

.steps-list {
    list-style: decimal;
    margin: 16px 0;
    padding-left: 20px;
}

.steps-list li {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 15px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
}

.modal.show {
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
}

.modal.show .modal-content {
    animation: slideUp 0.3s ease-out;
}

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

.modal-content {
    background: var(--card-bg);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.agreement-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.agreement-content {
    margin-top: 16px;
}

.agreement-content p {
    margin: 12px 0;
    line-height: 1.6;
}

.agreement-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.agreement-content li {
    margin: 8px 0;
    line-height: 1.6;
}

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

@media (min-width: 768px) {
    .container {
        max-width: 414px;
        margin: 0 auto;
    }
    
    .modal-content {
        border-radius: 12px;
        max-width: 414px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 100%;
    }
    .modal-header {
        padding: 16px;
    }
    .modal-body {
        padding: 16px;
    }
}

/* 导航栏样式 */
.navbar {
    background: var(--card-bg);
    padding: 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* 文本样式 */
.lead {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* 工具类 */
.text-center { text-align: center; }
.d-block { display: block; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.d-flex { display: flex; }
.gap-4 { gap: 1.5rem; }
.d-grid { display: grid; }
.shadow { box-shadow: var(--shadow); }
