:root {
    --bid-primary: #cf0f0f;
    --bid-primary-hover: #e78787;
}

.bid-body { background: #f5f5f5; font-family: "微软雅黑", sans-serif; }
.bid-body.bid-auth-page { background: #222; }

.bid-auth-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bid-auth-cms-page .bid-auth-wrap {
    min-height: 640px;
    padding: 60px 20px;
}
.bid-auth-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}
.bid-auth-box {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 560px;
}
.bid-auth-box h2 { color: var(--bid-primary); margin-top: 0; text-align: center; }

.bid-required { color: #cf0f0f; margin-left: 2px; }

.bid-toast {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-width: 90%;
    text-align: center;
}
.bid-toast-success { background: #28a745; }
.bid-toast-error { background: #cf0f0f; }
.bid-toast-info { background: #333; }

.btn-bid-primary { background: var(--bid-primary); border-color: var(--bid-primary); color: #fff; }
.btn-bid-primary:hover, .btn-bid-primary:focus { background: var(--bid-primary-hover); border-color: var(--bid-primary-hover); color: #fff; }

.bid-cms-page .main-pad-2 { padding-top: 50px; }
.bid-center-wrap { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.bid-cms-page .bid-center-wrap { max-width: none; margin: 0; }
.bid-topbar { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; color: var(--bid-primary); font-size: 16px; background: #fff; }
.bid-topbar-left { font-weight: bold; }
.bid-center-body { display: flex; min-height: 520px; }
.bid-sidebar { width: 220px; flex-shrink: 0; background: #fafafa; border-right: 1px solid #eee; display: flex; flex-direction: column; }
.bid-sidebar-head { background: var(--bid-primary); color: #fff; padding: 15px; text-align: center; font-size: 16px; }
.bid-sidebar-nav { list-style: none; padding: 0; margin: 0; flex: 1; }
.bid-sidebar-nav li a { display: block; padding: 14px 20px; color: #333; border-bottom: 1px solid #eee; text-decoration: none; font-size: 14px; }
.bid-sidebar-nav li a:hover { background: #fff5f5; color: var(--bid-primary); }
.bid-sidebar-nav li.active a { background: var(--bid-primary); color: #fff; }
.bid-logout-btn { display: block; margin: 15px; padding: 10px; background: var(--bid-primary); color: #fff; text-align: center; border-radius: 3px; text-decoration: none; }
.bid-logout-btn:hover { background: var(--bid-primary-hover); color: #fff; }
.bid-main { flex: 1; padding: 24px; overflow: auto; min-width: 0; }
.bid-main .form-control { height: 38px; border-radius: 2px; }
.bid-main .input-group-btn .btn { height: 38px; }

.bid-panel { background: #fff; }
.bid-panel h3, .bid-panel h4 { color: #333; margin-top: 0; }

.bid-table { font-size: 13px; }
.bid-table thead { background: #f9f9f9; }
.bid-table > thead > tr > th { border-bottom: 2px solid #eee; }

.bid-card { border: 1px solid #e0e0e0; margin-bottom: 20px; border-radius: 4px; overflow: hidden; }
.bid-card-head { background: #f5f5f5; padding: 12px 15px; border-bottom: 1px solid #e0e0e0; font-size: 13px; }

.bid-status-expired, .bid-status-ended, .text-danger { color: #cf0f0f !important; }
.bid-status-bidding { color: #28a745; }

.bid-server-clock { background: #fff5f5; border: 1px solid #f0c0c0; padding: 12px 20px; margin-bottom: 20px; border-radius: 4px; }
.bid-server-clock-lg .time { font-size: 28px; font-weight: bold; color: var(--bid-primary); margin-left: 15px; }
.bid-server-clock .countdown { margin-left: 20px; color: #666; }

.bid-rules { padding: 15px; background: #fafafa; border-bottom: 1px solid #eee; }
.bid-rules-content { background: transparent; border: none; white-space: pre-wrap; font-size: 13px; margin: 0; font-family: inherit; }

.bid-quote-form { display: flex; gap: 8px; align-items: center; }
.bid-quote-form .quote-input { width: 120px; display: inline-block; }
.bid-quote-self { background: #fff8f8; }

/* 帮助中心 */
.bid-help-page { max-width: 900px; }
.bid-help-intro { background: #fff5f5; border: 1px solid #f0c0c0; border-radius: 4px; padding: 18px 22px; margin-bottom: 24px; line-height: 1.8; }
.bid-help-intro p { margin: 0 0 12px; }
.bid-help-links { margin-top: 8px; }
.bid-help-links .btn { margin-right: 8px; }
.bid-help-section { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; margin-bottom: 18px; overflow: hidden; }
.bid-help-section h3 { margin: 0; padding: 14px 20px; background: #fafafa; border-bottom: 1px solid #eee; font-size: 16px; color: #333; }
.bid-help-num { display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; background: var(--bid-primary); color: #fff; border-radius: 50%; font-size: 13px; margin-right: 10px; }
.bid-help-body { padding: 18px 22px; font-size: 14px; line-height: 1.8; color: #444; }
.bid-help-body h4 { font-size: 15px; color: #333; margin: 16px 0 8px; }
.bid-help-body h4:first-child { margin-top: 0; }
.bid-help-body ul, .bid-help-body ol { padding-left: 22px; }
.bid-help-body li { margin-bottom: 4px; }
.bid-help-tip { background: #fffbea; border-left: 3px solid #f0ad4e; padding: 10px 14px; margin-top: 12px; font-size: 13px; color: #666; }
.bid-help-faq dt { font-weight: bold; color: #333; margin-top: 12px; }
.bid-help-faq dd { margin: 4px 0 0 0; color: #666; }
.bid-help-standalone .bid-help-page { max-width: none; }

@media (max-width: 768px) {
    .bid-center-body { flex-direction: column; }
    .bid-sidebar { width: 100%; }
}
