/* ================================================================
   inkwash.css — 中式水墨国风主样式表
   ================================================================
   设计理念：低饱和度水墨色调、淡雅宣纸质感、大量简约留白
   不使用浮夸花哨装饰，贴合传统合香文化
   响应式自适应：电脑端与手机端
================================================================ */

/* ── 色彩体系：低饱和度水墨色 ────────────────────────────── */
:root {
    --ink-black: #2b2b2b;        /* 墨色 */
    --ink-dark: #3d3d3d;         /* 深墨 */
    --ink-medium: #5a5a5a;       /* 中墨 */
    --ink-light: #8a8a8a;        /* 淡墨 */
    --ink-faint: #b0b0b0;        /* 清墨 */
    --paper: #f5f0e8;            /* 宣纸底色 */
    --paper-light: #faf7f1;      /* 浅宣纸 */
    --paper-dark: #ebe5d8;       /* 深宣纸 */
    --seal-red: #9d3b3b;         /* 印章朱砂红 */
    --seal-red-light: #c46565;   /* 浅朱砂 */
    --bamboo: #6b8e6b;           /* 竹青 */
    --border-color: #d4cfc4;     /* 边框色 */
    --shadow: rgba(43, 43, 43, 0.08);
    --shadow-medium: rgba(43, 43, 43, 0.15);
}

/* ── 全局重置 ──────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", "宋体", serif;
    color: #2b2b2b;               /* 正文文字加黑，不影响背景边框等变量 */
    background-color: var(--paper);
    /* 宣纸纹理：极淡的噪点叠加 */
    background-image:
        radial-gradient(circle at 20% 50%, rgba(180, 170, 150, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(180, 170, 150, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(180, 170, 150, 0.02) 0%, transparent 50%);
    line-height: 1.8;
    letter-spacing: 0.03em;
    min-height: 100vh;
}

/* ── 通用容器 ──────────────────────────────────────────── */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── 顶部导航 ──────────────────────────────────────────── */
.navbar {
    background: var(--paper-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px var(--shadow);
}

.navbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink-black);
    letter-spacing: 0.15em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand .seal {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--seal-red);
    color: var(--paper-light);
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 32px;
    text-align: center;
    letter-spacing: 0;
    font-weight: 400;
}

.navbar-brand .logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.navbar-menu a {
    color: var(--ink-medium);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

.navbar-menu a:hover {
    color: var(--seal-red);
}

.navbar-user {
    color: var(--ink-light);
    font-size: 0.85rem;
}

/* ── 页面标题 ──────────────────────────────────────────── */
.page-title {
    text-align: center;
    margin: 48px 0 8px;
}

.page-title h1 {
    font-size: 1.8rem;
    color: var(--ink-black);
    font-weight: 600;
    letter-spacing: 0.2em;
}

.page-title .subtitle {
    color: var(--ink-light);
    font-size: 0.9rem;
    margin-top: 8px;
    letter-spacing: 0.1em;
}

/* ── 卡片面板 ──────────────────────────────────────────── */
.panel {
    background: var(--paper-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 32px;
    margin: 24px 0;
    box-shadow: 0 2px 8px var(--shadow);
}

.panel-title {
    font-size: 1.1rem;
    color: var(--ink-black);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.1em;
}

/* ── 表单元素 ──────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--ink-medium);
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: var(--paper);
    color: var(--ink-dark);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--seal-red-light);
    box-shadow: 0 0 0 2px rgba(157, 59, 59, 0.08);
}

.form-control::placeholder {
    color: var(--ink-faint);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    line-height: 1.8;
}

/* ── 按钮 ──────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: var(--paper);
    color: var(--ink-medium);
    font-size: 0.9rem;
    font-family: inherit;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    border-color: var(--ink-light);
    color: var(--ink-dark);
}

.btn-primary {
    background: var(--ink-black);
    color: #faf7f1 !important;
    border-color: var(--ink-black);
}

.btn-primary:hover {
    background: var(--ink-dark);
    border-color: var(--ink-dark);
}

.btn-seal {
    background: var(--seal-red);
    color: #faf7f1 !important;
    border-color: var(--seal-red);
}

.btn-seal:hover {
    background: var(--seal-red-light);
    border-color: var(--seal-red-light);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-color);
    color: var(--ink-light);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── 配香表单区 ────────────────────────────────────────── */
.recipe-import-area {
    margin-bottom: 24px;
}

.recipe-import-area textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border: 1px dashed var(--border-color);
    border-radius: 3px;
    background: var(--paper);
    color: var(--ink-dark);
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.8;
    resize: vertical;
}

.recipe-import-area textarea:focus {
    outline: none;
    border-color: var(--seal-red-light);
    border-style: solid;
}

/* ── 香材列表表 ────────────────────────────────────────── */
.spice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.spice-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--ink-light);
    font-size: 0.85rem;
    font-weight: 400;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.05em;
}

