@import url('https://fonts.googleapis.com/css2?family=PingFang+SC:wght@300;400;500;600;700&display=swap');

:root {
    /* 红糖主题色系 */
    --primary-color: #8B4513;
    --primary-light: #D2691E;
    --primary-lighter: #F4A460;
    --primary-dark: #5D2E0C;
    --primary-gradient: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #F4A460 100%);
    --primary-soft: rgba(139, 69, 19, 0.1);
    
    /* 温暖背景色 */
    --bg-color: linear-gradient(180deg, #FFF8F0 0%, #FFF5EB 50%, #FFEFE0 100%);
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-warm: #FFFAF5;
    
    /* 文字颜色 */
    --text-primary: #3D2414;
    --text-secondary: #6B4D3A;
    --text-light: #9A7B6A;
    --text-muted: #C4A88C;
    
    /* 状态颜色 */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    
    /* 边框颜色 */
    --border-color: #E8D5C4;
    --border-light: #F5EDE5;
    
    /* 阴影 - 红糖焦糖色调 */
    --shadow-sm: 0 2px 8px rgba(139, 69, 19, 0.08);
    --shadow-md: 0 4px 16px rgba(139, 69, 19, 0.12);
    --shadow-lg: 0 8px 28px rgba(139, 69, 19, 0.15);
    --shadow-card: 0 2px 12px rgba(139, 69, 19, 0.08);
    --shadow-warm: 0 4px 20px rgba(210, 105, 30, 0.2);
    
    /* 圆角 */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-round: 50%;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* 过渡动画 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    background: var(--bg-color);
}

.page-container {
    min-height: 100vh;
    padding-top: var(--spacing-md);
    padding-bottom: calc(280px + env(safe-area-inset-bottom));
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.page-container {
    min-height: 100vh;
    padding-bottom: 80px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--primary-gradient);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.25);
    padding-top: calc(12px + env(safe-area-inset-top));
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all var(--transition-fast);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.header-btn:active {
    transform: scale(0.95);
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    flex: 1;
    margin: 0 15px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 4px 12px 4px 32px;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-fast);
}

.search-input:focus {
    background: white;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.15);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 13px;
}

.search-card {
    margin: 0 var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.carousel-container {
    position: relative;
    height: 180px;
    margin: 0 var(--spacing-md);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.carousel {
    position: relative;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateX(100%);
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 20px;
    border-radius: 4px;
    background: var(--primary-light);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.banner {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.banner-content {
    text-align: center;
    z-index: 1;
}

.banner-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.banner-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.card {
    background: var(--bg-card);
    margin: var(--spacing-md);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-warm);
    transform: translateY(-3px);
    border-color: rgba(139, 69, 19, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.card-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.card-body {
    margin-top: var(--spacing-md);
}

.card-footer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 69, 19, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--bg-warm);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(139, 69, 19, 0.1);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 13px;
    border-radius: var(--radius-lg);
}

.btn-lg {
    padding: var(--spacing-lg) calc(var(--spacing-xl) * 1.5);
    font-size: 16px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-sm) 0;
    padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(139, 69, 19, 0.08);
    backdrop-filter: blur(10px);
    z-index: 100;
    height: calc(56px + env(safe-area-inset-bottom));
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    cursor: pointer;
    min-width: 56px;
    padding: var(--spacing-sm) 0;
    border-radius: var(--radius-md);
}

.footer-item.active,
.footer-item:hover {
    color: var(--primary-color);
    background: rgba(139, 69, 19, 0.06);
}

.footer-icon {
    font-size: 22px;
    line-height: 1;
}

.footer-item.active .footer-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(139, 69, 19, 0.3));
}

.cart-badge {
    position: relative;
}

.badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    background: var(--danger-color);
    color: white;
    font-size: 11px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.function-card {
    background: var(--bg-card);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    transform-origin: center;
}

.function-card:hover::before {
    transform: scaleX(1);
}

.function-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-warm);
    border-color: rgba(139, 69, 19, 0.15);
}

.function-icon {
    font-size: 40px;
    margin-bottom: var(--spacing-md);
    transition: transform var(--transition-fast);
    filter: drop-shadow(0 4px 8px rgba(139, 69, 19, 0.15));
}

.function-card:hover .function-icon {
    transform: scale(1.15);
}

.function-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.function-desc {
    font-size: 11px;
    color: var(--text-light);
}

