:root {
    --cream: #F7F1E8;
    --beige: #E8D8C3;
    --latte: #C8A982;
    --brown: #6F4E37;
    --dark-brown: #3E2C22;
    --white: #FFFFFF;
    --text: #4A3A30;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.8;
}

header {
    background: rgba(247, 241, 232, 0.92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(111, 78, 55, 0.12);
}

.navbar {
    max-width: 1180px;
    margin: auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{

    font-size:36px;

    font-weight:700;

    color:#6F4E37;

    text-decoration:none;

    transition:.3s;
}

.logo:hover{

    opacity:.8;
}

.menu {
    display: flex;
    gap: 28px;
    list-style: none;
}

.menu a {
    text-decoration: none;
    color: var(--dark-brown);
    font-size: 15px;
}

.menu a:hover {
    color: var(--latte);
}

.hero {

    max-width: 1200px;

    margin: auto;

    min-height: 90vh;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 60px;

    padding: 50px 30px;
}

.hero-left {

    flex: 1;
}

.hero-right {

    flex: 1;
}

.hero-right img {

    width: 100%;

    border-radius: 30px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .12);
}

.hero h1 {

    font-size: 64px;

    line-height: 1.2;

    margin-bottom: 25px;
}

.hero p {

    font-size: 22px;

    margin-bottom: 35px;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--brown);
    color: var(--white);
    text-decoration: none;
    border-radius: 999px;
    font-size: 16px;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 12px 30px rgba(111, 78, 55, 0.22);
}

.btn:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
}

section {
    padding: 90px 24px;
}

.container {
    max-width: 1180px;
    margin: auto;
}

h2 {
    font-size: 36px;
    color: var(--dark-brown);
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: 2px;
}

section p {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-size: 17px;
    color: #5F4B3E;
}

.tech-grid,
.service-grid {
    margin-top: 48px;
    display: grid;
    gap: 28px;
}

.tech-grid {
    grid-template-columns: repeat(3, 1fr);
}

.service-grid {
    grid-template-columns: repeat(5, 1fr);
}

.card,
.service {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(200, 169, 130, 0.28);
    border-radius: 28px;
    padding: 34px 26px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(111, 78, 55, 0.08);
}

.card h3,
.service h3 {
    color: var(--brown);
    margin-bottom: 14px;
    font-size: 21px;
}

.card p {
    font-size: 15px;
    text-align: center;
}

#about {
    background: var(--cream);
}

#technology {
    background: #F2E8DB;
}

#service {
    background: var(--cream);
}

#team {
    background: linear-gradient(180deg, #F7F1E8, #EADBC9);
}

#contact {
    background: #E8D8C3;
    text-align: center;
}

#contact .btn {
    margin-top: 30px;
    margin-bottom: 80px;
}


footer {
    background: var(--dark-brown);
    color: var(--cream);
    padding: 28px 24px;
    text-align: center;
}

footer p {
    font-size: 14px;
}

.teachers {

    display: flex;

    justify-content: center;

    gap: 40px;

    margin-top: 60px;
}

.teacher-card {

    width: 350px;

    background: white;

    border-radius: 25px;

    overflow: hidden;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .08);
}

.teacher-card img {

    width: 100%;

    height: 420px;

    object-fit: cover;
}

.teacher-card h3 {

    text-align: center;

    margin-top: 20px;
}

.teacher-card p {

    padding: 20px;
}

.line-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #6F4E37;
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(63, 44, 34, .25);
    z-index: 9999;
}

.line-float:hover {
    background: #3E2C22;
}

#location {
    background: #F7F1E8;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-top: 50px;
}

.location-card {
    background: #fff;
    padding: 42px 30px;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(63, 44, 34, .08);
}

.location-card h3 {
    color: #6F4E37;
    font-size: 26px;
    margin-bottom: 16px;
}

.btn-small {
    display: inline-block;
    margin-top: 24px;
    padding: 11px 24px;
    background: #6F4E37;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
}

.map-container {

    margin-top: 20px;

    border-radius: 20px;

    overflow: hidden;
}

.map-container iframe {

    width: 100%;

    height: 320px;

    border: 0;
}

#advantage {
    background: #F2E8DB;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
}

.advantage-card h3 {
    color: #6F4E37;
    margin-bottom: 15px;
}

/* FAQ */

.faq-page {

    padding: 120px 20px 60px;

    text-align: center;
}

.faq-section {

    padding: 30px 20px 80px;
}

.faq-item {

    background: #fff;

    padding: 25px;

    border-radius: 20px;

    margin-top: 20px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .05);
}

