/* ---------- 全域重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Serif TC", serif;
}

html, body {
    width: 100%;
    height: 100%;
    background-image: url(assets/漸層底圖compressed.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden; 
}

/* 導覽列 */
header {
    width: 100%;
    position: relative;
    z-index: 100;
    height: clamp(85px, 9.03vw, 130px);
    background-color: #363F59;
    display: flex;
    flex-direction: row;
}

.logo {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
}

.logo-img {
    width: clamp(86px, 9.24vw, 133px);
    height: clamp(85px, 9.03vw, 130px);
    object-fit: cover;
    object-position: center;
    transform: scale(2);
    transform-origin: center;
}

.standard-text {
    width: clamp(97px, 10.35vw, 149px);
    height: clamp(38px, 4.10vw, 59px); 
    object-fit: cover;
    object-position: center;
}

nav {
    display: flex;
    flex: 5;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 5px;
}

nav a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: clamp(1rem, 1.67vw, 1.5rem);
    font-family: Noto Sans TC;
    font-weight: 700;
    white-space: nowrap;
}

.nav-button {
    padding: clamp(10px, 1.04vw, 15px) clamp(20px, 2.08vw, 30px);
}

nav hr {
    margin-top: 10px;
    margin-bottom: 15px;
}

.dropdown {
    display: flex;
    flex-direction: column;
    position: relative;
}

.work {
    border: 1px solid transparent;
    text-decoration: underline #FFFFFF 1px;
    text-underline-offset: clamp(10px, 1.04vw, 15px);
    padding: clamp(10px, 1.04vw, 15px) clamp(20px, 2.08vw, 30px);
}

.ex {
    border: 1px solid transparent;
    position: relative;
    text-decoration: none;
    padding: clamp(10px, 1.04vw, 15px) clamp(111px, 11.81vw, 170px) clamp(10px, 1.04vw, 15px) clamp(20px, 2.08vw, 30px);
}

.ex::after {
    content: '';
    position: absolute;
    left: clamp(20px, 2.08vw, 30px);
    right: clamp(111px, 11.81vw, 170px);
    bottom: 0px;
    height: 1px;
    background-color: #FFFFFF;
    transition: right 0.25s ease;
}

.dropdown:hover .work, .dropdown:hover .ex {
    color: #C4C4C4;
}

.dropdown:hover .ex::after {
    right: 30px;
}

/* nav button 上半部 */
.dropdown:hover > a {
    background-color: #363F59;
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.dropdown-menu {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px); 
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* nav button 下半部 */
.dropdown:hover .dropdown-menu {
    display: flex;
    background-color: #363F59;
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-top: none;
    border-bottom-left-radius: clamp(8px, 0.83vw, 12px);
    border-bottom-right-radius: clamp(8px, 0.83vw, 12px);
    opacity: 1; 
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    text-decoration: none;
    padding: 10px 20px;
    font-size: clamp(0.83rem, 1.39vw, 1.25rem);
    font-weight: 300;
    padding: clamp(10px, 1.04vw, 15px) clamp(20px, 2.08vw, 30px);
    white-space: nowrap;
}

.social-media {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin-right: clamp(39px, 4.17vw, 60px);
    align-items: center;
}

.social-media a {
    margin-left: clamp(33px, 3.47vw, 50px);
}

.fullscreen-page-wrapper {
    width: 100%;
}

.fullscreen-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 130px 40px 60px 40px;
    box-sizing: border-box;
}

.section-inner-content {
    width: 100%;
    max-width: 1240px;
    position: relative;
    z-index: 5;
}

/* ================= 0. Banner ================= */
.hero-banner-section {
    position: relative;
    padding: 0;
    background: #d4d4d4;
    overflow: hidden;
}

