.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 自定义手机宽度样式 */
* {
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow-x: hidden;
}

/* 调整网格布局 */
.grid {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* 确保页面内容撑满整个屏幕宽度 */
body > * {
    width: 100%;
    max-width: 100%;
}

/* 优化链接样式 */
a {
    text-decoration: none;
    color: inherit;
}

/* 优化餐厅项目链接样式 */
a.block {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

a.block:hover {
    transform: translateY(-2px);
}

/* 自定义类替代Tailwind CSS */
.min-h-screen { min-height: 100vh; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-white { background-color: #ffffff; }
.bg-red-100 { background-color: #fee2e2; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-pink-100 { background-color: #fce7f3; }
.bg-blue-600 { background-color: #2563eb; }
.text-white { color: #ffffff; }
.text-gray-900 { color: #111827; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-red-600 { color: #dc2626; }

/* 优化搜索框样式 */
input[type="text"] {
    font-size: 0.95rem;
    height: 3rem;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 1rem;
    border-color: #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

input[type="text"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 优化搜索图标位置 */
input[type="text"] + svg {
    width: 22px;
    height: 22px;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* 优化标签样式 */
.grid.grid-cols-3.gap-4.mb-6 > div {
    padding: 1.5rem 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.grid.grid-cols-3.gap-4.mb-6 > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 优化标签图标背景 */
.grid.grid-cols-3.gap-4.mb-6 > div > div:first-child {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

/* 标签页样式 */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 调整标签按钮间距 */
.tab-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.tab-btn:hover {
    background-color: #f9fafb;
}

.tab-btn.active {
    background-color: white;
}

/* 标签内容样式 */
.tab-content {
    padding: 1.5rem;
}

/* 左侧留空间 */
.px-4 { 
    padding-left: 1.5rem !important;
    padding-right: 0.75rem !important;
}

/* 标签内容卡片样式 */
.tab-panel .grid.grid-cols-2.gap-4 > div {
    height: 150px;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: #f9fafb;
    transition: transform 0.2s ease;
}

.tab-panel .grid.grid-cols-2.gap-4 > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 标签内容图片样式 */
.tab-panel img {
    height: 80px !important;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* 标签内容文字样式 */
.tab-panel h4 {
    margin: 0.5rem 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.tab-panel p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}
.text-red-600 { color: #dc2626; }
.text-orange-600 { color: #ea580c; }
.text-pink-600 { color: #db2777; }
.text-gray-600 { color: #4b5563; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.px-4 { padding-left: 0; padding-right: 0; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pl-10 { padding-left: 2.5rem; }
.p-4 { padding: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mr-4 { margin-right: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-4 { gap: 1rem; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.h-16 { height: 4rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.w-full { width: 100%; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.border { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }
.border-t { border-top-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.object-cover { object-fit: cover; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1); }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }
.absolute { position: absolute; }
.relative { position: relative; }
.left-3 { left: 0.75rem; }
.top-1\/2 { top: 50%; }
.top-2 { top: 0.5rem; }
.right-2 { right: 0.5rem; }
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.-translate-y-1\/2 { --tw-translate-y: -50%; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, calc(50% - 0.5rem))); gap: 1rem; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, calc(33.333% - 0.666rem))); gap: 1rem; }
.gap-4 { gap: 1rem; }
.block { display: block; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); }

/* 自定义高度类 */
.h-\[300px\] { height: 300px; }
.h-\[250px\] { height: 250px; }
.h-\[350px\] { height: 350px; }
.h-\[280px\] { height: 280px; }

/* 页面特定样式 */
.restaurant-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.restaurant-item img {
    width: 100% !important;
    aspect-ratio: 580 / 720 !important;
    object-fit: cover !important;
    border-radius: 0.5rem !important;
    height: auto !important;
}

.restaurant-item h3 {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
    margin: 0;
}

.restaurant-item .restaurant-rating {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.restaurant-item .restaurant-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #4b5563;
}

.restaurant-item .restaurant-info .restaurant-price {
    color: #dc2626;
    font-weight: 600;
}

.restaurant-item .restaurant-meta {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.restaurant-item .restaurant-meta span {
    margin-right: 0.5rem;
}

.restaurant-item .restaurant-meta span:last-child {
    margin-right: 0;
}
