/* ========== 全局基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", "PingFang SC", sans-serif;
    background: #f0f2f5;
    color: #333;
    font-size: 14px;
    min-height: 100vh;
}

a {
    color: #1a5dc7;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: #c00;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== 顶部通栏 ========== */
.top-bar {
    background: #a51c30;
    color: #fff;
    font-size: 12px;
    padding: 5px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-right {
    opacity: .85;
}

/* ========== 头部 ========== */
.header {
    background: #fff;
    border-bottom: 3px solid #a51c30;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 50px;
    height: 50px;
    background: #a51c30;
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    font-family: "SimSun", serif;
}
.logo-text h1 {
    font-size: 22px;
    color: #a51c30;
    letter-spacing: 2px;
}
.logo-text p {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.header-nav {
    display: flex;
    gap: 6px;
}
.header-nav a {
    padding: 7px 16px;
    font-size: 14px;
    color: #444;
    border-radius: 3px;
    transition: background .2s;
}
.header-nav a:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: #a51c30;
}
.header-nav a.active {
    background: #a51c30;
    color: #fff;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}
.breadcrumb-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 13px;
    color: #888;
}
.breadcrumb a {
    color: #666;
}

/* ========== 主内容区 ========== */
.main-content {
    max-width: 1100px;
    margin: 25px auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    flex: 1;
}

.content-box {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
}
.box-title {
    background: #a51c30;
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}
.title-icon {
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #ffd700;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 2px;
}
.box-body {
    padding: 30px 40px;
}

/* ========== 提示信息 ========== */
.notice {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-left: 4px solid #faad14;
    padding: 12px 16px;
    font-size: 13px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ========== 表单样式 ========== */
.query-form {
    max-width: 480px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
.req {
    color: #e00;
    font-style: normal;
    margin-right: 3px;
}
.form-group input[type="text"] {
    width: 100%;
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 12px;
    font-size: 14px;
    transition: border-color .2s;
    outline: none;
    font-family: inherit;
}
.form-group input[type="text"]:focus {
    border-color: #a51c30;
    box-shadow: 0 0 0 2px rgba(165,28,48,.12);
}

/* 验证码 */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.captcha-row input {
    flex: 1;
}
#captchaCanvas {
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    background: #f8f8f8;
}
.refresh-link {
    font-size: 13px;
    white-space: nowrap;
}

/* 按钮 */
.form-actions {
    text-align: center;
    padding-top: 10px;
    display: flex;
    gap: 15px;
    justify-content: center;
}
.btn-submit, .btn-reset {
    padding: 10px 40px;
    font-size: 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 4px;
    font-family: inherit;
    transition: opacity .2s;
}
.btn-submit {
    background: #a51c30;
    color: #fff;
}
.btn-submit:hover {
    opacity: .85;
}
.btn-reset {
    background: #e8e8e8;
    color: #555;
}
.btn-reset:hover {
    background: #d9d9d9;
}

/* ========== 侧边栏 ========== */
.side-info {
    width: 260px;
    flex-shrink: 0;
}
.side-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    margin-bottom: 16px;
}
.side-title {
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    padding: 10px 16px;
    font-weight: bold;
    font-size: 14px;
    color: #a51c30;
}
.side-box ul {
    list-style: none;
    padding: 12px 16px;
}
.side-box ul li {
    padding: 6px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px dashed #eee;
    line-height: 1.6;
}
.side-box ul li:last-child {
    border-bottom: none;
}
.side-box ul li::before {
    content: "›";
    margin-right: 6px;
    color: #a51c30;
}

/* ========== 底部 ========== */
.footer {
    background: #3a3a3a;
    color: #aaa;
    text-align: center;
    padding: 20px 20px;
    font-size: 12px;
    line-height: 2;
    margin-top: auto;
}
.footer .copyright {
    color: #777;
    margin-top: 4px;
}

/* ========== 加载遮罩 ========== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading-box {
    background: #fff;
    padding: 40px 55px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

/* 三个球弹跳动画 */
.bounce-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.bounce-dots .dot {
    width: 12px;
    height: 12px;
    background: #a51c30;
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}
.bounce-dots .dot:nth-child(2) {
    animation-delay: .2s;
}
.bounce-dots .dot:nth-child(3) {
    animation-delay: .4s;
}
@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-18px);
    }
}

.loading-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}
.loading-sub {
    font-size: 12px;
    color: #999;
    margin-bottom: 18px;
}

.progress-bar-wrap {
    width: 260px;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: #a51c30;
    border-radius: 3px;
    transition: width .3s;
}
.loading-percent {
    font-size: 13px;
    color: #a51c30;
    margin-top: 10px;
    font-weight: bold;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    .main-content {
        flex-direction: column;
    }
    .side-info {
        width: 100%;
    }
    .box-body {
        padding: 20px;
    }
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .top-bar {
        padding: 5px 15px;
        font-size: 11px;
    }
}
