/* ============================================
   HAiCook Recipe CSS
   用途：
   1. 食譜列表頁（recipes.html）
   2. 舊版食譜詳情頁（recipe-detail.html）
   3. SEO 食譜詳情頁（recipes/*.html）
   4. More Recipe Previews 區塊（統一使用 more-recipes-*）
   ============================================ */

/* ============================================
   1. RECIPES.HTML - 食譜列表頁
   ============================================ */

/* 食譜列表頁最上方標題區塊 */
.recipes-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

/* 食譜列表頁主標題 */
.recipes-page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ff7a42;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 食譜列表頁副標題 */
.recipes-page-subtitle {
    font-size: 1.3rem;
    color: #5A3E36;
    font-weight: 400;
    opacity: 0.9;
}

/* 整個食譜卡片列表區塊 */
.recipes-grid-section {
    margin: 60px 0;
}

/* 食譜卡片列表的 grid 排版 */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* 每張食譜卡片外層連結 */
.recipe-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 單張食譜卡片 */
.recipe-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 3px solid rgba(255, 122, 66, 0.25);
}

/* 食譜卡片 hover 效果 */
.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: none;
    border-color: #ff7a42;
}

/* 卡片圖片容器 */
.recipe-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

/* 卡片圖片 */
.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* 卡片 hover 時圖片放大 */
.recipe-card:hover .recipe-image img {
    transform: scale(1.1);
}

/* 無圖片時的 placeholder 容器 */
.recipe-placeholder {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 3px dashed rgba(255, 122, 66, 0.25);
}

/* placeholder icon */
.recipe-placeholder i {
    font-size: 4rem;
    color: #ff7a42;
    opacity: 0.5;
}

/* placeholder 文字 */
.recipe-placeholder span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff7a42;
    opacity: 0.7;
}

/* 卡片右上角 badge */
.recipe-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 122, 66, 0.95);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* badge icon */
.recipe-badge i {
    font-size: 0.85rem;
}

/* 卡片文字內容區 */
.recipe-content {
    padding: 25px;
}

/* 卡片標題 */
.recipe-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5A3E36;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* 卡片描述 */
.recipe-description {
    font-size: 1rem;
    color: #5A3E36;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 卡片底部時間/難度/份量資訊列 */
.recipe-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(90, 62, 54, 0.15);
}

/* =========================
   修正 More Recipes 底部分隔線
   ========================= */

