﻿body {
    background: #f7f8fb;
}

/* 主视觉大图 */
.detail-main-photo {
    width: 100%;
    max-width: 540px;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 16px #277b5916;
    display: block;
    margin: 0 auto 18px auto;
    background: #f8fafc;
}

/* 底部配图集 */
.recipe-photo-gallery {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start; /* 或 center，根据页面风格 */
    padding: 4px 0 15px 0;
    margin-bottom: 8px;
}

.detail-thumb-photo {
    width: 106px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px #ccd5ec33;
    background: #f5f7fa;
    transition: transform .18s, box-shadow .18s;
    cursor: pointer;
}

    .detail-thumb-photo:hover {
        transform: scale(1.04) rotate(-1deg);
        box-shadow: 0 6px 16px #93d9b670;
    }

    .detail-thumb-photo.thumb-active {
        border: 2px solid #339d78;
        box-shadow: 0 2px 10px #82e0c975;
        transform: scale(1.08);
        z-index: 2;
    }


.recipe-photo-list {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.detail-page-main {
    max-width: 740px;
    margin: 28px auto 0 auto;
    padding: 30px 40px 40px 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 36px 0 rgba(52,79,134,0.09), 0 1.5px 4px #edf3ff;
    transition: box-shadow .2s;
    position: relative;
}

.detail-title {
    font-size: 34px;
    font-weight: bold;
    color: #293a5b;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 18px;
    margin-top: 0;
    position: relative;
}

    .detail-title::after {
        content: "";
        display: block;
        width: 54px;
        height: 4px;
        border-radius: 2px;
        background: linear-gradient(90deg, #42CBA5 0%, #5a82fa 100%);
        margin: 12px auto 0 auto;
    }

.detail-section-title {
    margin-top: 38px;
    margin-bottom: 8px;
    font-size: 21px;
    font-weight: 700;
    color: #295da1;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    gap: 10px;
}

    .detail-section-title:before {
        content: "🍽️";
        font-size: 1.15em;
        margin-right: 4px;
        opacity: .74;
    }

    .detail-section-title.tips:before {
        content: "💡";
        color: #eec504;
    }

    .detail-section-title.steps:before {
        content: "📝";
        color: #68bbff;
    }

.detail-description {
    color: #526075;
    font-size: 16px;
    line-height: 2;
    background: #f9fbfd;
    margin-bottom: 15px;
    text-align: center;
    border-radius: 12px;
    padding: 13px 3px 9px 3px;
    border-left: 5px solid #4fd6972e;
    box-shadow: 0 2px 8px #e4f6ef4a;
}

.detail-info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    color: #576273;
    font-size: 15px;
    margin-bottom: 0.5rem;
    justify-content: center;
    background: #e7f2fa26;
    padding: 10px 0;
    border-radius: 9px;
}

    .detail-info-list span {
        min-width: 108px;
        display: flex;
        align-items: center;
        gap: 6px;
        border-radius: 4px;
        font-weight: 500;
        padding: 3px 10px;
        transition: background 0.2s;
    }

        .detail-info-list span i {
            font-style: normal;
            font-weight: bold;
            opacity: .78;
            margin-right: 4px;
        }

        .detail-info-list span:nth-child(1)::before {
            content: "⭐";
        }

        .detail-info-list span:nth-child(2)::before {
            content: "⏱️";
        }

        .detail-info-list span:nth-child(3)::before {
            content: "👅";
        }

        .detail-info-list span:nth-child(4)::before {
            content: "🔪";
        }

        .detail-info-list span:nth-child(5)::before {
            content: "🍳";
        }

.material-table {
    width: 100%;
    background: #f8fbfd;
    border-radius: 13px;
    box-shadow: 0 2px 8px #c9defa17;
    padding: 18px 16px 10px 16px;
    margin-top: 8px;
    margin-bottom: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.material-table-header {
    display: flex;
    font-weight: bold;
    margin-bottom: 14px;
    color: #229368;
    font-size: 16px;
}

    .material-table-header span {
        flex: 1;
        text-align: center;
    }

.material-table-row {
    display: flex;
    margin-bottom: 4px;
    border-radius: 6px;
    transition: background 0.18s;
}

    .material-table-row:nth-child(even) {
        background: #e9f5fa3b;
    }

    .material-table-row:hover {
        background: #e9fde4;
        box-shadow: 0 1px 8px #9ce5b533;
    }

.material-table-cell {
    flex: 1;
    padding: 8px 0;
    font-size: 15.6px;
    color: #116274;
    text-align: center;
    border-radius: 6px;
}

.detail-step-box {
    background: linear-gradient(105deg, #f2f8ff 79%, #e4fff8 100%);
    border-radius: 11px;
    padding: 20px 23px;
    margin-bottom: 16px;
    color: #425566;
    line-height: 2;
    border-left: 6px solid #60aaff;
    box-shadow: 0 2px 12px #acf2ff1c;
}

.detail-tips-box {
    background: #fffbe8;
    border-radius: 11px;
    padding: 18px 23px;
    color: #7c5c19;
    margin-bottom: 16px;
    line-height: 1.85;
    border-left: 5px solid #ffe943;
    box-shadow: 0 2px 8px #ffe94321;
    position: relative;
}

.detail-upload-time {
    color: #7c8c97;
    font-size: 13.5px;
    margin-top: 30px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8fafd;
    padding: 6px 13px;
    border-radius: 22px;
    width: max-content;
    margin-left: auto;
    margin-bottom: -16px;
    box-shadow: 0 2px 7px #c8d8ea11;
}

    .detail-upload-time:before {
        content: "🕓";
        font-size: 1.08em;
        margin-right: 4px;
        opacity: .73;
    }
