/* Final public shell overrides. Kept independent from the legacy public bundle. */
.public-maintenance-notice {
    background: #fffdf7;
    border-bottom: 1px solid #f2e5c8;
    color: #7c6032;
    font-size: 12px;
    line-height: 1.45;
}
.public-maintenance-notice > div {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 1208px;
    margin: 0 auto;
    padding: 9px 20px;
}
.public-maintenance-notice i {
    flex: 0 0 14px;
    width: 14px;
    margin: 2px 0 0;
    text-align: center;
}
.public-maintenance-notice span { min-width: 0; }
.public-maintenance-notice .maintenance-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: #8a5a16;
    font-weight: 750;
}
.public-maintenance-notice .maintenance-state i {
    width: auto;
    margin: 0;
    font-size: 11px;
}
.public-maintenance-notice .maintenance-copy { color: #866f4a; }

/* A quiet registry-style header. */
.pub-nav, .auth-nav {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #edf0f4;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.nav-inner { max-width: 1240px; padding: 0 24px; gap: 26px; }
.nav-logo { color: #14213a !important; font-size: 18px !important; letter-spacing: 0 !important; }
.nav-menu { justify-content: center; gap: 2px; }
.nav-link {
    padding: 7px 11px;
    border-radius: 5px;
    background: transparent !important;
    color: #3c4a61;
    font-size: 13px;
    font-weight: 600;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link.active {
    background: #f4f7fb !important;
    color: #2457d6;
    box-shadow: none;
}
.nav-actions { gap: 8px; }
/* Login and registration are the only public pages with a brand-only header. */
.auth-nav .nav-actions { display:none; }
.nav-actions > .nav-btn-login, .nav-actions > .nav-btn-reg, .nav-btn-console {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    height: 32px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    line-height:1;
    box-shadow: none !important;
    transform: none !important;
}
.nav-actions > .nav-btn-login { border: 0; background: transparent; color: #3c4a61; }
.nav-actions > .nav-btn-login:hover { background: #f4f7fb; border: 0; color: #14213a; }
.nav-actions > .nav-btn-reg, .nav-btn-console { background: #2b5cd9; border-color: #2b5cd9; }
.nav-actions > .nav-btn-reg:hover, .nav-btn-console:hover { background: #2452c5; border-color: #2452c5; }
/* Header CTA matches the compact API-key action used in the supplied reference. */
.pub-nav .nav-actions > .nav-btn-reg {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    background: #2b5cd9 !important;
    border-color: #2b5cd9 !important;
    color: #f8fafc !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}
.pub-nav .nav-actions > .nav-btn-reg:hover { background: #2452c5 !important; }

/* Public CTAs remain visually stable on hover as well. */
.pub-nav .nav-actions > .nav-btn-reg:hover { background:#2b5cd9 !important; border-color:#2b5cd9 !important; color:#f8fafc !important; }
.pub-nav .nav-actions > .nav-btn-login:hover { background:transparent !important; border-color:transparent !important; color:#3c4a61 !important; }
.nav-icon-btn, .nav-user-link { border-radius: 5px !important; }

/* One header contract for all public routes, including authenticated pages. */
.pub-nav .nav-btn-console {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:32px !important;
    min-height:32px !important;
    padding:0 10px !important;
    border:1px solid #2b5cd9 !important;
    border-radius:9px !important;
    background:#2b5cd9 !important;
    color:#f8fafc !important;
    font-size:13px !important;
    font-weight:500 !important;
    line-height:32px !important;
    box-shadow:none !important;
}
.pub-nav .nav-btn-console:hover { background:#2b5cd9 !important; border-color:#2b5cd9 !important; color:#f8fafc !important; }
.pub-nav .nav-user-link {
    display:inline-flex !important;
    align-items:center;
    width:30px;
    height:30px;
    min-height:30px;
    padding:0 !important;
    border:0 !important;
    border-radius:6px !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible;
}
.pub-nav .nav-user-link:hover { background:transparent !important; border:0 !important; box-shadow:none !important; }
.pub-nav .nav-user-link .topbar-avatar,
.pub-nav .nav-user-link .avatar-image {
    width:30px !important;
    height:30px !important;
    margin:0 !important;
    border:0 !important;
    outline:0 !important;
    border-radius:6px !important;
    box-shadow:none !important;
}

/* 公共首页与用户工作台使用同一套纯文字账户菜单，避免移除图标后留下色块。 */
.pub-nav .nav-dropdown {
    min-width: 156px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}
.pub-nav .nav-dropdown a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    color: var(--text2);
    font-size: 13px;
    font-weight: 600;
}
.pub-nav .nav-dropdown a:hover {
    background: var(--primary-bg);
    color: var(--primary-d);
}
.pub-nav .nav-dropdown .dd-divider {
    height: 1px;
    margin: 5px 2px;
    background: var(--border-light);
}
.pub-nav .nav-dropdown .nav-logout-link,
.pub-nav .nav-dropdown .nav-logout-link:hover { color: #b91c1c; }
.pub-nav .nav-dropdown .nav-logout-link:hover { background: #fef2f2; }
.pub-nav .nav-hamburger {
    width:auto !important;
    height:32px;
    min-height:32px;
    padding:0 9px !important;
    border:1px solid #e1e6ee;
    border-radius:6px !important;
    background:#fff;
    color:#3c4a61;
    font:500 12px/1 system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
}
.pub-nav .nav-hamburger:hover { background:#fff; border-color:#e1e6ee; color:#3c4a61; }

/* Homepage: compact working surface instead of a stack of outlined cards. */
.wh-hero {
    padding: 44px 24px 24px;
    border-bottom: 0;
}
.wh-hero-inner { max-width: 760px; }
.wh-hero-title { margin-bottom: 8px; letter-spacing: 0; }
.wh-hero-tagline { margin-bottom: 24px; }
.wh-search {
    height: 50px;
    margin-bottom: 14px;
    border-color: #d9e0ea;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.wh-search:focus-within {
    border-color: #2457d6;
    box-shadow: 0 0 0 3px rgba(36, 87, 214, .10);
}
.wh-search button { min-width: 98px; border-radius: 0; }
.wh-tld-badges { gap: 2px 16px; margin-top: 12px; }
.wh-tld-badge {
    min-height: 28px;
    padding: 3px 0;
    border: 0;
    border-radius: 0;
}
.wh-tld-badge:hover { border-color: transparent; }
.wh-faq-section { padding: 30px 24px 48px; }
.wh-faq-heading { margin-bottom: 14px; }
.wh-faq-list { gap: 0; border-top: 1px solid #e8ecf1; }
.wh-faq-item, .wh-faq-item:hover, .wh-faq-item.open {
    border: 0;
    border-bottom: 1px solid #e8ecf1;
    border-radius: 0;
}
.wh-faq-btn { min-height: 56px; padding: 15px 0; }
.wh-faq-ans {
    margin: 0;
    padding: 0 0 16px;
    border-top: 0;
}

@media (max-width: 960px) {
    .pub-nav, .auth-nav { height: 60px; }
    .nav-inner { padding: 0 14px; gap: 10px; }
    .nav-menu { display: none; }
    .nav-actions { margin-left: auto; }
    .nav-hamburger { display: inline-flex; }
}
@media (max-width: 600px) {
    .public-maintenance-notice > div { padding: 9px 14px; gap: 7px; }
    .public-maintenance-notice i { margin-top: 2px; }
    .nav-actions > .nav-btn-login, .nav-actions > .nav-btn-reg { display: none; }
    .nav-btn-console { display: none; }
    .nav-login-xs { display: inline-flex; }
    .wh-hero { padding: 28px 16px 18px; }
    .wh-hero-title { font-size: 27px; line-height: 1.24; }
    .wh-hero-tagline { margin-bottom: 20px; font-size: 14px; }
    .wh-search { height: 48px; margin-bottom: 12px; }
    .wh-search button { min-width: 86px; padding: 0 14px; }
    .wh-search input { padding: 0 12px; }
    .wh-tld-badges { gap: 1px 14px; margin-top: 8px; }
    .wh-tld-badge { min-height: 27px; }
    .wh-faq-section { padding: 22px 16px 36px; }
    .wh-faq-heading { margin-bottom: 12px; }
    .wh-faq-btn { min-height: 54px; padding: 14px 0; }

    /* The public footer is navigation, not a card grid. */
    .site-footer { padding: 28px 20px 18px !important; }
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px 18px !important;
        margin-bottom: 22px !important;
    }
    .site-footer-brand { grid-column: 1 / -1; }
    .site-footer-col > div:first-child { margin-bottom: 8px !important; }
    .site-footer-col a { margin-bottom: 6px !important; }
}
