/* ============================================
   毅壽司 Yi Sushi · 全域共用樣式
   ============================================ */

/* ---------- 0. 基礎重置 & 變數 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #5a3e3e;
    --color-accent: #d4a373;
    --color-text: #333;
    --color-text-light: #555;
    --color-text-muted: #888;
    --color-bg: #fcfaf8;
    --color-white: #fff;
    --color-dark: #2a1f1f;
    --color-border: #eee;
    --font-family: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
    --container-width: 1200px;
    --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --transition: 0.3s;
    --banner-height: 400px;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: #555;
}

ul {
    list-style: none;
}

/* ---------- 1. 通用元件 ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 2. Header ---------- */
.header {
    background-color: var(--color-white);
    padding: 20px 0;
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--color-primary);
}

.header__logo-icon {
    margin-right: 10px;
}

.header__logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.header__toggle {
    display: none;
}

.header__toggle-label {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px 0;
}

.header__toggle-label span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: 0.3s;
}

.header__nav-wrapper {
    display: block;
}

.header__nav {
    display: flex;
    gap: 25px;
}

.header__nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header__nav-link {
    font-size: 15px;
    transition: color var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header__nav-link:hover {
    color: var(--color-accent);
}

.header__nav-link--active {
    color: var(--color-accent);
    font-weight: 600;
}

.header__nav-sub {
    font-size: 11px;
    color: #999;
}

/* ---------- 3. Banner ---------- */
.banner {
    position: relative;
    width: 100%;
    height: var(--banner-height);
    overflow: hidden;
    background-color: var(--color-dark);
}

.banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: blur(var(--hero-blur, 0px));
}

.banner__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    width: 90%;
}

