/* ========== 登录页专用样式 ========== */


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #b3001b 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: clip;
        }

        .sr-only {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }

        /* ========== 顶部导航栏 ========== */
        .top-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 1000;
            isolation: isolate;
            padding: 15px 40px;
            background: rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #fff;
            text-decoration: none;
        }

        .logo-icon {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .logo-text {
            font-size: 22px;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .logo-text-short {
            display: none;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            white-space: nowrap;
        }

        .nav-login-wrapper,
        .nav-login-details {
            position: relative;
        }

        .nav-login-details > summary {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            padding: 9px 16px;
            border: 1px solid rgba(255, 255, 255, 0.68);
            border-radius: 10px;
            color: #fff;
            cursor: pointer;
            font-size: 14px;
            font-weight: 650;
            list-style: none;
            transition: background 0.2s ease, border-color 0.2s ease;
            white-space: nowrap;
        }

        .nav-login-label-short {
            display: none;
        }

        .nav-login-details > summary::-webkit-details-marker {
            display: none;
        }

        .nav-login-details > summary:hover,
        .nav-login-details[open] > summary {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.14);
        }

        .nav-login-popover {
            position: absolute;
            z-index: 40;
            top: calc(100% + 10px);
            right: 0;
            box-sizing: border-box;
            width: 340px;
            padding: 16px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 14px;
            background: rgba(49, 43, 97, 0.98);
            box-shadow: 0 18px 45px rgba(25, 16, 57, 0.34);
            backdrop-filter: blur(16px);
        }

        .nav-login {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            min-width: 0;
        }

        .nav-login-status {
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 0;
            margin-top: 10px;
        }

        .login-error {
            max-width: 100%;
            margin: 0;
            padding: 9px 12px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.96);
            color: #9f0018;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.45;
            overflow-wrap: anywhere;
            white-space: normal;
        }

        .nav-login input {
            padding: 10px 15px;
            border: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            font-size: 14px;
            width: 100%;
            backdrop-filter: blur(5px);
            transition: all 0.3s ease;
        }

        .nav-login input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .nav-login input:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.3);
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
        }

        .nav-login button {
            padding: 10px 25px;
            border: 2px solid #fff;
            border-radius: 8px;
            background: transparent;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-login button:hover {
            background: #fff;
            color: #b3001b;
        }

        .nav-login .nav-forgot-pwd {
            padding: 10px 12px;
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 8px;
            background: transparent;
            color: #fff;
            font-size: 13px;
            white-space: nowrap;
        }

        .nav-new-user-link {
            display: block;
            margin: 0;
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.5;
            text-align: center;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .nav-new-user-link:hover,
        .nav-new-user-link:focus-visible {
            color: #fff;
            outline: 2px solid rgba(255, 255, 255, 0.75);
            outline-offset: 3px;
        }

        /* ========== 主内容区域 ========== */
        .main-container {
            flex: 1;
            display: flex;
            flex-wrap: wrap;
            padding: 40px;
            gap: 50px;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        /* ========== 左侧 - 功能介绍 ========== */
        .intro-section {
            flex: 1;
            color: #fff;
            padding: 20px 0;
        }

        .intro-title {
            color: #fff;
            font-size: 42px;
            font-weight: 700;
            margin-bottom: 15px;
            line-height: 1.3;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .intro-subtitle {
            font-size: 18px;
            opacity: 0.9;
            margin-bottom: 40px;
            line-height: 1.6;
            max-width: 720px;
            text-wrap: balance;
        }

        .intro-supporting-copy {
            margin-top: -24px;
            margin-bottom: 32px;
            font-size: 15px;
            opacity: 0.82;
        }

        .feature-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .feature-item {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: inherit;
            text-decoration: none;
        }

        .feature-item:hover {
            background: rgba(255, 255, 255, 0.18);
            transform: translateX(8px);
        }

        .feature-item:focus-visible {
            outline: 3px solid rgba(255, 255, 255, 0.95);
            outline-offset: 3px;
            background: rgba(255, 255, 255, 0.18);
        }

        .feature-list-swipe-hint {
            display: none;
        }

        .feature-icon-box {
            width: 50px;
            height: 50px;
            min-width: 50px;
            background: linear-gradient(135deg, #b3001b 0%, #d71191 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .feature-icon-box svg {
            width: 26px;
            height: 26px;
            color: #fff;
        }

        .feature-text h3 {
            font-size: 17px;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .feature-text p {
            font-size: 14px;
            opacity: 0.85;
            line-height: 1.5;
        }

        /* ========== 右侧 - 注册区域 ========== */
        .register-section {
            width: 450px;
            min-width: 400px;
        }

        .register-card {
            background: #fff;
            border-radius: 24px;
            padding: 35px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .register-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .register-header h2 {
            font-size: 26px;
            color: #333;
            margin-bottom: 8px;
        }

        .register-header p {
            color: #888;
            font-size: 14px;
        }

        .free-bazi-page .main-container {
            max-width: 1120px;
            align-items: flex-start;
        }

        .free-bazi-page .intro-section {
            max-width: 560px;
        }

        .free-bazi-page .feature-list,
        .free-bazi-page .feature-gallery {
            display: none;
        }

        .free-bazi-page .register-card {
            box-shadow: 0 18px 50px rgba(35, 23, 73, 0.28);
        }

        .free-bazi-explainer {
            width: 100%;
            padding: 52px max(20px, calc((100% - 1080px) / 2));
            background: #f7f5fb;
            color: #333;
        }

        .free-bazi-explainer h2 {
            margin: 0 0 24px;
            color: #352a58;
            font-size: 27px;
            text-align: center;
        }

        .free-bazi-explainer-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
        }

        .free-bazi-explainer article {
            padding: 22px;
            border: 1px solid rgba(118, 75, 162, 0.12);
            border-radius: 14px;
            background: #fff;
            box-shadow: 0 4px 18px rgba(53, 42, 88, 0.07);
        }

        .free-bazi-explainer h3 {
            margin: 0 0 8px;
            color: #b3001b;
            font-size: 17px;
        }

        .free-bazi-explainer p {
            margin: 0;
            color: #666;
            font-size: 14px;
            line-height: 1.65;
        }

        .quick-query-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            scroll-margin-top: 84px;
        }

        .quick-query-section.feature-intent-highlight {
            box-shadow: 0 0 0 3px rgba(123, 103, 209, 0.2), 0 12px 30px rgba(53, 42, 88, 0.12);
        }

        .quick-query-intent {
            margin: 0 0 14px;
            padding: 10px 12px;
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 9px;
            background: #f1f3ff;
            color: #40376f;
            font-size: 12px;
            line-height: 1.5;
        }

        .quick-query-intent[hidden],
        .register-feature-intent[hidden] {
            display: none;
        }

        .quick-query-section h3 {
            font-size: 15px;
            color: #333;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .quick-query-section h3 svg {
            width: 18px;
            height: 18px;
            color: #b3001b;
        }

        .query-error {
            display: none;
            margin-top: 10px;
            padding: 9px 11px;
            border: 1px solid #f1a8b3;
            border-radius: 8px;
            background: #fff5f7;
            color: #9f0018;
            font-size: 12px;
            line-height: 1.45;
            text-align: left;
        }

        .query-error.show {
            display: block;
        }

        .query-error strong { display: block; margin: 0; }

        .quick-result-next-step,
        .quick-result-glossary {
            margin-top: 14px;
            padding: 13px 15px;
            border: 1px solid #ead9dc;
            border-radius: 10px;
            background: #fffafb;
            color: #51474a;
            line-height: 1.55;
        }

        .quick-result-next-step p { margin: 5px 0 0; }
        .quick-result-glossary summary { cursor: pointer; color: #8b0015; font-weight: 700; }
        .quick-result-glossary dl { margin: 10px 0 0; }
        .quick-result-glossary dl > div { display:grid; grid-template-columns:80px 1fr; gap:10px; padding:7px 0; border-top:1px solid #f0e5e7; }
        .quick-result-glossary dt { font-weight:700; }
        .quick-result-glossary dd { margin:0; color:#6c6265; }

        .query-field-error {
            display: block;
            margin-top: 5px;
            color: #a50019;
            font-size: 11px;
            line-height: 1.35;
        }

        .birth-time-unknown-option,
        .lunar-leap-option {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            margin: 8px 0 14px;
            padding: 10px 12px;
            border: 1px solid #dfe4ef;
            border-radius: 9px;
            background: #f8f9fc;
            color: #333;
            cursor: pointer;
            line-height: 1.4;
        }

        .birth-time-unknown-option input,
        .lunar-leap-option input {
            width: 18px;
            height: 18px;
            margin-top: 3px;
            flex: 0 0 auto;
        }

        .birth-time-unknown-option strong,
        .birth-time-unknown-option small,
        .lunar-leap-option strong,
        .lunar-leap-option small {
            display: block;
        }

        .birth-time-unknown-option strong,
        .lunar-leap-option strong {
            font-size: 13px;
        }

        .birth-time-unknown-option small,
        .lunar-leap-option small {
            margin-top: 3px;
            color: #6b7280;
            font-size: 11px;
        }

        .birth-time-unknown-option:has(input:checked),
        .lunar-leap-option:has(input:checked) {
            border-color: #7b67d1;
            background: #f3f0ff;
        }

        .lunar-leap-option[hidden] {
            display: none;
        }

        .birth-time-disabled {
            opacity: 0.55;
        }

        .required-mark[hidden] {
            display: none;
        }

        .bazi-precision-notice {
            margin-bottom: 10px;
            padding: 9px 11px;
            border: 1px solid #e4c96b;
            border-radius: 8px;
            background: #fff9df;
            color: #725b00;
            font-size: 12px;
            line-height: 1.5;
        }

        .bazi-derived-unknown {
            display: block;
            width: 100%;
            margin-top: 4px;
            color: #725b00;
            font-size: 13px;
            line-height: 1.55;
        }

        .bazi-cell.is-unknown .bazi-gan,
        .bazi-cell.is-unknown .bazi-zhi {
            color: #8a8f99;
        }

        #query-form [aria-invalid="true"] {
            border-color: #c81d3a;
            box-shadow: 0 0 0 2px rgba(200, 29, 58, 0.12);
        }

        .bazi-approximate-notice {
            margin-bottom: 10px;
            padding: 9px 11px;
            border-radius: 8px;
            border: 1px solid #e5b84c;
            background: #fff9e8;
            color: #704f00;
            font-size: 12px;
            line-height: 1.45;
        }

        .form-row {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

        .form-row:last-child {
            margin-bottom: 0;
        }

        #query-form .query-time-location-row {
            display: grid;
            grid-template-columns: minmax(64px, 0.65fr) minmax(72px, 0.75fr) minmax(170px, 1.6fr);
        }

        #query-form .query-time-location-row .form-group {
            min-width: 0;
        }

        .form-group {
            flex: 1;
        }

        .form-group.small {
            flex: 0.7;
        }

        .form-group label {
            display: block;
            font-size: 12px;
            color: #666;
            margin-bottom: 4px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.2s ease;
            background: #fff;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #b3001b;
            box-shadow: 0 0 0 3px rgba(179, 0, 27, 0.1);
        }

        .btn-row {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .query-privacy-note {
            margin: 10px 2px 0;
            color: #6c6474;
            font-size: 12px;
            line-height: 1.55;
            text-align: center;
        }

        .query-privacy-note a {
            color: #6a4fb1;
            font-weight: 600;
            text-underline-offset: 2px;
        }

        .btn-query {
            flex: 1;
            padding: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-query:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }

        .btn-register {
            flex: 1;
            padding: 12px;
            background: linear-gradient(135deg, #b3001b 0%, #d71191 100%);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-register:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(179, 0, 27, 0.4);
        }

        .btn-register:disabled,
        .btn-register[aria-disabled="true"] {
            background: #b8b0ba;
            box-shadow: none;
            cursor: not-allowed;
            opacity: 0.9;
            transform: none;
        }

        .btn-register:disabled:hover,
        .btn-register[aria-disabled="true"]:hover {
            transform: none;
            box-shadow: none;
        }

        #zodiac-result {
            margin-top: 15px;
            padding: 15px 18px;
            background: linear-gradient(135deg, #fff5f7 0%, #f8f0ff 100%);
            border-radius: 10px;
            color: #333;
            font-size: 14px;
            line-height: 1.9;
            display: none;
            border: 1px solid rgba(179, 0, 27, 0.1);
        }

        #zodiac-result .result-label {
            color: #888;
            font-size: 13px;
        }

        #zodiac-result .result-value {
            color: #b3001b;
            font-weight: 600;
        }

        #zodiac-result.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .quick-result-section {
            flex: 0 0 100%;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 0 48px;
            scroll-margin-top: 84px;
        }

        .quick-result-section[hidden] {
            display: none;
        }

        .quick-result-section #zodiac-result {
            max-width: 1120px;
            margin: 0 auto;
            padding: 28px 32px;
            border-radius: 20px;
            box-shadow: 0 18px 52px rgba(35, 23, 73, 0.22);
        }

        .bazi-plain-summary {
            margin-top: 14px;
            padding: 14px 16px;
            border: 1px solid #dce2f4;
            border-radius: 11px;
            background: linear-gradient(135deg, #f6f8ff 0%, #fff 100%);
            color: #3f4663;
            line-height: 1.6;
        }

        .bazi-plain-summary h3 {
            display: block;
            margin: 0 0 4px;
            color: #352a58;
            font-size: 14px;
        }

        .bazi-plain-summary p {
            margin: 0;
            font-size: 13px;
        }

        .bazi-loading-notice,
        .bazi-stale-notice {
            padding: 12px 14px;
            border-radius: 10px;
            font-size: 14px;
            line-height: 1.5;
            text-align: center;
        }

        .bazi-loading-notice {
            color: #5b4b8a;
            background: #f2efff;
        }

        .bazi-stale-notice {
            margin-bottom: 16px;
            color: #764b00;
            background: #fff6da;
            border: 1px solid #e9c96d;
            font-weight: 600;
        }

        #zodiac-result.is-stale .bazi-result-full {
            opacity: 0.5;
        }

        #zodiac-result .bazi-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
        }

        #zodiac-result .bazi-cell {
            padding: 16px 12px;
        }

        #zodiac-result .bazi-label {
            font-size: 12px;
            font-weight: 500;
            margin: 0;
        }

        #zodiac-result .bazi-gan {
            font-size: 28px;
        }

        #zodiac-result .bazi-zhi {
            font-size: 22px;
        }

        #zodiac-result .bazi-shishen,
        #zodiac-result .bazi-cang,
        #zodiac-result .bazi-nayin-label {
            margin-top: 5px;
            font-size: 12px;
            line-height: 1.4;
        }

        .bazi-term-gloss {
            display: block;
            min-height: 1.3em;
            margin-top: 2px;
            color: #69616d;
            font-size: 11px;
            line-height: 1.3;
        }

        /* ── 八字排盘结果完整样式 ── */
        .bazi-result-full {
            padding: 0;
        }

        .bazi-result-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0 0 10px 0;
            border-bottom: 1px solid rgba(179,0,27,0.1);
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .bazi-result-icon { font-size: 20px; }

        .bazi-result-title {
            font-weight: 700;
            color: #8b0014;
            font-size: 15px;
            margin: 0;
        }

        .quick-result-loading-title {
            margin: 0 0 12px;
            color: #8b0014;
            font-size: 18px;
        }

        .bazi-result-title:focus-visible,
        .quick-result-loading-title:focus-visible {
            outline: none;
            border-radius: 8px;
            background: rgba(102, 126, 234, 0.08);
            box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.16);
        }

        @media (forced-colors: active) {
            .bazi-result-title:focus-visible,
            .quick-result-loading-title:focus-visible {
                outline: 2px solid CanvasText;
                outline-offset: 4px;
                box-shadow: none;
            }
        }

        .bazi-result-zodiac {
            font-size: 12px;
            color: #999;
            margin-left: auto;
        }

        .bazi-result-clear {
            min-height: 32px;
            padding: 6px 10px;
            border: 1px solid #d9cdd1;
            border-radius: 8px;
            background: #fff;
            color: #685b61;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
        }

        .bazi-result-clear:hover,
        .bazi-result-clear:focus-visible {
            border-color: #8b0014;
            color: #8b0014;
            outline: none;
        }

        .bazi-shishen {
            display: block;
            font-size: 9px;
            color: #b3001b;
            opacity: 0.8;
            line-height: 1.2;
            margin-top: -2px;
        }

        .bazi-cang {
            display: block;
            font-size: 9px;
            color: #aaa;
            line-height: 1.2;
            margin-top: 1px;
        }

        .bazi-nayin-label {
            display: block;
            font-size: 9px;
            color: #999;
            line-height: 1.2;
            margin-top: 2px;
        }

        .bazi-cell .bazi-gan {
            margin-bottom: 1px;
        }

        .bazi-cell .bazi-zhi {
            margin-bottom: 0;
        }

        /* 五行统计柱状图 */
        .bazi-wuxing-bar {
            display: flex;
            gap: 8px;
            margin: 10px 0;
            padding: 8px 10px;
            background: #f8f9fa;
            border-radius: 8px;
        }

        .wx-bar-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
        }

        .wx-bar-label {
            font-size: 11px;
            font-weight: 700;
            color: #555;
        }

        .wx-bar-track {
            width: 100%;
            height: 8px;
            background: #e8e8e8;
            border-radius: 4px;
            overflow: hidden;
        }

        .wx-bar-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.4s ease;
        }

        .wx-bar-木 { background: #4caf50; }
        .wx-bar-火 { background: #f44336; }
        .wx-bar-土 { background: #ff9800; }
        .wx-bar-金 { background: #9e9e9e; }
        .wx-bar-水 { background: #2196f3; }

        .wx-bar-count {
            font-size: 10px;
            color: #999;
            font-weight: 600;
        }

        .wx-lack {
            color: #ccc;
        }

        .wx-dominant {
            color: #b3001b;
            font-weight: 600;
        }

        /* 注册解锁 CTA */
        .bazi-register-cta {
            margin-top: 12px;
            padding: 14px;
            border: 1px dashed #d8a0a8;
            border-radius: 12px;
            background: #fff7f8;
            text-align: center;
        }

        .bazi-lock-msg {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 13px;
            color: #b3001b;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .bazi-lock-msg svg {
            flex-shrink: 0;
        }

        .registration-verification-note {
            margin: -2px 0 10px;
            color: #6c6474;
            font-size: 12px;
            line-height: 1.45;
        }

        .bazi-register-cta .btn-register {
            width: 100%;
        }

        @media (max-width: 600px) {
            .quick-result-section {
                padding: 0 16px 28px;
            }

            .quick-result-section #zodiac-result {
                padding: 18px 14px;
                border-radius: 16px;
            }

            #zodiac-result .bazi-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }

            #zodiac-result .bazi-cell {
                padding: 14px 10px;
            }

            #zodiac-result .bazi-gan {
                font-size: 25px;
            }

            #zodiac-result .bazi-zhi {
                font-size: 20px;
            }

            #zodiac-result .bazi-shishen,
            #zodiac-result .bazi-cang,
            #zodiac-result .bazi-nayin-label {
                font-size: 12px;
            }

            .bazi-result-zodiac {
                margin-left: 0;
                width: 100%;
            }
            .bazi-result-clear {
                width: auto;
                margin-left: auto;
            }
            .bazi-wuxing-bar {
                flex-wrap: wrap;
                gap: 4px;
            }
            .wx-bar-item {
                min-width: 30%;
                flex: none;
            }
            .bazi-plain-summary {
                padding: 12px;
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .divider {
            display: flex;
            align-items: center;
            margin: 25px 0;
            color: #ccc;
            font-size: 13px;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e0e0e0;
        }

        .divider span {
            padding: 0 15px;
        }

        .benefit-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .benefit-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 15px;
            background: #f8f9fa;
            border-radius: 10px;
            font-size: 14px;
            color: #555;
            transition: all 0.2s ease;
        }

        .benefit-item:hover {
            background: #fff5f7;
            color: #b3001b;
        }

        .benefit-icon {
            width: 28px;
            height: 28px;
            min-width: 28px;
            background: linear-gradient(135deg, #b3001b 0%, #d71191 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .benefit-icon svg {
            width: 16px;
            height: 16px;
            color: #fff;
        }

        /* ========== 注册模态框 ========== */
        #register-modal .modal-box {
            max-width: 620px;
            padding: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        #register-modal .modal-header {
            margin: 0;
            padding: 22px 64px 12px 22px;
            text-align: left;
        }

        #register-modal .modal-header h2 {
            font-size: 22px;
        }

        #register-modal .modal-close {
            top: 18px;
            right: 18px;
        }

        #register-modal [hidden] {
            display: none !important;
        }

        .registration-progress {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin: 0;
            padding: 0 22px 16px;
            border-bottom: 1px solid #ececf2;
        }

        .registration-progress li {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            margin-bottom: 0;
            color: #888;
            font-size: 13px;
        }

        .registration-progress li span {
            min-width: 0;
            margin-left: 0;
            text-align: left;
        }

        .registration-progress-number {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            background: #f1eff2;
            color: #777;
            font-weight: 600;
        }

        .registration-progress li.is-active {
            color: #333;
            font-weight: 600;
        }

        .registration-progress li.is-active .registration-progress-number {
            background: #b3001b;
            color: #fff;
        }

        #register-modal .register-form {
            min-height: 0;
            flex: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .registration-panels {
            min-height: 0;
            flex: 1;
            padding: 18px 22px 0;
            overflow-y: auto;
            overscroll-behavior: contain;
        }

        .registration-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 22px 18px;
            border-top: 1px solid #ececf2;
            background: #fff;
        }

        .registration-actions .btn-submit {
            flex: 1;
            width: auto;
            margin-top: 0;
        }

        .btn-registration-back {
            min-height: 48px;
            padding: 0 18px;
            border: 1px solid #ddd;
            border-radius: 12px;
            background: #fff;
            color: #555;
            cursor: pointer;
            font-size: 14px;
        }

        .btn-registration-back:hover {
            background: #f7f7f7;
            border-color: #ccc;
        }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            z-index: 10000;
            justify-content: center;
            align-items: center;
        }

        .modal-overlay.show {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        .modal-box {
            background: #fff;
            border-radius: 24px;
            padding: 35px;
            width: 90%;
            max-width: 480px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 36px;
            height: 36px;
            border: none;
            background: #f0f0f0;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .modal-close:hover {
            background: #e0e0e0;
            transform: rotate(90deg);
        }

        .modal-close svg {
            width: 20px;
            height: 20px;
            color: #666;
        }

        .modal-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .modal-header h2 {
            font-size: 24px;
            color: #333;
            margin-bottom: 8px;
        }

        .modal-header p {
            color: #888;
            font-size: 14px;
        }

        .modal-header .register-feature-intent {
            margin-top: 9px;
            padding: 7px 10px;
            border-radius: 8px;
            background: #f1f3ff;
            color: #4b3f82;
            font-weight: 600;
            line-height: 1.4;
        }

        .register-form .form-group {
            margin-bottom: 15px;
        }

        .query-city-hint {
            display: block;
            margin-top: 5px;
            color: #777;
            font-size: 11px;
            line-height: 1.4;
        }

        .register-city-hint {
            display: block;
            margin-top: 5px;
            color: #777;
            font-size: 11px;
            line-height: 1.5;
        }

        .city-selection-status {
            display: block;
            margin-top: 6px;
            padding: 7px 9px;
            border: 1px solid #bfe4cb;
            border-radius: 8px;
            background: #eef9f2;
            color: #1f6b3a;
            font-size: 11px;
            line-height: 1.4;
        }

        .city-selection-status[hidden] {
            display: none;
        }

        .city-selection-status[data-state="searching"],
        .city-selection-status[data-state="candidates"] {
            border-color: #cbd5f5;
            background: #f3f6ff;
            color: #364b84;
        }

        .city-selection-status[data-state="empty"],
        .city-selection-status[data-state="unavailable"],
        .city-selection-status[data-state="invalid"] {
            border-color: #efb8c1;
            background: #fff1f3;
            color: #8b0015;
        }

        .city-suggestion-list {
            max-height: 240px;
            margin-top: 6px;
            overflow-y: auto;
            overscroll-behavior: contain;
            border: 1px solid #cbd5e1;
            border-radius: 10px;
            background: #fff;
            box-shadow: 0 12px 30px rgba(35, 23, 73, 0.16);
        }

        .city-suggestion-list[hidden] {
            display: none;
        }

        .city-suggestion-option {
            padding: 10px 12px;
            border-bottom: 1px solid #edf0f5;
            color: #2f2940;
            cursor: pointer;
            line-height: 1.35;
        }

        .city-suggestion-option:last-child {
            border-bottom: 0;
        }

        .city-suggestion-option:hover,
        .city-suggestion-option[data-active="true"] {
            background: #f1f3ff;
            color: #4c3784;
        }

        .city-suggestion-option[aria-selected="true"] {
            background: #eef9f2;
            color: #1f6b3a;
        }

        .city-suggestion-label {
            display: block;
            font-size: 13px;
            font-weight: 650;
        }

        .city-suggestion-meta {
            display: block;
            margin-top: 3px;
            color: #697386;
            font-size: 11px;
        }

        .query-city-attribution {
            display: block;
            margin-top: 3px;
            font-size: 10px;
        }

        .query-city-attribution a {
            color: #777;
        }

        .registration-step {
            border: 0;
            padding: 0;
            margin: 0 0 24px;
        }

        .registration-step:last-child {
            margin-bottom: 0;
        }

        .registration-step > h3 {
            display: flex;
            align-items: center;
            gap: 9px;
            margin: 0 0 14px;
            padding-bottom: 9px;
            border-bottom: 1px solid #ececf2;
            color: #333;
            font-size: 15px;
        }

        .registration-step > h3 > span:first-child {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #b3001b;
            color: #fff;
            font-size: 12px;
        }

        .registration-step.registration-subsection > h3 > span:first-child {
            width: auto;
            height: auto;
            border-radius: 0;
            background: transparent;
            color: #333;
            font-size: 15px;
        }

        .registration-step-hint {
            margin: -5px 0 14px;
            color: #777;
            font-size: 12px;
            line-height: 1.5;
        }

        .register-form .form-group label {
            display: block;
            font-size: 13px;
            color: #555;
            margin-bottom: 6px;
            font-weight: 500;
        }

        .register-form .form-group input,
        .register-form .form-group select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .register-form .form-group input:focus,
        .register-form .form-group select:focus {
            outline: none;
            border-color: #b3001b;
            box-shadow: 0 0 0 3px rgba(179, 0, 27, 0.1);
        }

        .password-input-wrapper {
            position: relative;
        }

        .password-input-wrapper input {
            padding-right: 68px !important;
        }

        .password-visibility-toggle {
            position: absolute;
            top: 50%;
            right: 6px;
            min-width: 50px;
            min-height: 34px;
            padding: 0 8px;
            transform: translateY(-50%);
            border: 0;
            border-radius: 7px;
            background: #f2f0f4;
            color: #5b5360;
            font-size: 12px;
            cursor: pointer;
        }

        .password-visibility-toggle:hover {
            background: #e9e4ec;
        }

        .password-visibility-toggle:focus-visible {
            outline: 2px solid #b3001b;
            outline-offset: 2px;
        }

        .password-strength {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 7px;
            color: #746d77;
            font-size: 11px;
        }

        .password-strength-bars {
            display: grid;
            grid-template-columns: repeat(3, 22px);
            gap: 3px;
        }

        .password-strength-bars i {
            height: 4px;
            border-radius: 999px;
            background: #ded9e1;
        }

        .password-strength[data-strength="weak"] .password-strength-bars i:first-child {
            background: #c63a4f;
        }

        .password-strength[data-strength="medium"] .password-strength-bars i:nth-child(-n+2) {
            background: #d47a18;
        }

        .password-strength[data-strength="strong"] .password-strength-bars i {
            background: #25824a;
        }

        .password-rules {
            display: flex;
            flex-wrap: wrap;
            gap: 5px 14px;
            margin: 6px 0 0;
            padding: 0;
            list-style: none;
            color: #777;
            font-size: 11px;
        }

        .password-rules li::before {
            content: '○';
            margin-right: 4px;
        }

        .password-rules li.is-met {
            color: #25824a;
        }

        .password-rules li.is-met::before {
            content: '✓';
        }

        .register-form .form-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .register-form .form-row.two-col {
            grid-template-columns: repeat(2, 1fr);
        }

        .btn-submit {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #b3001b 0%, #d71191 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(179, 0, 27, 0.4);
        }

        .form-note {
            text-align: center;
            margin-top: 15px;
            font-size: 12px;
            color: #999;
        }

        .legal-consent {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px;
            border: 1px solid #e6e1ea;
            border-radius: 10px;
            background: #faf9fc;
            color: #625b66;
            font-size: 13px;
            line-height: 1.65;
            text-align: left;
            cursor: pointer;
        }

        .legal-consent input {
            width: 20px;
            height: 20px;
            margin: 1px 0 0;
            flex: 0 0 auto;
            accent-color: #b3001b;
        }

        .legal-consent a {
            display: inline-block;
            padding: 2px 1px;
            color: #8f0016;
            font-weight: 600;
            text-underline-offset: 2px;
        }

        /* ========== 匹配确认模态框 ========== */
        .match-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 20px;
            max-height: 350px;
            overflow-y: auto;
        }

        .match-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .match-item:hover {
            border-color: #b3001b;
            background: #fff5f7;
        }

        .match-item.selected {
            border-color: #b3001b;
            background: #fff0f3;
        }

        .match-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: #b3001b;
            flex-shrink: 0;
        }

        .match-info {
            flex: 1;
        }

        .match-name {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
        }

        .match-detail {
            font-size: 13px;
            color: #888;
        }

        .match-reason {
            display: inline-block;
            font-size: 11px;
            color: #b3001b;
            background: #fff0f3;
            padding: 2px 8px;
            border-radius: 4px;
            margin-top: 4px;
        }

        .match-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .btn-skip-merge {
            width: 100%;
            padding: 12px;
            background: transparent;
            color: #666;
            border: 1px solid #ddd;
            border-radius: 12px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-skip-merge:hover {
            background: #f5f5f5;
            color: #333;
        }

        .forgot-pwd-actions {
            display: flex;
            gap: 8px;
        }

        .forgot-pwd-actions > button {
            display: inline-flex;
            flex: 1 1 0;
            align-items: center;
            justify-content: center;
            min-width: 0;
            min-height: 46px;
            margin-top: 0;
            padding: 0 12px;
            font-size: 14px;
            line-height: 1.2;
        }

        .btn-submit:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            filter: grayscale(0.45);
        }

        .register-form-error {
            display: none;
            margin: 0 0 12px;
            padding: 10px 12px;
            border: 1px solid #f1a8b3;
            border-radius: 9px;
            background: #fff5f7;
            color: #9f0018;
            font-size: 12px;
            line-height: 1.45;
            scroll-margin-top: 12px;
        }

        .register-form-error.show {
            display: block;
        }

        .registration-field-error {
            display: block;
            margin-top: 5px;
            color: #9f0018;
            font-size: 11px;
            line-height: 1.4;
        }

        .register-form [aria-invalid="true"] {
            border-color: #b3001b !important;
            box-shadow: 0 0 0 2px rgba(179, 0, 27, 0.1);
        }

        /* ========== 验证码样式 ========== */
        .verify-field-wrapper {
            display: flex;
            gap: 8px;
            align-items: flex-start;
        }

        .verify-field-wrapper .form-group {
            flex: 1;
            margin-bottom: 0;
        }

        .verify-field-wrapper .form-group input {
            width: 100%;
        }

        .btn-send-code {
            padding: 12px 16px;
            min-width: 110px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            height: 46px; /* 与输入框等高 */
            align-self: flex-end;
        }

        .btn-send-code:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .btn-send-code:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-send-code.is-verified {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            cursor: default;
        }

        .verify-code-row {
            display: flex;
            gap: 8px;
            align-items: center;
            margin-top: 6px;
        }

        .verify-code-row input {
            flex: 1;
            padding: 10px 12px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
        }

        .verify-code-row input:focus {
            outline: none;
            border-color: #b3001b;
            box-shadow: 0 0 0 3px rgba(179, 0, 27, 0.1);
        }

        .verify-code-row input.is-verified {
            border-color: #28a745;
            background: #f0fff4;
        }

        .btn-verify-code {
            padding: 10px 16px;
            background: #b3001b;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .btn-verify-code:hover:not(:disabled) {
            background: #8b0014;
        }

        .btn-verify-code:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn-verify-code.is-verified {
            background: #28a745;
        }

        .verify-status {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            margin-top: 4px;
        }

        .verify-status.success {
            color: #28a745;
        }

        .verify-status.error {
            color: #dc3545;
        }

        .verify-status.loading {
            color: #666;
        }

        .forgot-pwd-target-feedback {
            margin: 6px 2px 0;
            color: #6c6474;
            font-size: 12px;
            line-height: 1.45;
        }

        .forgot-pwd-target-feedback.error {
            color: #c81d3a;
        }

        #forgot-pwd-target[aria-invalid="true"] {
            border-color: #c81d3a !important;
            box-shadow: 0 0 0 2px rgba(200, 29, 58, 0.12);
        }

        .forgot-pwd-human-challenge {
            margin-bottom: 12px;
            padding: 10px;
            border: 1px solid #e3dfeb;
            border-radius: 10px;
            background: #faf9fc;
        }

        .forgot-pwd-human-challenge[hidden] {
            display: none;
        }

        .forgot-pwd-challenge-heading,
        .forgot-pwd-challenge-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .forgot-pwd-challenge-heading {
            justify-content: space-between;
            margin-bottom: 7px;
            color: #555;
            font-size: 13px;
            font-weight: 600;
        }

        .forgot-pwd-challenge-refresh {
            padding: 3px 6px;
            border: 0;
            background: transparent;
            color: #6656a8;
            font-size: 12px;
            cursor: pointer;
        }

        .forgot-pwd-challenge-refresh:disabled {
            opacity: 0.5;
            cursor: wait;
        }

        .forgot-pwd-challenge-row img {
            width: 180px;
            height: 58px;
            flex: 0 0 180px;
            border: 1px solid #ded9e8;
            border-radius: 8px;
            background: #f2f0f6;
            object-fit: cover;
        }

        .forgot-pwd-challenge-row input {
            width: 100%;
            min-width: 0;
            padding: 12px 8px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            text-align: center;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        @media (max-width: 420px) {
            .forgot-pwd-challenge-row img {
                width: 150px;
                flex-basis: 150px;
            }
        }

        /* ========== 底部 ========== */
        .footer {
            text-align: center;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.7);
            padding: 25px 20px;
            background: rgba(0, 0, 0, 0.1);
        }

        .footer a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .footer a:hover {
            color: #fff;
            text-decoration: underline;
        }

        @media (min-width: 1025px) and (max-height: 760px) {
            .main-container {
                padding: 16px 32px 24px;
                gap: 36px;
            }

            .intro-section {
                padding: 2px 0;
            }

            .intro-title {
                margin-bottom: 8px;
                font-size: 34px;
            }

            .intro-subtitle {
                margin-bottom: 16px;
                font-size: 16px;
            }

            .intro-supporting-copy {
                margin-top: -8px;
                margin-bottom: 16px;
                font-size: 13px;
            }

            .feature-list {
                gap: 10px;
            }

            .feature-item {
                gap: 12px;
                padding: 11px 14px;
            }

            .feature-icon-box {
                width: 38px;
                height: 38px;
                min-width: 38px;
                border-radius: 9px;
            }

            .feature-icon-box svg {
                width: 21px;
                height: 21px;
            }

            .feature-text h3 {
                margin-bottom: 2px;
                font-size: 15px;
            }

            .feature-text p {
                font-size: 12px;
                line-height: 1.35;
            }

            .register-card {
                padding: 18px 22px;
            }

            .register-header {
                margin-bottom: 10px;
            }

            .register-header h2 {
                margin-bottom: 3px;
                font-size: 22px;
            }

            .quick-query-section {
                margin-bottom: 0;
                padding: 12px 14px;
            }

            .quick-query-section h3,
            .form-row {
                margin-bottom: 6px;
            }

            .form-group input,
            .form-group select {
                padding: 7px 9px;
            }

            .birth-time-unknown-option,
            .lunar-leap-option {
                margin: 5px 0 7px;
                padding: 7px 9px;
            }

            .birth-time-unknown-option small,
            .lunar-leap-option small {
                margin-top: 1px;
                line-height: 1.25;
            }

            .query-city-hint {
                display: none;
            }

            .btn-row {
                margin-top: 8px;
            }

            .btn-query {
                padding: 9px;
            }

            .query-privacy-note {
                margin-top: 5px;
                font-size: 11px;
                line-height: 1.35;
            }
        }

        /* ========== 响应式设计 ========== */
        @media (max-width: 1024px) {
            .main-container {
                flex-direction: column;
                padding: 30px 20px;
                gap: 30px;
            }

            .register-section {
                width: 100%;
                min-width: auto;
                max-width: 500px;
                margin: 0 auto;
            }

            .intro-title {
                font-size: 32px;
            }
        }

        @media (max-width: 600px) {
            .top-nav {
                flex-direction: row;
                align-items: center;
                gap: 8px;
                padding: 10px 12px;
            }

            .nav-login-wrapper {
                width: auto;
                margin-left: auto;
                flex-direction: row !important;
                align-items: center !important;
                gap: 8px !important;
            }

            .nav-login-details {
                width: auto;
                max-width: none;
            }

            .nav-login-details > summary {
                display: flex;
                align-items: center;
                justify-content: center;
                min-height: 44px;
                padding: 8px 12px;
                border: 1px solid rgba(255, 255, 255, 0.65);
                border-radius: 9px;
                color: #fff;
                cursor: pointer;
                font-size: 14px;
                font-weight: 600;
                list-style: none;
                white-space: nowrap;
            }

            .nav-login-details > summary::-webkit-details-marker {
                display: none;
            }

            .nav-login-details[open] > summary {
                background: rgba(255, 255, 255, 0.12);
            }

            .nav-login-details[open] {
                width: auto;
            }

            .nav-login-popover {
                position: fixed;
                top: 64px;
                right: 12px;
                left: 12px;
                width: auto;
                max-height: calc(100vh - 76px);
                max-height: calc(100dvh - 76px);
                padding: 14px;
                overflow-y: auto;
                overscroll-behavior: contain;
            }

            .nav-login-wrapper .login-lang-switcher {
                width: auto;
                display: flex;
                justify-content: center;
            }

            .logo-icon {
                width: 40px;
                height: 40px;
            }

            .logo-text {
                display: block;
                max-width: 128px;
                overflow: hidden;
                font-size: 14px;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .nav-login {
                width: 100%;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px 10px;
            }

            .nav-login input {
                grid-column: 1 / -1;
                min-height: 44px;
            }

            .nav-login button {
                min-height: 44px;
            }

            .nav-login-status {
                gap: 12px;
                margin-top: 12px;
            }

            .nav-new-user-link {
                padding: 2px 8px;
            }

            .login-error {
                padding: 10px 12px;
                font-size: 13px;
                line-height: 1.5;
                text-align: left;
            }

            .main-container {
                padding: 18px 16px 28px;
                gap: 16px;
            }

            #query-form input,
            #query-form select,
            #query-form button {
                min-height: 44px;
            }

            #query-form input,
            #query-form select {
                font-size: 16px;
            }

            .birth-time-unknown-option input,
            .lunar-leap-option input {
                width: 22px;
                height: 22px;
                margin-top: 1px;
            }

            .intro-section {
                display: contents;
            }

            .intro-title,
            .intro-subtitle {
                order: 1;
                color: #fff;
            }

            .intro-title {
                margin-bottom: 6px;
                font-size: 26px;
            }

            .intro-subtitle {
                margin-bottom: 6px;
                font-size: 15px;
                line-height: 1.5;
            }

            .visitor-proof {
                display: block;
                margin: 2px 0 4px;
                padding: 8px 10px;
                border: 1px solid rgba(255, 255, 255, 0.25);
                border-radius: 9px;
                background: rgba(255, 255, 255, 0.1);
                font-size: 12px;
            }

            .register-section {
                order: 3;
            }

            .feature-list {
                order: 2;
                display: flex;
                flex-direction: row;
                gap: 10px;
                width: 100%;
                max-width: calc(100vw - 32px);
                min-width: 0;
                padding: 2px 0 6px;
                overflow-x: auto;
                color: #fff;
                scroll-snap-type: x proximity;
                scrollbar-width: thin;
                scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
            }

            .free-bazi-page .feature-list {
                display: none;
            }

            .feature-list .feature-item {
                flex: 0 0 158px;
                align-items: center;
                gap: 9px;
                min-height: 58px;
                scroll-snap-align: start;
                color: #fff;
            }

            .feature-list .feature-icon-box {
                width: 36px;
                height: 36px;
                min-width: 36px;
                border-radius: 9px;
            }

            .feature-list .feature-icon-box svg {
                width: 19px;
                height: 19px;
            }

            .feature-list .feature-text h3 {
                margin: 0;
                font-size: 13px;
                line-height: 1.3;
            }

            .feature-list .feature-text p {
                display: none;
            }

            .feature-list-swipe-hint {
                order: 2;
                display: block;
                margin: -4px 0 4px;
                color: rgba(255, 255, 255, .86);
                font-size: 12px;
            }

            .free-bazi-page .feature-list-swipe-hint {
                display: none;
            }

            .nav-login input {
                width: 100%;
                max-width: none;
            }

            .nav-login button {
                width: 100%;
                max-width: none;
            }

            .free-bazi-page .main-container {
                gap: 18px;
            }

            .quick-result-section {
                order: 4;
                padding: 0 0 28px;
            }

            .free-bazi-page .intro-title {
                margin-bottom: 8px;
            }

            .free-bazi-page .intro-subtitle {
                margin-bottom: 30px;
                font-size: 16px;
            }

            .free-bazi-page .intro-supporting-copy {
                margin-top: -20px;
                margin-bottom: 8px;
                font-size: 13px;
            }

            .free-bazi-explainer {
                padding: 34px 16px;
            }

            .free-bazi-explainer h2 {
                margin-bottom: 18px;
                font-size: 22px;
            }

            .free-bazi-explainer-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .feature-item {
                padding: 10px;
            }

            .register-card {
                padding: 22px 16px;
            }

            .form-row {
                flex-direction: column;
            }

            #query-form .query-date-row {
                display: grid;
                grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.8fr));
                gap: 8px;
            }

            #query-form .query-time-location-row {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            #query-form .query-time-location-row .form-group:last-child {
                grid-column: 1 / -1;
            }

            .register-form .form-row {
                grid-template-columns: repeat(2, 1fr);
            }

            #register-modal .registration-date-row {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 6px;
            }

            #register-modal .registration-identity-row {
                grid-template-columns: minmax(0, 1.45fr) minmax(96px, 0.75fr);
                gap: 8px;
            }

            #register-modal .registration-calendar-row {
                grid-template-columns: minmax(0, 1fr);
            }

            #register-modal .registration-time-location-row {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            #register-modal .registration-city-field {
                grid-column: 1 / -1;
            }

            .modal-box {
                width: calc(100% - 24px);
                max-height: calc(100vh - 24px);
                padding: 28px 20px 22px;
                border-radius: 18px;
            }

            #register-modal .modal-box {
                width: 100%;
                max-height: calc(100vh - 10px);
                max-height: calc(100dvh - 10px);
                padding: 0;
                border-radius: 18px 18px 0 0;
            }

            #register-modal {
                align-items: flex-end;
            }

            #register-modal .modal-header {
                padding: 18px 54px 10px 18px;
            }

            #register-modal .modal-header h2 {
                font-size: 19px;
                margin-bottom: 4px;
            }

            #register-modal .modal-header p {
                display: none;
            }

            #register-modal .modal-close {
                top: 14px;
                right: 14px;
            }

            .registration-progress {
                padding: 0 18px 13px;
                gap: 8px;
            }

            .registration-panels {
                padding: 12px 16px 0;
            }

            .registration-actions {
                padding: 10px 16px max(12px, env(safe-area-inset-bottom));
            }

            .registration-step {
                margin-bottom: 16px;
            }

            .register-form .form-group {
                margin-bottom: 9px;
            }

            #register-modal .register-form .form-group label {
                margin-bottom: 4px;
                font-size: 12px;
            }

            #register-modal .register-form .form-group input,
            #register-modal .register-form .form-group select {
                min-height: 44px;
                padding: 9px 11px;
                font-size: 16px;
            }

            #register-modal .birth-time-unknown-option {
                margin: 1px 0 10px;
                padding: 9px 10px;
            }

            #register-modal .birth-time-unknown-option small {
                margin-top: 2px;
                line-height: 1.35;
            }

            #register-modal .registration-advanced {
                margin: 2px 0 10px;
                padding: 8px 10px;
            }

            #register-modal .city-selection-status,
            #register-modal .register-city-hint,
            #register-modal .password-strength,
            #register-modal .password-rules {
                font-size: 12px;
            }

            #register-modal .legal-consent {
                margin-top: 10px;
                padding: 12px;
                gap: 11px;
                font-size: 13px;
                line-height: 1.75;
            }

            #register-modal .legal-consent input {
                width: 22px;
                height: 22px;
            }

            #register-modal .legal-consent a {
                padding: 3px 1px;
            }
        }

        /* ── 真太阳时校正选项 ── */
        .solar-time-option {
            margin: 6px 0 10px 0;
            padding: 10px 12px;
            background: linear-gradient(135deg, #f8f9fe 0%, #f0f3ff 100%);
            border-radius: 8px;
            border: 1px solid #e0e6f4;
            transition: border-color 0.25s, box-shadow 0.25s;
        }

        .solar-time-option:hover {
            border-color: #b0bce8;
            box-shadow: 0 1px 6px rgba(102, 126, 234, 0.08);
        }

        .registration-advanced > summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            min-height: 24px;
            color: #666;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            list-style: none;
        }

        .registration-advanced > summary::-webkit-details-marker {
            display: none;
        }

        .registration-advanced > summary::after {
            content: '⌄';
            color: #777;
            font-size: 15px;
            line-height: 1;
            transition: transform 0.2s ease;
        }

        .registration-advanced[open] > summary {
            margin-bottom: 9px;
        }

        .registration-advanced[open] > summary::after {
            transform: rotate(180deg);
        }

        .solar-checkbox {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            user-select: none;
            position: relative;
            padding: 2px 0;
        }

        .solar-checkbox input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .solar-checkbox-mark {
            width: 22px;
            height: 22px;
            border: 2px solid #c8cfe6;
            border-radius: 5px;
            background: #fff;
            flex-shrink: 0;
            transition: all 0.25s ease;
            position: relative;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }

        .solar-checkbox:hover .solar-checkbox-mark {
            border-color: #8a9ad0;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
        }

        .solar-checkbox input:checked + .solar-checkbox-mark {
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-color: #667eea;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
        }

        .solar-checkbox input:checked + .solar-checkbox-mark::after {
            content: '';
            position: absolute;
            left: 6px;
            top: 2px;
            width: 6px;
            height: 11px;
            border: solid #fff;
            border-width: 0 2.5px 2.5px 0;
            transform: rotate(45deg);
            animation: solar-check-appear 0.2s ease-out;
        }

        @keyframes solar-check-appear {
            0% { opacity: 0; transform: rotate(45deg) scale(0.5); }
            100% { opacity: 1; transform: rotate(45deg) scale(1); }
        }

        .solar-checkbox-text {
            font-size: 13px;
            color: #555;
            line-height: 1.4;
        }

        .solar-tooltip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            font-size: 11px;
            border-radius: 50%;
            background: #e0e4f0;
            color: #888;
            cursor: help;
            position: relative;
            margin-left: 2px;
            transition: background 0.2s;
        }

        .solar-tooltip:hover {
            background: #667eea;
            color: #fff;
        }

        .solar-tooltip:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: calc(100% + 10px);
            left: 50%;
            transform: translateX(-50%);
            background: #2c2c3a;
            color: #f0f0f0;
            font-size: 12px;
            line-height: 1.5;
            padding: 10px 14px;
            border-radius: 8px;
            width: 260px;
            white-space: normal;
            text-align: left;
            z-index: 100;
            box-shadow: 0 4px 16px rgba(0,0,0,0.18);
            font-weight: 400;
        }

        .solar-tooltip:hover::before {
            content: '';
            position: absolute;
            bottom: calc(100% + 3px);
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: #2c2c3a;
        }

        /* ========== 功能预览画廊 ========== */
        .feature-gallery {
            margin: 18px 0 10px;
            user-select: none;
        }

        .feature-gallery[hidden] {
            display: none !important;
        }

        .gallery-demo-notice {
            margin-bottom: 8px;
            padding: 7px 10px;
            border-radius: 8px;
            background: #fff8df;
            border: 1px solid #ead58a;
            color: #6b5200;
            text-align: center;
            font-size: 11px;
            font-weight: 600;
            line-height: 1.35;
        }

        .gallery-nav {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .gallery-viewport {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            border-radius: 14px;
            position: relative;
            background: linear-gradient(135deg, #faf6ff 0%, #fff5f7 100%);
            border: 1px solid rgba(179, 0, 27, 0.08);
        }

        .gallery-track {
            display: flex;
            width: 100%;
            transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform;
        }

        .gallery-slide {
            flex: 0 0 100%;
            min-width: 0;
            max-width: 100%;
            padding: 0;
        }

        .gallery-arrow {
            width: 32px;
            height: 32px;
            min-width: 32px;
            border: 1px solid #e0e0e0;
            border-radius: 50%;
            background: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            transition: all 0.2s ease;
            padding: 0;
        }

        .gallery-arrow:hover {
            background: #f5f5f5;
            color: #b3001b;
            border-color: #b3001b;
        }

        .gallery-arrow svg {
            width: 20px;
            height: 20px;
        }

        .gallery-dots {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-top: 10px;
        }

        .gallery-dots .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ddd;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            padding: 0;
        }

        .gallery-dots .dot.active {
            background: #b3001b;
            width: 22px;
            border-radius: 4px;
        }

        .gallery-dots .dot:hover {
            background: #b3001b;
            opacity: 0.6;
        }

        /* ── Preview Header ── */
        .preview-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px 8px;
            font-size: 13px;
            font-weight: 600;
            color: #444;
            letter-spacing: 0.3px;
        }

        .preview-icon {
            font-size: 18px;
        }

        /* ── Slide 1: 八字排盘 ── */
        .preview-bazi {
            padding: 4px 16px 14px;
        }

        .bazi-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            margin-bottom: 10px;
        }

        .bazi-cell {
            background: #fff;
            border-radius: 10px;
            padding: 8px 6px;
            text-align: center;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
            border: 1px solid #f0e8ee;
        }

        .bazi-cell.highlight {
            border-color: #b3001b;
            background: linear-gradient(135deg, #fff5f7 0%, #fff0f3 100%);
            box-shadow: 0 2px 8px rgba(179, 0, 27, 0.12);
        }

        .bazi-label {
            display: block;
            font-size: 10px;
            color: #999;
            margin-bottom: 3px;
        }

        .bazi-gan {
            font-size: 20px;
            font-weight: 700;
            color: #b3001b;
            display: block;
            line-height: 1.2;
        }

        .bazi-zhi {
            font-size: 16px;
            color: #666;
            display: block;
            line-height: 1.3;
        }

        .bazi-meta {
            display: flex;
            gap: 12px;
            font-size: 11px;
            color: #888;
            margin-bottom: 6px;
            flex-wrap: wrap;
        }

        .bazi-meta strong {
            color: #b3001b;
        }

        .bazi-meta-item {
            display: inline-flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 3px;
        }

        .bazi-meta-label {
            color: #666;
            font-weight: 600;
        }

        .bazi-element-summary {
            display: inline-flex;
            flex-wrap: wrap;
            gap: 3px;
        }

        .bazi-note {
            font-size: 11px;
            color: #aaa;
            text-align: center;
            font-style: italic;
        }

        /* ── Slide 2: 运势曲线（专业面积图） ── */
        .preview-chart {
            padding: 8px 16px 14px;
        }

        .chart-badge {
            margin-left: auto;
            font-size: 9px;
            color: #b3001b;
            background: #fff0f3;
            padding: 2px 8px;
            border-radius: 10px;
            font-weight: 500;
        }

        .chart-wrapper {
            display: flex;
            gap: 6px;
            margin-bottom: 10px;
        }

        .chart-yaxis {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 4px 4px 4px 0;
            font-size: 9px;
            color: #bbb;
            min-width: 16px;
            text-align: right;
        }

        .chart-canvas {
            flex: 1;
            position: relative;
            height: 110px;
            background: linear-gradient(to bottom, rgba(179,0,27,0.02) 0%, transparent 100%);
            border-radius: 6px;
            overflow: hidden;
        }

        .chart-gridline {
            position: absolute;
            left: 0;
            right: 0;
            height: 1px;
            background: repeating-linear-gradient(90deg, #e8e0ee 0, #e8e0ee 4px, transparent 4px, transparent 8px);
        }

        .chart-area-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .chart-score {
            position: absolute;
            font-size: 11px;
            font-weight: 700;
            color: #b3001b;
            transform: translate(-50%, -100%);
            padding-bottom: 2px;
            text-shadow: 0 0 4px rgba(255,255,255,0.9);
        }

        .score-badge {
            display: inline-block;
            font-size: 8px;
            color: #28a745;
            margin-left: 1px;
        }

        .chart-xlabel {
            position: absolute;
            bottom: 4px;
            font-size: 9px;
            color: #aaa;
            transform: translateX(-50%);
        }

        .chart-footer {
            display: flex;
            gap: 6px;
            padding: 0 22px;
        }

        .chart-stat {
            flex: 1;
            text-align: center;
            padding: 6px 4px;
            background: #fff;
            border-radius: 8px;
            border: 1px solid #f0e8ee;
        }

        .chart-stat.up { border-left: 2px solid #28a745; }
        .chart-stat.down { border-left: 2px solid #dc3545; }

        .stat-label {
            display: block;
            font-size: 9px;
            color: #aaa;
        }

        .stat-val {
            display: block;
            font-size: 15px;
            font-weight: 700;
            color: #333;
        }

        .stat-arrow {
            font-size: 10px;
        }
        .chart-stat.up .stat-arrow { color: #28a745; }
        .chart-stat.down .stat-arrow { color: #dc3545; }

        @media (max-width: 600px) {
            .chart-footer { padding: 0; gap: 4px; }
            .chart-stat { padding: 4px 2px; }
            .stat-val { font-size: 13px; }
        }

        /* ── Slide 3: AI咨询 ── */
        .preview-chat {
            padding: 4px 16px 14px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .chat-bubble {
            max-width: 88%;
            padding: 8px 12px;
            border-radius: 12px;
            font-size: 12px;
            line-height: 1.55;
            animation: chatFadeIn 0.3s ease;
        }

        .chat-bubble.user {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
        }

        .chat-bubble.ai {
            background: #fff;
            border: 1px solid #e8e0ee;
            color: #444;
            align-self: flex-start;
            border-bottom-left-radius: 4px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        }

        .chat-bubble.ai strong {
            color: #b3001b;
        }

        .chat-note {
            text-align: center;
            font-size: 10px;
            color: #bbb;
            margin-top: 4px;
            font-style: italic;
        }

        @keyframes chatFadeIn {
            from { opacity: 0; transform: translateY(4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ── Slide 4: 人际关系 ── */
        .preview-relation {
            padding: 0 16px 14px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .rel-self {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 14px;
            color: #fff;
        }

        .rel-self-avatar { font-size: 22px; line-height: 1; }
        .rel-self-label { font-size: 14px; font-weight: 600; }

        .rel-friends {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .rel-friend-row {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 10px;
            background: #fff;
            border-radius: 12px;
            border: 1px solid #f0e8ee;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }

        .rel-friend-icon { font-size: 16px; line-height: 1; flex-shrink: 0; }

        .rel-friend-name {
            font-size: 12px;
            font-weight: 600;
            color: #444;
            min-width: 48px;
            flex-shrink: 0;
        }

        .rel-bar-track {
            flex: 1;
            height: 6px;
            background: #f0f0f0;
            border-radius: 3px;
            overflow: hidden;
            min-width: 40px;
        }

        .rel-bar-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.6s ease;
        }

        .good-bar { background: linear-gradient(90deg, #66bb6a, #43a047); }
        .neutral-bar { background: linear-gradient(90deg, #bdbdbd, #9e9e9e); }
        .bad-bar { background: linear-gradient(90deg, #ef5350, #e53935); }

        .rel-pct {
            font-size: 12px;
            font-weight: 700;
            min-width: 36px;
            text-align: right;
            flex-shrink: 0;
        }

        .good-pct { color: #2e7d32; }
        .neutral-pct { color: #888; }
        .bad-pct { color: #c62828; }

        .rel-badge {
            font-size: 10px;
            font-weight: 600;
            padding: 2px 7px;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .good-badge { background: #e8f5e9; color: #2e7d32; }
        .neutral-badge { background: #f5f5f5; color: #888; }
        .bad-badge { background: #fce4ec; color: #c62828; }

        .rel-note {
            text-align: center;
            font-size: 10px;
            color: #bbb;
            font-style: italic;
            margin-top: 2px;
        }

        /* ── Slide 5: 吉时预测 ── */
        .preview-calendar {
            padding: 4px 16px 14px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .cal-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 10px;
            background: #fff;
            border-radius: 8px;
            border: 1px solid #f0e8ee;
            font-size: 12px;
        }

        .cal-day {
            min-width: 32px;
            font-weight: 600;
            color: #555;
        }

        .cal-hour {
            flex: 1;
            color: #666;
        }

        .cal-hour.good { color: #2e7d32; }
        .cal-hour.best { color: #b3001b; }
        .cal-hour.bad { color: #c62828; }

        .cal-badge {
            font-size: 10px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 4px;
        }

        .cal-badge.good-badge { background: #e8f5e9; color: #2e7d32; }
        .cal-badge.best-badge { background: #fff0f3; color: #b3001b; }
        .cal-badge.bad-badge { background: #fce4ec; color: #c62828; }

        .cal-note {
            text-align: center;
            font-size: 10px;
            color: #bbb;
            font-style: italic;
            margin-top: 2px;
        }

        /* ── Mobile adjustments ── */
        @media (max-width: 600px) {
            .gallery-arrow {
                display: none;
            }

            .gallery-viewport {
                border-radius: 10px;
            }

            .bazi-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 4px;
            }

            .bazi-gan { font-size: 17px; }
            .bazi-zhi { font-size: 14px; }

            .rel-friend-row {
                padding: 6px 8px;
                gap: 4px;
            }

            .rel-friend-name {
                font-size: 11px;
                min-width: 36px;
            }

            .rel-pct {
                font-size: 11px;
                min-width: 30px;
            }

            .rel-badge {
                font-size: 9px;
                padding: 1px 5px;
            }

            .cal-row {
                padding: 5px 8px;
                font-size: 11px;
            }
        }

        @media (max-width: 360px) {
            .top-nav,
            .nav-login-wrapper {
                gap: 6px !important;
            }

            .nav-login-details > summary {
                padding: 8px 10px;
            }

            .nav-login-label-full {
                display: none;
            }

            .nav-login-label-short {
                display: inline;
            }
        }

        @media (max-width: 340px) {
            .top-nav {
                padding-inline: 8px;
            }

            .top-nav,
            .nav-login-wrapper {
                gap: 4px !important;
            }

            .logo {
                gap: 6px;
            }

            .logo-text {
                display: none;
            }

            .logo-text-short {
                display: block;
                font-size: 13px;
            }

            .nav-login-details > summary {
                padding-inline: 9px;
            }
        }
