* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        align-items: stretch;
    }
}

/* 食物滚动背景 */
.food-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.food-row {
    display: flex;
    position: absolute;
    white-space: nowrap;
    animation: scrollLeft linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.food-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    margin: 0 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

@media (max-width: 768px) {
    .food-item {
        padding: 8px 16px;
        font-size: 14px;
        margin: 0 10px;
    }

    .food-item .emoji {
        font-size: 20px;
    }
}

.food-item:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.food-item:active {
    transform: scale(1.05);
}

.food-item .emoji {
    font-size: 24px;
}

.container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}

.header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.header .subtitle {
    font-size: 12px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .header {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 20px;
    }

    .header .subtitle {
        font-size: 11px;
    }
}

.settings-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

@media (max-width: 768px) {
    .settings-btn {
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.settings-panel {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: none;
}

@media (max-width: 768px) {
    .settings-panel {
        padding: 15px;
    }
}

.settings-panel.active {
    display: block;
}

.settings-panel input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.settings-panel label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 13px;
}

.api-key-notice {
    margin-top: 15px;
    padding: 12px;
    background: #fff3e0;
    border-left: 4px solid #FF8E53;
    border-radius: 6px;
}

.api-key-notice p {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.api-key-notice p:first-child {
    color: #FF6B6B;
    font-weight: 500;
}

.api-key-notice a {
    color: #FF6B6B;
    text-decoration: none;
    font-weight: 500;
}

.api-key-notice a:hover {
    text-decoration: underline;
}

.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .chat-area {
        padding: 15px;
    }
}

.message {
    margin-bottom: 20px;
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 90%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .message-content {
        max-width: 100%;
        padding: 10px 14px;
        font-size: 14px;
    }
}

.message.user .message-content {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
}

.message.bot .message-content {
    background: white;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Markdown样式 */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
    font-weight: 600;
}

.message-content h1 { font-size: 1.5em; }
.message-content h2 { font-size: 1.3em; }
.message-content h3 { font-size: 1.1em; }

.message-content p {
    margin: 0.5em 0;
}

.message-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.message-content pre {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0.5em 0;
}

.message-content pre code {
    background: none;
    padding: 0;
}

.message-content ul,
.message-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.message-content li {
    margin: 0.3em 0;
}

.message-content blockquote {
    border-left: 4px solid #FF6B6B;
    margin: 0.5em 0;
    padding-left: 1em;
    color: #666;
    font-style: italic;
}

.message-content table {
    border-collapse: collapse;
    margin: 0.5em 0;
    width: 100%;
}

.message-content th,
.message-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.message-content th {
    background: #f5f5f5;
    font-weight: 600;
}

.message-content a {
    color: #FF6B6B;
    text-decoration: none;
}

.message-content a:hover {
    text-decoration: underline;
}

.message-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 0.5em 0;
}

.message-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1em 0;
}

.input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .input-area {
        padding: 15px;
        gap: 8px;
    }
}

.input-area input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

@media (max-width: 768px) {
    .input-area input {
        padding: 10px 16px;
        font-size: 13px;
    }
}

.input-area input:focus {
    border-color: #FF6B6B;
}

.input-area button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (max-width: 768px) {
    .input-area button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.input-area button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.input-area button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.welcome-msg {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

@media (max-width: 768px) {
    .welcome-msg {
        padding: 30px 15px;
    }

    .welcome-msg h2 {
        font-size: 20px;
    }
}

.welcome-msg h2 {
    margin-bottom: 15px;
    color: #FF6B6B;
}

.welcome-msg .suggestion-title {
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}

.suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.suggestion-btn {
    padding: 12px 20px;
    background: white;
    border: 2px solid #FF6B6B;
    color: #FF6B6B;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-align: left;
}

.suggestion-btn:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* 菜单卡片样式 */
.menu-intro {
    margin-bottom: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 142, 83, 0.1) 100%);
    border-radius: 12px;
    color: #FF6B6B;
    font-weight: 500;
    text-align: center;
    font-size: 15px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.menu-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.menu-card {
    background: white;
    border: 2px solid #e8ebf5;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
    border-color: #FF6B6B;
}

.menu-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f7fafc;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.05);
}

