/* 产品详情页样式 */
.product-detail {
    padding: 0 12px 80px;
}

.product-banner {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.water-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    overflow: hidden;
}

.wave {
    position: absolute;
    top: 20px;
    left: -100%;
    width: 200%;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 40%;
    animation: wave 8s linear infinite;
}

.wave2 {
    animation-delay: -2s;
    opacity: 0.5;
}

.wave3 {
    animation-delay: -4s;
    opacity: 0.3;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-icon {
    font-size: 72px;
    position: relative;
    z-index: 1;
}

.product-info-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-spec {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-main {
    display: flex;
    align-items: baseline;
}

.price-main .currency {
    font-size: 16px;
    color: #e53935;
}

.price-main .amount {
    font-size: 32px;
    font-weight: 700;
    color: #e53935;
}

.price-main .unit {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.price-original {
    color: var(--text-light);
    font-size: 14px;
    text-decoration: line-through;
}

/* 数量选择 */
.quantity-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.quantity-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:active {
    background-color: var(--primary-dark);
}

.qty-btn.disabled {
    background-color: #e0e0e0;
    color: #9e9e9e;
}

#quantity {
    width: 120px;
    height: 44px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.quantity-hint {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.quantity-hint strong {
    color: var(--primary-color);
}

/* 配送地址 */
.address-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.address-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.address-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
}

.address-info .no-address {
    color: var(--text-light);
    font-size: 14px;
}

.address-info .name {
    font-weight: 600;
    margin-bottom: 4px;
}

.address-info .detail {
    font-size: 13px;
    color: var(--text-secondary);
}

.address-select .arrow {
    color: var(--text-light);
    font-size: 18px;
}

.delivery-area {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.delivery-area .icon {
    margin-right: 4px;
}

/* 邀请码 */
.invite-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.invite-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.invite-section h3 .optional {
    font-weight: normal;
    font-size: 13px;
    color: var(--text-light);
}

.invite-input input {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.invite-benefit {
    margin-top: 8px;
    font-size: 13px;
    color: var(--primary-color);
}

/* 配送时间选择 */
.delivery-time-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.delivery-time-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.delivery-time-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-row label {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 70px;
}

.form-row input[type="date"] {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.form-row input[type="text"] {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.time-options {
    display: flex;
    gap: 8px;
}

.time-option {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-option.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.delivery-note-row input {
    flex: 1;
}

/* 客户备注 */
.remark-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.remark-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.remark-section h3 .optional {
    font-weight: normal;
    font-size: 13px;
    color: var(--text-light);
}

.remark-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
}

/* 价格计算 */
.price-calculation {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.calc-row .label {
    color: var(--text-secondary);
}

.calc-row .value {
    font-weight: 500;
}

.calc-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 12px;
}

.calc-row.total .label {
    font-size: 16px;
    font-weight: 600;
}

.calc-row.total .value {
    font-size: 20px;
    font-weight: 700;
    color: #e53935;
}

/* 底部购买栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    max-width: 750px;
    margin: 0 auto;
}

.price-summary {
    display: flex;
    flex-direction: column;
}

.amount-row {
    display: flex;
    align-items: baseline;
}

.amount-row .currency {
    font-size: 14px;
    color: #e53935;
}

.amount-row .amount {
    font-size: 24px;
    font-weight: 700;
    color: #e53935;
}

.quantity-tip {
    font-size: 12px;
    color: var(--text-light);
}

.btn-buy {
    padding: 14px 40px;
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    color: #ffffff;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
}

/* 地址列表 */
.address-list {
    max-height: 300px;
    overflow-y: auto;
}

.address-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.address-item:last-child {
    border-bottom: none;
}

.address-item.selected {
    background-color: #e8f5e9;
}

.address-item .info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.address-item .name {
    font-weight: 600;
    margin-bottom: 4px;
}

.address-item .phone {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.address-item .detail {
    font-size: 13px;
    color: var(--text-secondary);
}

.address-item .default-tag {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.btn-add-address {
    width: 100%;
    padding: 14px;
    background-color: #f5f5f5;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    margin-top: 12px;
    border: 1px dashed var(--primary-color);
}