/* FAQ 摺疊效果 */

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    color: #6F4E37;
    font-weight: 700;
    text-align: left;
}

.faq-question span {
    font-size: 26px;
    transition: .3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-answer p {
    padding-top: 16px;
    text-align: left;
    color: #5F4B3E;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

/* ===== 服務項目頁 ===== */
.services-page {

    padding: 120px 20px 40px;

    text-align: center;

    background: #F7F1E8;
}

.services-list {

    padding-top: 20px;
}

.services-page .container {

    max-width: 1180px;

    margin: 0 auto;
}

.services-page h1 {

    font-size: 56px;

    color: #3E2C22;

    margin-bottom: 24px;

    text-align: center;
}

.services-page p {

    max-width: 700px;

    margin: 0 auto;

    font-size: 18px;

    line-height: 1.8;

    text-align: center;

    color: #6F4E37;
}

.service-detail {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

    margin-bottom: 100px;
}

.service-detail.reverse .service-image {

    order: 2;
}

.service-detail.reverse .service-content {

    order: 1;
}

.service-image img {

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius: 30px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .10);
}

.service-content h2 {

    text-align: left;

    margin-bottom: 20px;
}

.service-content p {

    text-align: left;

    margin-bottom: 30px;
}

.service-content ul {

    margin-bottom: 30px;

    padding-left: 20px;
}

.service-content li {

    margin-bottom: 12px;

    color: #6F4E37;
}

.services-banner {

    width: 100%;

    max-width: 1000px;

    height: 420px;

    object-fit: cover;

    border-radius: 30px;

    margin-top: 50px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .12);
}

/* ===== COURSE PAGE ===== */

.course-hero {

    padding: 120px 20px 80px;
}

.course-hero-content {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;
}

.course-hero-image img {

    width: 100%;

    height: 500px;

    object-fit: cover;

    border-radius: 30px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .10);
}

.course-hero-text h1 {

    font-size: 56px;

    margin-bottom: 25px;

    color: #3E2C22;
}

.course-hero-text p {

    font-size: 18px;

    line-height: 1.8;

    margin-bottom: 30px;
}

.course-section {

    padding: 100px 20px;
}

.course-section.light {

    background: #F2E8DB;
}

.course-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

    margin-top: 50px;
}

.course-card {

    background: #fff;

    padding: 35px;

    border-radius: 25px;

    text-align: center;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .05);
}

.course-card h3 {

    margin-bottom: 15px;

    color: #6F4E37;
}


#course-preview{

    text-align:center;
}

#course-preview p{

    max-width:800px;

    margin:0 auto 30px;

    line-height:1.8;
}

#course-preview .btn{

    display:inline-block;

    margin:30px auto 0;
}

.feature-list {

    max-width: 900px;

    margin: 50px auto 0;
}

.feature-item {

    display: flex;

    gap: 25px;

    margin-bottom: 40px;
}

.feature-item span {

    width: 60px;

    height: 60px;

    border-radius: 50%;

    background: #6F4E37;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;
}

.training-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

    margin-top: 50px;
}

.training-card {

    background: white;

    padding: 35px;

    border-radius: 25px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .05);
}

.training-card h3 {

    color: #6F4E37;

    margin-bottom: 15px;
}

.course-cta {

    padding: 120px 20px;

    text-align: center;

    background: #F2E8DB;
}

.course-cta p {

    max-width: 700px;

    margin: 20px auto 40px;

    line-height: 1.8;
}

.course-cta h2{

    font-size:48px;
}



/* 社群 */

#social {
    padding-top:100px;
    padding: 100px 20px;
    text-align: center;
    background: #F7F1E8;
}

/* 社群 ICON */

.social-icons{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:40px;

    margin-top:40px;
}

.social-icons a{

    width:70px;

    height:70px;

    border-radius:50%;

    background:white;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    box-shadow:
    0 12px 30px rgba(0,0,0,.08);

    transition:.3s;
}

.social-icons a:hover{

    transform:translateY(-5px);

    box-shadow:
    0 18px 40px rgba(0,0,0,.12);
}

.social-icons img{

    width:36px;

    height:36px;

    object-fit:contain;
}

/* 首頁服務預覽 */

#service{

    text-align:center;
}

.price-preview{
    text-align:center;
}

.price-preview p{
    max-width:800px;
    margin:0 auto 30px;
    line-height:1.8;
}

.price-preview .btn{
    display:inline-block;
    margin:30px auto 0;
}

.service-intro{

    max-width:700px;

    margin:0 auto 40px;

    line-height:1.8;
}

