@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif TC', serif;
    line-height: 1.6;
    color: #2c1810;
    background: linear-gradient(135deg, #f5f1eb 0%, #ede4d3 100%);
}


/* 標題 */
.navbar {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: #f5deb3;
    padding: 1.5rem 0;
    box-shadow: 0 3px 15px rgba(139, 69, 19, 0.3);
    border-bottom: 3px solid #daa520;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo {
    font-size: 2.8rem;
    font-weight: 700;
    font-family: 'STKaiti', '楷体', 'KaiTi', serif;
    color: #daa520;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.logo-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #f5deb3;
    margin: 0;
    text-align: center;
    letter-spacing: 0.1em;
}

.welcome-text {
    font-size: 0.4em;
    font-weight: 600;
}

.tagline {
    font-style: italic;
    opacity: 0.9;
    font-size: 1.1rem;
    color: #f5deb3;
}

.tagline-en {
    margin-left: -2rem;
}

.contact-info {
    background: linear-gradient(135deg, #f5f1eb 0%, #ede4d3 100%);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 2px solid #daa520;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #4a3728;
    font-size: 0.95rem;
}

.contact-details div {
    white-space: nowrap;
}

.lang-switch {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: #f5deb3;
    border: 1px solid #daa520;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Serif TC', serif;
}

.lang-switch:hover {
    background: linear-gradient(135deg, #a0522d, #8b4513);
    color: #f5deb3;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(74, 55, 40, 0.3);
    opacity: 0.9;
}

/* 主要內容 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: #e8d5b7;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(74, 55, 40, 0.1);
    border: 2px solid #4a3728;
}

.hero h2 {
    color: #4a3728;
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(74, 55, 40, 0.3);
    line-height: 1.3;
}

.brand-name {
    font-size: 3.8rem;
    font-weight: 900;
    font-family: 'Noto Serif TC', 'STSong', 'SimSun', '宋体', '楷体', 'KaiTi', serif;
    color: #4a3728;
    text-shadow: 2px 2px 4px rgba(74, 55, 40, 0.4);
    letter-spacing: 0.1em;
    display: inline;
    margin-left: 0.3rem;
    font-style: normal;
}

.hero p {
    font-size: 1.3rem;
    color: #5d4037;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.highlight {
    background: linear-gradient(135deg, #daa520, #b8860b);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(218, 165, 32, 0.3);
}

/* 標籤頁系統 */
.content-tabs {
    margin-bottom: 4rem;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a3728;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Serif TC', serif;
    border-bottom: 3px solid transparent;
    margin: 0 1rem;
}

.tab-btn:hover {
    color: #4a3728;
    opacity: 0.8;
}

.tab-btn.active {
    color: #4a3728;
    border-bottom-color: #4a3728;
    background: linear-gradient(135deg, rgba(74, 55, 40, 0.1), rgba(74, 55, 40, 0.05));
    opacity: 1;
}

.tab-content {
    min-height: 400px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 服務項目區域 */
.services {
    margin-bottom: 4rem;
}

.services h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: #4a3728;
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
}

/* Removed underline for services h3 */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.service-card {
    background: linear-gradient(135deg, #fff8dc, #faf0e6);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
    transition: all 0.3s;
    border: 2px solid #ddd;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.25);
    border-color: #8b4513;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-name {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #4a3728;
}

.service-description {
    color: #5d4037;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1rem;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a3728;
    margin-bottom: 1rem;
}

.service-features {
    text-align: left;
    margin-bottom: 1.5rem;
    background: rgba(139, 69, 19, 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    flex-grow: 1;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {
    margin-bottom: 0.5rem;
    color: #5d4037;
    font-size: 0.95rem;
}


/* 活動照片 */
.event-photos-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
}

.event-photo-card {
    background: linear-gradient(135deg, #fff8dc, #faf0e6);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #8b4513;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
    text-align: center;
    transition: all 0.3s;
}

.event-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.15);
}

.event-photo {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.event-photo-card h4 {
    color: #4a3728;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.event-photo-card p {
    color: #5d4037;
    line-height: 1.6;
    font-size: 1rem;
}

/* Photo Gallery Styles */
.photo-gallery {
    margin-top: 1.5rem;
}

.photo-date-group {
    margin-bottom: 2rem;
}

.photo-date-group h5 {
    color: #4a3728;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-align: center;
    background: rgba(74, 55, 40, 0.1);
    padding: 0.5rem;
    border-radius: 5px;
}

.photo-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.gallery-photo {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #daa520;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* 客戶見證 */
.testimonials {
    margin-bottom: 4rem;
}

.testimonials h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: #4a3728;
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
}

/* Removed underline for testimonials h3 */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, #f5f5dc, #fff8dc);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #8b4513;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #5d4037;
}

.client-name {
    text-align: right;
    color: #4a3728;
    font-weight: 600;
}

/* 關於師父 */
.about {
    margin-bottom: 4rem;
}

.welcome-title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, #fff8dc, #f5f5dc);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
    border: 2px solid #daa520;
}

.welcome-title h2 {
    color: #8b4513;
    margin-bottom: 0;
    font-size: 2.8rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    line-height: 1.3;
}

/* Combined Hero and About Section */
.hero-about {
    margin-bottom: 4rem;
}

.combined-content {
    background: #e8d5b7;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(74, 55, 40, 0.15);
    border: 2px solid #4a3728;
}

.combined-content h2 {
    text-align: center;
    color: #4a3728;
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(74, 55, 40, 0.3);
    line-height: 1.3;
}

.combined-content .master-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.about h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: #4a3728;
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
}

/* Removed underline for about h3 */

.master-info {
    display: flex;
    gap: 15rem;
    align-items: flex-start;
}

.master-photo {
    font-size: 8rem;
    text-align: center;
    min-width: 200px;
    flex-shrink: 0;
    margin-top: 2rem;
}

.master-details h2 {
    margin-bottom: 0.5rem;
    line-height: 1.2;
    margin-left: -2.5rem;
}

.welcome-small {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8b4513;
    margin-right: 4rem;
    margin-left: 2.5rem;
}

.brand-large {
    font-size: 4rem;
    font-weight: 800;
    color: #b8860b;
    font-family: '华文隶书', 'STLiti', '方正隶书简体', '隶书', 'cursive', serif;
    letter-spacing: 0.15em;
}

.master-details h4 {
    font-size: 1.5rem;
    color: #4a3728;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-family: 'Noto Serif TC', 'STSong', 'SimSun', '宋体', '楷体', 'KaiTi', serif;
    text-shadow: 1px 1px 2px rgba(74, 55, 40, 0.3);
    letter-spacing: 0.1em;
    font-style: normal;
}

.master-details ul {
    list-style: none;
    padding: 0;
}

.master-details li {
    margin-bottom: 0.8rem;
    color: #5d4037;
    font-size: 1.05rem;
    line-height: 1.6;
}


/* 頁尾 */
footer {
    background: linear-gradient(135deg, #2c1810, #3d2817);
    color: #f5deb3;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    border-top: 3px solid #daa520;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #daa520;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #5d4037;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .logo {
        font-size: 2.2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 1rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-highlights {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .master-info,
    .combined-content .master-info {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .master-photo {
        font-size: 6rem;
    }

    .combined-content {
        padding: 2rem;
    }

    .combined-content h2 {
        font-size: 2.2rem;
    }

    .brand-name {
        font-size: 2.8rem;
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tab-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-btn {
        margin: 0;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}


/* 大師頻道樣式 */
.channel-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #fff8dc, #faf0e6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #daa520;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
    transition: all 0.3s;
    width: 100%;
}

.channel-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.15);
}

.channel-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.channel-details {
    flex-grow: 1;
}

.channel-details h6 {
    color: #4a3728;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.channel-details p {
    color: #5d4037;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.channel-action {
    margin-top: 1rem;
}

.channel-btn {
    background: linear-gradient(135deg, #4a3728, #5d4037);
    color: #e8d5b7;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Serif TC', serif;
}

.channel-btn:hover {
    background: linear-gradient(135deg, #5d4037, #6b4423);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 55, 40, 0.3);
}

.channel-btn:focus,
.channel-btn:active {
    background: linear-gradient(135deg, #6b4423, #4a3728);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 55, 40, 0.4);
    outline: 2px solid #4a3728;
    outline-offset: 2px;
}