.hero-banner-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;

    /* 1. 毛玻璃霧化效果 */
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);

    /* 2. 暗度調整：使用 rgba(0, 0, 0, 0.65) 進行深度壓暗，搭配疊加的噪點 */
    background-color: rgba(0, 0, 0, 0.35); /* 想更暗可調至 0.7~0.75，若太暗可退回 0.55 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.2'/%3E%3C/svg%3E");
    background-repeat: repeat;

    /* 3. 混合模式改為 multiply 或直接移除，確保黑色能扎實壓暗底圖 */
    mix-blend-mode: multiply;
}
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    z-index: 0;
}

.project-hero-title {
    position: relative;
    z-index: 2;
    font-size: 4rem;
    letter-spacing: 8px;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.banner-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    animation: bounceDown 1.8s infinite ease-in-out;
}

@keyframes bounceDown {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.8; }
    50% { transform: translate(-50%, 12px); opacity: 0.3; }
}

.section-heading-gold h2 {
    font-size: 2.2rem;
    letter-spacing: 3px;
    color: #dfba73;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-heading-gold.right-aligned {
    text-align: right;
}

.diamond-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 8px 0 40px 0;
    overflow: hidden;
}

.diamond-divider img {
    flex: 1;
    width: 50%;
    height: auto;
    display: block;
}

/* ================= 1. TEAM & MEMBERS ================= */
.team-main-card {
    display: flex;
    gap: 60px; 
    align-items: center;
    margin-bottom: 60px;
}

.team-image-frame {
    width: 360px;
    height: 280px;
    border-radius: 28px;
    padding: 10px; 
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.team-image-inner {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #6c7a9c;
}

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

.team-about-content h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 1.5px;
    color: #FFFFFF;
}

.team-about-content p {
    font-family: "Noto Serif TC", serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
}

.team-social-links {
    display: flex;
    gap: 30px;
}

.gold-link {
    color: #dfba73;
    text-decoration: none;
    font-size: 1.05rem;
    letter-spacing: 2px;
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gold-link img {
    width: 20px;
    height: 20px;
}

/* 成員卡片 */
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1050px;
    margin: 0 0;
}

