/* ============================================
   基礎設置 - 全裝置通用
   ============================================ */

/* CSS 變數 */
:root {
    --brand-red: #FA2828;
    --brand-yellow: #E6A633;
    --brand-gold: #BFA666;
    --brand-light-brown: #F2CCA6;
    --decorative-brown: #450017;
    --decorative-chocolate: #1F0514;
    --neutral-black: #000000;
    --neutral-white: #FFFFFF;
}

/* 基礎樣式 */
body {
    font-family: 'Noto Serif TC', serif;
    color: var(--neutral-black);
    overflow-x: hidden;
}

/* 自定義字體 */
@font-face {
    font-family: 'Tamanegi_Geki';
    src: url('fonts/Tamanegi_Geki.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 通用文字樣式 */
.chinese-title {
    font-family: 'Tamanegi_Geki', serif;
    font-size: 80px;
    line-height: 120%;
    color: var(--brand-gold);
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.english-title {
    font-family: 'Crimson Pro', serif;
    font-size: 64px;
    line-height: 1.2;
    color: var(--neutral-white);
    opacity: 0.7;
}

.chinese-subtitle {
    font-family: 'Tamanegi_Geki', serif;
    font-size: 48px;
    color: var(--brand-gold);
    margin-bottom: 1.5rem;
}

/* 載入畫面 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1F0514;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loading-title {
    font-family: "Tamanegi_Geki", serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-size: 2.5rem;
    color: #BFA666;
    margin-bottom: 1rem;
}

/* 輪播指示器通用樣式 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 10px 0;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-light-brown);
    opacity: 0.2;
    margin: 0 5px;
    border: none;
}

.carousel-indicators button.active {
    background-color: var(--brand-gold);
    opacity: 1;
}


/* ============================================
   電腦版樣式 (Desktop)
   ============================================ */

/* 導航欄 */
.navbar {
    background: linear-gradient(180deg, #FA2828 70.1%, rgba(250, 176, 40, 0.7) 100%);
    padding: 0.5rem 2rem;
}

.navbar-nav .nav-link {
    color: var(--brand-light-brown);
    font-weight: 700;
    font-size: 18px;
    margin: 0 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--neutral-white);
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
    font-size: 18px;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--neutral-white);
}

.booking-btn {
    background-color: var(--brand-gold);
    color: var(--neutral-white);
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
}

.booking-btn:hover {
    background-color: var(--brand-yellow);
    color: var(--neutral-white);
}

.logo {
    max-height: 60px;
}

/* 主橫幅 */
#banner {
    height: 900px;
    position: relative;
}

#banner img {
    object-fit: cover;
    height: 900px;
}

/* 關於老麻記 */
.about-section {
    position: relative;
    height: 930px;
    overflow: hidden;
}

.about-background {
    background-image: url('../images/about_background_1.jpg');
    /* 替換為您的圖片路徑 */
    background-size: cover;
    background-position: center;
    height: 930px;
    position: relative;
}

.about-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(31, 5, 20, 0.75);*/
    /* 深紫色半透明覆蓋層 */
}

.about-text {
    position: relative;
    padding: 120px 0 0 112px;
    display: flex;
}

.about-text .chinese-title {
    font-family: 'Tamanegi_Geki', serif;
    font-size: 80px;
    line-height: 120%;
    color: #BFA666;
    /* 金色 */
    font-weight: 400;
    margin-right: 30px;
    text-align: center;
}

.about-text .content {
    padding-top: 60px;
    color: #FFFFFF;
    max-width: 600px;
}

.about-text .content h3 {
    font-family: 'Noto Serif TC', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.about-text .content p {
    font-family: 'Noto Serif TC', serif;
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 16px;
    color: #FFFFFF;
    font-weight: 500;
}

/* 輪播導航控制 */
.carousel-navigation {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #BFA666;
    background-color: transparent;
    color: #BFA666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.nav-arrow:hover {
    background-color: rgba(191, 166, 102, 0.2);
}

.nav-arrow i {
    font-size: 14px;
}

.nav-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #F2CCA6;
    opacity: 0.2;
    margin: 0 5px;
    cursor: pointer;
}

.nav-dot.active {
    background-color: #BFA666;
    opacity: 1;
}

/* 特色菜品區 */
.feature-section {
    background-color: var(--decorative-chocolate);
    color: var(--neutral-white);
    padding: 1px 0;
    position: relative;
    height: 820px;
}

.feature-content {
    max-width: 510px;
    margin-top: 100px;
}

