/* 墨韵丹青 - 中华书画风格，移动端优先 */
/* 字体: Noto Serif SC (书法气质标题) + Noto Sans SC (正文) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* === 墨色系 === */
    --ink: #1A1410;              /* 松烟墨 - 暖调深黑 */
    --ink-wash: #3D3530;         /* 淡墨灰 */
    --ink-light: #6B635C;        /* 浅墨 */
    --ink-pale: #B8B0A8;         /* 极淡墨 */

    /* === 朱砂红 === */
    --vermillion: #C3443A;       /* 朱砂红 - 如印章之色 */
    --vermillion-deep: #9E3028;  /* 深朱砂 */
    --vermillion-light: #E8685A; /* 亮朱砂 */
    --vermillion-pale: #FDF0EE;  /* 淡朱砂底 */

    /* === 宣纸色 === */
    --rice: #F9F5ED;             /* 宣纸白 */
    --rice-dark: #EFE9DC;        /* 旧宣纸 */
    --rice-deeper: #E5DDCE;      /* 更深的纸色 */

    /* === 金粉点缀 === */
    --gold: #B8944A;             /* 古铜金 */
    --gold-light: #D4B96A;       /* 亮金粉 */

    /* === 表面与背景 === */
    --white: #FEFCF7;            /* 暖白 */
    --surface: #FEFCF7;

    /* === 功能色 === */
    --success: #5B8C5A;
    --danger: #C3443A;

    /* === 圆角 === */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* === 阴影 - 水墨画讲究层次，阴影要柔和 === */
    --shadow-xs: 0 1px 2px rgba(26,20,16,0.03);
    --shadow-sm: 0 1px 3px rgba(26,20,16,0.04), 0 1px 2px rgba(26,20,16,0.03);
    --shadow: 0 2px 10px rgba(26,20,16,0.05), 0 4px 6px rgba(26,20,16,0.03);
    --shadow-md: 0 6px 20px rgba(26,20,16,0.07), 0 2px 6px rgba(26,20,16,0.04);
    --shadow-lg: 0 12px 36px rgba(26,20,16,0.09), 0 4px 10px rgba(26,20,16,0.04);

    /* === 字体 === */
    --font-display: 'Noto Serif SC', 'Noto Serif', Georgia, 'Times New Roman', serif;
    --font-body: 'Noto Sans SC', 'Noto Sans', -apple-system, sans-serif;

    /* === 过渡 === */
    --ease-ink: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-brush: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--rice);
    color: var(--ink);
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    /* 宣纸纹理：多层次微噪点 + 纤维感 */
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 15% 8%, rgba(195,68,58,0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 95%, rgba(26,20,16,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 40%, rgba(184,148,74,0.02) 0%, transparent 60%);
    background-attachment: fixed;
}

/* ========== 顶部导航栏 - 墨色横幅 ========== */
.header {
    background: var(--ink);
    /* 墨色有微妙层次，非纯黑 */
    background: linear-gradient(175deg, #1F1914 0%, #1A1410 30%, #1D1713 100%);
    color: var(--white);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    /* 底部朱砂红细线，如书法藏锋 */
    border-bottom: 2px solid var(--vermillion);
    box-shadow: 0 2px 24px rgba(26,20,16,0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
}

.header-logo {
    font-size: 22px;
    filter: drop-shadow(0 0 8px rgba(195,68,58,0.4));
    flex-shrink: 0;
}

/* 餐厅名链接 —— 点击回到点餐页 */
.header-brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-brand-link:hover h1 {
    color: var(--vermillion-light);
    transition: color 0.2s;
}

.header h1 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 语言切换器 - 印章式胶囊 */
.lang-switch {
    display: flex;
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 2px;
    backdrop-filter: blur(8px);
}

.lang-switch a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 8px;
    border-radius: 16px;
    transition: all 0.3s var(--ease-ink);
    font-family: var(--font-body);
}

.lang-switch a.active {
    background: var(--vermillion);
    color: #fff;
    box-shadow: 0 1px 6px rgba(195,68,58,0.4);
}

.lang-switch a:hover:not(.active) {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.08);
}

