/**
 * 鸡尾酒配方管理后台 - 样式文件
 * 专业的后台管理界面样式
 */

/* 登录页面样式 - 交互式升级版 */
.login-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: 25vh;
    z-index: 9999;
}

/* 欢迎屏幕样式 */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: welcomeAnimation 1.5s ease-out;
}

.cocktail-glass {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cocktail-glass:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.glass {
    font-size: 8em;
    margin-bottom: 20px;
    animation: floatCocktail 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.welcome-text h1 {
    color: white;
    font-size: 3em;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 6px;
    font-stretch: expanded;
}

.welcome-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin: 0;
    font-weight: 500;
    letter-spacing: 2px;
}

@keyframes welcomeAnimation {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatCocktail {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(10px) rotate(2deg);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container {
    width: 100%;
    max-width: 420px;
    animation: slideIn 0.6s ease-out;
    margin: 0 auto !important;
    position: relative !important;
    transform: translateY(-5vh);
}

.back-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-8vh);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(-5vh);
    }
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.login-header {
    margin-bottom: 35px;
    position: relative;
    text-align: center;
}

.login-header h1 {
    color: #333;
    margin-bottom: 8px;
    font-size: 2.2em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: #666;
    font-size: 1.1em;
    opacity: 0.8;
}

/* 鸡尾酒图标装饰 */
.login-header::before {
    content: '🍸';
    font-size: 3em;
    display: block;
    margin-bottom: 20px;
    animation: cocktailSpin 6s ease-in-out infinite;
}

@keyframes cocktailSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.btn-block {
    width: 100%;
}

.login-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    color: #888;
    font-size: 0.9em;
}

/* 管理页面容器 */
.admin-page {
    min-height: 100vh;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    transition: padding 0.3s ease;
}

/* 📱 响应式优化 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8em !important;
    }
    
    .status-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .connection-status, .env-info-section {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.5em !important;
    }
    
    /* 确保欢迎屏幕在移动端正常显示 */
    .login-page {
        padding-top: 20vh !important;
    }
    
    .glass {
        font-size: 6em !important;
    }
    
    .welcome-text h1 {
        font-size: 2.5em !important;
        letter-spacing: 4px !important;
    }
    
    .welcome-text p {
        font-size: 1em !important;
        letter-spacing: 1px !important;
    }
    
    .cocktail-glass {
        padding: 20px !important;
    }
}

/* 页面标题 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* 连接状态栏 */
.status-bar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffc107;
}

.status-indicator.connected {
    background-color: #28a745;
}

.status-indicator.disconnected {
    background-color: #dc3545;
}

.status-indicator.connecting {
    background-color: #17a2b8;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 工具栏 */
.toolbar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.search-section {
    flex: 1;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 8px;
}

.search-input:focus {
    border-color: #667eea;
}

.search-stats {
    font-size: 14px;
    color: #666;
    padding: 0 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8em;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: #666;
}

/* 配方容器 */
.recipes-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.loading:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: #999;
}

/* 配方网格 */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 配方卡片 */
.recipe-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 🔥 配方图片区域样式 */
.recipe-image-section {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
}

.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-image {
    transform: scale(1.05);
}

.recipe-image-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
}

.recipe-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 🔥 不同类型配方的特色样式 */
.recipe-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 18px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

/* 特色信息区域 */
.recipe-special-info {
    margin: 6px 0 8px 0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85em;
}

.special-info {
    border-left: 3px solid;
}

.info-row {
    display: flex;
    align-items: center;
    margin: 2px 0;
    gap: 6px;
}

.info-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.info-text {
    color: #555;
    font-size: 0.9em;
}

/* 配方详情样式 */
.recipe-details {
    margin: 8px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    font-size: 0.85em;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-label {
    color: #666;
    font-weight: 500;
    min-width: 45px;
}

.detail-value {
    color: #333;
    font-weight: 400;
}

/* 🏆 大师配方样式 */
.recipe-type-master {
    border: 2px solid #ffd700;
}

.recipe-type-master .recipe-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), transparent);
    pointer-events: none;
}