.feature-btn {
    display: inline-block;
    background-color: var(--brand-yellow);
    color: var(--neutral-white);
    font-weight: 700;
    font-size: 24px;
    padding: 16px 48px;
    border-radius: 40px;
    margin: 32px 0;
    text-decoration: none;
}

.feature-btn:hover {
    background-color: var(--brand-gold);
    color: var(--neutral-white);
}

.feature-desc {
    font-size: 20px;
    line-height: 40px;
    color: var(--brand-light-brown);
    font-weight: 700;
}

.dish-display {
    position: absolute;
    right: 0;
    top: 120px;
    width: 50%;
    height: 600px;
    overflow: hidden;
}

.dish-display img {
    width: 600px;
    height: 600px;
    object-fit: cover;
}

.feature-item-2 {
    /*margin-top: 100px;*/
}

/* 菜品卡片區 */
.dishes-section {
    background-color: var(--decorative-brown);
    padding: 120px 0;
    position: relative;
}

.dish-card {
    background-color: var(--neutral-white);
    border: 2px solid var(--brand-light-brown);
    border-radius: 40px;
    overflow: hidden;
    height: 100%;
}

.dish-img {
    height: 300px;
    overflow: hidden;
}

.dish-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-info {
    padding: 24px;
}

.dish-info h4 {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 12px;
}

.dish-info p {
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 12px;
}

.more-link {
    color: var(--brand-gold);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.more-link i {
    margin-left: 5px;
}

/* 菜單展示區 */
.menu-section {
    background-color: var(--decorative-chocolate);
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-family: 'Tamanegi_Geki', serif;
    color: var(--brand-gold);
    font-size: 64px;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    background-color: var(--decorative-brown);
    color: var(--neutral-white);
    font-weight: 700;
    font-size: 24px;
    padding: 16px 48px;
    border-radius: 40px;
    display: inline-block;
    margin: 0 auto 40px;
}

.menu-display {
    background-color: rgba(255, 255, 255, 0.75);
    padding: 2rem;
    border-radius: 8px;
}

/* 頁腳 */
footer {
    background-color: var(--neutral-black);
    color: var(--neutral-white);
    padding: 80px 0;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-info h5 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 20px;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.footer-social .social-icon {
    background-color: transparent;
    border: 1px solid var(--neutral-white);
}

.footer-social .social-icon:hover {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
}

/* 預約表單樣式 */
#bookingModal .modal-content {
    border-radius: 20px;
    border: 2px solid var(--brand-gold);
}

#bookingModal .modal-header {
    background-color: var(--brand-red);
    color: var(--neutral-white);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

#bookingModal .modal-title {
    font-weight: 700;
}

#bookingModal .btn-close {
    color: var(--neutral-white);
}

#bookingModal .form-label {
    font-weight: 600;
}

#bookingModal .form-control:focus,
#bookingModal .form-select:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 0.25rem rgba(191, 166, 102, 0.25);
}

#bookingModal .btn-primary {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
}

#bookingModal .btn-primary:hover {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
}

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

#successModal .modal-content {
    border-radius: 20px;
}

#successModal .modal-header {
    background-color: var(--brand-gold);
    color: var(--neutral-white);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