.section {
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light) 0%, transparent 100%);
    border-radius: 1px;
    opacity: 0.3;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-top: -8px;
    margin-bottom: var(--spacing-md);
}

.horizontal-scroll {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
    scrollbar-width: none;
    scroll-padding-left: var(--spacing-md);
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-item {
    flex-shrink: 0;
}

.hot-list {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
}

.hot-item {
    min-width: 170px;
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.hot-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.hot-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-warm);
    border-color: rgba(139, 69, 19, 0.15);
}

.hot-item:hover::before {
    opacity: 1;
}

.hot-rank {
    font-size: 16px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.hot-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-collect {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hot-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.scene-item {
    background: var(--bg-white);
    padding: 14px 10px;
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.scene-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.scene-item:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.scene-item:hover::before {
    opacity: 0.08;
}

.scene-item:active {
    transform: scale(0.98);
}

.option-item {
    border: 2px solid var(--border-color);
    padding: 15px;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

.option-item:hover {
    border-color: var(--primary-light);
}

.option-item.selected {
    border-color: var(--primary-color);
    background: rgba(139, 69, 19, 0.06);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.option-icon {
    margin-bottom: 8px;
}

.option-icon img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.weight-btn {
    padding: 8px 15px;
    background: var(--bg-warm);
    border-radius: var(--radius-xl);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    user-select: none;
}

.weight-btn:hover {
    background: var(--primary-soft);
    color: var(--primary-color);
}

.weight-btn.active {
    background: var(--primary-color);
    color: white;
}

.grid-2 .option-item .option-icon img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

.horizontal-scroll .option-item .option-icon img,
.card .option-item .option-icon img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

.option-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.option-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.option-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
}

.preview-box {
    display: flex;
    gap: 20px;
    align-items: center;
}

.preview-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.35);
    overflow: hidden;
}

.preview-icon img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain;
}

.preview-card {
    margin-bottom: 140px !important;
}

.preview-info {
    flex: 1;
}

.preview-title {
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
    margin-bottom: 10px;
}

.preview-detail {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.bottom-bar {
    position: fixed;
    bottom: calc(56px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    z-index: 99;
}

.total-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.total-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.total-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.bottom-btns {
    display: flex;
    gap: 10px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.filter-tab {
    padding: 10px 20px;
    background: var(--bg-warm);
    border-radius: var(--radius-xl);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    border: 2px solid var(--border-light);
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.3);
}

.recipe-card {
    background: var(--bg-white);
    margin: 15px;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-warm);
    border-color: rgba(139, 69, 19, 0.15);
}

.recipe-card:hover::before {
    opacity: 1;
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recipe-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.recipe-rating {
    color: var(--warning-color);
    font-weight: 500;
}

.recipe-info {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.recipe-tag {
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.08) 0%, rgba(210, 105, 30, 0.12) 100%);
    color: var(--primary-dark);
    border-radius: var(--radius-xl);
    font-size: 12px;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.recipe-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipe-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.recipe-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: rgba(139, 69, 19, 0.08);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.action-btn.primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.25);
}

.action-btn.primary:hover {
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.35);
}

