/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* 導航欄 */
.navbar {
    background-color: #1a1a1a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #ff6b00;
    font-size: 1.8rem;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ff6b00;
}

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

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

/* 主橫幅 */
.hero {
    /* background: linear-radient(135deg, #dbe2ff 0%, #764ba2 100%); */
    background: #dbe2ff;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
}

.hero-content img {
    width: 60%;
}

.hero-content p {
    color: black;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-values {
    color: black;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.hero-values span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* 按鈕 */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

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

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

.btn-secondary {
    background-color: #475ede;
    color: white;
    width: 100%;
}

.btn-secondary:hover {
    background-color: #2440e0;
}

/* 區塊標題 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* 課程區塊 */
.courses {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

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

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.course-card.featured {
    border: 3px solid #ff6b00;
    position: relative;
}

.course-card.featured::before {
    content: "推薦";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b00;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 10;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-level {
    display: inline-block;
    background-color: #475ede;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.course-details {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.detail-item {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.detail-item strong {
    color: #2440e0;
    display: block;
    margin-bottom: 0.2rem;
}

.detail-item span {
    color: #666;
}

.course-image {
    width: 100%;
    height: auto;
    padding: 20px,0px,0px,0px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.course-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.course-features {
    list-style: none;
    margin-bottom: 1rem;
}

.course-features li {
    color: #2440e0;
    margin: 0.5rem 0;
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.duration {
    color: #666;
    font-size: 0.9rem;
}

.price {
    color: #ff6b00;
    font-size: 1.5rem;
    font-weight: bold;
}

/* 教練區塊 */
.coaches {
    padding: 5rem 0;
}

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

.coach-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.coach-card.featured {
    border: 3px solid #ff6b00;
    position: relative;
}

.coach-card.featured::before {
    content: "獲獎教練";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b00;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.coach-card:hover {
    transform: translateY(-5px);
}

.coach-expertise {
    text-align: left;
    margin-top: 1.5rem;
}

.coach-expertise h4 {
    color: #2440e0;
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
}

.coach-expertise ul {
    list-style: none;
    padding-left: 0;
}

.coach-expertise ul li {
    color: #666;
    margin: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.coach-expertise ul li::before {
    content: "•";
    color: #2440e0;
    position: absolute;
    left: 0;
}

.achievements li {
    font-size: 0.9rem;
    line-height: 1.6;
}

.coach-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2440e0 0%, #764ba2 100%);
    overflow: hidden;
}

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

.coach-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.coach-title {
    color: #2440e0;
    font-weight: bold;
    margin-bottom: 1rem;
}

.coach-description {
    color: #666;
    line-height: 1.6;
}

/* 關於我們 */
.about {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    color: #2440e0;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-features {
    list-style: none;
    margin-top: 1rem;
}

.about-features li {
    color: #333;
    margin: 0.8rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-features li strong {
    color: #2440e0;
}

.equipment-grid,
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.equipment-item,
.location-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.equipment-item h4,
.location-item h4 {
    color: #2440e0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.equipment-item ul,
.location-item ul {
    list-style: none;
    padding-left: 0;
}

.equipment-item ul li {
    color: #666;
    margin: 0.5rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.equipment-item ul li::before {
    content: "✓";
    color: #2440e0;
    position: absolute;
    left: 0;
}

.location-item p {
    margin: 0.5rem 0;
    color: #666;
    line-height: 1.6;
}

.location-item strong {
    color: #333;
}

/* 聯絡我們 */
.contact {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    color: #2440e0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-item {
    margin: 1rem 0;
    color: #666;
}

.contact-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: #2440e0;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* 表單 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2440e0;
}

/* 頁腳 */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: #ff6b00;
    margin-bottom: 1rem;
}

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

.footer-section p {
    color: #ccc;
    margin: 0.5rem 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff6b00;
}

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

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