.spice-table td {
    padding: 12px;
    border-bottom: 1px solid var(--paper-dark);
    color: var(--ink-dark);
    font-size: 0.9rem;
}

.spice-table tr:last-child td {
    border-bottom: none;
}

.spice-name-input {
    position: relative;
}

/* 香料联想搜索下拉 */
.spice-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-light);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 3px 3px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 8px var(--shadow);
}

.spice-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ink-dark);
    border-bottom: 1px solid var(--paper-dark);
    transition: background 0.15s;
}

.spice-suggestion-item:hover {
    background: var(--paper-dark);
}

.spice-suggestion-item:last-child {
    border-bottom: none;
}

.spice-suggestion-item .price-hint {
    float: right;
    color: var(--ink-faint);
    font-size: 0.8rem;
}

/* 克重输入 */
.weight-input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: var(--paper);
    color: var(--ink-dark);
    font-size: 0.9rem;
    font-family: inherit;
    text-align: center;
}

.weight-input:focus {
    outline: none;
    border-color: var(--seal-red-light);
}

/* 价格显示 */
.price-cell {
    color: var(--seal-red);
    font-size: 0.9rem;
}

/* ── 总价区 ────────────────────────────────────────────── */
.total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 8px;
    border-top: 2px solid var(--ink-faint);
}

.total-bar .total-label {
    color: var(--ink-medium);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}

.total-bar .total-amount {
    color: var(--seal-red);
    font-size: 1.5rem;
    font-weight: 600;
}

