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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 15px;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* 头部 */
.header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 15px;
    opacity: 0.9;
}

/* 步骤条 */
.steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 25px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
}

.step.active {
    color: #3b82f6;
    font-weight: 600;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.step.active .step-num {
    background: #3b82f6;
    color: #fff;
}

/* 免责声明 */
.disclaimer {
    padding: 15px 30px;
    background: #fef3c7;
    border-bottom: 1px solid #fde68a;
}

.disclaimer summary {
    cursor: pointer;
    color: #92400e;
    font-size: 14px;
    font-weight: 500;
}

.disclaimer p {
    margin-top: 10px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.7;
}

.disclaimer a {
    color: #b45309;
    text-decoration: underline;
}

/* 表单区域 */
.form-section {
    padding: 30px;
}

.form-section h2 {
    font-size: 22px;
    margin-bottom: 5px;
    color: #1e293b;
}

.form-desc {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
    font-size: 15px;
}

.required {
    color: #ef4444;
}

.form-group select,
.form-group input[type="number"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fff;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.checkbox-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: #3b82f6;
    font-weight: 500;
}

/* 按钮 */
.btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary small {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
}

.btn-secondary {
    padding: 10px 20px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-full {
    width: 100%;
}

/* 结果区域 */
.result-section {
    padding: 30px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.result-header h2 {
    font-size: 22px;
    color: #1e293b;
}

/* 总评卡片 */
.result-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #bae6fd;
}

.summary-card:last-child {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    border-color: #f5d0fe;
}

.summary-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.summary-price {
    font-size: 36px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 8px;
}

.summary-rating {
    font-size: 32px;
    margin-bottom: 8px;
}

.summary-range {
    font-size: 13px;
    color: #94a3b8;
}

/* 明细表格 */
.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1e293b;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.detail-table th,
.detail-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.detail-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
}

.detail-table tr:last-child td {
    border-bottom: none;
}

.detail-table tfoot td {
    font-weight: 700;
    background: #f1f5f9;
    color: #1e293b;
}

.detail-table td:nth-child(4) {
    font-weight: 600;
    color: #0369a1;
}

/* 注意事项 */
.tips-section {
    margin-bottom: 25px;
    background: #fefce8;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #eab308;
}

.tips-section h3 {
    font-size: 17px;
    margin-bottom: 12px;
    color: #854d0e;
}

.tips-section ul {
    list-style: none;
}

.tips-section li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #713f12;
    font-size: 14px;
}

.tips-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ca8a04;
    font-weight: 700;
}

.save-section {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.save-section h3 {
    color: #166534;
}

.save-section li {
    color: #15803d;
}

.save-section li:before {
    color: #16a34a;
    content: "💰";
}

/* CTA区域 */
.cta-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 30px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
}

.cta-card {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
}

.cta-card:hover {
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.cta-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.cta-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
    color: #1e293b;
}

.cta-content p {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.btn-cta {
    padding: 8px 16px;
    background: #eff6ff;
    color: #2563eb;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-cta:hover {
    background: #dbeafe;
}

/* 分享 */
.share-section {
    text-align: center;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 12px;
    margin-bottom: 20px;
}

.share-section p {
    color: #64748b;
    margin-bottom: 12px;
    font-size: 14px;
}

.btn-share {
    padding: 10px 25px;
    background: #fff;
    color: #475569;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-share:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 25px 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.footer p {
    color: #94a3b8;
    font-size: 13px;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: #3b82f6;
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.close-btn:hover {
    color: #64748b;
}

.modal-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #1e293b;
}

.modal-content > p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 14px;
}

.modal-content input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: #3b82f6;
}

.modal-tip {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
}

/* 响应式 - 手机端优化 */
@media (max-width: 640px) {
    body {
        padding: 0;
        background: #f8fafc;
    }
    
    .container {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    
    .header {
        padding: 25px 16px 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .steps {
        gap: 6px;
        padding: 12px 16px;
    }
    
    .step {
        font-size: 12px;
        gap: 4px;
    }
    
    .step-num {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .step-text {
        font-size: 11px;
    }
    
    .disclaimer {
        padding: 10px 16px;
    }
    
    .form-section,
    .result-section {
        padding: 16px;
    }
    
    .form-section h2,
    .result-header h2 {
        font-size: 18px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group select,
    .form-group input[type=number] {
        padding: 10px 12px;
        font-size: 16px; /* 防止iOS缩放 */
        border-radius: 8px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .checkbox-item {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .btn-primary {
        padding: 14px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .result-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .result-header h2 {
        font-size: 18px;
    }
    
    .result-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-price {
        font-size: 28px;
    }
    
    .summary-rating {
        font-size: 24px;
    }
    
    /* 表格改为卡片列表 */
    .table-wrapper {
        border: none;
        border-radius: 0;
        overflow: visible;
    }
    
    .detail-table thead {
        display: none;
    }
    
    .detail-table,
    .detail-table tbody,
    .detail-table tr,
    .detail-table td {
        display: block;
        width: 100%;
    }
    
    .detail-table tr {
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
    }
    
    .detail-table td {
        padding: 2px 0;
        border: none;
        text-align: left;
        font-size: 13px;
    }
    
    .detail-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #94a3b8;
        margin-right: 8px;
        font-size: 12px;
    }
    
    .detail-table td:nth-child(1) {
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 4px;
    }
    
    .detail-table td:nth-child(1)::before {
        display: none;
    }
    
    .detail-table td:nth-child(4) {
        font-size: 16px;
    }
    
    .detail-table td:nth-child(5) {
        font-size: 12px;
        color: #94a3b8 !important;
    }
    
    .detail-table tfoot {
        display: block;
    }
    
    .detail-table tfoot tr {
        display: block;
        padding: 12px 0;
    }
    
    .detail-table tfoot td {
        display: flex;
        justify-content: space-between;
        font-size: 16px;
        padding: 4px 0;
    }
    
    .detail-table tfoot td:nth-child(1) {
        font-size: 16px;
    }
    
    .tips-section {
        padding: 14px;
    }
    
    .tips-section h3 {
        font-size: 15px;
    }
    
    .tips-section li {
        font-size: 13px;
        padding-left: 18px;
    }
    
    .cta-section {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
        margin: 20px 0;
    }
    
    .cta-card {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 14px;
        gap: 12px;
    }
    
    .cta-icon {
        font-size: 28px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .cta-content {
        flex: 1;
    }
    
    .cta-content h4 {
        font-size: 14px;
    }
    
    .cta-content p {
        font-size: 12px;
        margin-bottom: 0;
    }
    
    .btn-cta {
        flex-shrink: 0;
    }
    
    .share-section {
        padding: 14px;
    }
    
    .footer {
        padding: 16px;
    }
    
    .modal-content {
        padding: 24px 20px;
        border-radius: 16px;
        margin: 16px;
    }
}
