/* ============================================================
   🔥 全局样式
   ============================================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* ============================================================
   🔥 Toast 提示
   ============================================================ */

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
}

/* ============================================================
   🔥 头部样式
   ============================================================ */

.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.header-left .logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
.header-left .site-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}
.header-left .site-name span {
    color: #4F46E5;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-right .notice-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.2s;
}
.header-right .notice-btn:hover {
    background: #f3f4f6;
    color: #1a1a2e;
}
.header-right .order-query-btn {
    background: #4F46E5;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-right .order-query-btn:hover {
    background: #4338CA;
}

/* ============================================================
   🔥 弹窗样式（公告 / 订单查询）
   ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.modal h2 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.modal p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}
.modal .modal-close {
    margin-top: 16px;
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    background: #4F46E5;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.modal .modal-close:hover {
    background: #4338CA;
}

/* ============================================================
   🔥 订单查询弹窗
   ============================================================ */

.query-form .form-group {
    margin-bottom: 14px;
}
.query-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}
.query-form .form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.query-form .form-group input:focus {
    outline: none;
    border-color: #4F46E5;
}
.query-form .btn-query {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #4F46E5;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.query-form .btn-query:hover {
    background: #4338CA;
}
.query-result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}
.query-result.success {
    display: block;
    background: #D1FAE5;
    color: #065F46;
}
.query-result.error {
    display: block;
    background: #FEE2E2;
    color: #991B1B;
}

/* ============================================================
   🔥 页脚样式
   ============================================================ */

.footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 24px 24px 16px;
    margin-top: auto;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-left .footer-brand {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}
.footer-left .footer-brand span {
    color: #4F46E5;
}
.footer-left .footer-desc {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}
.footer-left .footer-copy {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}
.footer-left .footer-copy a {
    color: #4F46E5;
    text-decoration: none;
}
.footer-left .footer-copy a:hover {
    text-decoration: underline;
}
.footer-right {
    display: flex;
    gap: 20px;
    padding-top: 2px;
}
.footer-right a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}
.footer-right a:hover {
    color: #4F46E5;
}

/* ============================================================
   🔥 响应式
   ============================================================ */

@media (max-width: 480px) {
    .header { padding: 10px 16px; }
    .header-left .site-name { font-size: 16px; }
    .header-right .order-query-btn { padding: 6px 12px; font-size: 13px; }
    .header-right .notice-btn { font-size: 13px; padding: 4px 8px; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-right { justify-content: center; }
}
