        /* ===== 结果展示通用样式 ===== */
        /* ================================================================
           结果展示组件
           ================================================================ */
        /* --- 结果日期（大字强调色） --- */
        .result-date {
            font-size: 1.8rem;
            color: var(--accent-color);
            font-weight: 800;
        }
        .result-weekday {
            font-size: 1rem;
            color: var(--text-muted);
        }
        .result-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }
        .result-label-spaced {
            margin-bottom: 10px;
        }
        .result-section {
            font-size: 1.2rem;
        }
        .result-divider {
            border: 0;
            border-top: 1px solid rgba(0,0,0,0.1);
        }
        .result-divider-tight {
            margin: 10px 0;
        }
        .result-divider-loose {
            margin: 15px 0;
        }
        .result-highlight {
            font-size: 2rem;
            color: var(--accent-color);
            font-weight: 800;
        }
        .math-result-value {
            font-size: 2rem;
            color: var(--accent-color);
            font-weight: 800;
            line-height: 1.2;
            overflow-wrap: anywhere;
        }
        .math-expression-preview {
            margin-bottom: 8px;
            color: var(--text-secondary);
            font-family: 'Consolas', 'Segoe UI', 'Microsoft YaHei', monospace;
            font-size: 0.95rem;
            overflow-wrap: anywhere;
        }
        .warning-note {
            margin-bottom: 8px;
            color: var(--warning-color);
        }
        .result-card-grid {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        /* 时间戳卡片 */
        /* --- 时间戳卡片（秒/毫秒结果展示） --- */
        .ts-card {
            flex: 1;
            background: var(--card-accent-bg);
            padding: 12px;
            border-radius: 8px;
            text-align: center;
        }
        .ts-card-sm {
            flex: 1;
            background: var(--card-accent-bg);
            padding: 10px;
            border-radius: 8px;
            text-align: center;
        }
        .ts-card-label {
            font-size: 0.8rem;
            color: var(--text-tertiary);
        }
        .ts-card-value {
            font-size: 1.1rem;
            color: var(--accent-color);
            font-weight: 700;
            word-break: break-all;
        }
        .ts-now-value {
            font-weight: 600;
            color: var(--accent-color);
            word-break: break-all;
        }
        /* --- 当前时间戳区域（顶部分隔线） --- */
        .ts-now-section {
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid rgba(0,0,0,0.1);
        }
        .ts-time-display {
            font-size: 1.1rem;
            color: var(--text-secondary);
            margin-top: 8px;
        }
        .math-history-panel {
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid rgba(0,0,0,0.1);
        }
        .math-history-header {
            margin-bottom: 10px;
            color: var(--heading-color);
            font-weight: 700;
            font-size: 0.95rem;
        }
        .math-history-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 154px;
            overflow-y: auto;
            padding-right: 4px;
            scrollbar-width: thin;
            scrollbar-color: rgba(118, 75, 162, 0.3) transparent;
            overscroll-behavior: contain;
        }
        .math-history-list::-webkit-scrollbar {
            width: 8px;
        }
        .math-history-list::-webkit-scrollbar-track {
            background: transparent;
            margin: 4px 0;
        }
        .math-history-list::-webkit-scrollbar-thumb {
            background: rgba(118, 75, 162, 0.28);
            border: 2px solid transparent;
            border-radius: 999px;
            background-clip: padding-box;
        }
        .math-history-list::-webkit-scrollbar-thumb:hover {
            background: rgba(118, 75, 162, 0.46);
            border: 2px solid transparent;
            background-clip: padding-box;
        }
        .math-history-empty {
            text-align: center;
        }
        .math-history-item {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 8px;
            align-items: stretch;
        }
        .math-history-main {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 4px 10px;
            width: 100%;
            padding: 10px 12px;
            border: 1px solid rgba(118, 75, 162, 0.16);
            border-radius: 8px;
            background: var(--card-accent-bg);
            color: var(--text-color);
            cursor: pointer;
            text-align: left;
            transition: background 0.2s ease, transform 0.2s ease;
        }
        .math-history-main:hover {
            background: rgba(118, 75, 162, 0.14);
            transform: translateY(-1px);
        }
        .math-history-expression {
            font-family: 'Consolas', 'Segoe UI', 'Microsoft YaHei', monospace;
            font-weight: 600;
            overflow-wrap: anywhere;
        }
        .math-history-result {
            color: var(--accent-color);
            font-weight: 700;
            overflow-wrap: anywhere;
            text-align: right;
        }
        .math-history-time {
            grid-column: 1 / -1;
            color: var(--text-tertiary);
            font-size: 0.78rem;
        }
        .math-history-actions {
            display: flex;
            gap: 6px;
        }
        .math-history-action {
            min-width: 46px;
            padding: 0 10px;
            border: 1px solid rgba(118, 75, 162, 0.18);
            border-radius: 8px;
            background: var(--surface-color);
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 0.82rem;
            font-weight: 600;
            transition: background 0.2s ease, color 0.2s ease;
        }
        .math-history-action:hover {
            background: var(--btn-hover-bg);
            color: var(--text-color);
        }
        .math-history-delete {
            color: var(--danger-color);
        }
        .math-history-feedback {
            grid-column: 1 / -1;
            display: none;
            color: var(--accent-color);
            font-size: 0.78rem;
            text-align: right;
        }
        .math-history-feedback.show {
            display: block;
        }

        /* 日期方向指示 */
        /* --- 日期方向指示文字：之后（紫色）/ 之前（红色）/ 同一天（蓝色） --- */
        .direction-after {
            color: var(--accent-color);
            font-weight: bold;
        }
        .direction-before {
            color: var(--danger-color);
            font-weight: bold;
        }
        .direction-same {
            color: var(--primary-color);
            font-weight: bold;
        }

        /* Firefox 回退：不支持 backdrop-filter 时使用不透明背景 */
        /* === Firefox 等不支持毛玻璃的浏览器：回退为不透明白底 === */
        @supports not (backdrop-filter: blur(1px)) {
            .container,
            .help-panel {
                background: var(--card-bg-solid);
            }
        }

        /* 实时范围提示 */
        /* === 实时范围提示（默认隐藏，超范围时显示橙色警告） === */
        .range-hint {
            display: none;
            font-size: 0.8rem;
            color: var(--warning-color);
            margin-top: 4px;
        }
        .range-hint.show {
            display: block;
        }