.flip-card {
    background-color: transparent;
    width: 400px;
    height: 310px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    background: linear-gradient(
        135deg, 
        rgba(30, 35, 45, 0.22) 0%, 
        rgba(15, 20, 30, 0.15) 100%
    ); 
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 0px solid rgba(93, 93, 93, 0.416);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.8),          
        inset 0 -1px 2px rgba(255, 255, 255, 0.4),      
        inset 0 0 12px rgba(200, 225, 255, 0.18),       
        0 8px 24px rgba(0, 0, 0, 0.12);                  
    padding: 24px 70px 20px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.flip-card-front::before, .flip-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 45%),
                radial-gradient(circle at bottom right, rgba(160, 200, 255, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.member-photo-frame, .member-name, .member-intro {
    position: relative;
    z-index: 2;
}

.member-photo-frame {
    width: 200px;
    height: 200px;
    overflow: hidden;
    background: #e8eaee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.member-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 名字文字 */
.member-name {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin-top: 10px;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: rgba(45, 55, 80, 0.88);
    border-color: rgba(255, 255, 255, 0.7);
    justify-content: center;
    padding: 22px;
}

.member-intro {
    font-family: "Noto Serif TC", serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
}

/* ================= 2. Introduction ================= */
.intro-glass-card {
    width: 100%;
    height: auto;
    background: linear-gradient(
        135deg, 
        rgba(30, 35, 45, 0.22) 0%, 
        rgba(15, 20, 30, 0.15) 100%
    ); 
    padding: 50px 55px; 
    padding-top: 90px;
    padding-bottom: 90px;
}

.intro-glass-card p {
    font-family: "Noto Serif TC", serif;
    font-size: 1.25rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    padding-left: 50px;
    padding-right: 50px;
}

.tags-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    margin: 45px 0 45px 0;
}

/* hashtag */
.tag-item {
    font-family: "Noto Serif TC", serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a2433;
    letter-spacing: 1px;
    padding-top: 10px;
}

/* 指導教授文字 */
.advisor-info {
    font-family: "Noto Serif TC", serif;
    font-size: 1.15rem;
    color: #ffffff;
    letter-spacing: 1px;
    padding-top: 10px;
    border-top: none;
    padding-left: 50px;
    padding-right: 50px;
}

/* ================= 裝飾球 ================= */
.intro-sphere {
    left: -250px;
    top: -25%;
    width: 800px;
    transform: rotate(95deg); 
    animation: realVerticalFloat 1.8s ease-in-out infinite alternate;
}

.visual-sphere {
    right: -390px;
    bottom: 55%;
    width: 1000px;
}

.deco-orbit-sphere {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.deco-orbit-sphere img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes realVerticalFloat {
    0% {
        top: -25%;
    }
    100% {
        top: calc(-25% - 40px);
    }
}

/* ================= 3. Visual Outcomes (無留邊滿版輪播) ================= */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.glass-slider-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    border-radius: 28px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

.slider-track-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    z-index: 3;
    background: #e2e4e8;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(120, 140, 175, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.btn-prev { left: -28px; }
.btn-next { right: -28px; }

.visual-bottom-desc {
    font-family: "Noto Serif TC", serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 40px;
    text-align: center;
    min-height: 70px;
}

/* ================= 4. How It Works ================= */
.how-grid {
    display: flex;
    flex-direction: column;
    gap: 80px; 
    margin-bottom: 100px;
}

.how-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.how-text-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.how-text-block {
    flex: 1;
}

.how-text-block p {
    font-family: "Noto Serif TC", serif;
    font-size: 1.25rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.95);
}

.how-img-frame {
    flex: 1;
    height: 330px;  
    max-width: 500px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.how-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 垂直星星線條 */
.vertical-star-divider {
    width: 40px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.vertical-star-divider img {
    width: 240px;
    height: auto;
    transform: rotate(90deg);
}

/* 回專題頁按鈕 */
.back-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: -100px;
}

.btn-back-topic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 25px 70px;
    background: rgba(72, 72, 83, 0.356);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(0px);
    border: 2px solid rgba(22, 22, 31, 0.4);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 2rem;
    letter-spacing: 2px;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-back-topic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        120deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: all 0.65s ease;
    pointer-events: none;
    opacity: 0;
}

.btn-back-topic:hover {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-3px);
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.8),
        0 12px 30px rgba(0, 0, 0, 0.25);
    color: #363F59;
}

.btn-back-topic:hover::before {
    left: 130%;
    opacity: 1;
}

.btn-back-topic:active {
    transform: translateY(-1px);
}

/* ---------- 漢堡按鈕：電腦版預設隱藏 ---------- */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 8px;
    z-index: 101;
}

.hamburger-btn .material-symbols-outlined {
    font-size: 2.2rem;
}

@media screen and (min-width: 991px) {
    .address {
        margin-left: 100px;
    }

    footer a:has(.email) {
        margin-right: 100px;
    }
}

/* =========================================================
   響應式 (Mobile & Tablet)
   ========================================================= */