/* 固定訂位按鈕 */
.booking-button {
    position: fixed;
    width: 700px;
    height: 88px;
    background-color: var(--brand-red);
    margin: 0 auto;
    bottom: 0;
    left: 50%;
    margin-left: -350px;
    z-index: 999;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.booking-button:hover {
    background-color: var(--decorative-brown);
}

.booking-button-text-a {
    font-size: 2.25rem;
    line-height: 2.25rem;
    color: var(--neutral-white);
    font-weight: 600;
}

.booking-button-text-b {
    font-size: 2.25rem;
    line-height: 2.25rem;
    color: var(--neutral-white);
    margin-left: 20px;
    font-weight: 400;
}

.booking-button-arw {
    width: 35px;
    margin-left: 30px;
    font-size: 1.5rem;
    color: var(--neutral-white);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-button:hover .booking-button-arw {
    transform: translateX(5px);
}

/* 小尺寸按鈕樣式 */
.booking-button-min {
    width: 130px;
    height: 110px;
    left: inherit;
    margin-left: inherit;
    right: 15px;
    bottom: 15px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    background-color: #b90f00;
}

.booking-button-min>.booking-button-text-a {
    width: 100%;
    font-size: 1.25rem;
    line-height: inherit;
    text-align: center;
}

.booking-button-min>.booking-button-text-b {
    width: 100%;
    font-size: 1rem;
    line-height: inherit;
    margin-left: inherit;
    margin-top: 5px;
    text-align: center;
}

.booking-button-min>.booking-button-arw {
    width: 25px;
    margin-left: inherit;
    margin-top: 15px;
}


/* ============================================
   平板版樣式 (Tablet: max-width: 992px)
   ============================================ */

@media (max-width: 992px) {

    /* 導航欄 */
    .navbar {
        padding: 0.5rem 1rem;
    }

    .social-contact {
        margin-top: 1rem;
        justify-content: center;
    }

    /* 文字樣式 */
    .chinese-title {
        font-size: 60px;
    }

    /* 關於老麻記 */
    .about-text {
        padding: 80px 20px 0;
        flex-direction: column;
    }

    .about-text .chinese-title {
        font-size: 60px;
        writing-mode: horizontal-tb;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .about-text .content {
        padding-top: 0;
    }

    /* 特色菜品區 */
    .feature-content {
        margin-top: 20px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .dish-display {
        position: relative;
        width: 100%;
        height: 400px;
        margin-top: 0;
        right: auto;
        top: auto;
    }

    .dish-display img {
        margin: 0 auto;
        display: block;
        width: 400px;
        height: 400px;
    }

    .feature-item-2 {
        margin-top: 0;
    }
}


/* ============================================
   手機版樣式 (Mobile: max-width: 768px)
   ============================================ */

@media (max-width: 768px) {

    /* 區塊高度調整 */
    .about-section,
    .feature-section {
        height: auto;
        min-height: 70vh;
    }

    .about-background {
        height: auto;
        min-height: 70vh;
        padding-bottom: 40px;
    }

    /* 文字樣式 */
    .english-title {
        font-size: 48px;
    }

    .chinese-subtitle {
        font-size: 30px;
    }

    .section-title {
        font-size: 48px;
    }

    /* 關於老麻記 */
    .about-text .chinese-title {
        font-size: 48px;
    }

    .about-text .content h3 {
        font-size: 20px;
    }

    .about-text .content p {
        font-size: 16px;
        line-height: 24px;
    }

    /* 主橫幅 */
    #banner {
        height: auto;
        position: unset;
    }

    #banner img {
        object-fit: unset;
        height: auto;
    }

    /* 菜品卡片 */
    .dish-card {
        margin-bottom: 2rem;
    }

    /* 特色菜品區 */
    .feature-item-2 {
        margin-top: 0;
    }

    /* 固定訂位按鈕 */
    .booking-button {
        width: 100%;
        left: 0;
        margin-left: 0;
        height: 70px;
    }

    .booking-button-text-a {
        font-size: 1.5rem;
    }

    .booking-button-text-b {
        font-size: 1.5rem;
        margin-left: 10px;
    }

    .booking-button-arw {
        width: 25px;
        margin-left: 15px;
        font-size: 1.2rem;
    }

    .booking-button-min {
        width: 100%;
        height: 90px;
        right: 10px;
        bottom: 0;
    }

    .booking-button-min>.booking-button-text-a {
        width: auto;
        font-size: 1.5rem;
        line-height: 1.5rem;
    }

    .booking-button-min>.booking-button-text-b {
        width: auto;
        font-size: 1.5rem;
        line-height: 1.5rem;
        margin-left: 10px;
        margin-top: 0px;
    }

    .booking-button-min>.booking-button-arw {
        width: 25px;
        margin-left: 18px;
        margin-top: 0px;
    }
}


/* ============================================
   手機版樣式 (Small Mobile: max-width: 576px)
   ============================================ */

@media (max-width: 576px) {

    /* 文字樣式 */
    .chinese-title {
        font-size: 40px;
    }

    /* 特色菜品區 */
    .feature-btn {
        padding: 12px 32px;
        margin: 15px 0;
        font-size: 18px;
    }

    .feature-desc {
        font-size: 16px;
        line-height: 30px;
        margin-bottom: 0;
    }

    .dish-display img {
        width: 300px;
        height: 300px;
    }

    .feature-item-2 {
        margin-top: 0;
    }

    /* 關於老麻記 */
    .about-text {
        padding: 60px 15px 0;
    }

    .about-text .chinese-title {
        font-size: 48px;
    }

    /* 輪播導航 */
    .carousel-navigation {
        bottom: 10px;
    }

    /* 頁腳 */
    footer {
        text-align: left;
        padding: 30px 0;
        margin-bottom: 50px;
    }

    .footer-info {
        margin-bottom: 2rem;
    }

    .footer-social {
        justify-content: center;
    }
}