/* ============================================
   酒方大全工具专用样式文件
   ============================================ */

/* 酒方容器 */
.wine-recipes-container {
    margin-top: 20px;
}

/* 分类样式 */
.recipe-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 22px;
    color: #4a90e2;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
}

/* 酒方列表网格 */
.recipe-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 酒方卡片 */
.recipe-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: rgba(74,144,226,0.3);
}

/* 卡片头部 */
.recipe-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 18px;
    border-bottom: none;
    position: relative;
}

.recipe-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
}

/* 为不同类别的酒方设置不同的渐变色 */
.recipe-category[data-category="health"] .recipe-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.recipe-category[data-category="medicinal"] .recipe-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.recipe-category[data-category="fruit"] .recipe-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.recipe-category[data-category="seasonal"] .recipe-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.recipe-title {
    margin: 0;
    font-size: 18px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 卡片内容 */
.recipe-body {
    padding: 15px;
}

/* 配料部分 */
.recipe-ingredients {
    margin-bottom: 15px;
}

.recipe-ingredients h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.ingredients-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.ingredients-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.ingredient-name {
    color: #333;
}

.ingredient-amount {
    color: #777;
    font-size: 14px;
}

/* 制作方法 */
.recipe-method {
    margin-bottom: 15px;
}

.recipe-method h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.method-steps {
    padding-left: 20px;
    margin: 0;
}

.method-steps li {
    margin-bottom: 8px;
    color: #333;
}

/* 功效部分 */
.recipe-benefits {
    background-color: #f5f9ff;
    padding: 10px;
    border-radius: 5px;
}

.recipe-benefits h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #4a90e2;
}

.benefits-text {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* 搜索容器 */
.search-container {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex-grow: 1;
    padding: 12px 18px;
    border: 2px solid rgba(0,0,0,0.1);
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 20px rgba(74,144,226,0.2);
}

.search-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

/* 筛选选项 */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.filter-option {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.filter-option:hover::before {
    left: 100%;
}

.filter-option:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.filter-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

/* 底部推荐工具 */
.bottom-recommendations {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
