/* =========================================
   全包页面 - 整体规整
   ========================================= */

/* 桌面端固定容器尺寸 */
@media (min-width: 480px) {
    .page-fixed {
        max-height: 680px !important;
    }
}

.package-content {
    padding: 16px 16px 16px;
    /* 内容超出时允许滚动 */
    overflow-y: auto;
    /* 让内容整体占满高度 */
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 全包页允许滚动 */
.page-content.package-content {
    overflow-y: auto;
}

/* =========================================
   通用区块
   ========================================= */
.block {
    margin-bottom: 14px;
    flex-shrink: 0;
}

.block:last-of-type {
    margin-bottom: 0;
}

.block-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0;
}

/* =========================================
   装修面积输入
   ========================================= */
.area-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 0 16px;
    height: 48px;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
}

.area-input-wrap:focus-within {
    border-color: #0071E3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.area-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.area-input::-webkit-outer-spin-button,
.area-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.area-input::placeholder {
    color: var(--text-tertiary);
}

.area-unit {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 6px;
    flex-shrink: 0;
}

.area-tip {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
    padding-left: 4px;
    line-height: 1.4;
}

/* =========================================
   套餐类型选择（3 个胶囊）
   ========================================= */
.type-options {
    display: flex;
    gap: 10px;
}

.type-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: var(--bg-card);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
    user-select: none;
}

.type-option:active {
    transform: scale(0.98);
}

.type-option.active {
    background: #0071E3;
    color: #fff;
    border-color: #0071E3;
}

/* =========================================
   价格档位列表 - 整块卡片
   ========================================= */
.tier-options {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.tier-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tier-option:last-child {
    border-bottom: none;
}

.tier-option:active {
    background: rgba(0, 0, 0, 0.02);
}

.tier-option.active {
    background: rgba(0, 113, 227, 0.04);
}

.tier-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.tier-option.active .tier-radio {
    border-color: #0071E3;
}

.tier-option.active .tier-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0071E3;
}

.tier-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tier-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.tier-price {
    font-size: 14px;
    font-weight: 600;
    color: #0071E3;
    flex-shrink: 0;
}

/* =========================================
   报价明细
   ========================================= */
.quote-block {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    overflow: visible;
}

.quote-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.quote-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
}

.quote-row:last-of-type {
    margin-bottom: 0;
}

.quote-key {
    color: var(--text-secondary);
}

.quote-val {
    color: var(--text-primary);
    font-weight: 500;
}

.quote-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
    opacity: 0.5;
}

.quote-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.quote-total-key {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.quote-total-val {
    font-size: 28px;
    font-weight: 700;
    color: #0071E3;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

/* =========================================
   查看装修清单按钮
   ========================================= */
.detail-btn {
    display: block;
    width: 100%;
    height: 48px;
    min-height: 48px;
    flex-shrink: 0;
    background: #0071E3;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
    margin-top: 14px;
    align-self: flex-end;
}

.detail-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}

.detail-btn:disabled {
    background: var(--bg-card);
    color: var(--text-tertiary);
    cursor: not-allowed;
    box-shadow: none;
}

/* =========================================
   入场动画
   ========================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.block, .quote-block, .detail-btn {
    opacity: 0;
    animation: fadeUp 0.4s ease forwards;
}

.block:nth-child(1) { animation-delay: 0.05s; }
.block:nth-child(2) { animation-delay: 0.1s; }
.block:nth-child(3) { animation-delay: 0.15s; }
.quote-block { animation-delay: 0.2s; }
.detail-btn { animation-delay: 0.25s; }
