:root{
  --brand:#FF5A1F;
  --brand-dark:#c0652f;
  --ink:#1A1A2E;
  --muted:#6B6B8A;
  --nav-bg:rgba(255,255,255,0.95);
  --nav-border:rgba(0,0,0,0.06);
  --radius:12px;
}


/* Navbar - AISoBrand Design System v2 (20260831) */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Permanent+Marker&display=swap');
.navbar { position: fixed; top: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.06); height: 60px; padding: 0 24px; transition: box-shadow 0.3s; }
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.navbar-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.navbar .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.navbar .logo-capsule { display: inline-flex; align-items: center; height: 42px; width: auto; flex-shrink: 0; }
.navbar .logo-subtitle { font-size: 17px; color: var(--ink); font-weight: 700; white-space: nowrap; border-left: 1px solid rgba(0,0,0,0.12); padding-left: 10px; margin-left: 4px; letter-spacing: 0.5px; }

.navbar .logo-slogan-img { height: 32px; width: auto; display: inline-block; vertical-align: middle; padding-left: 8px; margin-left: 2px; border-left: 1px solid rgba(255,90,31,0.2); }
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-links a { text-decoration: none; color: #2D2D3A; font-size: 14px; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.navbar-links a:hover, .navbar-links a.active { color: var(--brand); }
#nav-login { color: var(--brand) !important; border: 1px solid var(--brand); padding: 7px 18px; border-radius: 6px; font-weight: 600; transition: all 0.2s; }
#nav-login:hover { background: var(--brand); color: #fff !important; }
.navbar .menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.navbar .menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.3s; }
.navbar .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar .menu-toggle.active span:nth-child(2) { opacity: 0; }
.navbar .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-avatar-btn { display: none; cursor: pointer; background: none; border: none; padding: 4px; border-radius: 50%; transition: background 0.2s; }
.nav-avatar-btn:hover { background: #FFF9F5; }
.nav-avatar-circle { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.nav-dropdown { display: none; position: absolute; top: 60px; right: 0; background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(26,26,46,0.12); padding: 8px 0; min-width: 180px; z-index: 1001; }
.nav-dropdown.show { display: block; }
.nav-dropdown-item { display: block; width: 100%; padding: 10px 20px; text-align: left; background: none; border: none; font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: none; transition: background 0.15s; box-sizing: border-box; }
.nav-dropdown-item:hover { background: #FFF9F5; color: var(--brand); }
.nav-dropdown-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 4px 0; }
.nav-dropdown-phone { padding: 10px 20px; font-size: 13px; color: #9A9AB0; }
.nav-dropdown-nickname { padding: 10px 20px; font-size: 14px; color: var(--ink); font-weight: 600; }

.nav-close-btn { display: none; }

@media (max-width: 768px) {
    .navbar { height: 54px; padding: 0 16px; }
    .navbar-container { height: 54px; }
    .navbar .logo-capsule { height: 42px; width: auto; }
    .navbar .logo-subtitle { font-size: 17px; }
    .navbar .logo-slogan, .navbar .logo-slogan-img { display: none; }
    .navbar .menu-toggle { display: block; position: relative; z-index: 1002; }
    /* Floating panel — content-adaptive (aisobrand style) */
    .navbar-links {
        position: fixed; top: 54px; bottom: auto; left: auto; right: 8px; transform: translateX(calc(100% + 16px));
        width: max-content; max-width: 260px; height: fit-content; max-height: calc(100vh - 72px);
        background: rgba(255,255,255,0.98); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        flex-direction: column; gap: 0; padding: 48px 20px 16px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.12);
        border-radius: 16px;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        display: flex;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        z-index: 1001;
    }
    .navbar-links.active { transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .navbar-links a { width: 100%; padding: 14px 0; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.06); }
    #nav-login { margin: 10px 0 !important; display: inline-block !important; width: auto !important; border-bottom: none !important; }
    #nav-user { flex-direction: column !important; gap: 8px !important; margin: 10px 0 !important; border-bottom: none !important; }
    .nav-avatar-btn { display: flex !important; }
    .nav-dropdown { top: 54px; right: 0; left: auto; }

    /* Backdrop overlay */
    .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: none; }
    .nav-backdrop.show { display: block; }

    /* Close button */
    .nav-close-btn {
        display: flex;
        position: absolute; top: 10px; right: 10px;
        width: 32px; height: 32px; min-height: 32px; border: none;
        background: var(--brand); font-size: 22px; color: #fff; cursor: pointer; line-height: 1;
        display: flex; align-items: center; justify-content: center;
        border-radius: 10px; transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .nav-close-btn:hover { transform: rotate(90deg); }
}
@media (max-height: 500px) {
    .navbar { height: 48px; }
    .navbar-container { height: 48px; }
    .navbar .logo-text { font-size: 16px; }
    .navbar .logo-subtitle { font-size: 15px; }
}



.lang-switch { position: static; z-index: 1001; display:flex; gap:0; background:rgba(255,255,255,0.9); border:1px solid rgba(0,0,0,0.06); border-radius:6px; overflow:hidden; font-size:12px; box-shadow:0 2px 6px rgba(0,0,0,0.04); }
.lang-switch a { color: rgba(26,26,46,0.7); text-decoration: none; padding: 4px 10px; font-weight: 500; transition:all 0.2s; border-right:1px solid rgba(0,0,0,0.06); }
.lang-switch a:last-child { border-right:none; }
.lang-switch a:hover { color: var(--brand); background:rgba(255,90,31,0.06); }
.lang-switch a.active { background:var(--brand); color:#fff; font-weight:600; }
@media (max-width: 768px) { .lang-switch { font-size: 11px; } }



/* === V2 下拉导航 (20260924) === */
.nav-parent { position: relative; display: flex; align-items: center; height: 100%; }
.nav-parent > a { display: inline-flex; align-items: center; gap: 4px; height: 100%; }
.nav-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .55; transition: transform .2s; margin-left: 2px; }
.nav-parent.open .nav-caret, .nav-parent:hover .nav-caret { transform: rotate(180deg); opacity: .9; }
.nav-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 208px; background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(26,26,46,.12); padding: 8px 0; display: none; z-index: 1001; }
.nav-parent:hover .nav-sub, .nav-parent.open .nav-sub { display: block; }
.nav-sub a { display: block; width: 100%; padding: 11px 22px; text-align: left; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; box-sizing: border-box; }
.nav-sub a:hover { background: #FFF9F5; color: var(--brand); }
.nav-cta { background: var(--brand); color: #fff !important; padding: 8px 20px; border-radius: 6px; font-weight: 600; transition: background .2s; }
.nav-cta:hover { background: var(--brand-dark); }
/* 右侧两个下拉右对齐，避免溢出视口 */
.navbar-links > .nav-parent:nth-last-child(-n+2) .nav-sub { left: auto; right: 0; transform: none; }
@media (max-width: 768px) {
    .nav-parent { width: 100%; height: auto; }
    .nav-parent > a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06); justify-content: space-between; }
    .nav-caret { transform: rotate(0); }
    .nav-parent.open .nav-caret { transform: rotate(180deg); }
    .nav-sub { position: static; transform: none; box-shadow: none; min-width: 0; padding: 0 0 6px; display: none; background: transparent; }
    .nav-parent.open .nav-sub { display: block; }
    .nav-sub a { padding: 10px 16px; border-bottom: none; color: var(--muted); }
    .nav-cta { margin: 12px 0 4px; display: inline-block; width: auto !important; }
}