.more-recipes-card .recipe-card {
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

/* 單一 meta 項目 */
.recipe-time,
.recipe-difficulty,
.recipe-servings {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #5A3E36;
    font-weight: 600;
}

/* meta icon */
.recipe-time i,
.recipe-difficulty i,
.recipe-servings i {
    color: #ff7a42;
    font-size: 0.9rem;
}

/* tag 容器 */
.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 單一 tag */
.recipe-tags .tag {
    background: #ffe8dc;
    color: #ff7a42;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* 卡片 hover 時 tag 顏色切換 */
.recipe-card:hover .recipe-tags .tag {
    background: #ff7a42;
    color: white;
}

/* 底部 CTA 區塊 */
.recipes-cta-section {
    margin: 30px 0 40px;
    padding: 0 20px;
}

/* CTA 卡片本體 */
.recipes-cta {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* CTA 標題 */
.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff7a42;
    margin-bottom: 15px;
}

/* CTA 說明 */
.cta-subtitle {
    font-size: 1.2rem;
    color: #5A3E36;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* ============================================
   2. 食譜列表頁 - 深色模式
   ============================================ */

/* 深色模式：列表頁主標題 */
body.dark-theme .recipes-page-title {
    color: #ff7a42;
}

/* 深色模式：列表頁副標題 */
body.dark-theme .recipes-page-subtitle {
    color: #b0b0b0;
}

/* 深色模式：食譜卡片 */
body.dark-theme .recipe-card {
    background: #2a2a2a;
    box-shadow: none;
    border: 3px solid rgba(255, 122, 66, 0.35);
}

/* 深色模式：卡片 hover */
body.dark-theme .recipe-card:hover {
    box-shadow: none;
    border-color: #ff7a42;
}

/* 深色模式：placeholder */
body.dark-theme .recipe-placeholder {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

/* 深色模式：卡片標題 */
body.dark-theme .recipe-title {
    color: #e0e0e0;
}

/* 深色模式：卡片描述 */
body.dark-theme .recipe-description {
    color: #d0d0d0;
}

/* 深色模式：meta 文字 */
body.dark-theme .recipe-time,
body.dark-theme .recipe-difficulty,
body.dark-theme .recipe-servings {
    color: #e0e0e0;
}

/* 深色模式：meta icon */
body.dark-theme .recipe-time i,
body.dark-theme .recipe-difficulty i,
body.dark-theme .recipe-servings i {
    color: #5A3E36;
}

/* 深色模式：meta 分隔線 */
body.dark-theme .recipe-meta {
    border-bottom-color: #404040;
}

/* 深色模式：tag */
body.dark-theme .recipe-tags .tag {
    background: #4a3a32;
    color: #ff7a42;
}

/* 深色模式：hover tag */
body.dark-theme .recipe-card:hover .recipe-tags .tag {
    background: #ff7a42;
    color: white;
}

/* 深色模式：CTA */
body.dark-theme .recipes-cta {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

/* 深色模式：CTA 標題 */
body.dark-theme .cta-title {
    color: #ff7a42;
}

/* 深色模式：CTA 說明 */
body.dark-theme .cta-subtitle {
    color: #b0b0b0;
}



/* ============================================
   3. 舊版食譜詳情頁 recipe-detail.html
   ============================================ */

/* 詳情頁最外層容器 */
.recipe-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 詳情頁 header 區塊 */
.recipe-detail-header {
    margin-bottom: 50px;
}

/* 首圖與文字左右排版 */
.recipe-header-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 主圖容器 */
.recipe-detail-image-container {
    flex: 0 0 45%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* 主圖 */
.recipe-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右側文字資訊 */
.recipe-detail-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 舊版詳情頁主標題 */
.recipe-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #5A3E36;
    margin-bottom: 30px;
    line-height: 1.2;
}

/* 舊版 meta 列 */
.recipe-detail-meta {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* 舊版 meta 卡片 */
.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 0;
}

/* 舊版 meta icon */
.meta-item i {
    font-size: 1.8rem;
    color: #ff7a42;
    flex-shrink: 0;
}

/* 舊版 meta 文字容器 */
.meta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

/* 舊版 meta 標籤 */
.meta-label {
    font-size: 0.75rem;
    color: #5A3E36;
    opacity: 0.7;
    font-weight: 600;
    white-space: nowrap;
}

/* 舊版 meta 值 */
.meta-value {
    font-size: 1rem;
    color: #5A3E36;
    font-weight: 700;
    white-space: nowrap;
}

/* 舊版 tag 區 */
.recipe-detail-tags {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

/* 舊版單一 tag */
.detail-tag {
    background: #ff7a42;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* 舊版通用內容卡片 */
.recipe-section {
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 3px solid rgba(255, 122, 66, 0.25);
}

/* 舊版區塊標題 */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ff7a42;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 舊版區塊標題 icon */
.section-title i {
    font-size: 1.8rem;
}

/* 簡介文字 */
.recipe-introduction {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5A3E36;
    opacity: 0.9;
}

/* 食材容器 */
.ingredients-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 食材小標題 */
.ingredients-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: #5A3E36;
    margin-bottom: 15px;
    margin-top: 25px;
}

/* 第一個食材小標題不要上方距離 */
.ingredients-subtitle:first-child {
    margin-top: 0;
}

/* 食材列表 grid */
.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 30px;
}

/* 單一食材列 */
.ingredients-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 3px solid #f5f5f5;
    font-size: 1.05rem;
    color: #5A3E36;
    transition: all 0.3s ease;
}

/* 最後兩列不加底線 */
.ingredients-list li:nth-last-child(-n+2) {
    border-bottom: none;
}

/* 食材列 hover */
.ingredients-list li:hover {
    background: #fff5f0;
    padding-left: 10px;
    border-radius: 8px;
}

/* 食材列 icon */
.ingredients-list li i {
    color: #ff7a42;
    font-size: 1.2rem;
    margin-top: 3px;
}

/* 舊版步驟容器 */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 舊版單一步驟 */
.step-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 0;
    background: transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

/* 舊版單一步驟 hover */
.step-item:hover {
    transform: translateY(-5px);
}

/* 舊版步驟文字區塊 */
.step-content {
    flex: 1;
    max-width: 50%;
    display: flex;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

/* 編號與文字包裹層 */
.step-text-wrapper {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 步驟編號圓圈 */
.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #ff7a42;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

/* 步驟文字區 */
.step-text-content {
    flex: 1;
}

/* 步驟標題 */
.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #5A3E36;
    margin-bottom: 10px;
}

/* 步驟描述 */
.step-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #5A3E36;
    opacity: 0.9;
    margin: 0;
}

/* 無圖片 placeholder */
.step-image-placeholder {
    flex: 1;
    max-width: 50%;
    aspect-ratio: 1 / 1;
    background: white;
    border: 3px dashed rgba(255, 122, 66, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ff7a42;
}

/* placeholder icon */
.step-image-placeholder i {
    font-size: 2.5rem;
    opacity: 0.5;
}

/* placeholder 文字 */
.step-image-placeholder span {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

/* placeholder 圖片 */
.step-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* 舊版實際步驟圖片容器 */
.step-image {
    flex: 1;
    max-width: 50%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
}

/* 舊版實際步驟圖片 */
.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* ============================================
   4. SEO 食譜詳情頁 recipes/*.html
   ============================================ */

/* SEO 食譜頁最外層容器 */
.recipe-seo-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 5rem;
}

/* breadcrumb（若有使用） */
.recipe-breadcrumb {
    font-size: 0.95rem;
    margin: 1rem 0 1.5rem;
    opacity: 0.8;
}

/* breadcrumb 連結 */
.recipe-breadcrumb a {
    text-decoration: none;
}

/* 首屏：左文字右圖片 */
.recipe-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

/* 首屏主圖 */
.recipe-hero-image img {
    width: 100%;
    display: block;
    border-radius: 24px;
}

/* 首屏左側摘要卡 */
.recipe-summary-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 122, 66, 0.35);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* 深色模式：摘要卡 */
body.dark-theme .recipe-summary-card {
    background: #2a2a2a;
    border: 3px solid rgba(255, 122, 66, 0.35);
}

/* SEO 頁三格 meta 資訊 */
.recipe-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.25rem;
}

/* 單個 meta box */
.recipe-meta-box {
    border: 2px solid rgba(255, 122, 66, 0.35);
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
}

/* 深色模式：meta box */
body.dark-theme .recipe-meta-box {
    border-color: rgba(255, 255, 255, 0.08);
}

/* meta 主要值 */
.recipe-meta-box strong {
    display: block;
    font-size: 1.05rem;
    margin-top: 0.35rem;
}

/* SEO 頁 tag 容器 */
.recipe-tags-seo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* SEO 頁單一 tag */
.recipe-tags-seo .tag {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 122, 66, 0.1);
    color: inherit;
    border: 1.5px solid rgba(255, 122, 66, 0.25);
}

/* SEO 頁食材列表 */
.recipe-ingredients {
    padding-left: 1.2rem;
    line-height: 1.8;
}

/* SEO 頁步驟列表容器 */
.recipe-steps {
    display: grid;
    gap: 1rem;
}

/* SEO 頁單一步驟卡 */
.recipe-step-card {
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 1rem;
}

/* 深色模式：步驟卡 */
body.dark-theme .recipe-step-card {
    border-color: rgba(255, 255, 255, 0.08);
}

/* SEO 頁步驟圖片預設樣式 */
.recipe-step-card img {
    width: 100%;
    max-width: 520px;
    display: block;
    margin: 0.85rem auto 0;
    border-radius: 18px;
}



/* ============================================
   5. More Recipe Previews（統一命名）
   ============================================ */

/* More Recipe Previews 整個區塊 */
.more-recipes-section {
    margin-top: 2.5rem;
}

/* More Recipe Previews 標題 */
.more-recipes-section h2 {
    margin-bottom: 2rem;
}

/* More Recipe Previews 卡片 grid */
.more-recipes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

/* 單張 more recipes 卡片 */
.more-recipes-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 3px solid rgba(255, 122, 66, 0.25);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* more recipes 卡片 hover */
.more-recipes-card:hover {
    transform: translateY(-6px);
    border: 3px solid #ff7a42;
}

/* more recipes 卡片圖片 */
.more-recipes-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* more recipes 卡片內容 */
.more-recipes-content {
    padding: 1rem;
}

/* 深色模式：more recipes 卡片 */
body.dark-theme .more-recipes-card {
    border: 3px solid rgba(255, 122, 66, 0.25);
}

/* 深色模式：more recipes 卡片 hover */
body.dark-theme .more-recipes-card:hover {
    border: 3px solid #ff7a42;
}


/* ============================================
   6. 全站字體與間距系統
   ============================================ */

/* 全站基礎字體 */
body {
    font-size: 16px;
    line-height: 1.7;
}

/* 主標題 */
h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.3;
}

/* 區塊標題 */
h2 {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.4;
}

/* 小標題 */
h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* 一般段落 */
p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* 食材清單字體 */
.recipe-ingredients li {
    font-size: 1.05rem;
    line-height: 1.9;
}

/* 步驟描述文字 */
.recipe-step-card p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* meta 主值字體 */
.recipe-meta-box strong {
    font-size: 1.1rem;
}

/* meta 標籤字體 */
.recipe-meta-box span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* SEO tag 字體 */
.recipe-tags-seo .tag {
    font-size: 0.85rem;
}

/* More Recipes 卡片標題字體 */
.more-recipes-content .recipe-title {
    font-size: 1.1rem;
}

/* More Recipes 卡片描述字體 */
.more-recipes-content .recipe-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 首屏主標題與內容間距 */
.recipe-summary-card h1 {
    margin-bottom: 1.5rem;
}

/* 一般 recipe section 標題與內容間距 */
.recipe-section h2 {
    margin-bottom: 1.5rem;
}

/* 一般 section 區塊往下留白 */
.recipe-section {
    margin-top: 2rem;
}



/* ============================================
   7. 手機與平板 RWD
   ============================================ */

/* 中小螢幕：meta 仍維持三欄 */
@media (max-width: 900px) {
    .recipe-meta-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .recipe-meta-box {
        padding: 0.75rem;
    }

    .recipe-meta-box strong {
        font-size: 0.9rem;
    }

    .recipe-meta-box span {
        font-size: 0.75rem;
    }
}

/* 平板與手機 */
@media (max-width: 768px) {
    /* 全站基礎字體縮小 */
    body {
        font-size: 15px;
    }

    /* 標題縮小 */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    /* 段落縮小 */
    p {
        font-size: 0.95rem;
    }

    /* 食材縮小 */
    .recipe-ingredients li {
        font-size: 0.95rem;
    }

    /* 步驟文字縮小 */
    .recipe-step-card p {
        font-size: 0.95rem;
    }

    /* meta 字體縮小 */
    .recipe-meta-box strong {
        font-size: 0.95rem;
    }

    .recipe-meta-box span {
        font-size: 0.75rem;
    }

    /* More Recipes 文字縮小 */
    .more-recipes-content .recipe-title {
        font-size: 1rem;
    }

    .more-recipes-content .recipe-description {
        font-size: 0.85rem;
    }

    /* SEO 步驟改成上下排 */
    .recipe-step-card {
        padding: 1.5rem;
    }

    .step-flex {
        display: flex;
        gap: 1.5rem;
        align-items: flex-start;
        flex-direction: column;
    }

    .step-text {
        flex: 1;
    }

    .step-text h3 {
        margin-bottom: 0.5rem;
    }

    .step-text p {
        margin: 0;
    }

    .step-image {
        flex: 1;
        max-width: 100%;
    }

    .step-image img {
        width: 100%;
        display: block;
        border-radius: 16px;
    }

    .recipe-step-card img {
        margin: 0;
        max-width: 100%;
    }

    /* SEO 首屏改成上下排列 */
    .recipe-hero {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .recipe-hero-copy {
        order: 1;
    }

    .recipe-hero-image {
        order: 2;
        width: 100%;
    }

    .recipe-hero-image img {
        width: 100%;
        display: block;
        border-radius: 20px;
    }

    /* More Recipes 改成單欄 */
    .more-recipes-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* 列表頁標題縮小 */
    .recipes-page-title {
        font-size: 2.2rem;
    }

    .recipes-page-subtitle {
        font-size: 1.1rem;
    }

    /* 列表頁卡片單欄 */
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* 列表頁圖片高度縮小 */
    .recipe-image {
        height: 200px;
    }

    /* CTA 內距縮小 */
    .recipes-cta {
        padding: 40px 25px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    /* 舊版詳情頁改成上下排 */
    .recipe-header-layout {
        flex-direction: column;
        gap: 30px;
    }

    .recipe-detail-image-container {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .recipe-detail-info {
        text-align: center;
    }

    .recipe-detail-title {
        font-size: 2.2rem;
    }

    .recipe-detail-meta {
        flex-direction: row;
        gap: 12px;
        margin-bottom: 25px;
    }

    .meta-item {
        padding: 14px 12px;
        flex: 1;
        min-width: 0;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .meta-item i {
        font-size: 1.6rem;
        margin: 0 auto;
    }

    .meta-content {
        align-items: center;
        width: 100%;
    }

    .meta-label {
        font-size: 0.7rem;
        text-align: center;
    }

    .meta-value {
        font-size: 0.95rem;
        text-align: center;
    }

    .recipe-detail-tags {
        justify-content: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .recipe-section {
        padding: 20px;
    }

    .ingredients-list {
        grid-template-columns: 1fr;
    }

    .ingredients-list li:nth-last-child(-n+2) {
        border-bottom: 2px solid #f5f5f5;
    }

    .ingredients-list li:last-child {
        border-bottom: none;
    }

    .step-item {
        flex-direction: column;
        gap: 15px;
    }

    .step-content {
        max-width: 100%;
        padding: 18px 20px;
    }

    .step-text-wrapper {
        gap: 15px;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .step-description {
        font-size: 1.05rem;
    }

    .step-image-placeholder {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
}

/* 小手機 */
@media (max-width: 480px) {
    /* 列表頁文字縮小 */
    .recipes-page-title {
        font-size: 1.8rem;
    }

    .recipes-page-subtitle {
        font-size: 1rem;
    }

    .recipe-title {
        font-size: 1.3rem;
    }

    .recipe-content {
        padding: 20px;
    }

    .recipes-cta {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    /* 舊版詳情頁縮小 */
    .recipe-detail-image-container {
        max-width: 100%;
        border-radius: 15px;
    }

    .recipe-detail-title {
        font-size: 1.8rem;
    }

    .recipe-detail-meta {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 20px;
    }

    .meta-item {
        padding: 12px 8px;
        flex: 1;
        min-width: 0;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .meta-item i {
        font-size: 1.5rem;
        margin: 0 auto;
    }

    .meta-content {
        align-items: center;
        width: 100%;
    }

    .meta-label {
        font-size: 0.65rem;
        text-align: center;
    }

    .meta-value {
        font-size: 0.85rem;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .recipe-section {
        padding: 15px;
    }

    .step-content {
        padding: 15px;
    }

    .step-text-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-description {
        font-size: 0.9rem;
    }

    .step-image-placeholder {
        width: 100%;
        height: auto;
        min-height: 200px;
    }

    .step-image-placeholder i {
        font-size: 2rem;
    }

    .step-image-placeholder span {
        font-size: 0.9rem;
    }
}



/* ============================================
   8. 深色模式 - 舊版詳情頁
   ============================================ */

/* 深色模式：舊版詳情主圖陰影 */
body.dark-theme .recipe-detail-image-container {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

/* 深色模式：舊版詳情主標題 */
body.dark-theme .recipe-detail-title {
    color: #e0e0e0;
}

/* 深色模式：meta 卡片 */
body.dark-theme .meta-item {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 深色模式：meta 文字 */
body.dark-theme .meta-label,
body.dark-theme .meta-value {
    color: #e0e0e0;
}

/* 深色模式：通用內容卡片 */
body.dark-theme .recipe-section {
    background: #2a2a2a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 122, 66, 0.2);
}

/* 深色模式：區塊標題 */
body.dark-theme .section-title {
    color: #ff7a42;
}

/* 深色模式：簡介文字 */
body.dark-theme .recipe-introduction {
    color: #d0d0d0;
}

/* 深色模式：食材小標題 */
body.dark-theme .ingredients-subtitle {
    color: #e0e0e0;
}

/* 深色模式：食材列 */
body.dark-theme .ingredients-list li {
    color: #d0d0d0;
    border-bottom-color: #404040;
}

/* 深色模式：食材列 hover */
body.dark-theme .ingredients-list li:hover {
    background: #3a3a3a;
}

/* 深色模式：舊版步驟背景 */
body.dark-theme .step-item {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

/* 深色模式：舊版步驟文字卡 */
body.dark-theme .step-content {
    background: #1f1f1f !important;
    border: 1.5px solid #333;
}

/* 深色模式：步驟標題 */
body.dark-theme .step-title {
    color: #e0e0e0;
}

/* 深色模式：步驟文字 */
body.dark-theme .step-description {
    color: #d0d0d0;
}

/* 深色模式：步驟 placeholder */
body.dark-theme .step-image-placeholder {
    background: #1a1a1a;
}
