/* =====================================================
   东北菜菜谱网站 - 前端样式
   ===================================================== */

:root {
    --red: #c0392b;
    --red-light: #e74c3c;
    --red-dark: #96281b;
    --gold: #d4a017;
    --gold-light: #f0c75e;
    --bg: #fefcf8;
    --bg-warm: #fdf6ee;
    --card-bg: #ffffff;
    --text: #2c2c2c;
    --text-secondary: #666;
    --text-light: #999;
    --border: #eee;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

img { max-width: 100%; display: block; }

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部导航 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--red);
}

.navbar-brand .brand-icon {
    font-size: 30px;
}

.navbar-brand .brand-text {
    letter-spacing: 2px;
}

.navbar-nav {
    display: flex;
    gap: 6px;
    list-style: none;
}

.navbar-nav a {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    background: var(--red);
    color: #fff;
}

/* 移动端菜单（默认隐藏，仅响应式开启） */
.mobile-nav {
    display: none;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ========== Hero区域 ========== */
.hero {
    padding-top: 100px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 40%, #4a1942 70%, #1a1a2e 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(192,57,43,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(212,160,23,0.1) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 8px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 36px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-size: 36px;
    font-weight: 800;
    color: var(--gold-light);
    display: block;
}

.hero-stat .label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

/* ========== 分类导航 ========== */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-header h2 .highlight {
    color: var(--red);
}

.section-header p {
    color: var(--text-light);
    font-size: 15px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--red);
}

.category-card .cat-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-light);
}

.category-card .cat-count {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 12px;
    background: var(--bg-warm);
    border-radius: 12px;
    font-size: 12px;
    color: var(--red);
}

/* ========== 推荐菜品 ========== */
.featured-section {
    background: var(--bg-warm);
}

.dish-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dish-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dish-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.dish-card .card-image {
    height: 200px;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    position: relative;
    overflow: hidden;
}

.dish-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-card .card-image .card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.dish-card .card-image .card-emoji {
    position: absolute;
    bottom: -10px;
    right: 16px;
    font-size: 56px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.dish-card .card-body {
    padding: 18px 20px 22px;
}

.dish-card .card-category {
    font-size: 12px;
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.dish-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.dish-card .card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.dish-card .card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.dish-card .card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== 分类菜品页 ========== */
.page-hero {
    padding: 100px 0 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 100%);
    color: #fff;
    text-align: center;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--red);
}

.breadcrumb .sep {
    color: #ccc;
}

/* ========== 菜品详情页 ========== */
.dish-detail {
    padding: 30px 0 60px;
}

.dish-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.dish-detail-cover {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    height: 400px;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.dish-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-detail-info h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.dish-detail-info .subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.dish-meta-list {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-warm);
    border-radius: 10px;
}

.meta-item .meta-icon {
    font-size: 20px;
}

.meta-item .meta-label {
    font-size: 12px;
    color: var(--text-light);
}

.meta-item .meta-value {
    font-size: 14px;
    font-weight: 600;
}

.dish-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* 食材清单 */
.ingredients-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.ingredients-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ingredient-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 14px;
}

.ingredient-item .ing-name {
    font-weight: 500;
}

.ingredient-item .ing-amount {
    color: var(--text-light);
}

/* 制作步骤 */
.steps-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.steps-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border);
}

.step-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 15px;
    line-height: 1.8;
    padding-top: 6px;
}

/* 小贴士 */
.tips-section {
    background: #fffde7;
    border-radius: var(--radius);
    padding: 24px;
    border-left: 4px solid var(--gold);
    margin-bottom: 30px;
}

.tips-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e65100;
}

.tips-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #5d4037;
}

