html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #F2F2F7;
    font-family: 'PingFang SC', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.fixed-width-container {
    width: 375px;
    margin: 0 auto;
    min-height: 100vh;
    background: #F2F2F7;
    position: relative;
}
.form-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    margin: 12px 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.05),
            0 2px 4px -1px rgba(0, 0, 0, 0.03),
            inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}
.form-card.active {
    opacity: 1;
    transform: translateY(0);
    box-shadow:
            0 8px 12px -4px rgba(0, 122, 255, 0.1),
            0 4px 6px -2px rgba(0, 122, 255, 0.05),
            inset 0 2px 4px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 122, 255, 0.2);
    z-index: 2;
}
.form-card.completed {
    border-color: #34C759;
    background: linear-gradient(145deg, #ffffff 0%, #f0fff4 100%);
}
.form-input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}
.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.form-label.focused {
    color: #007AFF;
    transform: translateX(4px);
}
.optional {
    color: #8E8E93;
    font-size: 12px;
    font-weight: normal;
}
.radio-group {
    display: flex;
    gap: 8px;
}
.radio-button {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    text-align: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.radio-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.radio-button.selected {
    background: #007AFF;
    color: white;
    border-color: #007AFF;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}
.photo-upload {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    border: 2px dashed rgba(0, 122, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.photo-upload:hover {
    border-color: #007AFF;
    background: rgba(0, 122, 255, 0.05);
    transform: scale(1.01);
}
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    height: 60px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}
.progress-dots {
    display: flex;
    gap: 8px;
}
.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D1D6;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.progress-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
}
.progress-dot.active {
    background: #007AFF;
    transform: scale(1.2);
}
.progress-dot.active::after {
    opacity: 1;
    transform: scale(1.2);
}
.progress-dot.completed {
    background: #34C759;
}
.progress-dot.completed::before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.next-button {
    padding: 8px 20px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}
.next-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
}
.next-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
    background: linear-gradient(135deg, #0066CC 0%, #4A49B3 100%);
}
.completion-check {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #34C759;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-card.completed .completion-check {
    opacity: 1;
    transform: scale(1);
}
.completion-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1C1C1E;
    padding: 24px;
    border-radius: 24px;
    font-size: 15px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
    box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.1),
            0 2px 4px -1px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 90%;
    width: 320px;
    text-align: center;
}

.completion-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.completion-toast i {
    font-size: 32px;
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.completion-toast .toast-content {
    flex: 1;
    width: 100%;
}

.completion-toast .toast-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: #1C1C1E;
}

.completion-toast .toast-message {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 20px;
}

.completion-toast .toast-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 122, 255, 0.2);
}

.completion-toast .toast-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 122, 255, 0.3);
}

.completion-toast .toast-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 24px;
    padding: 32px;
    width: 85%;
    max-width: 320px;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
            0 20px 25px -5px rgba(0, 0, 0, 0.1),
            0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-container.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.2);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1C1C1E;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
}

.modal-description {
    font-size: 15px;
    color: #6B7280;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 122, 255, 0.2);
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 122, 255, 0.3);
}

.modal-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.floating {
    animation: float 3s ease-in-out infinite;
}
.pet-mascot {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 90;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pet-mascot.celebrate {
    animation: celebrate 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes celebrate {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.submit-button {
    margin: 20px 16px;
    width: calc(100% - 32px);
    padding: 12px 40px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
}
.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 122, 255, 0.4);
}
.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}
.submit-button:disabled {
    background: #D1D1D6;
    cursor: not-allowed;
    box-shadow: none;
}

/* AI报告样式 */
.ai-report {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1C1C1E;
    padding: 32px;
    border-radius: 24px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1001;
    box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.1),
            0 2px 4px -1px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 90%;
    max-width: 360px;
    max-height: 80vh;
    overflow-y: auto;
}

.ai-report.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.report-header {
    text-align: center;
    margin-bottom: 24px;
}

.report-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.2);
}

.report-title {
    font-size: 20px;
    font-weight: 600;
    color: #1C1C1E;
    margin-bottom: 8px;
}

.report-subtitle {
    font-size: 14px;
    color: #6B7280;
}

.report-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    color: #007AFF;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-content {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
}

.report-footer {
    text-align: center;
    margin-top: 24px;
}

.report-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 122, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.report-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 122, 255, 0.3);
}

.report-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}

.highlight {
    color: #007AFF;
    font-weight: 500;
}

.warning {
    color: #FF9500;
    font-weight: 500;
}