/* 购物车图标 */
.cart-btn {
    position: relative;
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 19px;
    cursor: pointer;
    padding: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.25s var(--ease-brush);
}

.cart-btn:hover {
    color: #fff;
    transform: scale(1.06);
}

.cart-btn:active {
    transform: scale(0.94);
}

/* 我的订单按钮（带文字） */
.my-orders-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    transition: all 0.25s var(--ease-brush);
    white-space: nowrap;
    max-width: 130px;
}

.my-orders-btn .my-orders-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-orders-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.my-orders-text {
    display: inline;
}

/* 语言下拉菜单 */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    font-family: var(--font-body);
    transition: all 0.2s var(--ease-brush);
}

.lang-dropdown-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.lang-arrow {
    font-size: 7px;
    transition: transform 0.2s;
}

.lang-dropdown.open .lang-arrow,
.account-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--surface);
    border: 1px solid var(--rice-deeper);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(26,20,16,0.18);
    z-index: 200;
    min-width: 70px;
    overflow: hidden;
}

.lang-dropdown.open .lang-dropdown-menu {
    display: block;
}

.lang-dropdown-menu a {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-light);
    letter-spacing: 0.8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-dropdown-menu a:hover {
    background: var(--rice-dark);
    color: var(--ink);
}

.lang-dropdown-menu a.active {
    color: var(--vermillion);
    background: var(--vermillion-pale);
    font-weight: 700;
}

/* 账户下拉菜单 */
.account-dropdown {
    position: relative;
}

.account-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
    transition: all 0.2s var(--ease-brush);
    max-width: 90px;
}

.account-dropdown-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.account-username {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--surface);
    border: 1px solid var(--rice-deeper);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(26,20,16,0.18);
    z-index: 200;
    min-width: 150px;
    overflow: hidden;
}

.account-dropdown.open .account-dropdown-menu {
    display: block;
}

.account-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.account-dropdown-menu a:hover {
    background: var(--rice-dark);
}

/* 登录按钮 */
.header-login-btn {
    color: var(--vermillion-light);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(195,68,58,0.3);
    background: rgba(195,68,58,0.1);
    transition: all 0.25s var(--ease-brush);
    white-space: nowrap;
}

.header-login-btn:hover {
    background: rgba(195,68,58,0.2);
    color: #fff;
    border-color: rgba(195,68,58,0.5);
}

/* 购物车角标 - 朱砂红圆点 */
.cart-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background: var(--vermillion);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    font-family: var(--font-body);
    box-shadow: 0 1px 4px rgba(195,68,58,0.5);
}

.cart-badge:empty {
    display: none;
}

/* ========== 主内容区 ========== */
.main-content {
    padding: 14px;
    padding-bottom: 40px;
}

/* 餐桌信息 - 水墨边框卡片 */
.table-info {
    background: var(--surface);
    border: 1px solid var(--rice-deeper);
    border-left: 3px solid var(--vermillion);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xs);
    font-size: 13px;
    color: var(--ink-light);
    letter-spacing: 0.5px;
    animation: inkReveal 0.5s var(--ease-ink) both;
}

.table-info strong {
    font-family: var(--font-display);
    color: var(--vermillion);
    font-size: 18px;
    font-weight: 700;
}

/* ========== 分类标签 - 水墨笔触风格 ========== */
.category-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 14px;
    margin-bottom: 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 0 0 auto;
    padding: 10px 18px;
    background: var(--surface);
    border: 1.5px solid var(--rice-deeper);
    border-radius: 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-light);
    cursor: pointer;
    transition: all 0.35s var(--ease-ink);
    white-space: nowrap;
    text-decoration: none;
    font-family: var(--font-body);
    letter-spacing: 1px;
    position: relative;
}

.category-tab.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(26,20,16,0.25);
    transform: translateY(-1px);
}

.category-tab:hover:not(.active) {
    border-color: var(--vermillion);
    color: var(--vermillion);
}

/* ========== 分类标题 - 书法风格 ========== */
.category-section {
    margin-bottom: 28px;
}

.category-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rice-deeper);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 2px;
    position: relative;
}