.master-info {
    background: linear-gradient(135deg, #fff8dc, #ffeaa7);
    border-left-color: #ffd700;
}

/* 🌸 季节配方样式 */
.recipe-type-seasonal {
    border: 2px solid #ff7675;
}

.seasonal-info {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    border-left-color: #ff7675;
}

/* 🌍 地域配方样式 */
.recipe-type-regional {
    border: 2px solid #00b894;
}

.regional-info {
    background: linear-gradient(135deg, #a7ffeb, #55efc4);
    border-left-color: #00b894;
}

/* ✨ 我的配方样式 */
.recipe-type-custom {
    border: 2px solid #6c5ce7;
}

.custom-info {
    background: linear-gradient(135deg, #e17055, #fd79a8);
    border-left-color: #6c5ce7;
}

/* 🍸 普通配方样式 */
.recipe-type-normal {
    border: 2px solid #74b9ff;
}

.normal-info {
    background: linear-gradient(135deg, #ddd6fe, #c7d2fe);
    border-left-color: #74b9ff;
}



/* 🔥 紧凑样式 - 让卡片内容更小更美观 */
.compact .info-row {
    margin: 1px 0;
    gap: 4px;
}

.compact .info-icon {
    font-size: 12px;
    width: 16px;
}

.compact .info-text {
    font-size: 0.8em;
    line-height: 1.3;
}

.recipe-details.compact {
    margin: 4px 0;
    gap: 2px 6px;
    font-size: 0.75em;
}

.recipe-details.compact .detail-item {
    gap: 2px;
}

.recipe-details.compact .detail-label {
    min-width: 35px;
    font-size: 0.8em;
}

.recipe-details.compact .detail-value {
    font-size: 0.8em;
}

/* 🔥 环境信息区域样式 */
.env-info-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.env-info-section .btn-sm {
    padding: 4px 8px;
    font-size: 0.8em;
    border-radius: 4px;
}

.recipe-header {
    margin-bottom: 12px;
}

.recipe-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.recipe-subtitle {
    color: #666;
    font-size: 0.9em;
}

.recipe-body {
    padding: 20px;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85em;
    color: #888;
}

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

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
}

.tag.type-normal { 
    background: #d1ecf1; 
    color: #0c5460; 
}

.tag.type-master { 
    background: #fff3cd; 
    color: #856404; 
}

.tag.type-seasonal { 
    background: #d4edda; 
    color: #155724; 
}

.tag.type-regional { 
    background: #f8d7da; 
    color: #721c24; 
}

.recipe-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.message.success { 
    background: #28a745; 
}

.message.error { 
    background: #dc3545; 
}

.message.info { 
    background: #17a2b8; 
}

.message.warning { 
    background: #ffc107; 
    color: #212529; 
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-section {
        min-width: auto;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .recipes-container {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
}

/* 四板块导航样式 */
.section-nav {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-tab {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-tab:hover {
    border-color: #007bff;
    background: #e7f1ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.nav-tab.active {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    border-color: #007bff;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.nav-tab .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.nav-tab.active .count {
    background: rgba(255, 255, 255, 0.3);
}

/* 季节特色子分组样式 */
.seasonal-groups {
    display: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.seasonal-groups.show {
    display: block;
}

.seasonal-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.seasonal-tab {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #495057;
}

.seasonal-tab:hover {
    border-color: #f093fb;
    background: #fce7ff;
}

.seasonal-tab.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #f093fb;
    color: white;
}

/* 地域风味子分组样式 */
.regional-groups {
    display: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.regional-groups.show {
    display: block;
}

.regional-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.regional-tab {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #495057;
}

.regional-tab:hover {
    border-color: #007bff;
    background: #e7f1ff;
}

.regional-tab.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
    }
    
    .nav-tab {
        min-width: auto;
    }
    
    .seasonal-tabs,
    .regional-tabs {
        flex-direction: column;
    }
}

/* 🔥 图片上传功能样式 */
.image-upload-section {
    margin-top: 10px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-area.drag-over {
    border-color: #007bff;
    background: #e6f3ff;
    transform: scale(1.02);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 10px;
    opacity: 0.6;
}

.upload-text {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.upload-hint {
    font-size: 0.9em;
    color: #666;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.image-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.preview-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.preview-info {
    padding: 8px;
    font-size: 0.8em;
    color: #666;
    background: white;
}

.preview-name {
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-size {
    font-size: 0.75em;
    color: #999;
}

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-preview-item:hover .preview-remove {
    opacity: 1;
}

.preview-remove:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

.upload-progress {
    margin-top: 15px;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 4px solid #2196f3;
}

.progress-text {
    font-size: 0.9em;
    color: #1565c0;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #bbdefb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2196f3;
    transition: width 0.3s ease;
}

.image-type-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 500;
}

/* 🔥 本地修改标记样式 */
.local-modified-badge {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    margin-left: 8px;
    display: inline-block;
    animation: pulse-warning 2s infinite;
    cursor: help;
    white-space: nowrap;
}

@keyframes pulse-warning {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.recipe-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.recipe-title {
    flex: 1;
    min-width: 0;
}
