        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            -webkit-text-size-adjust: 100%;
            -ms-text-size-adjust: 100%;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
            background:
                radial-gradient(120% 70% at 50% -10%, rgba(198,160,90,.10) 0%, transparent 60%),
                linear-gradient(170deg, #12141a 0%, #0f1115 60%, #151821 100%);
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 20px;
            padding-top: calc(20px + env(safe-area-inset-top));
            padding-bottom: calc(20px + env(safe-area-inset-bottom));
            padding-left: calc(20px + env(safe-area-inset-left));
            padding-right: calc(20px + env(safe-area-inset-right));
        }

        .container {
            position: relative;
            background: #171a21;
            border: 1px solid rgba(255,255,255,.07);
            border-radius: 20px;
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
            max-width: 1400px;
            width: 100%;
            padding: 40px;
            color: #eceef2;
        }

        /* K线图容器 */
        .kline-container {
            background: #f9f9f9;
            border-radius: 15px;
            padding: 25px 30px 30px 30px;
            margin-bottom: 25px;
            position: relative;
            width: 100%;
        }

        .kline-title {
            font-size: 20px;
            color: #333;
            margin-bottom: 15px;
            font-weight: bold;
        }

        .kline-wrapper {
            position: relative;
            width: 100%;
            height: 800px;
            min-height: 800px;
            display: block;
            overflow: hidden;
        }

        #klineChart {
            width: 100% !important;
            height: 800px !important;
            min-height: 800px !important;
            display: block;
        }

        /* 公司亮点横条 */
        .company-highlight-bar {
            background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
            border: 1px solid #ffe082;
            border-left: 5px solid #f9a825;
            border-radius: 10px;
            padding: 16px 20px;
            margin-bottom: 20px;
            display: none;
        }

        .company-highlight-bar .highlight-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }

        .company-highlight-bar .highlight-icon {
            font-size: 18px;
        }

        .company-highlight-bar .highlight-label {
            font-size: 15px;
            font-weight: bold;
            color: #e65100;
        }

        .company-highlight-bar .highlight-text {
            font-size: 14px;
            color: #5d4037;
            line-height: 1.7;
            word-break: break-all;
        }

        .company-highlight-bar .highlight-loading {
            font-size: 13px;
            color: #999;
            font-style: italic;
        }

        /* 数据统计卡片 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-top: 25px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: white;
            padding: 25px 20px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .stat-label {
            font-size: 15px;
            color: #666;
            margin-bottom: 10px;
        }

        .stat-value {
            font-size: 26px;
            font-weight: bold;
            color: #333;
        }

        .stat-value.up {
            color: #e74c3c;
        }

        .stat-value.down {
            color: #2ecc71;
        }

        /* 快捷按钮样式 */
        .quick-btn {
            display: inline-block;
            padding: 5px 12px;
            margin: 3px;
            background: #f0f0f0;
            border: 1px solid #ddd;
            border-radius: 5px;
            cursor: pointer;
            font-size: 13px;
            color: #666;
            transition: all 0.2s;
        }

        .quick-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .history-btn {
            display: inline-block;
            padding: 5px 12px;
            margin: 3px;
            background: #e8f4f8;
            border: 1px solid #b8d4e3;
            border-radius: 5px;
            cursor: pointer;
            font-size: 13px;
            color: #5a7a8a;
            transition: all 0.2s;
        }

        .history-btn:hover {
            background: #d0e8f0;
        }

        .history-clear {
            display: inline-block;
            padding: 5px 10px;
            margin: 3px;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 12px;
            color: #999;
            text-decoration: underline;
        }

        .history-clear:hover {
            color: #e74c3c;
        }

        .login-container {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 400px;
            width: 100%;
            padding: 50px 40px;
            margin-top: 50px;
        }

        .login-title {
            text-align: center;
            color: #333;
            margin-bottom: 10px;
            font-size: 28px;
        }

        .login-subtitle {
            text-align: center;
            color: #666;
            margin-bottom: 40px;
            font-size: 14px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            color: #555;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: bold;
        }

        .form-group input {
            width: 100%;
            padding: 15px 20px;
            font-size: 16px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            outline: none;
            transition: border-color 0.3s;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }

        .form-group input:focus {
            border-color: #667eea;
        }

        .login-btn {
            width: 100%;
            padding: 15px;
            font-size: 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            font-weight: bold;
            margin-top: 10px;
            min-height: 44px;
            -webkit-tap-highlight-color: transparent;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }

        .login-btn:active {
            transform: translateY(0);
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .user-info {
            color: #a8adb8;
            font-size: 14px;
            word-break: break-all;
        }
        .user-info #currentUser {
            color: #eceef2;
        }

        .logout-btn {
            padding: 8px 20px;
            font-size: 14px;
            background: rgba(255,255,255,.05);
            color: #a8adb8;
            border: 1px solid rgba(255,255,255,.12);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            min-height: 44px;
            -webkit-tap-highlight-color: transparent;
        }

        .logout-btn:hover {
            background: rgba(255,255,255,.1);
            color: #eceef2;
        }

        .logout-btn:active {
            background: #d0d0d0;
        }

        /* 充值按钮 */
        .recharge-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 5px 13px;
            font-size: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            margin-left: 10px;
            vertical-align: middle;
            transition: all 0.2s ease;
            min-height: 26px;
            letter-spacing: 0.3px;
            box-shadow: 0 2px 6px rgba(102, 126, 234, 0.35);
            -webkit-tap-highlight-color: transparent;
        }
        .recharge-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
            background: linear-gradient(135deg, #7b8ff5 0%, #8a5cb8 100%);
        }
        .recharge-btn:active {
            transform: translateY(0);
            box-shadow: 0 1px 4px rgba(102, 126, 234, 0.3);
        }

        /* 充值弹窗遮罩 */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.55);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        /* 充值弹窗主体 */
        .modal-box {
            background: white;
            border-radius: 18px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            width: 100%;
            max-width: 420px;
            overflow: hidden;
            animation: modalIn 0.25s ease;
        }
        @keyframes modalIn {
            from { transform: scale(0.85); opacity: 0; }
            to   { transform: scale(1);    opacity: 1; }
        }
        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px 16px;
            border-bottom: 1px solid #f0f0f0;
        }
        .modal-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        .modal-close {
            background: none;
            border: none;
            font-size: 20px;
            color: #999;
            cursor: pointer;
            padding: 0 4px;
            line-height: 1;
        }
        .modal-close:hover { color: #333; }
        .modal-body {
            padding: 24px;
        }
        .modal-desc {
            font-size: 14px;
            color: #666;
            margin-bottom: 18px;
            line-height: 1.6;
        }
        .modal-input-wrap {
            margin-bottom: 14px;
        }
        .modal-input {
            width: 100%;
            padding: 13px 16px;
            font-size: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            outline: none;
            transition: border-color 0.3s;
            letter-spacing: 1px;
            font-family: 'Courier New', monospace;
        }
        .modal-input:focus {
            border-color: #f5576c;
        }
        .modal-msg {
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 14px;
            font-weight: bold;
        }
        .modal-msg.success {
            background: #e8f5e9;
            color: #2e7d32;
            border: 1px solid #a5d6a7;
        }
        .modal-msg.error {
            background: #fce4ec;
            color: #c62828;
            border: 1px solid #f48fb1;
        }
        .modal-submit-btn {
            width: 100%;
            padding: 14px;
            font-size: 16px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.2s;
            min-height: 44px;
        }
        .modal-submit-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
        }
        .modal-submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* ── 页面说明：压缩为单行标题 ── */
        .hero-header {
            text-align: center;
            margin-bottom: 22px;
            padding: 0 0 18px;
            border-bottom: 1px solid rgba(255,255,255,.07);
        }

        h1 {
            text-align: center;
            margin-bottom: 6px;
            font-size: 22px;
            font-weight: 700;
            color: #f0d98a;
            letter-spacing: 2px;
        }

        h1 .hero-emoji {
            font-style: normal;
        }

        .subtitle {
            text-align: center;
            color: #8b909c;
            margin-bottom: 0;
            font-size: 13px;
            line-height: 1.6;
        }

        .input-section {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            align-items: center;
            background: #f5f6fa;
            border: 2px solid #e0e0e0;
            border-radius: 14px;
            padding: 8px 8px 8px 16px;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .input-section:focus-within {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
        }

        .input-section input {
            flex: 1;
            min-width: 0;
            padding: 10px 4px;
            font-size: 15px;
            border: none;
            background: transparent;
            outline: none;
            color: #333;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }

        .input-section input::placeholder {
            color: #aaa;
            font-size: 14px;
        }

        .input-section input:focus {
            border-color: transparent;
        }

        .input-section button {
            flex-shrink: 0;
            padding: 11px 28px;
            font-size: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            font-weight: bold;
            white-space: nowrap;
            min-height: 42px;
            -webkit-tap-highlight-color: transparent;
            box-shadow: 0 3px 10px rgba(102, 126, 234, 0.35);
        }

        .input-section button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
        }

        .input-section button:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        .input-section button:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .loading {
            text-align: center;
            padding: 40px 20px;
            color: #666;
            display: none;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #667eea;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .result-section {
            display: none;
        }

        .result-title {
            font-size: 26px;
            font-weight: 800;
            color: #2d2d2d;
            margin-bottom: 22px;
            padding-bottom: 14px;
            border-bottom: 3px solid #667eea;
            letter-spacing: 1px;
            word-break: break-all;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .chart-container {
            background: #f9f9f9;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            position: relative;
            width: 100%;
        }

        .chart-title {
            font-size: 18px;
            color: #333;
            margin-bottom: 15px;
            font-weight: bold;
        }

        .chart-wrapper {
            position: relative;
            width: 100%;
            height: 400px;
        }

        .table-container {
            background: #f9f9f9;
            border-radius: 15px;
            padding: 25px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .table-title {
            font-size: 18px;
            color: #333;
            margin-bottom: 15px;
            font-weight: bold;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            min-width: 600px;
        }

        th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px;
            text-align: left;
            font-weight: bold;
            white-space: nowrap;
        }

        td {
            padding: 15px;
            border-bottom: 1px solid #eee;
            vertical-align: top;
        }

        tr:last-child td {
            border-bottom: none;
        }

        .operation-tag {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            white-space: nowrap;
        }

        .tag-buy {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .tag-sell {
            background: #ffebee;
            color: #c62828;
        }

        .tag-hold {
            background: #fff3e0;
            color: #ef6c00;
        }

        .tag-wait {
            background: #e3f2fd;
            color: #1565c0;
        }

        .error {
            background: #ffebee;
            color: #c62828;
            padding: 15px;
            border-radius: 10px;
            display: none;
            text-align: center;
            margin-top: 15px;
            word-break: break-all;
        }

        .login-error {
            background: #ffebee;
            color: #c62828;
            padding: 15px;
            border-radius: 10px;
            display: none;
            text-align: center;
            margin-bottom: 20px;
            word-break: break-all;
        }

        /* 明日运势卡片 */
        .tomorrow-fortune-card {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            border-radius: 16px;
            padding: 24px 28px;
            margin-top: 25px;
            color: #fff;
            position: relative;
            overflow: hidden;
        }
        .tomorrow-fortune-card::before {
            content: '';
            position: absolute;
            top: -40px;
            right: -40px;
            width: 160px;
            height: 160px;
            background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
            border-radius: 50%;
        }
        .fortune-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 18px;
        }
        .fortune-card-title {
            font-size: 18px;
            font-weight: bold;
            color: #ffd700;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .fortune-card-title .fortune-date {
            font-size: 13px;
            color: rgba(255,215,0,0.7);
            font-weight: normal;
            margin-left: 6px;
        }
        .fortune-score-wrap {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
        }
        .fortune-score-label {
            font-size: 12px;
            color: rgba(255,255,255,0.6);
        }
        .fortune-score-value {
            font-size: 36px;
            font-weight: bold;
            line-height: 1;
        }
        .fortune-score-value.score-high { color: #ff6b6b; }
        .fortune-score-value.score-mid  { color: #ffd700; }
        .fortune-score-value.score-low  { color: #69db7c; }
        .fortune-score-bar {
            width: 100%;
            height: 6px;
            background: rgba(255,255,255,0.15);
            border-radius: 3px;
            margin-bottom: 16px;
            overflow: hidden;
        }
        .fortune-score-bar-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.8s ease;
        }
        .fortune-liuri-row {
            display: flex;
            gap: 10px;
            margin-bottom: 14px;
            flex-wrap: wrap;
        }
        .fortune-liuri-tag {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,215,0,0.3);
            border-radius: 20px;
            padding: 4px 12px;
            font-size: 13px;
            color: rgba(255,255,255,0.85);
        }
        .fortune-description {
            font-size: 15px;
            line-height: 1.8;
            color: rgba(255,255,255,0.9);
            background: rgba(255,255,255,0.06);
            border-radius: 10px;
            padding: 14px 16px;
            border-left: 3px solid #ffd700;
        }
        .fortune-desc-line {
            margin: 0 0 10px 0;
            line-height: 1.85;
        }
        .fortune-desc-line:last-child {
            margin-bottom: 0;
        }
        .fortune-section-title {
            color: #ffd700;
            font-weight: bold;
            font-size: 15px;
            display: inline-block;
            margin-right: 4px;
        }
        .fortune-detail-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 12px;
            padding: 7px 16px;
            background: rgba(255, 215, 0, 0.15);
            border: 1px solid rgba(255, 215, 0, 0.4);
            border-radius: 20px;
            color: #ffd700;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            -webkit-tap-highlight-color: transparent;
        }
        .fortune-detail-btn:hover {
            background: rgba(255, 215, 0, 0.25);
            border-color: rgba(255, 215, 0, 0.7);
        }
        .fortune-detail-content {
            margin-top: 14px;
            padding: 14px 16px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            border-left: 3px solid rgba(255, 215, 0, 0.5);
            font-size: 14px;
            line-height: 1.85;
            color: rgba(255, 255, 255, 0.88);
        }
        .fortune-loading {
            text-align: center;
            padding: 30px 0;
            color: rgba(255,255,255,0.6);
            font-size: 14px;
        }
        .fortune-loading .fortune-spinner {
            width: 32px;
            height: 32px;
            border: 3px solid rgba(255,215,0,0.2);
            border-top-color: #ffd700;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 12px;
        }
        .fortune-error {
            text-align: center;
            padding: 20px 0;
            color: rgba(255,100,100,0.9);
            font-size: 14px;
        }

        /* ═══════════ 命主八字摘要条 ═══════════ */
        .bazi-summary-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(135deg, #2d2540 0%, #3a2c5a 100%);
            border: 1px solid rgba(255,215,0,.25);
            border-radius: 14px;
            padding: 14px 20px;
            margin-bottom: 20px;
        }
        .bazi-summary-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .bazi-summary-avatar {
            font-size: 26px;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,215,0,.12);
            border-radius: 50%;
        }
        .bazi-summary-title {
            font-size: 12px;
            color: rgba(255,215,0,.75);
            margin-bottom: 3px;
        }
        .bazi-summary-detail {
            font-size: 15px;
            font-weight: 700;
            color: #fff;
            letter-spacing: .5px;
        }
        .bazi-summary-edit {
            font-size: 13px;
            color: #ffd700;
            text-decoration: none;
            padding: 6px 12px;
            border: 1px solid rgba(255,215,0,.4);
            border-radius: 20px;
            white-space: nowrap;
            transition: all .2s;
        }
        .bazi-summary-edit:hover {
            background: rgba(255,215,0,.15);
        }

        /* ═══════════ 状态B：录入八字引导主卡 ═══════════ */
        .guide-hero-card {
            display: block;
            text-decoration: none;
            position: relative;
            background: linear-gradient(135deg, #b8860b 0%, #8b5a2b 100%);
            border-radius: 18px;
            padding: 30px 28px 26px;
            margin-bottom: 22px;
            color: #fff;
            box-shadow: 0 10px 30px rgba(139,90,43,.4);
            overflow: hidden;
            transition: transform .2s, box-shadow .2s;
        }
        .guide-hero-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 14px 38px rgba(139,90,43,.5);
        }
        .guide-hero-card::after {
            content: '';
            position: absolute;
            top: -60px; right: -60px;
            width: 200px; height: 200px;
            background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
            border-radius: 50%;
        }
        .guide-hero-badge {
            display: inline-block;
            font-size: 12px;
            font-weight: 700;
            background: rgba(255,255,255,.22);
            padding: 4px 12px;
            border-radius: 20px;
            margin-bottom: 14px;
        }
        .guide-hero-title {
            font-size: 22px;
            font-weight: 800;
            letter-spacing: 1px;
            margin-bottom: 12px;
            position: relative;
        }
        .guide-hero-desc {
            font-size: 14px;
            line-height: 1.8;
            opacity: .92;
            margin-bottom: 20px;
            position: relative;
        }
        .guide-hero-btn {
            display: inline-block;
            background: #fff;
            color: #8b5a2b;
            font-size: 15px;
            font-weight: 700;
            padding: 12px 28px;
            border-radius: 30px;
            position: relative;
            box-shadow: 0 4px 12px rgba(0,0,0,.15);
        }

        /* ═══════════ 锁定卡片区 ═══════════ */
        .locked-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin-bottom: 8px;
        }
        .locked-card {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            text-decoration: none;
            background: rgba(255,255,255,.03);
            border: 1px dashed rgba(255,255,255,.14);
            border-radius: 16px;
            padding: 26px 16px 20px;
            overflow: hidden;
            transition: all .2s;
        }
        .locked-card:hover {
            border-color: rgba(231,200,119,.6);
            background: rgba(255,255,255,.06);
        }
        .locked-mask {
            font-size: 22px;
            margin-bottom: 8px;
            opacity: .6;
        }
        .locked-icon {
            font-size: 34px;
            filter: grayscale(.4);
            opacity: .6;
            margin-bottom: 8px;
        }
        .locked-name {
            font-size: 16px;
            font-weight: 700;
            color: #c9cbd1;
            margin-bottom: 6px;
        }
        .locked-tip {
            font-size: 12px;
            color: #7d828d;
            line-height: 1.5;
        }

        /* ═══════════ 今日运势：紧凑单行条（装饰性，次级层级） ═══════════ */
        .daily-bar {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            background: rgba(255,255,255,.035);
            border: 1px solid rgba(255,255,255,.08);
            border-radius: 14px;
            padding: 12px 16px;
            margin-bottom: 14px;
            transition: background .2s, border-color .2s;
        }
        .daily-bar:hover {
            background: rgba(255,255,255,.06);
            border-color: rgba(255,255,255,.14);
        }
        .db-ring {
            position: relative;
            width: 54px;
            height: 54px;
            flex-shrink: 0;
        }
        .db-ring #dailyMiniArc { transition: stroke-dashoffset 1s ease; }
        .db-ring-score {
            position: absolute;
            top: 0; left: 0;
            width: 54px; height: 54px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 700;
            color: #f0d98a;
        }
        .db-main {
            flex: 1;
            min-width: 0;
        }
        .db-line1 {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 5px;
        }
        .db-label {
            font-size: 14px;
            font-weight: 600;
            color: #eceef2;
            letter-spacing: .5px;
        }
        .db-date {
            font-size: 12px;
            color: #9096a1;
        }
        /* 等级徽标：与"行动建议"并列，明确可读 */
        .db-level {
            font-size: 12px;
            font-weight: 800;
            color: #fff5f2;
            background: linear-gradient(135deg, #ff5b4a 0%, #e02f24 100%);
            border: 1px solid rgba(255,120,100,.55);
            box-shadow: 0 2px 8px rgba(224,47,36,.35);
            border-radius: 6px;
            padding: 3px 9px;
            letter-spacing: .5px;
        }
        /* 弱势档位用青绿（跌）以区分 */
        .db-level.is-weak {
            color: #eafff6;
            background: linear-gradient(135deg, #35b98a 0%, #1e9b6e 100%);
            border-color: rgba(80,220,175,.5);
            box-shadow: 0 2px 8px rgba(30,155,110,.3);
        }
        .db-action {
            font-size: 13px;
            font-weight: 800;
            color: #2a1c0a;
            background: linear-gradient(135deg, #ffe6a3 0%, #e7c877 55%, #d4af52 100%);
            border: 1px solid rgba(255,232,170,.7);
            border-radius: 6px;
            padding: 3px 11px;
            letter-spacing: 1px;
            box-shadow: 0 2px 8px rgba(212,175,82,.28);
        }
        /* 能量解读：正文级可读性，最多两行 */
        .db-advice {
            font-size: 13px;
            color: #a8adb8;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .db-hidden { display: none; }
        .db-more {
            flex-shrink: 0;
            font-size: 20px;
            color: #6b707b;
        }

        .ohp {
            position: relative;
            border-radius: 18px;
            padding: 24px 24px 22px;
            margin-bottom: 16px;
            background: linear-gradient(160deg, #20222b 0%, #1b1d25 100%);
            border: 1px solid rgba(231,200,119,.30);
            box-shadow: 0 10px 32px rgba(0,0,0,.35);
        }
        .ohp-head {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 18px;
        }
        .ohp-head-text { flex: 1; min-width: 0; }
        .ohp-title {
            font-size: 21px;
            font-weight: 800;
            letter-spacing: 4px;
            color: #f3e2b0;
            margin: 0 0 6px;
            text-align: left;
            -webkit-text-fill-color: initial;
            background: none;
        }
        /* 静态罗盘（缩小为标题旁图标） */
        .ohp-compass { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
        .ohp-compass .ring1, .ohp-compass .ring2, .ohp-compass .ring3 {
            position: absolute; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%);
        }
        .ohp-compass .ring1 { width: 64px; height: 64px; border: 1px solid rgba(231,200,119,.28); }
        .ohp-compass .ring2 { width: 50px; height: 50px; border: 1px dashed rgba(231,200,119,.35); }
        .ohp-compass .ring3 { width: 34px; height: 34px; border: 1px solid rgba(231,200,119,.45); }
        .ohp-compass .center-taiji {
            position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
            font-size: 20px; color: #e7c877;
        }
        .ohp-hook {
            font-size: 13px;
            line-height: 1.7;
            color: #9ea3ae;
            margin: 0;
        }
        .ohp-hook b { color: #e7c877; font-weight: 700; }
        .ohp-hook em { font-style: normal; font-weight: 700; color: #e59a6c; }
        /* 输入区：全页唯一高亮块 */
        .ohp-box {
            position: relative;
            display: flex;
            gap: 10px;
            background: #ffffff;
            border: 1px solid #ffffff;
            border-radius: 12px;
            padding: 7px 7px 7px 16px;
            transition: box-shadow .25s;
        }
        .ohp-box:focus-within {
            box-shadow: 0 0 0 3px rgba(231,200,119,.45);
        }
        .ohp-box input {
            flex: 1;
            min-width: 0;
            border: none;
            background: transparent;
            outline: none;
            color: #1a1d24;
            font-size: 15px;
        }
        .ohp-box input::placeholder { color: #8b8f99; }
        .ohp-box button {
            flex-shrink: 0;
            border: none;
            border-radius: 9px;
            padding: 12px 28px;
            font-size: 15px;
            font-weight: 800;
            letter-spacing: 2px;
            cursor: pointer;
            white-space: nowrap;
            color: #2a1c0a;
            background: linear-gradient(135deg, #f0d98a 0%, #d4af52 55%, #b8873a 100%);
            transition: filter .2s;
        }
        .ohp-box button:hover { filter: brightness(1.06); }

        /* 合盘模块：热门股票 / 最近搜索 快捷选择 */
        .ohp-picks { margin-top: 14px; }
        .ohp-pick-row {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 10px;
        }
        .ohp-pick-label {
            flex-shrink: 0;
            font-size: 12px;
            color: #8b8f99;
            line-height: 26px;
        }
        .ohp-chip {
            border: 1px solid rgba(231,200,119,.30);
            background: rgba(231,200,119,.08);
            color: #e7c877;
            font-size: 12px;
            border-radius: 13px;
            padding: 5px 12px;
            cursor: pointer;
            transition: all .18s;
        }
        .ohp-chip:hover { background: rgba(231,200,119,.2); }
        /* 最近搜索：中性灰白，与热门股票的金色区分 */
        .ohp-chip-hist {
            border-color: rgba(255,255,255,.16);
            background: rgba(255,255,255,.05);
            color: #b6bac4;
        }
        .ohp-chip-hist:hover { background: rgba(255,255,255,.12); color: #e3e6ec; }
        .ohp-chip-clear {
            border: none;
            background: none;
            color: #6b707b;
            font-size: 12px;
            cursor: pointer;
            padding: 5px 4px;
        }

        /* ═══════════ 财富报告次级入口 ═══════════ */
        .report-entry-card {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            background: rgba(255,255,255,.035);
            border: 1px solid rgba(255,255,255,.08);
            border-radius: 14px;
            padding: 14px 18px;
            margin-bottom: 8px;
            transition: all .2s;
        }
        .report-entry-card:hover {
            background: rgba(255,255,255,.06);
            border-color: rgba(255,255,255,.14);
        }
        .report-entry-icon {
            font-size: 24px;
            flex-shrink: 0;
        }
        .report-entry-text {
            flex: 1;
            min-width: 0;
        }
        .report-entry-title {
            font-size: 14px;
            font-weight: 600;
            color: #c9cbd1;
            margin-bottom: 3px;
        }
        .report-entry-desc {
            font-size: 12px;
            color: #7d828d;
        }
        .report-entry-arrow {
            font-size: 20px;
            color: #6b707b;
            flex-shrink: 0;
        }

        /* ═══════════ 引流：八字诊股弱化区 ═══════════ */
        .zhengu-section {
            margin-top: 24px;
            border-top: 1px solid rgba(255,255,255,.07);
            padding-top: 18px;
        }
        .zhengu-toggle {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: transparent;
            border: 1px solid rgba(255,255,255,.08);
            border-radius: 12px;
            padding: 13px 18px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: #a8adb8;
            transition: all .2s;
            -webkit-tap-highlight-color: transparent;
        }
        .zhengu-toggle:hover {
            background: rgba(255,255,255,.05);
        }
        .zhengu-toggle-hint {
            font-size: 12px;
            font-weight: 400;
            color: #7d828d;
            margin-left: 6px;
        }
        .zhengu-toggle-arrow {
            font-size: 12px;
            color: #7d828d;
            transition: transform .25s;
        }
        .zhengu-toggle-arrow.open {
            transform: rotate(180deg);
        }
        #page-kline {
            margin-top: 16px;
            background: linear-gradient(160deg, #20222b 0%, #1b1d25 100%);
            border: 1px solid rgba(255,255,255,.08);
            border-radius: 16px;
            padding: 18px 18px 20px;
        }

        /* ── 展开区暗色适配（覆盖旧的浅色样式） ── */
        #page-kline .input-section {
            background: rgba(255,255,255,.05);
            border: 1px solid rgba(255,255,255,.12);
        }
        #page-kline .input-section:focus-within {
            border-color: rgba(231,200,119,.55);
            box-shadow: 0 0 0 3px rgba(231,200,119,.18);
        }
        #page-kline .input-section input { color: #eceef2; }
        #page-kline .input-section input::placeholder { color: #7d828d; }
        #page-kline .input-section button {
            background: linear-gradient(135deg, #f0d98a 0%, #d4af52 55%, #b8873a 100%);
            color: #2a1c0a;
            box-shadow: 0 3px 10px rgba(212,175,82,.28);
        }
        #page-kline .input-section button:hover {
            box-shadow: 0 6px 18px rgba(212,175,82,.38);
        }
        #page-kline .input-section button:disabled {
            background: rgba(255,255,255,.12);
            color: #8b8f99;
        }

        /* 快捷区标题行 */
        .kline-pick-row {
            margin-top: 10px;
            font-size: 12px;
            color: #8b8f99;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }
        #page-kline .quick-btn {
            background: rgba(231,200,119,.08);
            border: 1px solid rgba(231,200,119,.30);
            color: #e7c877;
            border-radius: 13px;
            padding: 5px 12px;
            font-size: 12px;
            margin: 0;
        }
        #page-kline .quick-btn:hover {
            background: rgba(231,200,119,.2);
            color: #f3e2b0;
            border-color: rgba(231,200,119,.45);
        }
        #page-kline .history-btn {
            background: rgba(255,255,255,.05);
            border: 1px solid rgba(255,255,255,.16);
            color: #b6bac4;
            border-radius: 13px;
            padding: 5px 12px;
            font-size: 12px;
            margin: 0;
        }
        #page-kline .history-btn:hover {
            background: rgba(255,255,255,.12);
            color: #e3e6ec;
        }
        #page-kline .history-clear {
            color: #6b707b;
            text-decoration: none;
            font-size: 12px;
            padding: 5px 4px;
        }
        #page-kline .history-clear:hover { color: #e59a6c; }

        /* 结果区 */
        #page-kline .loading { color: #a8adb8; }
        #page-kline .spinner {
            border-color: rgba(255,255,255,.12);
            border-top-color: #e7c877;
        }
        #page-kline .error {
            background: rgba(229,90,76,.12);
            border: 1px solid rgba(229,90,76,.35);
            color: #f0a79c;
        }
        #page-kline .result-title {
            color: #f3e2b0;
            background: none;
            -webkit-text-fill-color: initial;
            border-bottom: 2px solid rgba(231,200,119,.35);
        }
        #page-kline .stat-card {
            background: rgba(255,255,255,.05);
            border: 1px solid rgba(255,255,255,.08);
            box-shadow: none;
        }
        #page-kline .stat-label { color: #8b8f99; }
        #page-kline .stat-value { color: #eceef2; }
        #page-kline .stat-value.up { color: #ff5b4a; }
        #page-kline .stat-value.down { color: #35b98a; }
        #page-kline .kline-container {
            background: rgba(255,255,255,.04);
            border: 1px solid rgba(255,255,255,.08);
        }
        #page-kline .kline-title { color: #e7c877; }
        #page-kline .company-highlight-bar {
            background: rgba(231,200,119,.07);
            border: 1px solid rgba(231,200,119,.22);
            border-left: 4px solid #d4af52;
        }
        #page-kline .company-highlight-bar .highlight-label { color: #e7c877; }
        #page-kline .company-highlight-bar .highlight-text { color: #c9cbd1; }
        #page-kline .company-highlight-bar .highlight-loading { color: #7d828d; }

        .profile-label {
            display: block;
            font-size: 13px;
            color: #666;
            margin-bottom: 6px;
            font-weight: 600;
        }

        .disclaimer {
            margin-top: 26px;
            padding: 16px;
            background: transparent;
            border: 1px solid rgba(255,255,255,.07);
            border-radius: 10px;
            color: #7d828d;
            font-size: 12px;
            text-align: center;
            line-height: 1.6;
        }

        /* ============================================
           平板设备 (≤ 768px)
           ============================================ */
        @media screen and (max-width: 768px) {
            body {
                padding: 15px;
                padding-top: calc(15px + env(safe-area-inset-top));
                padding-bottom: calc(15px + env(safe-area-inset-bottom));
            }

            .container {
                padding: 25px;
                border-radius: 15px;
            }

            .login-container {
                padding: 40px 30px;
                margin-top: 30px;
            }

            .login-title {
                font-size: 24px;
            }

            .login-subtitle {
                font-size: 13px;
                margin-bottom: 30px;
            }

            h1 {
                font-size: 20px;
            }

            .subtitle {
                font-size: 12px;
            }

            .header {
                margin-bottom: 20px;
            }

            .input-section {
                gap: 10px;
                margin-bottom: 25px;
            }

            .input-section input {
                padding: 12px 16px;
                font-size: 15px;
            }

            .input-section button {
                padding: 12px 28px;
                font-size: 15px;
                min-width: 100px;
            }

            .chart-container {
                padding: 20px;
                border-radius: 12px;
            }

            .chart-title {
                font-size: 16px;
            }

            .chart-wrapper {
                height: 350px;
            }

            .table-container {
                padding: 20px;
                border-radius: 12px;
            }

            .table-title {
                font-size: 16px;
            }

            th, td {
                padding: 12px;
                font-size: 14px;
            }

            .result-title {
                font-size: 22px;
                margin-bottom: 20px;
                padding-bottom: 12px;
            }

            .loading {
                padding: 30px 15px;
            }

            .spinner {
                width: 45px;
                height: 45px;
            }
        }

        /* ============================================
           手机设备 (≤ 480px)
           ============================================ */
        @media screen and (max-width: 480px) {
            body {
                padding: 10px;
                padding-top: calc(10px + env(safe-area-inset-top));
                padding-bottom: calc(10px + env(safe-area-inset-bottom));
            }

            .container {
                padding: 20px 15px;
                border-radius: 12px;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            }

            .login-container {
                padding: 35px 25px;
                margin-top: 20px;
                border-radius: 15px;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            }

            .login-title {
                font-size: 22px;
                margin-bottom: 8px;
            }

            .login-subtitle {
                font-size: 12px;
                margin-bottom: 25px;
            }

            .form-group {
                margin-bottom: 16px;
            }

            .form-group label {
                font-size: 13px;
                margin-bottom: 6px;
            }

            .form-group input {
                padding: 12px 16px;
                font-size: 15px;
                border-radius: 8px;
            }

            .login-btn {
                padding: 14px;
                font-size: 15px;
                border-radius: 8px;
            }

            .header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
                margin-bottom: 20px;
                padding-bottom: 15px;
                border-bottom: 1px solid rgba(255,255,255,.07);
            }

            .user-info {
                font-size: 13px;
                width: 100%;
            }

            .logout-btn {
                align-self: flex-end;
                padding: 8px 16px;
                font-size: 13px;
                min-height: 38px;
            }

            h1 {
                font-size: 19px;
                margin-bottom: 5px;
            }

            .subtitle {
                font-size: 12px;
            }

            /* 合盘卡：小屏纵向堆叠，输入框全宽 */
            .ohp {
                padding: 20px 16px 18px;
            }
            .ohp-head {
                gap: 12px;
                margin-bottom: 14px;
            }
            .ohp-compass { width: 48px; height: 48px; }
            .ohp-compass .ring1 { width: 48px; height: 48px; }
            .ohp-compass .ring2 { width: 37px; height: 37px; }
            .ohp-compass .ring3 { width: 25px; height: 25px; }
            .ohp-compass .center-taiji { font-size: 15px; }
            .ohp-title { font-size: 18px; letter-spacing: 3px; }
            .ohp-hook { font-size: 12px; }
            .ohp-box {
                flex-direction: column;
                gap: 8px;
                padding: 10px;
            }
            .ohp-box input {
                width: 100%;
                padding: 4px 6px;
            }
            .ohp-box button {
                width: 100%;
                padding: 13px 20px;
            }

            /* 运势条：小屏解读收为一行 */
            .db-advice { -webkit-line-clamp: 1; }

            .input-section {
                flex-direction: column;
                gap: 12px;
                margin-bottom: 20px;
            }

            .input-section input {
                flex: none;
                width: 100%;
                min-width: 0;
                padding: 14px 16px;
                font-size: 15px;
                border-radius: 8px;
            }

            .input-section button {
                width: 100%;
                padding: 14px 20px;
                font-size: 15px;
                border-radius: 8px;
            }

            .chart-container {
                padding: 15px;
                border-radius: 10px;
                margin-bottom: 20px;
            }

            .chart-title {
                font-size: 15px;
                margin-bottom: 12px;
            }

            .chart-wrapper {
                height: 280px;
            }

            .table-container {
                padding: 15px;
                border-radius: 10px;
            }

            .table-title {
                font-size: 15px;
                margin-bottom: 12px;
            }

            table {
                min-width: 500px;
                font-size: 13px;
            }

            th {
                padding: 10px 12px;
                font-size: 13px;
            }

            td {
                padding: 12px;
                font-size: 13px;
            }

            .result-title {
                font-size: 20px;
                margin-bottom: 18px;
                padding-bottom: 10px;
            }

            .loading {
                padding: 25px 10px;
            }

            .loading p {
                font-size: 14px;
            }

            .spinner {
                width: 40px;
                height: 40px;
                border-width: 3px;
            }

            .error, .login-error {
                padding: 12px;
                font-size: 13px;
            }

            .disclaimer {
                padding: 15px;
                font-size: 12px;
                margin-top: 20px;
            }

            .operation-tag {
                padding: 4px 10px;
                font-size: 11px;
            }
        }

        /* ============================================
           超小屏设备 (≤ 360px)
           ============================================ */
        @media screen and (max-width: 360px) {
            .container {
                padding: 15px 12px;
            }

            .login-container {
                padding: 30px 20px;
            }

            .login-title {
                font-size: 20px;
            }

            h1 {
                font-size: 20px;
            }

            .chart-wrapper {
                height: 250px;
            }

            table {
                font-size: 12px;
            }

            th, td {
                padding: 10px 8px;
                font-size: 12px;
            }
        }

        /* ============================================
           横屏模式优化
           ============================================ */
        @media screen and (max-height: 500px) and (orientation: landscape) {
            body {
                padding: 10px;
                align-items: flex-start;
            }

            .login-container {
                margin-top: 15px;
                padding: 25px 30px;
            }

            .login-title {
                font-size: 20px;
            }

            .login-subtitle {
                margin-bottom: 20px;
            }

            .container {
                padding: 20px 25px;
            }

            h1 {
                font-size: 22px;
                margin-bottom: 5px;
            }

            .subtitle {
                margin-bottom: 20px;
            }
        }

        /* ============================================
           大屏/桌面优化
           ============================================ */
        @media screen and (min-width: 1200px) {
            .container {
                padding: 50px;
            }

            h1 {
                font-size: 24px;
            }

            .chart-wrapper {
                height: 450px;
            }
        }

        /* ============================================
           打印样式
           ============================================ */
        @media print {
            body {
                background: white;
                padding: 0;
            }

            .container {
                box-shadow: none;
                border-radius: 0;
            }

            .input-section, .header, .loading, .error, .disclaimer {
                display: none !important;
            }

            .chart-container, .table-container {
                background: white;
                page-break-inside: avoid;
            }
        }
    