.cart-item {
    background: var(--bg-white);
    margin: 15px;
    padding: 15px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 15px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.cart-item-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.cart-item-spec {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-warm);
    border-radius: var(--radius-xl);
    padding: 4px;
    border: 1px solid var(--border-light);
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: var(--bg-white);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.qty-btn:hover {
    background: var(--primary-gradient);
    color: white;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
}

.delete-btn {
    color: var(--danger-color);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.delete-btn:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.login-container {
    background: var(--bg-white);
    margin: 20px;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.login-logo {
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.35);
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.login-slogan {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
}

.form-control::placeholder {
    color: var(--text-light);
}

.demo-info {
    background: rgba(139, 69, 19, 0.06);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary-light);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    transition: all var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.user-card {
    background: var(--primary-gradient);
    margin-top: calc(60px + env(safe-area-inset-top));
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    backdrop-filter: blur(10px);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-level {
    font-size: 13px;
    opacity: 0.9;
}

.user-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.menu-section {
    background: var(--bg-white);
    margin: 15px;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.menu-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 15px;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.menu-item:hover {
    background: rgba(139, 69, 19, 0.08);
    border-color: var(--border-light);
    transform: translateX(5px);
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    font-size: 22px;
}

.menu-text {
    font-size: 15px;
    color: var(--text-primary);
}

.menu-right {
    color: var(--text-secondary);
    font-size: 14px;
}

.logout-btn {
    width: calc(100% - 30px);
    margin: 15px;
    padding: 15px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    background: #DC2626;
}

.order-card {
    background: var(--bg-white);
    margin: 15px;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-no {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-status {
    font-size: 14px;
    font-weight: 600;
}

.status-pending { color: var(--warning-color); }
.status-making { color: #3B82F6; }
.status-shipping { color: #F97316; }
.status-completed { color: var(--success-color); }
.status-canceled { color: var(--text-light); }

.order-items {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.order-item {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

@media (min-width: 360px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 414px) {
    html {
        font-size: 15px;
    }
    
    .card {
        margin: 15px;
        padding: 20px;
    }
    
    .section {
        padding: 0 15px;
    }
}

@media (min-width: 480px) {
    html {
        font-size: 16px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hot-item {
        min-width: 180px;
    }
}

@media (min-width: 568px) {
    .banner {
        height: 220px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .function-card {
        padding: 25px 20px;
    }
    
    .function-icon {
        font-size: 42px;
    }
}

@media (min-width: 640px) {
    html {
        font-size: 17px;
    }
    
    .header {
        padding: 15px 30px;
    }
    
    .card {
        margin: 20px;
        padding: 25px;
    }
    
    .section {
        padding: 0 20px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .btn-sm {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 18px 36px;
        font-size: 17px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .page-container {
        max-width: 768px;
        margin: 0 auto;
        box-shadow: var(--shadow-lg);
        min-height: 100vh;
    }
    
    .header {
        max-width: 768px;
        left: 50%;
        transform: translateX(-50%);
        padding: 15px 30px;
    }
    
    .footer {
        max-width: 768px;
        margin: 0 auto;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .bottom-bar {
        max-width: 768px;
        margin: 0 auto;
        left: 0;
        right: 0;
        width: 100%;
        bottom: calc(56px + env(safe-area-inset-bottom));
    }
    
    .banner {
        height: 240px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .card {
        margin: 20px;
        padding: 25px;
    }
    
    .function-card {
        padding: 30px 25px;
    }
    
    .function-icon {
        font-size: 48px;
    }
    
    .hot-item {
        min-width: 200px;
        padding: 20px;
    }
    
    .recipe-card {
        margin: 20px;
        padding: 25px;
    }
    
    .cart-item {
        margin: 20px;
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 17px;
    }
    
    .page-container {
        max-width: 900px;
        margin: 20px auto;
        border-radius: var(--radius-xl);
        overflow: hidden;
    }
    
    .header {
        max-width: 900px;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    
    .footer {
        max-width: 900px;
        margin: 0 auto;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }
    
    .bottom-bar {
        max-width: 900px;
        margin: 0 auto;
        left: 0;
        right: 0;
        width: 100%;
        bottom: calc(56px + env(safe-area-inset-bottom));
    }
    
    .banner {
        height: 260px;
    }
    
    .banner-title {
        font-size: 40px;
    }
    
    .banner-subtitle {
        font-size: 18px;
    }
    
    .grid-3 {
        gap: 20px;
    }
    
    .grid-2 {
        gap: 20px;
    }
    
    .card {
        margin: 25px;
        padding: 30px;
    }
    
    .section {
        padding: 0 25px;
    }
    
    .hot-item {
        min-width: 220px;
        padding: 25px;
    }
    
    .function-card {
        padding: 35px 30px;
    }
    
    .function-icon {
        font-size: 52px;
    }
    
    .recipe-card {
        margin: 25px;
        padding: 30px;
    }
    
    .cart-item {
        margin: 25px;
        padding: 25px;
    }
}

@media (min-width: 1280px) {
    html {
        font-size: 18px;
    }
    
    .page-container {
        max-width: 1024px;
        margin: 30px auto;
    }
    
    .header {
        max-width: 1024px;
        padding: 20px 40px;
    }
    
    .footer {
        max-width: 1024px;
        margin: 0 auto;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .bottom-bar {
        max-width: 1024px;
        margin: 0 auto;
        left: 0;
        right: 0;
        width: 100%;
        bottom: calc(56px + env(safe-area-inset-bottom));
    }
    
    .banner {
        height: 280px;
    }
    
    .banner-title {
        font-size: 44px;
    }
    
    .banner-subtitle {
        font-size: 20px;
    }
    
    .card {
        margin: 30px;
        padding: 35px;
    }
    
    .section {
        padding: 0 30px;
    }
    
    .grid-3 {
        gap: 25px;
    }
    
    .hot-item {
        min-width: 240px;
        padding: 30px;
    }
    
    .function-card {
        padding: 40px 35px;
    }
    
    .function-icon {
        font-size: 56px;
    }
    
    .recipe-card {
        margin: 30px;
        padding: 35px;
    }
    
    .cart-item {
        margin: 30px;
        padding: 30px;
    }
    
    .btn {
        padding: 16px 32px;
        font-size: 17px;
    }
    
    .btn-lg {
        padding: 20px 40px;
        font-size: 18px;
    }
}

@media (min-width: 1440px) {
    html {
        font-size: 19px;
    }
    
    .page-container {
        max-width: 1100px;
    }
    
    .header {
        max-width: 1100px;
    }
    
    .footer {
        max-width: 1100px;
        margin: 0 auto;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .bottom-bar {
        max-width: 1100px;
        margin: 0 auto;
        left: 0;
        right: 0;
        width: 100%;
        bottom: calc(56px + env(safe-area-inset-bottom));
    }
    
    .banner {
        height: 300px;
    }
    
    .banner-title {
        font-size: 48px;
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 20px;
    }
    
    .page-container {
        max-width: 1200px;
    }
    
    .header {
        max-width: 1200px;
        padding: 25px 50px;
    }
    
    .footer {
        max-width: 1200px;
        margin: 0 auto;
        left: auto;
        right: auto;
        transform: none;
    }
    
    .bottom-bar {
        max-width: 1200px;
        margin: 0 auto;
        left: auto;
        right: auto;
        transform: none;
        bottom: calc(56px + env(safe-area-inset-bottom));
    }
    
    .banner {
        height: 320px;
    }
    
    .banner-title {
        font-size: 52px;
    }
    
    .card {
        margin: 35px;
        padding: 40px;
    }
    
    .section {
        padding: 0 35px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideUp {
    animation: slideUp 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scaleIn {
    animation: scaleIn 0.2s ease;
}

.ai-float-btn {
    position: fixed;
    right: 20px;
    bottom: 120px;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    overflow: visible;
}

.ai-float-btn:hover {
    transform: scale(0.95);
}

.ai-float-btn:active {
    transform: scale(0.9);
}

.ai-float-btn.active {
    transform: rotate(45deg);
}

.ai-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 0;
    background: transparent;
}

.ai-float-btn.active .ai-icon {
    transform: rotate(-45deg);
}

.ai-hint {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.ai-hint::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.ai-float-btn:hover .ai-hint {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ai-chat-container {
    position: fixed;
    right: 20px;
    bottom: 120px;
    width: 320px;
    max-height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.ai-chat-container.show {
    transform: translateY(0);
    opacity: 1;
}

.ai-chat-header {
    background: var(--primary-gradient);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.25);
}

.ai-chat-title {
    font-size: 16px;
    font-weight: 600;
}

.ai-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
}

.ai-message {
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.ai-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ai-user-content .ai-message-avatar {
    background: var(--primary-color);
    color: white;
}

.ai-message-content {
    max-width: 70%;
    padding: 10px 14px;
    background: var(--bg-color);
    border-radius: 0 16px 16px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.ai-user-content {
    background: var(--primary-color);
    color: white;
    border-radius: 16px 0 16px 16px;
    margin-left: auto;
}

.ai-chat-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--border-light);
}

.ai-chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-chat-input input:focus {
    border-color: var(--primary-color);
}

.ai-send-btn {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ai-send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.ai-quick-questions {
    padding: 10px 15px 15px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-color);
}

.ai-quick-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ai-quick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-quick-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-quick-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

@media (max-width: 480px) {
    .ai-chat-container {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 100px;
    }
    
    .ai-float-btn {
        right: 10px;
        bottom: 100px;
        width: auto;
        height: auto;
    }
    
    .ai-hint {
        bottom: 105px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .ai-hint::before {
        bottom: -6px;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid white;
    }
    
    .ai-icon {
        width: 100px;
        height: 100px;
        border-radius: 0;
        background: transparent;
    }
    
    .ai-float-btn:hover {
        transform: scale(1.1);
    }
    
    .ai-float-btn:active {
        transform: scale(1.05);
    }
}