.menu-card-header {
    background: linear-gradient(135deg, #f8f9fe 0%, #f0f2ff 100%);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e8ebf5;
}

.menu-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.menu-card-category {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.menu-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-card-description {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-card-meta .difficulty {
    font-size: 13px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu-card-footer {
    padding: 12px 16px;
    background: #f8f9fe;
    border-top: 1px solid #e8ebf5;
}

.view-recipe-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-recipe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.view-recipe-btn:active {
    transform: translateY(0);
}

/* 菜单错误提示样式 */
.menu-error {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    color: #c53030;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.15);
}

/* 响应式设计 - 菜单卡片 */
@media (max-width: 768px) {
    .menu-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 10px;
    }

    .menu-intro {
        font-size: 14px;
        padding: 14px 18px;
        margin-bottom: 16px;
    }

    .menu-card-image {
        height: 200px;
    }

    .menu-card-title {
        font-size: 16px;
    }

    .menu-card-description {
        font-size: 13px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .menu-cards {
        max-width: 900px;
        gap: 18px;
    }
}

/* ============================================
   菜品详情组件样式
   ============================================ */

.recipe-detail-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 100%;
    margin: 0;
    position: relative;
}

.recipe-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 16px 20px;
    padding-right: 75px; /* 为右上角按钮留出空间 */
}

@media (max-width: 768px) {
    .recipe-header {
        padding: 12px 16px;
        padding-right: 80px;
    }
}

.recipe-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .recipe-title {
        font-size: 18px;
    }
}

.recipe-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.recipe-category {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.recipe-difficulty {
    font-size: 16px;
    letter-spacing: 1px;
    color: #ffd700;
}

.recipe-main-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-description {
    padding: 12px 16px;
    line-height: 1.6;
    color: #555;
    background: #f8f9fa;
    border-left: 3px solid #FF6B6B;
    font-size: 14px;
}

.recipe-time-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #fff8e1;
    border-bottom: 1px solid #ffe082;
}

.time-icon {
    font-size: 18px;
}

.time-item {
    font-size: 13px;
    color: #f57c00;
    font-weight: 500;
}

.recipe-content {
    padding: 16px;
}

@media (max-width: 768px) {
    .recipe-content {
        padding: 12px;
    }
}

/* 配料清单 */
.recipe-ingredients {
    margin-bottom: 20px;
}

.recipe-ingredients h3,
.recipe-steps h3,
.recipe-notes h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #FF6B6B;
}

.servings-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    width: fit-content;
}

.servings-control label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.servings-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #FF6B6B;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.servings-btn:hover {
    background: #FF8E53;
    transform: scale(1.1);
}

.servings-btn:active {
    transform: scale(0.95);
}

.servings-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    min-width: 25px;
    text-align: center;
}

.ingredients-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

@media (max-width: 768px) {
    .ingredients-list {
        grid-template-columns: 1fr;
    }
}

.ingredients-list li {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 13px;
    color: #555;
    border-left: 3px solid #FF6B6B;
}

.ingredients-list li strong {
    color: #FF6B6B;
    font-weight: 600;
    margin-left: 4px;
}

/* 制作步骤 */
.recipe-steps {
    margin-bottom: 20px;
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
}

.step-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s;
}

.step-item:hover {
    background: #e3f2fd;
    transform: translateX(2px);
}

.step-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-content {
    flex: 1;
}

.step-description {
    color: #333;
    line-height: 1.5;
    margin-bottom: 6px;
    font-size: 14px;
}

.step-image {
    width: 100%;
    max-width: 250px;
    border-radius: 5px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .step-image {
        max-width: 100%;
    }
}

.step-duration {
    display: inline-block;
    background: #fff8e1;
    color: #f57c00;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-top: 6px;
}

.step-tips {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 10px;
    border-radius: 5px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
}

/* 附加说明 */
.recipe-notes {
    background: #fff3e0;
    padding: 12px;
    border-radius: 6px;
}

.notes-list {
    list-style: none;
}