/* ── 订单状态标签 ──────────────────────────────────────── */
.status-tag {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 2px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.status-待支付 { background: #f0e6d3; color: #8a7355; }
.status-已付款 { background: #e8f0e0; color: #5a7a4a; }
.status-调配中 { background: #e0ecf0; color: #4a6a7a; }
.status-已发货 { background: #e0e8f0; color: #4a5a7a; }
.status-已完成 { background: #e8e8e8; color: #5a5a5a; }
.status-已关闭 { background: #f0e0e0; color: #7a4a4a; }

/* ── 订单卡片 ──────────────────────────────────────────── */
.order-card {
    background: var(--paper-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px var(--shadow);
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.order-card-header .order-no {
    color: var(--ink-medium);
    font-size: 0.9rem;
}

.order-card-header .order-time {
    color: var(--ink-faint);
    font-size: 0.85rem;
}

.order-items-list {
    list-style: none;
    margin: 12px 0;
}

.order-items-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--ink-dark);
    font-size: 0.9rem;
    border-bottom: 1px dotted var(--paper-dark);
}

.order-items-list li:last-child {
    border-bottom: none;
}

.order-card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card-footer .order-total {
    color: var(--seal-red);
    font-size: 1.1rem;
    font-weight: 600;
}

.order-remark {
    color: var(--ink-light);
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--paper);
    border-radius: 3px;
    border-left: 3px solid var(--border-color);
}

/* 物流信息 */
.express-info {
    margin-top: 12px;
    padding: 12px;
    background: var(--paper);
    border-radius: 3px;
    border: 1px solid var(--border-color);
}

.express-info .express-label {
    color: var(--ink-light);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.express-info .express-value {
    color: var(--ink-dark);
    font-size: 0.9rem;
}

/* ── 下单成功页 ────────────────────────────────────────── */
.success-container {
    text-align: center;
    padding: 60px 24px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border: 2px solid var(--bamboo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bamboo);
    font-size: 1.8rem;
}

.success-title {
    color: var(--ink-black);
    font-size: 1.4rem;
    margin-bottom: 16px;
    letter-spacing: 0.15em;
}

.success-order-no {
    color: var(--seal-red);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.success-hint {
    color: var(--ink-medium);
    font-size: 0.95rem;
    line-height: 2;
    max-width: 480px;
    margin: 0 auto 32px;
    white-space: pre-line;
}

/* ── 空状态 ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--ink-faint);
}

.empty-state .empty-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.empty-state .empty-text {
    font-size: 0.95rem;
}

/* ── 页脚 ──────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 20px 24px 6px;
    color: var(--ink-faint);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* ── 消息提示 ──────────────────────────────────────────── */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    background: var(--ink-black);
    color: var(--paper-light);
    border-radius: 3px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

.toast.error {
    background: var(--seal-red);
}

/* ── 模态框 ────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 43, 43, 0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--paper-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 32px;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.modal-title {
    font-size: 1.1rem;
    color: var(--ink-black);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    float: right;
    cursor: pointer;
    color: var(--ink-faint);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--ink-dark);
}

/* ── 移动端全局增强（App级体验） ────────────────────────── */
/* 触摸高亮移除 + 滚动优化 */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

/* 输入框聚焦时阻止iOS自动放大 */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* ── 响应式：手机端适配（全面App化） ───────────────────── */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* 安全区域适配 */
    .navbar {
        padding-top: env(safe-area-inset-top, 0);
    }

    .container {
        padding: 0 12px;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
    }

    /* 导航栏优化 */
    .navbar-inner {
        padding: 0 12px;
        height: 52px;
    }

    .navbar-brand {
        font-size: 1.1rem;
        letter-spacing: 0.08em;
    }

    .navbar-brand .logo-img {
        width: 30px;
        height: 30px;
    }

    .navbar-menu {
        gap: 12px;
    }

    .navbar-menu a {
        font-size: 0.82rem;
        padding: 6px 4px;
    }

    .navbar-user {
        display: none;
    }

    /* 页面标题 */
    .page-title {
        margin: 20px 0 6px;
    }

    .page-title h1 {
        font-size: 1.35rem;
        letter-spacing: 0.12em;
    }

    .page-title .subtitle {
        font-size: 0.82rem;
        margin-top: 4px;
    }

    /* 面板卡片化 */
    .panel {
        padding: 16px 14px;
        margin: 14px 0;
        border-radius: 8px;
    }

    .panel-title {
        font-size: 1rem;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    /* 折叠面板交互增强 */
    .collapsible-header {
        padding: 4px 0;
    }

    .panel-hint {
        font-size: 0.78rem;
        padding: 4px 0 8px;
    }

    /* 表单元素 App 化 */
    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 0.9rem;
        border-radius: 6px;
        min-height: 44px;
    }

    textarea.form-control {
        min-height: 80px;
        border-radius: 6px;
    }

    /* 按钮触摸友好 */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        border-radius: 6px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-sm {
        padding: 8px 16px;
        font-size: 0.82rem;
        min-height: 36px;
    }

    .btn-ghost {
        border-radius: 6px;
    }

    /* 配方导入区 */
    .recipe-import-area textarea {
        min-height: 90px;
        padding: 12px;
        border-radius: 6px;
        font-size: 0.9rem;
    }

    /* 香材表格 → 卡片式布局 */
    .spice-table thead {
        display: none;
    }

    .spice-table, .spice-table tbody, .spice-table tr, .spice-table td {
        display: block;
        width: 100%;
    }

    .spice-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px 12px;
        background: var(--paper);
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }

    .spice-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 7px 0;
        border-bottom: 1px dotted var(--paper-dark);
        text-align: right;
        font-size: 0.88rem;
        min-height: 36px;
    }

    .spice-table td::before {
        content: attr(data-label);
        color: var(--ink-light);
        font-size: 0.8rem;
        text-align: left;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .spice-table td:last-child {
        border-bottom: none;
    }

    /* 表格内的输入框适配 */
    .spice-table input[type="text"],
    .spice-table input[type="number"],
    .spice-table select {
        max-width: 55%;
        font-size: 0.88rem;
        padding: 8px 10px;
        min-height: 38px;
        border-radius: 5px;
    }

    .weight-input {
        width: 72px !important;
        padding: 8px 6px;
        font-size: 0.88rem;
    }

    /* 搜索下拉建议 */
    .spice-suggestions {
        max-height: 260px;
        border-radius: 0 0 6px 6px;
    }

    .spice-suggestion-item {
        padding: 12px 14px;
        font-size: 0.88rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* 总价区固定底部 */
    .total-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        position: sticky;
        bottom: 0;
        background: var(--paper-light);
        z-index: 50;
        border-top: 2px solid var(--ink-faint);
        border-radius: 8px;
        margin: 8px -14px 0;
        padding: 14px;
    }

    .total-bar .total-label {
        font-size: 0.9rem;
    }

    .total-bar .total-amount {
        font-size: 1.3rem;
    }

    /* 订单卡片 */
    .order-card {
        padding: 14px;
        border-radius: 8px;
        margin-bottom: 14px;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .order-card-header .order-no {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .order-items-list li {
        font-size: 0.85rem;
        padding: 5px 0;
    }

    .order-card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .order-card-footer .order-total {
        font-size: 1.05rem;
        text-align: right;
    }

    .order-card-footer .btn {
        width: 100%;
    }

    /* 模态框全屏化 */
    .modal-overlay {
        align-items: flex-end;
    }

    .modal-box {
        padding: 20px 16px;
        max-width: 100%;
        width: 100%;
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* 公告弹窗适配 */
    .ann-modal {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        padding: 20px 16px;
    }

    .ann-modal-mask {
        align-items: flex-end;
    }

    /* 公告列表 */
    .ann-list {
        padding: 10px 14px;
        border-radius: 6px;
    }

    .ann-link {
        font-size: 0.84rem;
        padding: 8px 0;
    }

    /* 提交按钮全宽 */
    .btn-seal[onclick*="submitOrder"] {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    /* 配伍模块适配 */
    .blend-category-tabs button {
        padding: 10px 8px !important;
        font-size: 0.85rem !important;
    }

    /* 地址表单输入框 */
    #address-form-area input.form-control {
        font-size: 0.88rem;
        padding: 10px 12px;
        min-height: 42px;
    }

    /* 地址选择面板 */
    #addr-picker-panel {
        max-height: 300px;
    }

    /* 成品搜索 */
    #product-search,
    #blend-search {
        font-size: 0.88rem;
        padding: 12px 14px;
        min-height: 44px;
    }

    /* 下单成功页 */
    .success-container {
        padding: 32px 16px;
    }

    .success-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .success-title {
        font-size: 1.2rem;
    }

    /* 空状态 */
    .empty-state {
        padding: 40px 16px;
    }

    /* 页脚 */
    .footer {
        padding: 16px 12px 4px;
        font-size: 0.75rem;
    }

    /* Toast 位置调整 */
    .toast {
        top: 60px;
        padding: 10px 20px;
        font-size: 0.85rem;
        max-width: 90%;
        text-align: center;
    }

    /* 闪屏 */
    #welcome-splash img {
        width: 72px !important;
        height: 72px !important;
    }

    /* 声明弹窗 */
    .disclaimer-content {
        font-size: 0.85rem;
        line-height: 1.85;
    }

    .disclaimer-content h3 {
        font-size: 0.88rem;
    }
}

/* ── 超小屏幕（≤375px）极致优化 ──────────────────────── */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand .logo-img {
        width: 26px;
        height: 26px;
    }

    .navbar-menu {
        gap: 8px;
    }

    .navbar-menu a {
        font-size: 0.78rem;
    }

    .page-title h1 {
        font-size: 1.2rem;
    }

    .panel {
        padding: 14px 10px;
    }

    .spice-table tr {
        padding: 8px 10px;
    }

    .spice-table td {
        font-size: 0.82rem;
        padding: 6px 0;
    }

    .total-bar .total-amount {
        font-size: 1.15rem;
    }

    .blend-category-tabs button {
        font-size: 0.8rem !important;
        padding: 8px 6px !important;
    }
}

/* ── 网站声明弹窗排版 ────────────────────────────────── */
.disclaimer-content {
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--ink-medium);
    text-align: left;
}

.disclaimer-content h3 {
    font-size: 0.92rem;
    color: var(--ink-dark);
    font-weight: 600;
    margin: 18px 0 8px 0;
    padding-left: 10px;
    border-left: 3px solid var(--seal-red);
    line-height: 1.5;
}

.disclaimer-content h3:first-child {
    margin-top: 4px;
}

.disclaimer-content p {
    margin: 0 0 8px 0;
    text-indent: 2em;
}

/* ── 文字颜色加深覆盖（仅影响文字，不改动背景/边框/阴影变量） ── */
/* 注意：不覆盖 .btn / .btn-primary / .btn-seal 等按钮，避免深色按钮文字不可见 */
body,
.navbar-brand,
.navbar-menu a,
.panel-title,
.subtitle,
.form-control,
.spice-table th,
.spice-table td,
.price-cell,
textarea,
input,
select,
.footer,
.footer a,
.page-title h1,
label,
.suggestion-item .price-hint,
.spice-suggestion-item,
.disclaimer-content p,
.disclaimer-content li,
.disclaimer-content h3,
.order-card,
.order-detail-section,
.empty-hint {
    color: #2b2b2b !important;
}

/* 次级文字（占位提示、辅助说明等）适度加深 */
.subtitle,
.price-hint,
.spice-suggestion-item .price-hint,
input::placeholder,
textarea::placeholder,
#product-empty-hint,
.empty-hint {
    color: #666666 !important;
}