.service-preview{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:18px;

    margin-bottom:40px;
}

.service-preview span{

    display:inline-block;

    padding:16px 30px;

    background:#ffffff;

    border-radius:999px;

    color:#6F4E37;

    font-weight:600;

    box-shadow:
    0 10px 25px rgba(0,0,0,.05);
}

/* Course 專業團隊 */

.course-team{
    padding:100px 20px;
    background:#F7F1E8;
}

.course-team-intro{
    max-width:780px;
    margin:0 auto 60px;
    text-align:center;
    line-height:1.9;
}

.course-teacher-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.course-teacher-card{
    background:#fff;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 18px 45px rgba(63,44,34,.08);
}

.course-teacher-card img{
    width:100%;
    height:420px;
    object-fit:cover;
}

.course-teacher-content{
    padding:34px;
}

.course-teacher-content h3{
    font-size:28px;
    color:#6F4E37;
    margin-bottom:8px;
}

.course-teacher-content span{
    display:block;
    color:#9A7B5F;
    font-weight:700;
    margin-bottom:18px;
}

.course-teacher-content p{
    text-align:left;
    margin-bottom:22px;
}

.course-teacher-content ul{
    padding-left:20px;
}

.course-teacher-content li{
    margin-bottom:10px;
    color:#6F4E37;
}

/* Course 學員競賽成果 */

.course-awards{
    padding:100px 20px;
    background:#F2E8DB;
}

.course-awards-intro{
    max-width:820px;
    margin:0 auto 60px;
    text-align:center;
    line-height:1.9;
}

.awards-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
}

.award-card{
    background:#fff;
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 18px 45px rgba(63,44,34,.08);
}

.award-card img{
    width:100%;
    height:320px;
    object-fit:cover;
}

.award-content{
    padding:30px;
}

.award-content h3{
    color:#6F4E37;
    font-size:22px;
    margin-bottom:14px;
}

.award-content p{
    text-align:left;
    line-height:1.8;
}

/* 價目表頁 */

.pricing-hero{
    padding:120px 20px 80px;
    text-align:center;
    background:#F7F1E8;
}

.pricing-hero h1{
    font-size:56px;
    color:#3E2C22;
    margin-bottom:24px;
}

.pricing-hero p{
    max-width:760px;
    margin:0 auto 50px;
    line-height:1.9;
}

.pricing-menu-img{
    width:100%;
    max-width:760px;
    border-radius:30px;
    box-shadow:0 25px 60px rgba(63,44,34,.12);
}

.pricing-section{
    padding:100px 20px;
    background:#F2E8DB;
}

.price-category{
    background:#fff;
    border-radius:30px;
    padding:42px;
    margin-bottom:36px;
    box-shadow:0 18px 45px rgba(63,44,34,.08);
}

.price-category h2{
    color:#6F4E37;
    margin-bottom:4px;
}

.price-time{
    text-align:center;
    color:#9A7B5F;
    margin-bottom:30px;
}

.price-list{
    max-width:850px;
    margin:0 auto;
}

.price-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:16px 0;
    border-bottom:1px dashed #C8A982;
}

.price-item span{
    font-size:18px;
    color:#4A3A30;
}

.price-item strong{
    font-size:20px;
    color:#6F4E37;
    white-space:nowrap;
}

.price-note{
    text-align:center;
    margin-top:40px;
    color:#6F4E37;
}

.pricing-cta{
    padding:100px 20px;
    text-align:center;
    background:#F7F1E8;
}

.pricing-cta p{
    margin-bottom:30px;
}

/* 專業團隊 Team Page*/

.team-page{

    padding:120px 20px 100px;

    text-align:center;
}

.team-page h1{

    margin-bottom:20px;
}

.team-intro{

    max-width:800px;

    margin:0 auto 60px;

    line-height:1.9;
}

.team-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:40px;
}

.team-card{

    background:#fff;

    padding:40px 30px;

    border-radius:30px;

    text-decoration:none;

    color:#3E2C22;

    transition:.3s;

    box-shadow:
    0 15px 40px rgba(0,0,0,.08);
}

.team-card:hover{

    transform:translateY(-8px);

    box-shadow:
    0 25px 50px rgba(0,0,0,.12);
}

.team-card img{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    display:block;
    margin:0 auto 25px;
}

.team-card h3{

    margin-bottom:10px;

    color:#6F4E37;
}

.team-card p{

    color:#666;
}


/* 電子名片頁 */

