/* 全局页脚 + 营业执照弹窗（所有页面共享） */
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* 覆盖 site.css 的 padding-bottom: 100px（与 sticky footer 冲突） */
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    /* 兜底：禁止页面整体出现横向滚动条 */
    overflow-x: hidden;
}

/* 主内容区：占满剩余高度；超出视口时自身滚动，避免页面整体出现右侧滚动条 */
body > .container {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.site-footer {
    color: #d8d8d8;
    width: 100%;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    background-color: #2d2d2d;
    border-top: 2px solid #ffc107;
    padding: 6px 5px 8px;
    margin-top: 30px;
}

.site-footer .footer-inner {
    max-width: 760px;
    margin: 0 auto;
}

.site-footer .footer-row {
    margin: 2px 0;
    color: #c8c8c8;
}

.site-footer .footer-row a,
.site-footer .footer-row a:visited {
    color: #d8d8d8;
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer .footer-row a:hover {
    color: #ffc107;
}

.site-footer .footer-links {
    margin-top: 4px;
}

.site-footer .footer-sep {
    color: #777;
    margin: 0 6px;
}

.site-footer .license-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 2px 7px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-footer .license-link:hover {
    background-color: rgba(255, 193, 7, 0.12);
    color: #ffd96b;
}

.site-footer .license-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.site-footer .license-icon {
    color: #fff;
    font-size: 10px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

/* ===== 顶部推广条 ===== */
.promo-bar {
    background: #2d2d2d;
    color: #f0f0f0;
    padding: 1px 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
    height: 24px;
    display: flex;
    align-items: center;
    margin: 0;
    border-bottom: 1px solid #ffc107;
}

.promo-content {
    display: inline-block;
    font-weight: 400;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
    color: #ffffff;
    padding-left: 8px;
    visibility: visible;
}

.promo-char {
    display: inline-block;
    color: #ffffff;
    opacity: 1;
    transition: none;
    animation: promoShine 2.4s ease-in-out infinite;
}

@keyframes promoShine {
    0%   { color: #ffffff; text-shadow: none; }
    8%   { color: #ffd700; text-shadow: 0 0 6px #ffd700, 0 0 14px rgba(255,215,0,0.5); }
    16%  { color: #ffffff; text-shadow: none; }
    100% { color: #ffffff; text-shadow: none; }
}


/* ===== 悬浮咨询按钮 ===== */
.consult-wrap {
    position: fixed;
    top: 3px;
    right: 8px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 50vw;
}

.consult-member {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
    font-size: 11px;
    color: #fff;
    background: rgba(0,0,0,0.35);
    padding: 1px 8px;
    border-radius: 10px;
    line-height: 1.6;
    flex-shrink: 1;
    min-width: 0;
}

.consult-btn {
    background-color: var(--accent, #ffc107);
    color: var(--primary-dark, #2d2d2d);
    padding: 2px 8px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.consult-btn i {
    font-size: 13px;
}

/* ===== Logo和报价区域 ===== */
.logo-prices-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    background-color: white;
    padding: 2px 2px 4px;
}

.logo-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 6px;
}

.logo-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 61px;
    width: auto;
    display: block;
    max-width: 100%;
    border-radius: 6px;
}

.logo-subtitle-wrap {
    min-height: 16px;
    margin-top: 0;
    width: 100%;
    text-align: center;
}

.logo-subtitle {
    font-size: 12px;
    line-height: 1.2;
    color: #4f5f6d;
    font-weight: 600;
    letter-spacing: 0.4px;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
    display: block;
}

.logo-subtitle.is-visible {
    opacity: 1;
}

.prices-wrapper {
    flex: 1;
    min-width: 0;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    column-gap: 16px;
    row-gap: 2px;
    justify-content: start;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.price-item {
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

.price-sep {
    color: #999;
    margin-right: 4px;
}

.price-bar {
    color: #bbb;
    margin: 0 3px;
}

.price-link {
    display: inline;
    padding: 0;
    color: #2f3b4a;
    text-decoration: none;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: color 0.2s ease;
}

.price-link:hover {
    background: transparent;
    color: #0b5cff;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.promo-highlight {
    color: #ffc107;
    font-weight: 600;
}

/* ===== 底部导航栏 ===== */
.main-nav {
    background: #2d2d2d;
    display: flex;
    gap: 0;
    height: 32px;
    width: 100%;
    margin: 0;
    padding: 0 4px;
    box-sizing: border-box;
    border-top: 1px solid #ffc107;
    overflow: hidden;
}

.nav-item {
    flex: none;
    min-width: 0;
    color: #f0f0f0;
    text-align: center;
    text-decoration: none;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 400;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: color 0.2s ease, background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-item:hover {
    color: #ffc107;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    color: #2d2d2d;
    background-color: #ffc107;
}

.nav-spacer {
    flex: 1;
    min-width: 4px;
}
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0;
    flex: none;
    font-size: 12px;
}
.nav-login {
    font-weight: 300;
    color: #bbb !important;
    padding: 0 8px;
}
.nav-login:hover {
    color: #ffc107 !important;
}
.nav-login.active {
    color: #2d2d2d !important;
    background-color: #ffc107;
}
/* 会员中心金黄色徽章样式 */
.nav-login.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffd700 0%, #ffc107 50%, #ff9800 50.1%, #f57c00 100%);
    color: #fff !important;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35), 0 0 4px rgba(0,0,0,0.15);
    box-shadow:
        0 2px 6px rgba(255, 193, 7, 0.4),
        0 1px 2px rgba(0,0,0,0.1),
        inset 0 2px 3px rgba(255,255,255,0.4),
        inset 0 -2px 3px rgba(0,0,0,0.15);
    border: 1.5px solid #e6a800;
    transition: all 0.3s ease;
    vertical-align: middle;
    line-height: 1;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.nav-login.nav-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    animation: badge-shine 3s ease-in-out infinite;
}
@keyframes badge-shine {
    0%, 70%, 100% { left: -100%; }
    80% { left: 150%; }
    90% { left: 150%; }
}
.nav-login.nav-badge:hover {
    background: linear-gradient(180deg, #ffe44d 0%, #ffca28 50%, #ffa000 50.1%, #f57c00 100%);
    box-shadow:
        0 4px 10px rgba(255, 193, 7, 0.5),
        0 1px 3px rgba(0,0,0,0.15),
        inset 0 2px 3px rgba(255,255,255,0.5),
        inset 0 -2px 3px rgba(0,0,0,0.2);
    transform: translateY(-1px);
    color: #fff !important;
}
.nav-login.nav-badge:hover::after {
    animation-duration: 1.5s;
}
.nav-login.nav-badge.active {
    background: linear-gradient(180deg, #ffca28 0%, #ffb300 50%, #f57c00 50.1%, #e65100 100%);
    border-color: #cc8800;
    box-shadow:
        0 2px 6px rgba(255, 152, 0, 0.4),
        inset 0 2px 3px rgba(255,255,255,0.3),
        inset 0 -2px 3px rgba(0,0,0,0.2);
    color: #fff !important;
}
.nav-auth-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: #555;
}
.nav-reg {
    font-weight: 300;
    color: #bbb !important;
    padding: 0 8px;
}
.nav-reg:hover {
    color: #ffc107 !important;
}
.nav-reg.active {
    color: #2d2d2d !important;
    background-color: #ffc107;
}

/* 小屏自动缩小登录/注册按钮的间距与字号，保证不被遮挡；
   左侧四个菜单保持原样，仅压缩右侧内容 */
@media (max-width: 900px) {
    .nav-login:not(.nav-badge), .nav-reg { padding: 0 6px; font-size: 12px; }
    .nav-auth-sep { height: 12px; }
}
@media (max-width: 640px) {
    .nav-login:not(.nav-badge), .nav-reg { padding: 0 4px; font-size: 12px; }
    .nav-auth-sep { height: 10px; }
    .main-nav { padding: 0 2px; }
}
@media (max-width: 420px) {
    .nav-login:not(.nav-badge), .nav-reg { padding: 0 3px; font-size: 11px; }
    .nav-auth-sep { height: 10px; }
}

/* 营业执照弹窗 */
.license-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}
.license-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    animation: licenseFade 0.2s ease;
}
.license-modal-dialog {
    position: relative;
    max-width: 640px;
    width: 92%;
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 22px 22px 18px;
    animation: licensePop 0.25s cubic-bezier(.2,.9,.3,1.2);
}
.license-modal-close {
    position: absolute;
    top: 6px; right: 10px;
    border: none; background: transparent;
    font-size: 26px; color: #999;
    line-height: 1; cursor: pointer;
}
.license-modal-close:hover { color: #333; }
.license-modal-title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 14px;
    color: #333;
}
.license-modal-body {
    text-align: center;
}
.license-modal-body .license-image {
    max-width: 100%;
    max-height: 60vh;
    border: 1px solid #eee;
    border-radius: 4px;
}
.license-modal-body .license-empty {
    padding: 40px 10px;
    color: #999;
}
.license-modal-body .license-empty i {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 8px;
}
.license-modal-body .license-empty .license-empty-sub {
    font-size: 12px;
    color: #bbb;
    margin-top: 4px;
}
.license-modal-footer {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
}
.license-modal-footer a {
    color: #0a6dfd;
    text-decoration: none;
}
@keyframes licenseFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes licensePop {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* 营业执照水印容器 */
.license-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.license-image-wrapper .license-image {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    border: 1px solid #eee;
    border-radius: 4px;
}

.license-watermark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.license-watermark .watermark-text {
    position: absolute;
    color: rgba(255, 0, 0, 0.18);
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    transform: rotate(-30deg);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* 水印重复排列模式 - 按照国家标准通用做法 */
.license-watermark .watermark-text:nth-child(1) {
    top: 8%;
    left: 12%;
    font-size: 18px;
    transform: rotate(-25deg) !important;
}

.license-watermark .watermark-text:nth-child(2) {
    top: 8%;
    left: 62%;
    font-size: 14px;
    color: rgba(200, 0, 0, 0.2);
    transform: rotate(-30deg) !important;
}

.license-watermark .watermark-text:nth-child(3) {
    top: 45%;
    left: 15%;
    font-size: 13px;
    color: rgba(180, 0, 0, 0.22);
    transform: rotate(-20deg) !important;
}

.license-watermark .watermark-text:nth-child(4) {
    top: 45%;
    right: 18%;
    font-size: 15px;
    color: rgba(220, 0, 0, 0.17);
    transform: rotate(-35deg) !important;
}

.license-watermark .watermark-text:nth-child(5) {
    bottom: 8%;
    left: 38%;
    font-size: 12px;
    color: rgba(160, 0, 0, 0.24);
    transform: rotate(-28deg) !important;
}

/* 禁止右键菜单和拖拽 */
.license-image-wrapper {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.license-image-wrapper .license-image {
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* ============ 全局通知 Toast ============ */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: #323232;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    max-width: 360px;
    text-align: center;
    line-height: 1.4;
}
.toast.toast-show {
    opacity: 1;
    transform: translateY(0);
}
.toast.toast-hide {
    opacity: 0;
    transform: translateY(-20px);
}
.toast-info  { background: #444; }
.toast-success { background: #2e7d32; }
.toast-error { background: #c62828; }
.toast-warning { background: #e65100; }

/* 确认弹窗 */
.toast-confirm {
    background: #fff;
    color: #333;
    border-radius: 12px;
    padding: 20px 24px 16px;
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast-confirm-msg {
    font-size: 15px;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}
.toast-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.toast-btn {
    padding: 8px 28px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}
.toast-btn-yes {
    background: #0b5cff;
    color: #fff;
}
.toast-btn-yes:hover { background: #094bd4; }
.toast-btn-no {
    background: #f0f0f0;
    color: #666;
}
.toast-btn-no:hover { background: #e0e0e0; }