/* 相关菜品 */
.related-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ========== 页脚 ========== */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.6);
    padding: 40px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col .footer-brand {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.8;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    padding: 3px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    text-align: center;
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

/* ========== 联系方式（微信）========== */
.footer-contact {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(7,193,96,0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    width: fit-content;
    max-width: 100%;
}

.contact-item:hover {
    background: rgba(7,193,96,0.12);
    border-color: rgba(7,193,96,0.55);
    transform: translateY(-1px);
}

.contact-item:active {
    transform: translateY(0);
}

.contact-item .wechat-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-item .contact-label {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
}

.contact-item .contact-value {
    color: #07C160;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", monospace;
}

/* ========== 微信浮动按钮（移动端）========== */
.wechat-float {
    position: fixed;
    right: 16px;
    bottom: 90px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #07C160;
    box-shadow: 0 6px 18px rgba(7,193,96,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.25s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.wechat-float svg {
    width: 30px;
    height: 30px;
}

.wechat-float:hover {
    transform: scale(1.08);
    background: #06AD56;
    box-shadow: 0 8px 22px rgba(7,193,96,0.5);
}

.wechat-float:active {
    transform: scale(0.95);
}

.wechat-float-tip {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    text-align: center;
}

.wechat-float-tip b {
    color: #07C160;
    font-size: 13px;
    font-weight: 600;
}

.wechat-float:hover .wechat-float-tip,
.wechat-float:active .wechat-float-tip {
    opacity: 1;
}

/* ========== Toast 提示 ========== */
.wechat-toast {
    position: fixed;
    left: 50%;
    bottom: 180px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0,0,0,0.88);
    color: #fff;
    padding: 12px 22px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    max-width: 90vw;
    text-align: center;
    pointer-events: none;
}

.wechat-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== 标签云 ========== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(192,57,43,0.08);
    color: var(--red);
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid rgba(192,57,43,0.15);
}

.tag-item:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-1px);
}

.tag-item small {
    opacity: 0.7;
    margin-left: 2px;
}

/* ========== 菜品标签 ========== */
.dish-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.dish-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(192,57,43,0.08);
    color: var(--red);
    border-radius: 12px;
    font-size: 12px;
    transition: var(--transition);
}

.dish-tag:hover {
    background: var(--red);
    color: #fff;
}

/* ========== 搜索框 ========== */
.hero-search {
    display: flex;
    max-width: 500px;
    margin: 24px auto 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-search input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    font-size: 15px;
    outline: none;
    background: rgba(255,255,255,0.95);
}

.hero-search button {
    padding: 14px 24px;
    background: var(--red);
    color: #fff;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-search button:hover {
    background: var(--red-dark);
}

/* ========== FAQ ========== */
.faq-section {
    margin-top: 32px;
    padding: 24px;
    background: #fff9f5;
    border-radius: 12px;
}

.faq-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.faq-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0e6df;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-q {
    font-size: 16px;
    font-weight: 600;
    color: var(--red-dark);
    margin-bottom: 8px;
}

.faq-a {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

/* ========== 分页 ========== */
.pagination-wrap {
    margin-top: 32px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover, .page-btn.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.page-dots {
    padding: 8px 6px;
    color: var(--text-light);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    /* 导航栏 */
    .menu-toggle { display: block; }
    .navbar-nav:not(.mobile-nav) { display: none; }
    .navbar-inner { height: 60px; }
    .navbar-brand { font-size: 20px; }
    .navbar-brand .brand-icon { font-size: 24px; }
    .mobile-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 12px 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
        border-top: 1px solid var(--border);
    }
    .mobile-nav.show { display: flex; }
    .mobile-nav a {
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid var(--border);
    }
    .mobile-nav a:last-child { border-bottom: none; }

    /* Hero 区域 */
    .hero { padding-top: 80px; padding-bottom: 40px; }
    .hero h1 { font-size: 30px; letter-spacing: 4px; }
    .hero p { font-size: 15px; }
    .hero-stats { gap: 16px; flex-wrap: wrap; }
    .hero-stat { min-width: 80px; }
    .hero-stat .num { font-size: 24px; }
    .hero-stat .label { font-size: 12px; }
    .hero-badge { font-size: 12px; }

    /* 搜索框 */
    .hero-search { max-width: 100%; margin: 16px 0 0; }

    /* 页面头部（分类/搜索等页面的 page-hero） */
    .page-hero { padding: 80px 0 30px; }
    .page-hero h1 { font-size: 26px; }

    /* section 间距 */
    .section { padding: 40px 0; }
    .section-header h2 { font-size: 24px; }

    /* 分类网格 */
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 20px 14px; }
    .category-card .cat-icon { font-size: 32px; }
    .category-card h3 { font-size: 15px; }

    /* 菜品网格 */
    .dish-grid { grid-template-columns: 1fr; gap: 16px; }
    .dish-card .card-image { height: 180px; }
    .dish-card .card-body { padding: 14px 16px 18px; }
    .dish-card h3 { font-size: 16px; }

    /* 菜品详情 */
    .dish-detail { padding: 20px 0 40px; }
    .dish-detail-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .dish-detail-cover { height: 240px; }
    .dish-detail-info h1 { font-size: 24px; }
    .dish-meta-list { gap: 10px; }
    .meta-item { padding: 8px 12px; }
    .meta-item .meta-icon { font-size: 16px; }

    /* 食材/步骤 */
    .ingredient-grid { grid-template-columns: 1fr; }
    .ingredients-section { padding: 20px; }
    .steps-section { padding: 20px; }

    /* 面包屑 */
    .breadcrumb { font-size: 13px; flex-wrap: wrap; }

    /* 页脚 */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer { padding: 30px 0 20px; }

    /* 404 / 空状态 */
    .not-found { padding-top: 100px; }
    .not-found .nf-emoji { font-size: 56px; }
    .not-found h2 { font-size: 22px; }

    /* 返回顶部 */
    .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 18px; }

    /* 微信浮动按钮在移动端显示 */
    .wechat-float { display: flex; }
}

