﻿/* 重置和基本樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 導航列 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #e74c3c;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要內容 */
main {
    margin-top: 80px;
}

/* 英雄區塊 - chan3滿版背景，人像靠左1/3 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('Picture/chan3.jpg');
    background-size: cover;
    background-position: left 5%;  /* 人像靠左1/3位置 */
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 2rem 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.btn-secondary:hover {
    background-color: #e74c3c;
    color: white;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.coach-photo {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 滿版照片區塊 - 調整圖片位置讓人臉顯示 */
.fullscreen-section {
    height: 100vh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 針對不同圖片調整位置 */
.fullscreen-section:nth-of-type(1) {
    background-position: center 30%;
}

.fullscreen-section:nth-of-type(2) {
    background-position: center 25%;
}

/* 第三個滿版照片區塊 - 使用chan7 */
.fullscreen-section:nth-of-type(3) {
    background-image: url('Picture/chan7.jpg');
    background-position: center 20%;
}

.fullscreen-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.fullscreen-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.fullscreen-subtitle {
    font-size: 1.3rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

/* 區塊樣式 */
.section {
    padding: 5rem 0;
}

.section-dark {
    background-color: #2c3e50;
    color: white;
}

.section-dark .section-title {
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* 關於我區塊 - 簡約三欄布局 */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.role {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-style: italic;
}

.about-three-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.about-column {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.about-column:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.1);
}

.column-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e74c3c;
}

.column-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.column-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f2f6;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
}

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

.simple-list li::before {
    content: '';
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.8rem;
}

/* 教學特點區塊 */
.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.teaching-item {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.teaching-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.teaching-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.teaching-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.teaching-item p {
    color: #666;
    line-height: 1.6;
}

/* 教學地點區塊 */
.location-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.location-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.location-areas {
    font-size: 1.2rem;
    color: #bdc3c7;
    margin-bottom: 2rem;
}

.teaching-time {
    font-size: 1.2rem;
    color: #bdc3c7;
    margin-bottom: 2rem;
}

.location-note {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 2rem;
}

.location-note p {
    color: #bdc3c7;
    font-style: italic;
}

/* 聯絡方式區塊 */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: left;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #666;
}

.contact-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

.cta-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.cta-section h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 頁尾 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: #bdc3c7;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .about-three-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-column {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* 手機版Hero區塊調整 */
    .hero {
        background-attachment: scroll;
        background-position: left 40%;  /* 手機版調整人像位置 */
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .fullscreen-section {
        background-attachment: scroll;
        height: 70vh;
    }
    
    /* 手機版調整圖片位置 */
    .fullscreen-section:nth-of-type(1) {
        background-position: center 40%;
    }
    
    .fullscreen-section:nth-of-type(2) {
        background-position: center 35%;
    }
    
    .fullscreen-section:nth-of-type(3) {
        background-position: center 30%;
    }
    
    .fullscreen-title {
        font-size: 2rem;
    }
    
    .fullscreen-subtitle {
        font-size: 1.1rem;
    }
    
    .about-header h3 {
        font-size: 1.8rem;
    }
    
    .about-three-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-column {
        padding: 1.5rem;
    }
    
    .column-header h4 {
        font-size: 1.2rem;
    }
    
    .teaching-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .fullscreen-title {
        font-size: 1.5rem;
    }
    
    .fullscreen-subtitle {
        font-size: 1rem;
    }
    
    .about-header h3 {
        font-size: 1.6rem;
    }
    
    .about-column {
        padding: 1.2rem;
    }
    
    .column-header h4 {
        font-size: 1.1rem;
    }
    
    .simple-list li {
        font-size: 0.95rem;
        padding: 0.7rem 0;
        padding-left: 1.2rem;
    }
}
