@charset "UTF-8";

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #1677ff 0%, #096dd9 100%);
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.order-query {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.order-query:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    gap: 25px;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* 左侧侧边栏 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.info-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon {
    font-size: 16px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.card-badge {
    margin-left: auto;
    font-size: 12px;
    color: #1677ff;
    background: #e6f7ff;
    padding: 2px 8px;
    border-radius: 10px;
}

.card-body {
    padding: 15px;
}

.info-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.info-item:last-child {
    margin-bottom: 0;
}

.label {
    font-size: 14px;
    color: #666;
}

.value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 激励赠送卡片 */
.bonus-card .card-header {
    background: linear-gradient(135deg, #f5a623 0%, #f78900 100%);
    color: #fff;
}

.bonus-card .card-title {
    color: #fff;
}

.bonus-card .card-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 限时活动卡片 */
.limited-time-card {
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
}

.limited-time-card .card-header {
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
}

.limited-time-card .card-title {
    color: #fff;
}

.limited-time-card .card-body {
    color: #fff;
}

.countdown-text {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 公告卡片 */
.announcement-card .card-header {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: #fff;
}

.announcement-card .card-title {
    color: #fff;
}

#noticeContent {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* 右侧主内容区 */
.main-content {
    flex: 1;
    min-width: 0;
}

/* 流程步骤指示器 */
.steps-container {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

.step.active .step-number {
    background: linear-gradient(135deg, #1677ff 0%, #096dd9 100%);
    color: #fff;
    transform: scale(1.1);
}

.step.active .step-title {
    color: #1677ff;
    font-weight: 600;
}

/* 步骤内容区域 */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* 支付区域 */
.payment-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-bottom: 25px;
}

.main-channel {
    border: 2px solid #e9ecef;
}

.backup-channel {
    border: 2px dashed #1677ff;
    background: #f0f8ff;
}

.section-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 0;
}

.warm-tip {
    font-size: 12px;
    color: #6c757d;
}

.backup-tip {
    font-size: 12px;
    color: #1677ff;
    background: #e6f7ff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

/* 支付按钮横向布局 */
.payment-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-item {
    flex: 1;
    min-width: 140px;
}

.payment-btn {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.btn-tag {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 5px;
    border-radius: 3px;
}

.primary-btn {
    background: linear-gradient(135deg, #1677ff 0%, #096dd9 100%);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #096dd9 0%, #0050b3 100%);
}

.wechat-btn {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
}

.wechat-btn:hover {
    background: linear-gradient(135deg, #389e0d 0%, #237804 100%);
}

.qqpay-btn {
    background: linear-gradient(135deg, #12b7f5 0%, #0099cc 100%);
}

.qqpay-btn:hover {
    background: linear-gradient(135deg, #0099cc 0%, #0077aa 100%);
}

.otherpay-btn {
    background: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
}

.otherpay-btn:hover {
    background: linear-gradient(135deg, #531dab 0%, #391085 100%);
}

/* 表单区域 */
.form-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.form-group input:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:read-only {
    background: #f5f5f5;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-back, .btn-submit {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back {
    background: linear-gradient(135deg, #ff7875 0%, #ff4d4f 100%);
    color: #fff;
}

.btn-back:hover {
    background: linear-gradient(135deg, #ff9b99 0%, #ff7875 100%);
}

.btn-submit {
    background: linear-gradient(135deg, #1677ff 0%, #096dd9 100%);
    color: #fff;
    flex: 1;
}

.step-actions {
    margin-bottom: 20px;
}

.step1-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-next {
    padding: 12px 40px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: #fff;
}

.btn-next:hover {
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
}

.btn-next:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #096dd9 0%, #0050b3 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
}

/* 步骤4结果区域样式 */
.result-section {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-success {
    padding: 12px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-continue {
    background: linear-gradient(135deg, #1677ff 0%, #096dd9 100%);
    color: #fff;
}

.btn-continue:hover {
    background: linear-gradient(135deg, #096dd9 0%, #0050b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.4);
}

.btn-home {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.btn-home:hover {
    background: linear-gradient(135deg, #20c997 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* 分区列表样式 */
.partition-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 0;
    max-height: 400px;
    overflow-y: auto;
}

.partition-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.partition-card:hover {
    background: linear-gradient(135deg, #e6f7ff 0%, #b3d9ff 100%);
    border-color: #1677ff;
}

.partition-card.active,
.partition-card.selected {
    background: linear-gradient(135deg, #1677ff 0%, #096dd9 100%);
    border-color: #1677ff;
}

.partition-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.partition-card:hover .partition-name,
.partition-card.active .partition-name {
    color: #fff;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* 模态窗口 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.payment-icon {
    margin-bottom: 15px;
}

#wechat_qrcode {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 20px;
}

/* 底部容器 */
.footer-container {
    width: 100%;
    margin-top: auto;
}

/* 底部 */
.footer {
    background: linear-gradient(135deg, #1677ff 0%, #096dd9 100%);
    color: #ffffff;
    padding: 25px 20px;
    text-align: center;
    font-size: 13px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.footer p {
    margin: 5px 0;
    opacity: 0.9;
}

.footer a {
    color: #ffd700 !important;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin-bottom: 5px;
}

.footer p:last-child {
    margin-bottom: 0;
}

/* 表格样式 */
#welfareContent table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#welfareContent th,
#welfareContent td {
    padding: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

#welfareContent th {
    background: #f8f9fa;
    font-weight: 600;
    color: #666;
}

#welfareContent td {
    color: #1677ff;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 0 15px;
    }

    .sidebar {
        width: 100%;
    }

    .steps-container {
        flex-wrap: wrap;
    }

    .step {
        width: 50%;
        margin-bottom: 15px;
    }

    .steps-container::before {
        display: none;
    }

    .payment-row {
        flex-direction: column;
    }

    .payment-item {
        min-width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-back, .btn-submit {
        width: 100%;
    }
}