@media (max-width: 991px) {
    .hero-banner-section {
        width: 100vw;
        height: 240px;      
        min-height: 240px;
        position: relative;
        left: 0;
        right: 0;
        margin: 0 0 35px 0;
        padding: 0 !important;
        background: transparent;
        overflow: hidden;
    }

    .hero-bg-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;     
        object-fit: cover; 
        object-position: center;
        opacity: 0.85;
        display: block;
    }

    .project-hero-title {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.7rem;
        letter-spacing: 4px;
        color: #ffffff;
        text-align: center;
        width: 90%;
        margin: 0;
        z-index: 2;
    }

    .banner-scroll-hint {
        display: none;
    }

    /* --- 3. 裝飾光球 --- */
    .fullscreen-section {
        overflow: visible;
        min-height: auto;
        padding: 40px 18px 30px 18px;
    }

    .intro-sphere {
        position: absolute;
        width: 180px;
        right: -30px;
        top: -610px;
        left: auto;
        z-index: 1;
        transform: rotate(-90deg);
    }

    .visual-sphere {
        position: absolute;
        width: 250px;
        right: -70px;
        transform: rotate(-45deg);
        bottom: 85%;
        left: auto;
        z-index: 1;
    }

    /* --- 4. 裝飾線條隱藏 --- */
    .diamond-divider,
    .vertical-star-divider {
        display: none !important;
    }

    /* --- 5. 標題 --- */
    .section-heading-gold h2,
    .section-heading-gold.right-aligned {
        font-size: 1.4rem;
        text-align: left;
        margin-bottom: 20px;
    }

    /* --- 6. TEAM & 成員卡片 --- */
    .section-inner-content .team-main-card {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .section-inner-content .team-image-frame {
        display: none;
    }

    .team-about-content h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .team-about-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .section-inner-content .members-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        background: rgba(30, 35, 45, 0.28);
        padding: 16px 12px;
        border-radius: 18px;
        height: auto;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .members-grid .flip-card {
        width: 100%;
        height: auto;
        perspective: none;
        cursor: default;
    }

    .members-grid .flip-card:hover .flip-card-inner {
        transform: none; 
    }

    .flip-card .flip-card-inner {
        position: static;
        width: 100%;
        height: auto;
        transform: none;
        transform-style: flat;
    }

    .flip-card-inner .flip-card-back {
        display: none;
    }

    .flip-card-inner .flip-card-front {
        position: static;
        width: 100%;
        height: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }

    .flip-card-front::before {
        display: none;
    }

    .flip-card-front .member-photo-frame {
        aspect-ratio: 1 / 1;
        height: auto;
        width: 90px;
        overflow: hidden;
        background: #e8eaee;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        margin: 0;
    }

    .member-photo-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .flip-card-front .member-name {
        font-size: 0.95rem;
        color: #ffffff;
        text-align: center;
        margin: 0;
        line-height: 1.2;
        font-weight: 500;
        letter-spacing: 1px;
    }

    /* --- 7. Introduction --- */
    .intro-glass-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .intro-glass-card p {
        font-size: 0.95rem;
        line-height: 1.65;
        padding: 0;
        margin-bottom: 15px;
    }

   .tags-group {
        margin: 12px 0;
    }

    .tag-item, .advisor-info {
        font-size: 0.85rem;
        padding: 0;
    }
    /* --- 8. Visual Outcomes --- */
    .glass-slider-frame {
        border-radius: 16px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .btn-prev { left: -10px; }
    .btn-next { right: -10px; }

    .visual-bottom-desc {
        font-size: 0.95rem;
        line-height: 1.65;
        padding: 0;
        margin-top: 15px;
    }

    /* --- 9. How It Works --- */
    .how-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 30px;
        background: rgba(30, 35, 45, 0.28);
        padding: 24px 18px;
        border-radius: 18px;
    }

    .how-row {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .how-row:nth-child(2) {
        flex-direction: column-reverse; 
    }

    .how-text-block p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .how-img-frame {
        width: 100% !important;
        aspect-ratio: 16 / 10;          
        height: auto !important;
        min-height: 150px;              
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.5);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .how-img-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* --- 10. 回專題按鈕與 Footer --- */
    .back-btn-container {
        margin-top: 25px;
        margin-bottom: 0;
    }

    .btn-back-topic {
        padding: 10px 32px;
        font-size: 1rem;
    }

    footer > a:has(.email),
    .email {
        display: none !important;
    }

    .contact {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 24px !important;
        margin-top: 10px !important;
    }

    .contact .mob-email {
        display: inline-block !important;
        color: #FFFFFF !important;
        font-size: 24px !important;
    }
}