/* 标题前朱砂红方块 - 如印章 */
.category-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--vermillion);
    border-radius: 1px;
}

/* ========== 菜品卡片 - 水墨框 ========== */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow-xs);
    transition: all 0.4s var(--ease-ink);
    cursor: pointer;
    animation: inkReveal 0.5s var(--ease-ink) both;
    position: relative;
}

/* 卡片左侧朱砂红细线，hover 才显现，如藏锋露笔 */
.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    background: var(--vermillion);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transform: scaleY(0.5);
    transition: all 0.35s var(--ease-brush);
}

.menu-item:hover {
    border-color: var(--rice-deeper);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.menu-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.menu-item:active {
    transform: scale(0.985);
    transition: transform 0.1s;
}

/* 入场交错延迟 */
.menu-item:nth-child(1) { animation-delay: 0.03s; }
.menu-item:nth-child(2) { animation-delay: 0.07s; }
.menu-item:nth-child(3) { animation-delay: 0.11s; }
.menu-item:nth-child(4) { animation-delay: 0.15s; }
.menu-item:nth-child(5) { animation-delay: 0.19s; }
.menu-item:nth-child(6) { animation-delay: 0.23s; }
.menu-item:nth-child(7) { animation-delay: 0.27s; }
.menu-item:nth-child(8) { animation-delay: 0.31s; }
.menu-item:nth-child(9) { animation-delay: 0.35s; }
.menu-item:nth-child(10) { animation-delay: 0.39s; }

/* 菜品图片 */
.menu-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--rice-dark), var(--rice-deeper));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--vermillion);
    overflow: hidden;
    border: 1px solid var(--rice-deeper);
}

.menu-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    letter-spacing: 0.8px;
}

.menu-item-desc {
    font-size: 12px;
    color: var(--ink-light);
    line-height: 1.45;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.menu-item-price {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--vermillion);
    letter-spacing: 0.5px;
}

/* 加入购物车 - 朱砂红按钮 */
.add-btn {
    background: var(--vermillion);
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-ink);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(195,68,58,0.2);
}

.add-btn:hover {
    background: var(--vermillion-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(195,68,58,0.3);
}

.add-btn:active {
    transform: scale(0.94);
    transition: transform 0.1s;
}

/* ========== 购物车页 ========== */

/* 取餐号卡片 */
.pickup-card {
    background: linear-gradient(135deg, var(--rice-dark), var(--rice-deeper));
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 14px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(184,148,74,0.1);
}

.pickup-card-label {
    font-size: 11px;
    color: var(--ink-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.pickup-card-code {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--vermillion);
    letter-spacing: 3px;
}

/* 电话标签 */
.phone-label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    color: var(--ink-wash);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* 电话输入组：区号下拉 + 号码输入 */
.phone-input-group {
    display: flex;
    gap: 0;
    border: 2px solid var(--rice-deeper);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s var(--ease-brush);
}

.phone-input-group:focus-within {
    border-color: var(--vermillion);
    box-shadow: 0 0 0 3px rgba(195,68,58,0.07);
}

.phone-prefix-select {
    background: var(--rice-dark);
    border: none;
    border-right: 1px solid var(--rice-deeper);
    padding: 11px 10px;
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--ink);
    cursor: pointer;
    outline: none;
    min-width: 100px;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B635C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.phone-prefix-select:focus {
    background: var(--rice-deeper);
}

.phone-number-input {
    flex: 1;
    border: none;
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--surface);
    outline: none;
    letter-spacing: 0.5px;
}

.phone-number-input::placeholder {
    color: var(--ink-pale);
}

/* 确认下单弹窗 */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,20,16,0.55);
    backdrop-filter: blur(3px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-dialog {
    background: var(--surface);
    border: 2px solid var(--vermillion);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(26,20,16,0.25);
}

.confirm-dialog h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: 1.5px;
}

.confirm-dialog p {
    font-size: 14px;
    color: var(--ink-light);
    margin-bottom: 22px;
    line-height: 1.5;
}

.confirm-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cart-page {
    padding: 14px;
    padding-bottom: 36px;
}