@media (min-width: 769px) {
    /* PC 端隐藏浮动按钮（用 footer 内嵌微信项即可） */
    .wechat-float { display: none; }
}

@media (max-width: 480px) {
    /* 容器间距 */
    .container { padding: 0 14px; }

    /* 导航 */
    .navbar-brand { font-size: 18px; }
    .navbar-brand .brand-icon { font-size: 22px; }

    /* Hero */
    .hero { padding-top: 70px; padding-bottom: 32px; }
    .hero h1 { font-size: 26px; letter-spacing: 2px; }
    .hero-stats { gap: 12px; }
    .hero-stat .num { font-size: 22px; }

    /* 搜索框变竖向 */
    .hero-search { flex-direction: column; border-radius: 12px; }
    .hero-search input { border-radius: 12px 12px 0 0; padding: 12px 16px; }
    .hero-search button { border-radius: 0 0 12px 12px; padding: 12px; }

    /* 分类网格在极小屏变单列 */
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-card { padding: 16px 10px; }
    .category-card h3 { font-size: 14px; }
    .category-card .cat-icon { font-size: 28px; margin-bottom: 8px; }

    /* 菜品卡片 */
    .dish-card .card-image { height: 160px; }
    .dish-card .card-emoji { font-size: 40px; }

    /* 详情页 */
    .dish-detail-cover { height: 200px; }
    .dish-detail-info h1 { font-size: 22px; }
    .dish-meta-list { gap: 8px; }
    .meta-item { padding: 6px 10px; font-size: 13px; }

    /* section */
    .section-header h2 { font-size: 20px; }
    .section { padding: 30px 0; }

    /* 页脚 */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-col .footer-brand { font-size: 20px; }

    /* 微信联系方式在极小屏允许换行 */
    .contact-item { width: 100%; max-width: 100%; }
    .contact-item .contact-value { font-size: 12px; word-break: break-all; }

    /* 微信浮动按钮在小屏稍小一些 */
    .wechat-float { width: 46px; height: 46px; right: 12px; bottom: 80px; }
    .wechat-float svg { width: 26px; height: 26px; }
    .wechat-float-tip { right: 54px; font-size: 11px; padding: 6px 10px; }

    /* 分页 */
    .page-btn { padding: 6px 10px; font-size: 13px; }

    /* FAQ */
    .faq-q { font-size: 14px; }
    .faq-a { font-size: 13px; }

    /* 面包屑更紧凑 */
    .breadcrumb { gap: 4px; font-size: 12px; }

    /* 搜索高亮 */
    .not-found { padding-top: 80px; }
    .not-found h2 { font-size: 20px; }
    .not-found p { font-size: 14px; }
}

/* 极小屏 (<360px，部分低端安卓机) */
@media (max-width: 360px) {
    .hero h1 { font-size: 22px; letter-spacing: 1px; }
    .hero p { font-size: 14px; }
    .navbar-brand .brand-text { display: none; } /* 超小屏只显示图标 */
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .dish-detail-info h1 { font-size: 20px; }
}

/* ========== 加载动画 ========== */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading .spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 404 / 空状态 ========== */
.not-found {
    text-align: center;
    padding: 100px 20px 60px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.not-found .nf-emoji {
    font-size: 72px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.not-found h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.not-found p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 400px;
    line-height: 1.6;
}

.not-found .nf-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.not-found .nf-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--red);
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.not-found .nf-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.not-found .nf-btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--red);
    color: var(--red);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.not-found .nf-btn-outline:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-2px);
}

/* ========== 搜索高亮 ========== */
.search-highlight {
    background: #fff3cd;
    padding: 1px 3px;
    border-radius: 2px;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(192,57,43,0.3);
    transition: var(--transition);
    display: none;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192,57,43,0.4);
}