.notes-list li {
    padding: 6px 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px dashed #ffe0b2;
}

.notes-list li:last-child {
    border-bottom: none;
}

/* 右上角操作按钮 */
.recipe-actions-top {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

@media (max-width: 768px) {
    .recipe-actions-top {
        gap: 6px;
    }
}

.action-text-btn {
    padding: 6px 14px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #FF6B6B;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .action-text-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
}

.action-text-btn:hover {
    background: #FF6B6B;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.action-text-btn:active {
    transform: translateY(0);
}

/* 新增菜品成功提示 */
.add-recipe-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    animation: slideInFromTop 0.4s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   联网搜索菜品样式
   ============================================ */

.add-to-library-btn {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.add-to-library-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.add-to-library-btn:active:not(:disabled) {
    transform: translateY(0);
}

.add-to-library-btn:disabled {
    background: #10b981;
    cursor: not-allowed;
    opacity: 0.9;
}

.online-recipe-tip {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 16px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

/* 餐厅列表样式 */
.restaurant-list-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .restaurant-list-wrapper {
        max-width: 100%;
    }
}

.restaurant-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 142, 83, 0.1) 100%);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .restaurant-list-header {
        flex-direction: column;
        gap: 8px;
        padding: 10px 12px;
        align-items: flex-start;
    }
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

@media (max-width: 768px) {
    .location-info {
        font-size: 13px;
    }
}

.location-icon {
    font-size: 16px;
}

.location-text {
    font-weight: 500;
}

.result-count {
    font-size: 14px;
    color: #FF6B6B;
    font-weight: 500;
}

@media (max-width: 768px) {
    .result-count {
        font-size: 13px;
    }
}

.restaurant-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 768px) {
    .restaurant-list {
        gap: 12px;
    }
}

.restaurant-list-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.restaurant-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

@media (max-width: 768px) {
    .restaurant-item {
        padding: 12px;
        border-radius: 12px;
    }
}

.restaurant-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.2);
}

.restaurant-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .restaurant-name-row {
        gap: 8px;
        margin-bottom: 8px;
        padding-right: 80px;
    }
}

.restaurant-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .restaurant-index {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

.restaurant-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

@media (max-width: 768px) {
    .restaurant-name {
        font-size: 16px;
    }
}

.restaurant-type-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .restaurant-type-tag {
        padding: 3px 10px;
        font-size: 11px;
        margin-bottom: 8px;
    }
}

/* 主内容区域 - 左右布局 */
.restaurant-content {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .restaurant-content {
        gap: 12px;
    }
}

.restaurant-photo {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .restaurant-photo {
        width: 100px;
        height: 100px;
    }
}

.restaurant-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧信息容器 */
.restaurant-info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .restaurant-info-container {
        gap: 6px;
    }
}

.restaurant-business {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 768px) {
    .restaurant-business {
        gap: 12px;
    }
}

.business-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .business-item {
        font-size: 13px;
    }
}

.business-icon {
    font-size: 16px;
}

.business-value {
    color: #666;
    font-weight: 500;
}

.restaurant-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .restaurant-address {
        font-size: 12px;
    }
}

.address-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.address-text {
    flex: 1;
}

.restaurant-distance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #FF6B6B;
    font-weight: 500;
}

@media (max-width: 768px) {
    .restaurant-distance {
        font-size: 12px;
    }
}

.distance-icon {
    font-size: 14px;
}

.restaurant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px dashed #e8e8e8;
}

@media (max-width: 768px) {
    .restaurant-tags {
        gap: 5px;
        padding-top: 10px;
        margin-top: 10px;
    }
}

.tag-item {
    padding: 4px 10px;
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

@media (max-width: 768px) {
    .tag-item {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* 操作按钮 - 固定到右上角 */
.restaurant-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

@media (max-width: 768px) {
    .restaurant-actions {
        gap: 6px;
        top: 10px;
        right: 10px;
    }
}

.action-btn {
    padding: 6px 12px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #FF6B6B;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .action-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

.action-btn:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.action-btn:active {
    transform: translateY(0);
}