.cart-header {
    text-align: center;
    margin-bottom: 22px;
}

.cart-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.cart-header .table-badge {
    display: inline-block;
    background: var(--ink);
    color: var(--white);
    padding: 5px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.cart-item {
    background: var(--surface);
    border: 1px solid var(--rice-deeper);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-xs);
    transition: all 0.3s var(--ease-ink);
    animation: inkReveal 0.35s var(--ease-ink) both;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: 0.6px;
}

.cart-item-price {
    color: var(--ink-light);
    font-size: 12px;
    margin-top: 3px;
}

/* 数量控制器 */
.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--rice-deeper);
    background: var(--surface);
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-ink);
    font-family: var(--font-body);
}

.qty-btn:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-value {
    font-weight: 700;
    font-size: 15px;
    min-width: 24px;
    text-align: center;
    color: var(--ink);
    font-family: var(--font-display);
}

.cart-item-total {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--vermillion);
    min-width: 60px;
    text-align: right;
}

/* 空购物车 */
.cart-empty {
    text-align: center;
    padding: 72px 20px;
    color: var(--ink-light);
}

.cart-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--ink-wash);
    letter-spacing: 1px;
}

/* 总价区域 */
.cart-summary {
    background: var(--surface);
    border: 1px solid var(--rice-deeper);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 14px;
    box-shadow: var(--shadow-xs);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--ink-light);
}

.cart-summary-row.total {
    border-top: 2px solid var(--rice-deeper);
    margin-top: 8px;
    padding-top: 14px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--vermillion);
    letter-spacing: 1px;
}

/* 餐桌号输入 */
#table-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--rice-deeper);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--ink);
    transition: all 0.3s var(--ease-ink);
    outline: none;
    letter-spacing: 1px;
}

#table-input:focus {
    border-color: var(--vermillion);
    box-shadow: 0 0 0 3px rgba(195,68,58,0.08);
}

#table-input::placeholder {
    color: var(--ink-pale);
}

/* ========== 按钮系统 ========== */
.btn-primary {
    display: block;
    width: 100%;
    background: var(--vermillion);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.35s var(--ease-ink);
    margin-top: 14px;
    min-height: 54px;
    line-height: 1.4;
    font-family: var(--font-body);
    letter-spacing: 2px;
    box-shadow: 0 4px 14px rgba(195,68,58,0.2);
}

.btn-primary:hover {
    background: var(--vermillion-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(195,68,58,0.28);
}

.btn-primary:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

.btn-secondary {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: var(--radius-xl);
    padding: 13px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s var(--ease-ink);
    margin-top: 10px;
    min-height: 54px;
    line-height: 1.4;
    font-family: var(--font-body);
    letter-spacing: 2px;
}

.btn-secondary:hover {
    background: var(--ink);
    color: #fff;
}

.btn-secondary:active {
    transform: scale(0.97);
}

/* ========== 结算页 ========== */
.checkout-page {
    padding: 14px;
    padding-bottom: 36px;
}

.checkout-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.order-summary-list {
    margin-bottom: 14px;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--rice-deeper);
    font-size: 14px;
    color: var(--ink);
}

.order-summary-item .qty {
    color: var(--ink-light);
    margin-right: 8px;
    font-weight: 500;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--vermillion);
    border-top: 2px solid var(--vermillion);
    letter-spacing: 1px;
}

.payment-section {
    background: var(--surface);
    border: 1px solid var(--rice-deeper);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
    box-shadow: var(--shadow-xs);
}

.payment-section h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ink);
    letter-spacing: 1.5px;
}

/* 前台结账提示 */
.pay-at-counter-box {
    background: var(--surface);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 28px 20px;
    margin-top: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(184,148,74,0.12);
}

.pay-at-counter-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.pay-at-counter-text {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1px;
    line-height: 1.6;
}

/* Apple Pay */
#apple-pay-button {
    display: none;
    width: 100%;
    height: 48px;
    margin-bottom: 12px;
}

.apple-pay-button {
    display: none;
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: buy;
    -apple-pay-button-style: black;
    width: 100%;
    height: 48px;
    cursor: pointer;
}