.namecard-page{
    min-height:100vh;
    padding:80px 20px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(180deg,#F7F1E8,#E8D8C3);
}

.namecard{
    width:100%;
    max-width:520px;
    background:#fff;
    padding:50px 34px;
    border-radius:36px;
    text-align:center;
    box-shadow:0 25px 70px rgba(63,44,34,.12);
}

.namecard-photo{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:26px;
    box-shadow:0 12px 35px rgba(63,44,34,.18);
}

.namecard h1{
    font-size:36px;
    color:#3E2C22;
    margin-bottom:8px;
}

.namecard h2{
    font-size:18px;
    color:#6F4E37;
    margin-bottom:24px;
}

.namecard p{
    text-align:center;
    line-height:1.9;
    margin-bottom:34px;
}

.namecard-icons{
    display:flex;
    justify-content:center;
    gap:18px;
    margin-bottom:34px;
}

.namecard-icons a{
    width:62px;
    height:62px;
    border-radius:50%;
    background:#F2E8DB;
    color:#6F4E37;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-weight:700;
    box-shadow:0 10px 25px rgba(63,44,34,.08);
}

.namecard-icons a:hover{
    background:#6F4E37;
    color:#fff;
}

.namecard-btn{
    margin-top:10px;
}


/* 手機版修正版 */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .navbar {
        flex-direction: column;
        gap: 14px;
        padding: 16px 20px;
    }

    .menu {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 16px;
    }

    .menu a {
        font-size: 14px;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 60px 22px;
        gap: 32px;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.35;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-right img {
        width: 100%;
        border-radius: 24px;
    }

    section {
        padding: 64px 22px;
    }

    h2 {
        font-size: 30px;
    }

    .tech-grid,
    .service-grid,
    .advantage-grid,
    .location-grid,
    .course-grid,
    .training-grid {
        grid-template-columns: 1fr;
    }

    .logo{

        font-size:28px;
        letter-spacing:2px;
    }

    .teachers {
        flex-direction: column;
        align-items: center;
    }

    .teacher-card {
        width: 100%;
        max-width: 340px;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 70px;
    }

    .service-detail.reverse .service-image,
    .service-detail.reverse .service-content {
        order: unset;
    }

    .service-image img {
        height: 220px;
    }

    .services-banner {
        height: 220px;
        border-radius: 24px;
    }

    .services-page h1,
    .course-hero-text h1 {
        font-size: 34px;
    }

    .course-hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .course-hero-image img {
        height: 260px;
    }

    .feature-item {
        flex-direction: column;
    }

    .line-float {
        right: 12px;
        bottom: 80px;
        padding: 12px 16px;
        font-size: 13px;
    }

    .service-content h2{
    text-align:center;
}

.service-content p{
    text-align:left;
}

.service-content ul{
    text-align:left;
}

.course-hero-text{
    text-align:center;
}

.menu{
    gap:10px;
}

.menu a{
    font-size:13px;
}

.hero{
    min-height:auto;
    padding-top:30px;
    padding-bottom:30px;
}

.social-icons{

    gap:28px;
}

.social-icons a{

    width:60px;

    height:60px;
}

.social-icons img{

    width:30px;

    height:30px;
}

.service-preview{

    gap:12px;
}

.service-preview span{

    width:100%;

    max-width:260px;

    padding:14px 20px;
}

 .course-cta h2{

    font-size:24px;
 }

 .course-teacher-grid{
    grid-template-columns:1fr;
}

.course-teacher-card img{
    height:360px;
}

.course-teacher-content{
    padding:28px 24px;
}

.course-teacher-content h3{
    text-align:center;
}

.course-teacher-content span{
    text-align:center;
}

.awards-grid{
    grid-template-columns:1fr;
}

.award-card img{
    height:280px;
}

.award-content{
    padding:26px 22px;
}

.award-content h3{
    text-align:center;
}

.pricing-hero{
    padding:80px 22px 60px;
}

.pricing-hero h1{
    font-size:38px;
}

.pricing-menu-img{
    border-radius:22px;
}

.price-category{
    padding:30px 22px;
}

.price-item{
    align-items:flex-start;
}

.price-item span{
    font-size:16px;
}

.price-item strong{
    font-size:17px;
}
/* 專業團隊 Team Page*/

.team-grid{

    grid-template-columns:1fr;
}

.team-card img{

    width:140px;

    height:140px;
}

/* 電子名片頁 */
    .namecard{
        padding:42px 24px;
    }

    .namecard-photo{
        width:150px;
        height:150px;
    }

    .namecard h1{
        font-size:30px;
    }

    .namecard-icons a{
        width:56px;
        height:56px;
        font-size:14px;
    }

}