/* 在线订单页面样式 */

/* 页面标题 */
.page-header {
    background-color: #f5f5f5;
    padding: 20px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    color: #333;
    font-size: 28px;
    margin: 0 0 5px;
}

.breadcrumb {
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #e60012;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 订票表单区域 */
.booking-section {
    padding: 20px 0 60px;
}

.booking-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.booking-form {
    flex: 0 0 65%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.booking-summary {
    flex: 0 0 30%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: sticky;
    top: 100px;
}

.form-title {
    color: #333;
    font-size: 20px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #e60012;
    outline: none;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.ticket-options {
    margin-bottom: 20px;
}

.ticket-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
}

.ticket-info {
    flex: 1;
}

.ticket-name {
    font-weight: 500;
    color: #333;
}

.ticket-price {
    color: #e60012;
    font-weight: 500;
    font-size: 16px;
}

.ticket-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-quantity {
    width: 40px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #e8e8e8;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.form-check-input {
    margin-top: 3px;
}

.form-check-label {
    color: #555;
    font-size: 14px;
}

.form-text {
    color: #888;
    font-size: 13px;
    margin-top: 5px;
}

.form-divider {
    height: 1px;
    background-color: #eee;
    margin: 25px 0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.btn-back {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 15px;
    text-decoration: underline;
}

.btn-submit {
    background-color: #e60012;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #c5000f;
}

/* 订单摘要 */
.summary-title {
    color: #333;
    font-size: 18px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.summary-show {
    margin-bottom: 15px;
}

.summary-show-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.summary-show-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 3px;
}

.summary-items {
    margin: 15px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-label {
    color: #555;
}

.summary-value {
    color: #333;
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.total-label {
    color: #333;
    font-weight: 500;
}

.total-value {
    color: #e60012;
    font-weight: 700;
    font-size: 18px;
}

.summary-note {
    color: #888;
    font-size: 13px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 支付方式 */
.payment-methods {
    margin-top: 20px;
}

.payment-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.payment-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.payment-option {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.payment-option.active {
    border-color: #e60012;
    background-color: #fff8f8;
}

.payment-option img {
    height: 30px;
    margin-bottom: 5px;
}

.payment-name {
    font-size: 13px;
    color: #555;
}

/* 响应式设计 - 订票页面 */
@media (max-width: 768px) {
    .booking-container {
        padding: 15px;
        flex-direction: column; /* 改为垂直排列 */
    }
    
    .booking-form, .booking-summary {
        flex: 0 0 100%; /* 占满整行 */
        width: 100%;
        margin-bottom: 20px;
    }
    
    .booking-summary {
        order: -1; /* 将订票信息放在上部 */
        position: static; /* 取消sticky定位 */
        margin-bottom: 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .ticket-type {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticket-controls {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .ticket-quantity {
        width: 60px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-submit, .btn-back {
        width: 100%;
        text-align: center;
    }
    
    .payment-options {
        flex-direction: column;
    }
    
    .payment-option {
        margin-bottom: 10px;
    }
    
    .ticket-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticket-row span {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .ticket-row span:nth-child(2) {
        text-align: left;
    }
}

/* 订票页面样式 */
.booking-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.booking-notice {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.booking-notice h3 {
    color: #d32f2f;
    margin-bottom: 10px;
    font-size: 18px;
}

.notice-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.child-notice {
    color: #d32f2f;
    font-weight: 500;
    line-height: 1.6;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #c62828;
    outline: none;
}

.input-note {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.ticket-prices {
    margin-bottom: 10px;
}

.price-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
    font-size: 16px;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
    font-size: 16px;
}

.ticket-row span {
    flex: 1;
    text-align: left;
    line-height: 1.5;
}

.ticket-row span:first-child {
    font-weight: 500;
    color: #333;
    min-width: 200px; /* 确保第一列宽度一致 */
}

.ticket-row span:nth-child(2) {
    color: #d32f2f;
    font-weight: 700;
    text-align: right;
    min-width: 100px; /* 确保第二列宽度一致 */
}

.ticket-row input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-left: 10px;
}

.form-group {
    margin-bottom: 0px; /* 减小间距 */
}

.price-option:hover {
    background-color: #eee;
}

.price-info {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-weight: 500;
    color: #333;
}

.price-value {
    color: #d32f2f;
    font-weight: 700;
}

.price-select {
    display: flex;
    align-items: center;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.btn-primary {
    background-color: #c62828;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #b71c1c;
}

@media (max-width: 768px) {
    .booking-container {
        padding: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
    
    .btn-primary {
        width: 100%;
    }
}

/* 订单查询页面样式 */
.order-search-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.order-search-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.order-search-form .form-group {
    margin-bottom: 20px;
}

.order-search-form label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.order-search-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.order-search-form .form-control:focus {
    border-color: #c62828;
    outline: none;
}

.order-search-form .form-actions {
    display: flex;
    justify-content: center;
}

.order-search-form .btn-primary {
    background-color: #c62828;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.order-search-form .btn-primary:hover {
    background-color: #b71c1c;
}