.banner__title {
    font-size: 48px;
    letter-spacing: 5px;
    margin-bottom: 20px;
    font-weight: normal;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner__subtitle {
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner--home { height: 600px; }
.banner__badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 6px 24px;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 16px;
}

/* ---------- 4. Section 通用 ---------- */
.section {
    padding: 60px 0;
    text-align: center;
}

.section__title {
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    bottom: -10px;
    left: 0;
}

.section__desc {
    margin-top: 30px;
    font-size: 18px;
    color: var(--color-text-light);
    letter-spacing: 1px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section__content {
    margin-top: 50px;
}

/* ---------- 5. Grid ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ---------- 6. Card ---------- */
.card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card__content {
    padding: 20px;
}

.card__title {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card__price {
    color: var(--color-accent);
    font-size: 18px;
}

.card__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;    white-space: pre-line;}

.card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ebe7;
    font-size: 64px;
    aspect-ratio: 16 / 9;
}

/* ---------- 7. Footer ---------- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 15px 0;
    text-align: center;
}

.footer__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    font-size: 13px;
}

.footer__inner a {
    color: #bbb;
    text-decoration: none;
    transition: color var(--transition);
}

.footer__inner a:hover {
    color: var(--color-accent);
}

.footer__sep {
    color: #555;
    margin: 0 10px;
}

/* ---------- 8. 響應式設計 ---------- */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手機橫排（高度窄時 = 橫排模式） */
@media (orientation: landscape) and (max-height: 500px) {
    body {
        padding-top: 70px;
    }
    .header {
        padding: 5px 0;
    }
}

@media (max-width: 768px) {
    /* 漢堡選單 */
    .header__inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .header__toggle { display: none; }
    .header__toggle-label {
        display: flex;
        order: 2;
    }
    .header__nav-wrapper {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .header__toggle:checked ~ .header__nav-wrapper {
        max-height: 400px;
    }
    .header__nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0 10px;
        border-top: 1px solid var(--color-border);
    }
    .header__nav-item {
        width: 100%;
        text-align: center;
    }
    .header__nav-link {
        font-size: 18px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .banner {
        height: 300px;
    }
    .banner--home {
        height: 400px;
    }
    .banner__title {
        font-size: 32px;
    }
    .banner__subtitle {
        font-size: 16px;
    }

    .section {
        padding: 35px 0;
    }

}

/* ---------- 9. 活動快訊 ---------- */
.news {
    padding: 60px 0 80px;
}

.news__header {
    text-align: center;
    padding-bottom: 40px;
}

.news__title {
    font-size: 28px;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.news__subtitle {
    display: block;
    font-size: 16px;
    color: var(--color-text-muted);
    margin-top: 5px;
}

.news__divider {
    width: 80px;
    height: 2px;
    background-color: var(--color-accent);
    border: none;
    margin: 15px auto 0;
}

.news__list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news__item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: box-shadow var(--transition), transform var(--transition);
}

.news__item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.news__item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news__item-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ebe7;
    font-size: 64px;
    height: 200px;
}

.news__item-body {
    padding: 22px 28px 28px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news__item-tag {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 12px;
    padding: 2px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.news__item-title {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.news__item-date {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news__item-excerpt {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.news__item-link {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.news__item-link:hover {
    color: #b8834f;
}

.news__item-link::after {
    content: "→";
    transition: transform 0.2s;
}

.news__item-link:hover::after {
    transform: translateX(4px);
}

/* 活動快訊分頁 */
.news__pagination {
    text-align: center;
    padding: 40px 0 20px;
}

.news__page-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-light);
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s;
}

.news__page-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.news__page-link--active {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.news__page-link--active:hover {
    color: var(--color-white);
}

/* ---------- 10. 彈窗（Modal） ---------- */
.modal__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal__overlay.open {
    display: flex;
}

.modal__box {
    background: var(--color-white);
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 36px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal__close:hover {
    color: #333;
}

.modal__body .news__item-tag {
    margin-bottom: 12px;
}

.modal__title {
    font-size: 26px;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.modal__body .news__item-date {
    margin-bottom: 20px;
}

.modal__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    white-space: pre-line;
}

/* ---------- 響應式：活動快訊 + 彈窗 ---------- */
@media (max-width: 768px) {
    .news__item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .news__item-image,
    .news__item-image--placeholder {
        height: 180px;
    }

    .news__item-body {
        padding: 20px 22px 28px;
    }

    .news__item-title {
        font-size: 20px;
    }

    .modal__box {
        padding: 30px 24px 24px;
    }
}

@media (max-width: 480px) {
    .news__item-image,
    .news__item-image--placeholder {
        height: 150px;
    }
}

/* ---------- 11. 盒飯自取 ---------- */
.bento {
    padding: 60px 0 80px;
}
.bento__header {
    text-align: center;
    padding-bottom: 40px;
}
.bento__title {
    font-size: 28px;
    color: var(--color-primary);
    letter-spacing: 2px;
}
.bento__subtitle {
    display: block;
    font-size: 16px;
    color: var(--color-text-muted);
    margin-top: 5px;
}
.bento__divider {
    width: 80px;
    height: 2px;
    background-color: var(--color-accent);
    border: none;
    margin: 15px auto 0;
}
.bento__notice {
    text-align: center;
    background: var(--color-white);
    padding: 18px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
    border-left: 4px solid var(--color-accent);
}
.bento__notice p {
    font-size: 15px;
    color: var(--color-text-light);
    letter-spacing: 1px;
}
.bento__notice strong {
    color: var(--color-accent);
    font-weight: 600;
}
.bento__group-title {
    font-size: 22px;
    color: var(--color-primary);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    letter-spacing: 2px;
}
.bento__group-title:first-of-type {
    margin-top: 0;
}
.bento__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 10px;
}
.bento__card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.bento__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.bento__card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.bento__card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ebe7;
    font-size: 56px;
    aspect-ratio: 16 / 9;
}
.bento__card-body {
    padding: 20px 22px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bento__card-body h4 {
    font-size: 19px;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.bento__card-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
    margin-top: 10px;
}
.bento__card-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-accent);
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}
.bento__card-price small {
    font-size: 14px;
    font-weight: normal;
    color: var(--color-text-muted);
}
@media (max-width: 992px) {
    .bento__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .bento__grid { grid-template-columns: 1fr; gap: 20px; }
    .bento__notice { padding: 14px 18px; }
    .bento__notice p { font-size: 14px; }
    .bento__group-title { font-size: 20px; margin-top: 30px; }
}
@media (max-width: 480px) {
    .bento__card-image,
    .bento__card-image--placeholder { height: 160px; }
}