#card-payment-btn {
    margin-top: 8px;
}

/* ========== 支付成功/取消页 ========== */
.success-page {
    text-align: center;
    padding: 72px 24px;
}

.success-icon {
    font-size: 72px;
    margin-bottom: 20px;
    animation: sealStamp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 印章按下动画 */
@keyframes sealStamp {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    60% { transform: scale(1.12) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.success-page h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.success-page p {
    color: var(--ink-light);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.success-order-id {
    display: inline-block;
    background: var(--ink);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin: 16px 0;
    letter-spacing: 1.5px;
}

/* ========== Toast 提示 - 墨色底朱砂字 ========== */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--white);
    padding: 13px 26px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    z-index: 200;
    animation: inkFloat 0.4s var(--ease-brush);
    box-shadow: var(--shadow-md);
    font-family: var(--font-body);
    letter-spacing: 1px;
    border: 1px solid rgba(195,68,58,0.3);
}

@keyframes inkFloat {
    from { transform: translateX(-50%) translateY(14px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.toast-hide {
    animation: inkSink 0.3s ease forwards;
}

@keyframes inkSink {
    to { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* ========== 通用动画 ========== */
@keyframes inkReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 移动端响应式适配 ========== */

/* 小屏手机（≤374px，如 iPhone SE/mini） */
@media (max-width: 374px) {
    body {
        max-width: 100%;
    }

    .header {
        padding: 10px 12px;
    }

    .header h1 {
        font-size: 14px;
        letter-spacing: 1px;
        max-width: 100px;
    }

    .header-logo {
        font-size: 18px;
    }

    .lang-switch a {
        font-size: 9px;
        padding: 3px 6px;
    }

    .my-orders-btn {
        font-size: 14px;
        padding: 4px 6px;
        background: transparent;
    }

    .my-orders-text {
        display: none;
    }

    .lang-dropdown-toggle,
    .account-dropdown-toggle {
        padding: 3px 5px;
        font-size: 9px;
    }

    .header-login-btn {
        padding: 4px 6px;
        font-size: 9px;
    }

    .cart-btn {
        font-size: 17px;
        padding: 4px;
    }

    .main-content {
        padding: 10px;
    }

    .menu-item {
        padding: 10px;
        gap: 10px;
    }

    .menu-item-img {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .menu-item-name {
        font-size: 13px;
    }

    .menu-item-price {
        font-size: 15px;
    }

    .add-btn {
        padding: 7px 12px;
        font-size: 11px;
    }

    .category-tab {
        padding: 8px 14px;
        font-size: 12px;
    }

    .category-title {
        font-size: 17px;
    }
}

/* 常规手机（375px-480px）微调 */
@media (max-width: 480px) {
    body {
        max-width: 100%;
    }

    .header-right {
        gap: 6px;
    }

    .lang-switch a {
        padding: 4px 7px;
    }

    /* 小屏幕隐藏"我的订单"文字，只显示图标 */
    .my-orders-text {
        display: none;
    }

    .my-orders-btn {
        padding: 6px 8px;
        font-size: 14px;
        background: transparent;
    }

    /* 下拉菜单全宽 */
    .lang-dropdown-menu {
        min-width: 60px;
    }

    .lang-dropdown-menu a {
        padding: 7px 10px;
        font-size: 11px;
    }

    .account-dropdown-menu {
        min-width: 130px;
    }

    .account-dropdown-menu a {
        padding: 9px 12px;
        font-size: 12px;
    }

    .lang-dropdown-toggle,
    .account-dropdown-toggle {
        padding: 4px 6px;
        font-size: 10px;
    }

    .header-login-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* ========== 菜单页悬浮购物车 ========== */
.menu-cart-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 150;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--vermillion);
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(195,68,58,0.35);
    transition: all 0.25s var(--ease-brush);
}

.menu-cart-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(195,68,58,0.45);
    color: #fff;
    text-decoration: none;
}

.menu-cart-fab:active {
    transform: scale(0.94);
}

.cart-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--ink);
    color: #fff;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--vermillion);
    font-family: var(--font-body);
}

.cart-fab-badge:empty {
    display: none;
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
