* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c62b29;
    --secondary-color: #d4af37;
    --dark-color: #333333;
    --light-color: #f8f8f8;
    --gray-color: #777777;
    --light-gray: #eeeeee;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: brown;
    position: relative;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: rgb(145, 145, 145);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #a82320;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #b8941f;
}

/* ===== 导航栏 ===== */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.btn-register {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: var(--border-radius);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* ===== 首页横幅 ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: var(--header-height);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    display: inline-block;
    background-color: brown;
    color: wheat;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-hero:hover {
    background-color: #8b4513;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== 菜系介绍 ===== */
.cuisine-section {
    background-color: #ffff;
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cuisine-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.cuisine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cuisine-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cuisine-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cuisine-info {
    padding: 25px;
}

.cuisine-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cuisine-info p {
    color: var(--gray-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.cuisine-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.cuisine-meta i {
    margin-right: 5px;
}

.btn-view {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-view:hover {
    background-color: var(--primary-color);
    color: white;
}

.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.like-btn {
    padding: 8px 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--dark-color);
}

.like-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.like-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.like-btn.active i {
    font-weight: 900;
}

.view-all-container {
    text-align: center;
    margin-top: 50px;
}

.btn-view-all {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-view-all:hover {
    background-color: #b8941f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== 特色功能区域 ===== */
.features {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgb(124, 9, 7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* ===== 浮动操作按钮 ===== */
.floating-actions-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-likes {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-likes:hover {
    background-color: #a82320;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 提示消息样式 ===== */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2ecc71;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-message i {
    font-size: 20px;
}

/* ===== 页脚 ===== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
    transition: var(--transition);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: calc(100vh - var(--header-height));
        padding: 30px;
        transition: var(--transition);
        box-shadow: var(--shadow);
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 0 0 20px 0;
    }

    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        background-color: transparent;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .floating-actions-container {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-likes {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .toast-message {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        transform: translateY(100px);
    }
    
    .toast-message.show {
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
}

/* ===== 页面容器 ===== */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== 菜系卡片操作按钮 ===== */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.like-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.like-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1c638e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.like-btn.active {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.like-btn.active:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
}

.favorite-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.favorite-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.favorite-btn.active {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.favorite-btn.active:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
}

.action-btn i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.action-btn.active i {
    font-weight: 900;
    transform: scale(1.1);
}

.action-text {
    transition: all 0.3s ease;
}

.action-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    color: #333;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.like-btn .action-count {
    background: #3498db;
    color: white;
}

.favorite-btn .action-count {
    background: #e74c3c;
    color: white;
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.action-btn.active i {
    animation: pulse 0.5s ease;
}

.action-btn:hover .action-text {
    transform: translateX(2px);
}

/* ===== 浮动操作按钮 ===== */
.floating-actions-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-favorites, .floating-likes {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite;
}

.floating-favorites {
    background: linear-gradient(135deg, #8b1313, #c0392b);
}

.floating-likes {
    background: linear-gradient(135deg, #8b1313, #2980b9);
}

.floating-favorites:hover, .floating-likes:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-favorites:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.floating-likes:hover {
    background: linear-gradient(135deg, #ae1111, #a20909);
}

.floating-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.floating-favorites .floating-count {
    background: #ff4757;
    color: white;
}

.floating-likes .floating-count {
    background: #bc0a0a;
    color: white;
}

/* ===== 提示消息样式 ===== */
.culinary-toast {
    position: fixed;
    bottom: 120px;
    right: 30px;
    background: white;
    color: #333;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    border-left: 4px solid #c22323;
}

.culinary-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.culinary-toast i {
    font-size: 22px;
    color: #ca1d1d;
}

.culinary-toast.error {
    border-left-color: #e74c3c;
}

.culinary-toast.error i {
    color: #e74c3c;
}

.culinary-toast.warning {
    border-left-color: #f39c12;
}

.culinary-toast.warning i {
    color: #f39c12;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .floating-favorites, .floating-likes {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .floating-actions-container {
        bottom: 20px;
        right: 20px;
    }
    
    .culinary-toast {
        bottom: 100px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .action-count {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
}
/* 新增的浮动操作按钮样式 */
        .floating-actions-container {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1000;
        }
        
        .floating-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .floating-favorites,
        .floating-likes {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #c62b29;
            color: white;
            border: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(198, 43, 41, 0.3);
            transition: all 0.3s ease;
            position: relative;
        }
        
        .floating-favorites:hover,
        .floating-likes:hover {
            background: #a82320;
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(198, 43, 41, 0.4);
        }
        
        .floating-favorites i,
        .floating-likes i {
            font-size: 22px;
        }
        
        .floating-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #3498db;
            color: white;
            font-size: 12px;
            min-width: 20px;
            height: 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
        }
        
        .floating-favorites .floating-count {
            background: #e74c3c;
        }
        
        /* 菜系卡片样式优化 */
        .action-buttons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            justify-content: center;
        }
        
        .action-btn {
            flex: 1;
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            background: #f8f9fa;
            color: #666;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }
        
        .action-btn:hover {
            background: #e9ecef;
            color: #333;
        }
        
        .like-btn:hover {
            color: #3498db;
        }
        
        .favorite-btn:hover {
            color: #e74c3c;
        }
        
        .action-count {
            font-weight: 600;
            margin-left: 3px;
        }
        
        /* 提示消息样式 */
        .culinary-toast {
            position: fixed;
            top: 100px;
            right: 20px;
            background: white;
            border-left: 4px solid #c62b29;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            padding: 15px 25px;
            border-radius: 4px;
            z-index: 9999;
            transform: translateX(120%);
            transition: transform 0.4s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 350px;
        }
        
        .culinary-toast.show {
            transform: translateX(0);
        }
        
        .culinary-toast.success {
            border-left-color: #27ae60;
        }
        
        .culinary-toast.error {
            border-left-color: #e74c3c;
        }
        
        .culinary-toast.warning {
            border-left-color: #f39c12;
        }
        
        .culinary-toast i {
            font-size: 20px;
        }
        
        .culinary-toast.success i {
            color: #27ae60;
        }
        
        .culinary-toast.error i {
            color: #e74c3c;
        }
        
        .culinary-toast.warning i {
            color: #f39c12;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .floating-actions-container {
                bottom: 20px;
                right: 20px;
            }
            
            .floating-favorites,
            .floating-likes {
                width: 50px;
                height: 50px;
            }
            
            .culinary-toast {
                max-width: calc(100% - 40px);
                top: 80px;
            }
        }
        /* === 修复翻转卡片的核心CSS === */
/* ===== 修复卡片高度和布局问题 ===== */
.cuisine-card {
    perspective: 1000px;
    min-height: 500px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 20px;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    min-height: 500px;
}

.cuisine-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    top: 0;
    left: 0;
}

.flip-card-front {
    background-color: white;
    display: flex;
    flex-direction: column;
}

.flip-card-back {
    background: linear-gradient(135deg, #8b0000, #a52a2a);
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 正面内容布局优化 */
.cuisine-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.cuisine-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.cuisine-info h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cuisine-description {
    flex: 1;
    overflow: hidden;
    margin-bottom: 15px;
    line-height: 1.5;
    color: var(--gray-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 60px;
}

.cuisine-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* 确保按钮不被遮挡 */
.card-buttons {
    margin-top: auto;
    position: relative;
    z-index: 10;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cuisine-card {
        min-height: 480px;
    }
    
    .flip-card-inner {
        min-height: 480px;
    }
    
    .cuisine-img {
        height: 180px;
    }
    
    .cuisine-info {
        min-height: 280px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .cuisine-card {
        min-height: 460px;
    }
    
    .flip-card-inner {
        min-height: 460px;
    }
    
    .cuisine-info {
        min-height: 260px;
    }
}

/* 浮动操作按钮修复 */
.floating-actions-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-favorites, .floating-likes {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #c62b29;
    color: white;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(198, 43, 41, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.floating-favorites:hover, .floating-likes:hover {
    background: #a82320;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(198, 43, 41, 0.4);
}

.floating-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #3498db;
    color: white;
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: bold;
}

.floating-favorites .floating-count {
    background: #e74c3c;
}