A menu management application built with Django, featuring: - Dish management with cover images - Order system with party dates and participants - REST API with Django REST Framework - Bootstrap-styled frontend Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1948 lines
52 KiB
CSS
1948 lines
52 KiB
CSS
:root {
|
|
/* 温暖厨房风格配色 - 陶土色系 */
|
|
--primary: #c2410c;
|
|
--primary-light: #ea580c;
|
|
--primary-dark: #9a3412;
|
|
--primary-soft: #fed7aa;
|
|
--secondary: #059669;
|
|
--secondary-light: #10b981;
|
|
--secondary-soft: #d1fae5;
|
|
--accent: #f59e0b;
|
|
--accent-soft: #fef3c7;
|
|
|
|
--bg-primary: #fffaf0;
|
|
--bg-secondary: #fff7ed;
|
|
--bg-card: #ffffff;
|
|
--bg-dark: #1c1917;
|
|
|
|
--text-primary: #1c1917;
|
|
--text-secondary: #57534e;
|
|
--text-muted: #a8a29e;
|
|
--text-inverse: #ffffff;
|
|
|
|
--border-light: #fed7aa;
|
|
--border-medium: #fde68a;
|
|
|
|
--shadow-sm: 0 1px 3px rgba(194, 65, 12, 0.08), 0 1px 2px rgba(194, 65, 12, 0.04);
|
|
--shadow-md: 0 4px 12px rgba(194, 65, 12, 0.12), 0 2px 4px rgba(194, 65, 12, 0.08);
|
|
--shadow-lg: 0 12px 32px rgba(194, 65, 12, 0.18), 0 4px 8px rgba(194, 65, 12, 0.12);
|
|
--shadow-xl: 0 24px 48px rgba(194, 65, 12, 0.22), 0 8px 16px rgba(194, 65, 12, 0.16);
|
|
|
|
--radius-sm: 12px;
|
|
--radius-md: 20px;
|
|
--radius-lg: 28px;
|
|
--radius-xl: 36px;
|
|
--radius-full: 9999px;
|
|
|
|
--font-display: 'ZCOOL XiaoWei', 'Noto Sans SC', serif;
|
|
--font-body: 'Nunito', 'Noto Sans SC', sans-serif;
|
|
|
|
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
--header-height: 180px;
|
|
--bottom-nav-height: 80px;
|
|
}
|
|
|
|
* {
|
|
-webkit-tap-highlight-color: transparent;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
|
|
min-height: 100vh;
|
|
color: var(--text-primary);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
padding-bottom: var(--bottom-nav-height);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after {
|
|
animation-duration: 0.01ms !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|
|
|
|
/* ============ HEADER ============ */
|
|
.app-header {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #fb923c 100%);
|
|
padding: 16px 20px 28px;
|
|
border-radius: 0 0 var(--radius-xl) var(--radius-xl);
|
|
box-shadow: var(--shadow-lg);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.app-header::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -60%;
|
|
right: -10%;
|
|
width: 300px;
|
|
height: 300px;
|
|
background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.app-header::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -40%;
|
|
left: -20%;
|
|
width: 200px;
|
|
height: 200px;
|
|
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.header-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.brand-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.brand-icon {
|
|
width: 52px;
|
|
height: 52px;
|
|
background: rgba(255,255,255,0.22);
|
|
backdrop-filter: blur(12px);
|
|
border-radius: 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 26px;
|
|
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.brand-text {
|
|
color: white;
|
|
font-size: 24px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.5px;
|
|
text-shadow: 0 2px 8px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.header-btn {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 14px;
|
|
background: rgba(255,255,255,0.2);
|
|
backdrop-filter: blur(12px);
|
|
border: none;
|
|
color: white;
|
|
font-size: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.header-btn:hover {
|
|
background: rgba(255,255,255,0.3);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
/* ============ MENU HEADER (No Background) ============ */
|
|
.menu-header {
|
|
padding: 16px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.menu-header .search-container {
|
|
width: 100%;
|
|
}
|
|
|
|
.category-filter {
|
|
display: flex;
|
|
overflow-x: auto;
|
|
gap: 10px;
|
|
padding-bottom: 4px;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.category-filter::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.category-filter .category-chip {
|
|
flex-shrink: 0;
|
|
padding: 8px 16px;
|
|
background: white;
|
|
border-radius: var(--radius-full);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
box-shadow: var(--shadow-xs);
|
|
transition: all var(--transition-fast);
|
|
border: 1px solid #e7e5e4;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.category-filter .category-chip:hover {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.category-filter .category-chip.active {
|
|
background: var(--primary);
|
|
color: white;
|
|
border-color: var(--primary);
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
/* ============ SEARCH ============ */
|
|
.search-container {
|
|
background: white;
|
|
border-radius: var(--radius-lg);
|
|
padding: 6px 8px 6px 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
box-shadow: var(--shadow-md);
|
|
border: 2px solid transparent;
|
|
transition: all var(--transition-normal);
|
|
}
|
|
|
|
.search-container:focus-within {
|
|
border-color: rgba(194, 65, 12, 0.3);
|
|
box-shadow: var(--shadow-lg);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.search-container i {
|
|
color: var(--primary);
|
|
font-size: 20px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.search-container input {
|
|
border: none;
|
|
padding: 14px;
|
|
flex: 1;
|
|
font-size: 16px;
|
|
outline: none;
|
|
background: transparent;
|
|
font-family: var(--font-body);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.search-container input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.search-btn {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
padding: 12px 20px;
|
|
color: white;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.search-btn:hover {
|
|
transform: scale(1.02);
|
|
box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
|
|
}
|
|
|
|
/* ============ CATEGORIES ============ */
|
|
.categories-section {
|
|
padding: 24px 0 16px;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.section-title i {
|
|
color: var(--primary);
|
|
font-size: 22px;
|
|
}
|
|
|
|
.see-all {
|
|
color: var(--primary);
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
text-decoration: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.see-all:hover {
|
|
color: var(--primary-dark);
|
|
}
|
|
|
|
.category-scroll {
|
|
display: flex;
|
|
overflow-x: auto;
|
|
padding: 0 20px 8px;
|
|
gap: 12px;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.category-scroll::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.category-chip {
|
|
flex-shrink: 0;
|
|
padding: 12px 24px;
|
|
background: white;
|
|
border-radius: var(--radius-full);
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: all var(--transition-normal);
|
|
border: 2px solid transparent;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.category-chip:hover {
|
|
box-shadow: var(--shadow-md);
|
|
color: var(--text-primary);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.category-chip:active {
|
|
transform: scale(0.96);
|
|
}
|
|
|
|
.category-chip.active {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
color: white;
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
/* ============ DISH GRID ============ */
|
|
.dish-section {
|
|
padding: 8px 0 24px;
|
|
}
|
|
|
|
.dish-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 16px;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.dish-card {
|
|
background: white;
|
|
border-radius: var(--radius-xl);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-sm);
|
|
cursor: pointer;
|
|
transition: all var(--transition-normal);
|
|
border: 1px solid rgba(194, 65, 12, 0.06);
|
|
}
|
|
|
|
.dish-card:active {
|
|
transform: scale(0.97);
|
|
}
|
|
|
|
.dish-card:hover {
|
|
transform: translateY(-8px);
|
|
box-shadow: var(--shadow-xl);
|
|
}
|
|
|
|
.dish-card .img-wrapper {
|
|
position: relative;
|
|
padding-top: 70%;
|
|
overflow: hidden;
|
|
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fed7aa 100%);
|
|
}
|
|
|
|
.dish-card img {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.dish-card:hover img {
|
|
transform: scale(1.12);
|
|
}
|
|
|
|
.dish-card .category-tag {
|
|
position: absolute;
|
|
top: 12px;
|
|
left: 12px;
|
|
background: rgba(255,255,255,0.95);
|
|
backdrop-filter: blur(12px);
|
|
padding: 6px 14px;
|
|
border-radius: 20px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.dish-card .order-indicator {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.dish-card .order-indicator.in-order {
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
|
|
color: white;
|
|
animation: popIn 0.3s ease;
|
|
}
|
|
|
|
.dish-card .order-indicator.not-in-order {
|
|
background: rgba(255,255,255,0.95);
|
|
backdrop-filter: blur(12px);
|
|
color: #d6d3d1;
|
|
border: 2px solid #e7e5e4;
|
|
}
|
|
|
|
@keyframes popIn {
|
|
0% { transform: scale(0); }
|
|
70% { transform: scale(1.15); }
|
|
100% { transform: scale(1); }
|
|
}
|
|
|
|
.dish-card .card-content {
|
|
padding: 16px;
|
|
}
|
|
|
|
.dish-card .dish-name {
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
margin-bottom: 6px;
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dish-card .dish-meta {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.dish-card .dish-meta::before {
|
|
content: '';
|
|
width: 6px;
|
|
height: 6px;
|
|
background: var(--accent);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* ============ BOTTOM NAV ============ */
|
|
.bottom-nav {
|
|
position: fixed;
|
|
bottom: 16px;
|
|
left: 16px;
|
|
right: 16px;
|
|
background: rgba(255,255,255,0.98);
|
|
backdrop-filter: blur(24px);
|
|
-webkit-backdrop-filter: blur(24px);
|
|
box-shadow: 0 8px 40px rgba(194, 65, 12, 0.15), 0 0 0 1px rgba(254, 215, 170, 0.3);
|
|
z-index: 1000;
|
|
padding: 10px 8px 10px;
|
|
border-radius: var(--radius-xl);
|
|
}
|
|
|
|
.nav-items {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 8px 16px;
|
|
color: var(--text-muted);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all var(--transition-normal);
|
|
position: relative;
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.nav-item::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 2px;
|
|
left: 50%;
|
|
transform: translateX(-50%) scaleX(0);
|
|
width: 20px;
|
|
height: 3px;
|
|
background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
border-radius: 3px;
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.nav-item.active {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.nav-item.active::after {
|
|
transform: translateX(-50%) scaleX(1);
|
|
}
|
|
|
|
.nav-item i {
|
|
font-size: 24px;
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.nav-item.active i {
|
|
transform: none;
|
|
}
|
|
|
|
.nav-item:hover:not(.active) {
|
|
color: var(--text-secondary);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
/* ============ FLOATING ACTION BUTTON ============ */
|
|
.fab {
|
|
position: fixed;
|
|
bottom: 110px;
|
|
right: 20px;
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 20px;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 28px;
|
|
box-shadow: 0 12px 28px rgba(194, 65, 12, 0.4);
|
|
cursor: pointer;
|
|
z-index: 999;
|
|
transition: all var(--transition-normal);
|
|
border: none;
|
|
}
|
|
|
|
.fab:hover {
|
|
transform: translateY(-6px) scale(1.05);
|
|
box-shadow: 0 16px 36px rgba(194, 65, 12, 0.5);
|
|
}
|
|
|
|
.fab:active {
|
|
transform: scale(0.92);
|
|
}
|
|
|
|
.fab i {
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.fab:hover i {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
/* ============ ORDERS PAGE ============ */
|
|
.orders-header {
|
|
padding: 16px 20px 0;
|
|
background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 28px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.filter-pills {
|
|
display: flex;
|
|
gap: 10px;
|
|
overflow-x: auto;
|
|
padding-bottom: 8px;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.filter-pills::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.filter-pill {
|
|
flex-shrink: 0;
|
|
padding: 10px 20px;
|
|
background: white;
|
|
border-radius: var(--radius-full);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: all var(--transition-normal);
|
|
border: 2px solid transparent;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.filter-pill:hover {
|
|
box-shadow: var(--shadow-md);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.filter-pill.active {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
color: white;
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
.order-list {
|
|
padding: 8px 20px 24px;
|
|
}
|
|
|
|
.order-card {
|
|
background: white;
|
|
border-radius: var(--radius-xl);
|
|
padding: 20px;
|
|
margin-bottom: 14px;
|
|
box-shadow: var(--shadow-sm);
|
|
cursor: pointer;
|
|
transition: all var(--transition-normal);
|
|
border: 1px solid rgba(194, 65, 12, 0.06);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.order-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 5px;
|
|
background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
}
|
|
|
|
.order-card:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.order-card:hover {
|
|
box-shadow: var(--shadow-lg);
|
|
transform: translateY(-4px);
|
|
}
|
|
|
|
.order-card .order-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.order-card .order-name {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.order-card .order-status {
|
|
padding: 6px 14px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.order-card .status-progress {
|
|
background: var(--accent-soft);
|
|
color: #b45309;
|
|
box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
|
|
}
|
|
|
|
.order-card .status-done {
|
|
background: var(--secondary-soft);
|
|
color: #047857;
|
|
box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
|
|
}
|
|
|
|
.order-card .order-date {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.order-card .dish-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.order-card .dish-tag {
|
|
padding: 8px 14px;
|
|
background: linear-gradient(135deg, var(--primary-soft) 0%, #fff7ed 100%);
|
|
border: 1px solid rgba(194, 65, 12, 0.15);
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.order-card .dish-tag-cold {
|
|
background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
|
|
border-color: rgba(59, 130, 246, 0.2);
|
|
color: #2563eb;
|
|
}
|
|
|
|
/* Gathering detail dish list */
|
|
#order-detail-dishes {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.dish-item-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 14px 16px;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-lg);
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.dish-item-row:hover {
|
|
background: var(--primary-soft);
|
|
}
|
|
|
|
.dish-item-row .dish-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.dish-item-row .dish-thumb {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 12px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.dish-item-row .dish-name {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.dish-item-row .remove-dish-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: #fee2e2;
|
|
border: none;
|
|
color: #dc2626;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all var(--transition-fast);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.dish-item-row .remove-dish-btn:hover {
|
|
background: #fecaca;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.order-card .dish-tag i:hover {
|
|
opacity: 1;
|
|
color: #dc2626;
|
|
}
|
|
|
|
/* ============ PROFILE PAGE ============ */
|
|
.profile-header {
|
|
padding: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.profile-avatar {
|
|
width: 96px;
|
|
height: 96px;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 16px;
|
|
font-size: 40px;
|
|
color: white;
|
|
box-shadow: 0 8px 24px rgba(194, 65, 12, 0.3);
|
|
}
|
|
|
|
.profile-name {
|
|
font-size: 24px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.profile-subtitle {
|
|
font-size: 14px;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.profile-section {
|
|
padding: 20px 20px 24px;
|
|
}
|
|
|
|
.profile-card {
|
|
background: white;
|
|
border-radius: var(--radius-xl);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-sm);
|
|
border: 1px solid rgba(194, 65, 12, 0.06);
|
|
}
|
|
|
|
.profile-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 18px 20px;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
border-bottom: 1px solid #f5f5f4;
|
|
}
|
|
|
|
.profile-menu-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.profile-menu-item:hover {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.profile-menu-item .menu-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
background: var(--primary-soft);
|
|
border-radius: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
color: var(--primary);
|
|
margin-right: 14px;
|
|
}
|
|
|
|
.profile-menu-item .menu-text {
|
|
flex: 1;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.profile-menu-item .menu-arrow {
|
|
color: var(--text-muted);
|
|
font-size: 18px;
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.profile-menu-item:hover .menu-arrow {
|
|
transform: translateX(4px);
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* ============ EMPTY STATE ============ */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 24px;
|
|
}
|
|
|
|
.empty-state .empty-icon {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: linear-gradient(135deg, var(--primary-soft) 0%, #fef3c7 100%);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 20px;
|
|
font-size: 44px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.empty-state .empty-title {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.empty-state .empty-desc {
|
|
font-size: 14px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 20px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.empty-state .empty-action {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 14px 28px;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
color: white;
|
|
border-radius: var(--radius-full);
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
text-decoration: none;
|
|
box-shadow: 0 8px 24px rgba(194, 65, 12, 0.3);
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.empty-state .empty-action:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 12px 32px rgba(194, 65, 12, 0.4);
|
|
}
|
|
|
|
/* ============ MODALS ============ */
|
|
.modal-content {
|
|
border-radius: var(--radius-xl);
|
|
border: none;
|
|
box-shadow: 0 24px 80px rgba(0,0,0,0.2);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.modal-header {
|
|
border-bottom: 1px solid #f5f5f4;
|
|
padding: 24px;
|
|
background: white;
|
|
}
|
|
|
|
.modal-title {
|
|
font-weight: 800;
|
|
font-size: 20px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
background: #fafaf9;
|
|
}
|
|
|
|
.modal-footer {
|
|
border-top: 1px solid #f5f5f4;
|
|
padding: 20px 24px;
|
|
background: white;
|
|
}
|
|
|
|
.btn-close {
|
|
opacity: 0.5;
|
|
padding: 10px;
|
|
margin: -10px -10px -10px auto;
|
|
transition: all var(--transition-fast);
|
|
border-radius: 50%;
|
|
background: #f5f5f4;
|
|
}
|
|
|
|
.btn-close:hover {
|
|
opacity: 1;
|
|
transform: rotate(90deg);
|
|
background: #e7e5e4;
|
|
}
|
|
|
|
/* ============ FORMS ============ */
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.form-control, .form-select {
|
|
width: 100%;
|
|
border-radius: var(--radius-lg);
|
|
border: 2px solid #e7e5e4;
|
|
padding: 16px 18px;
|
|
font-size: 16px;
|
|
transition: all var(--transition-fast);
|
|
font-family: var(--font-body);
|
|
background: white;
|
|
}
|
|
|
|
.form-control:focus, .form-select:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.12);
|
|
outline: none;
|
|
}
|
|
|
|
.form-control::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ============ BUTTONS ============ */
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
border: none;
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px 28px;
|
|
font-weight: 800;
|
|
font-size: 15px;
|
|
color: white;
|
|
box-shadow: 0 8px 24px rgba(194, 65, 12, 0.35);
|
|
transition: all var(--transition-normal);
|
|
font-family: var(--font-body);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 12px 32px rgba(194, 65, 12, 0.45);
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: translateY(0);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #f5f5f4;
|
|
border: none;
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px 28px;
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
color: var(--text-secondary);
|
|
transition: all var(--transition-fast);
|
|
font-family: var(--font-body);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #e7e5e4;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-success {
|
|
background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
|
|
border: none;
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px 28px;
|
|
font-weight: 800;
|
|
font-size: 15px;
|
|
color: white;
|
|
box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
|
|
transition: all var(--transition-normal);
|
|
font-family: var(--font-body);
|
|
}
|
|
|
|
.btn-success:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 12px 32px rgba(5, 150, 105, 0.45);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
|
|
border: none;
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px 28px;
|
|
font-weight: 800;
|
|
font-size: 15px;
|
|
color: white;
|
|
box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
|
|
transition: all var(--transition-normal);
|
|
font-family: var(--font-body);
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 12px 32px rgba(220, 38, 38, 0.45);
|
|
}
|
|
|
|
/* ============ DETAIL MODAL ============ */
|
|
.detail-cover {
|
|
width: 100%;
|
|
height: 280px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.detail-cover-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.detail-close-btn {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.95);
|
|
backdrop-filter: blur(12px);
|
|
border: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 22px;
|
|
color: var(--text-primary);
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.detail-close-btn:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.detail-content {
|
|
background: white;
|
|
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
|
|
margin-top: -40px;
|
|
position: relative;
|
|
padding: 28px 24px;
|
|
box-shadow: 0 -8px 40px rgba(0,0,0,0.1);
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.detail-name {
|
|
font-size: 26px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
margin-bottom: 12px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.detail-category-tag {
|
|
display: inline-block;
|
|
padding: 8px 16px;
|
|
background: var(--primary-soft);
|
|
color: var(--primary);
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
border: 1px solid rgba(194, 65, 12, 0.2);
|
|
}
|
|
|
|
.detail-section {
|
|
background: white;
|
|
border-radius: var(--radius-xl);
|
|
padding: 22px;
|
|
margin: 20px 0;
|
|
box-shadow: var(--shadow-sm);
|
|
border: 1px solid rgba(194, 65, 12, 0.06);
|
|
}
|
|
|
|
.detail-section .md-content {
|
|
font-size: 15px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.detail-section .md-content img {
|
|
max-width: 50%;
|
|
border-radius: 12px;
|
|
margin: 12px 0;
|
|
display: block;
|
|
}
|
|
|
|
.detail-section-title {
|
|
font-size: 17px;
|
|
font-weight: 800;
|
|
margin-bottom: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.detail-section-title i {
|
|
color: var(--primary);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.ingredient-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 14px 0;
|
|
border-bottom: 1px solid #f5f5f4;
|
|
font-size: 15px;
|
|
transition: background var(--transition-fast);
|
|
margin: 0 -8px;
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.ingredient-row:hover {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.ingredient-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.ingredient-row .ingredient-name {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ingredient-row .ingredient-amount {
|
|
color: var(--primary);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.detail-footer {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: white;
|
|
padding: 16px 20px 24px;
|
|
box-shadow: 0 -8px 32px rgba(0,0,0,0.1);
|
|
display: flex;
|
|
gap: 12px;
|
|
z-index: 100;
|
|
}
|
|
|
|
.detail-footer .btn {
|
|
flex: 1;
|
|
padding: 16px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* ============ INGREDIENT ITEMS ============ */
|
|
.ingredient-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid #f5f5f4;
|
|
}
|
|
|
|
.ingredient-item input {
|
|
flex: 1;
|
|
border: 2px solid #e7e5e4;
|
|
border-radius: var(--radius-md);
|
|
padding: 12px 14px;
|
|
font-size: 14px;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.ingredient-item input:focus {
|
|
border-color: var(--primary);
|
|
outline: none;
|
|
}
|
|
|
|
.ingredient-item .remove-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: #fee2e2;
|
|
border: none;
|
|
color: #dc2626;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.ingredient-item .remove-btn:hover {
|
|
background: #fecaca;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.add-ingredient-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 14px;
|
|
margin-top: 12px;
|
|
background: var(--bg-secondary);
|
|
border: 2px dashed #d6d3d1;
|
|
border-radius: var(--radius-lg);
|
|
color: var(--text-secondary);
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.add-ingredient-btn:hover {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
background: var(--primary-soft);
|
|
}
|
|
|
|
/* ============ CHECKBOX ============ */
|
|
.dish-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 14px;
|
|
background: white;
|
|
border-radius: var(--radius-lg);
|
|
margin-bottom: 10px;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
border: 2px solid transparent;
|
|
}
|
|
|
|
.dish-checkbox:hover {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.dish-checkbox input {
|
|
width: 22px;
|
|
height: 22px;
|
|
margin-right: 14px;
|
|
accent-color: var(--primary);
|
|
}
|
|
|
|
.dish-checkbox .dish-label {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ============ STEP EDITOR ============ */
|
|
.step-editor {
|
|
background: white;
|
|
border-radius: var(--radius-xl);
|
|
padding: 20px;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.step-editor-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.step-editor-title {
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.step-editor-title i {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.step-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.step-item {
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px;
|
|
position: relative;
|
|
border: 2px solid transparent;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.step-item:hover {
|
|
border-color: rgba(194, 65, 12, 0.15);
|
|
}
|
|
|
|
.step-item-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.step-number {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
color: white;
|
|
border-radius: 50%;
|
|
font-weight: 800;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.step-delete-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: #fee2e2;
|
|
border: none;
|
|
color: #dc2626;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all var(--transition-fast);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.step-delete-btn:hover {
|
|
background: #fecaca;
|
|
opacity: 1;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.step-input {
|
|
width: 100%;
|
|
border: 2px solid #e7e5e4;
|
|
border-radius: var(--radius-md);
|
|
padding: 14px;
|
|
font-size: 15px;
|
|
font-family: var(--font-body);
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
transition: all var(--transition-fast);
|
|
background: white;
|
|
}
|
|
|
|
.step-input:focus {
|
|
border-color: var(--primary);
|
|
outline: none;
|
|
box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.1);
|
|
}
|
|
|
|
.step-input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.step-image-upload {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.step-image-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 10px 16px;
|
|
background: white;
|
|
border: 2px dashed #d6d3d1;
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-secondary);
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.step-image-btn:hover {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
background: var(--primary-soft);
|
|
}
|
|
|
|
.step-image-preview {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.step-image-preview img {
|
|
width: 80px;
|
|
height: 80px;
|
|
object-fit: cover;
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.step-preview {
|
|
margin-top: 14px;
|
|
padding: 14px;
|
|
background: white;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid #e7e5e4;
|
|
}
|
|
|
|
.step-preview-label {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
margin-bottom: 8px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.step-preview-content {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.step-preview-content img {
|
|
max-width: 50%;
|
|
border-radius: var(--radius-md);
|
|
margin: 12px 0;
|
|
display: block;
|
|
}
|
|
|
|
.add-step-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 16px;
|
|
margin-top: 12px;
|
|
background: white;
|
|
border: 2px dashed #d6d3d1;
|
|
border-radius: var(--radius-lg);
|
|
color: var(--text-secondary);
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.add-step-btn:hover {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
background: var(--primary-soft);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* ============ PARSE RESULT ============ */
|
|
.parse-result-card {
|
|
background: linear-gradient(135deg, var(--primary-soft) 0%, #fff7ed 100%);
|
|
border-radius: var(--radius-xl);
|
|
padding: 20px;
|
|
margin-top: 16px;
|
|
border: 1px solid rgba(194, 65, 12, 0.15);
|
|
}
|
|
|
|
.parse-result-card .parse-dish-name {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.parse-result-card .parse-info {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ============ PAGES ============ */
|
|
.page {
|
|
display: none;
|
|
min-height: 100vh;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
.page.active {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ============ SEARCH PANEL ============ */
|
|
.search-panel {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
|
|
z-index: 2000;
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.search-panel.active {
|
|
display: block;
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from { opacity: 0; transform: translateY(20px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.search-panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.search-panel-back {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 14px;
|
|
background: white;
|
|
border: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
color: var(--text-primary);
|
|
box-shadow: var(--shadow-sm);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.search-panel-back:hover {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
/* ============ ORDER DETAIL MODAL ============ */
|
|
.order-detail-header {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
|
padding: 32px 24px 48px;
|
|
color: white;
|
|
}
|
|
|
|
.order-detail-title {
|
|
font-size: 28px;
|
|
font-weight: 800;
|
|
margin-bottom: 12px;
|
|
text-shadow: 0 2px 8px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.order-detail-status {
|
|
display: inline-block;
|
|
padding: 8px 16px;
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.order-detail-date {
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.order-detail-body {
|
|
background: white;
|
|
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
|
|
margin-top: -24px;
|
|
padding: 28px 24px;
|
|
padding-bottom: 120px;
|
|
box-shadow: 0 -8px 40px rgba(0,0,0,0.1);
|
|
max-height: 65vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.order-detail-section {
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-xl);
|
|
padding: 22px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.order-detail-section-title {
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
margin-bottom: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.order-detail-section-title i {
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* ============ STATS PAGE ============ */
|
|
.stats-header {
|
|
padding: 20px;
|
|
background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
|
|
}
|
|
|
|
.stats-content {
|
|
padding: 20px 20px 24px;
|
|
}
|
|
|
|
.stats-section {
|
|
background: white;
|
|
border-radius: var(--radius-xl);
|
|
padding: 20px;
|
|
margin-bottom: 16px;
|
|
box-shadow: var(--shadow-sm);
|
|
border: 1px solid rgba(194, 65, 12, 0.06);
|
|
}
|
|
|
|
.stats-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.stats-section-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: linear-gradient(135deg, var(--primary-soft), #fef3c7);
|
|
border-radius: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 22px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.stats-section-title h3 {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.stats-section-title p {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.stats-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 10px;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 24px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
line-height: 1;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.dish-rank-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.rank-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 14px;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-lg);
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.rank-item:hover {
|
|
transform: translateX(4px);
|
|
background: var(--primary-soft);
|
|
}
|
|
|
|
.rank-number {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 800;
|
|
font-size: 14px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rank-number.gold {
|
|
background: linear-gradient(135deg, #fcd34d, #fbbf24);
|
|
color: #92400e;
|
|
}
|
|
|
|
.rank-number.silver {
|
|
background: linear-gradient(135deg, #e5e7eb, #d1d5db);
|
|
color: #374151;
|
|
}
|
|
|
|
.rank-number.bronze {
|
|
background: linear-gradient(135deg, #fed7aa, #fb923c);
|
|
color: #9a3412;
|
|
}
|
|
|
|
.rank-number.default {
|
|
background: white;
|
|
color: var(--text-muted);
|
|
border: 2px solid #e7e5e4;
|
|
}
|
|
|
|
.rank-img {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 12px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rank-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.rank-name {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.rank-count {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.loading-text {
|
|
text-align: center;
|
|
padding: 20px;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.empty-rank {
|
|
text-align: center;
|
|
padding: 30px 20px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.empty-rank i {
|
|
font-size: 40px;
|
|
margin-bottom: 10px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* ============ RESPONSIVE ============ */
|
|
@media (max-width: 380px) {
|
|
.brand-text {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.dish-grid {
|
|
gap: 12px;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.bottom-nav {
|
|
left: 8px;
|
|
right: 8px;
|
|
bottom: 8px;
|
|
}
|
|
|
|
.fab {
|
|
right: 16px;
|
|
bottom: 100px;
|
|
}
|
|
}
|
|
|