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

html {
    background: white;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background: white;
    color: white;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    position: relative;
    padding-bottom: 60px;
    overflow-x: hidden;
}

.container {
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 1000;
}


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

.menu-btn, .search-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
}

/* 用來平衡 header 佈局，讓 logo 保持置中 */
.header-spacer {
    width: 50px; /* 跟 menu-btn 的寬度一樣 (padding 10px * 2 + icon 30px) */
    visibility: hidden;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('photo/cosmetic.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero2 {
    margin-top: 70px;
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('photo/lose weight.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero3 {
    margin-top: 70px;
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('photo/fitness.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero4 {
    margin-top: 70px;
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('photo/physical therapy.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
}

.hero h1, .hero2 h1, .hero3 h1, .hero4 h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    letter-spacing: 3px;
}

/* Service Introduction */
.service-intro {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    padding: 40px 0;
}

/* Main Content Background Wrapper */
.main-content {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 這個是舊的樣式，主頁不使用 */

.service-text {
    position: relative;
}

.service-item-intro {
    margin-bottom: 20px;
}

.service-item-intro:last-child {
    margin-bottom: 0;
}

.service-item-intro h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-text p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Doctor Team */
.doctor-team {
    background: #1a365d;
    padding: 40px 0;
    width: 100%;
    overflow-x: hidden;
}

.doctor-team h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.clinic-location-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.clinic-location-tabs .location-tab {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.clinic-location-tabs .location-tab.active {
    background: #ff6b35;
    color: white;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-items: center;
}

/* 只對醫師團隊的第5位應用居中（不影響教練團隊） */
#taipei-doctors .doctor-card:nth-child(5),
#taichung-doctors .doctor-card:nth-child(5),
#taipei-doctors-lose .doctor-card:nth-child(5),
#taichung-doctors-lose .doctor-card:nth-child(5),
#taipei-doctors-sports .doctor-card:nth-child(5),
#taichung-doctors-sports .doctor-card:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 150px;
}

/* 台北教練團隊的第3位（Louis）居中 - 已移除避免 Grace 被推到第三排 */
/* #taipei-doctors-strength .doctor-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 150px;
} */

/* 台北教練團隊的第7位（Queenie）居中 - 最後一位教練 */
#taipei-doctors-strength .doctor-card:nth-child(7) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 150px;
}

/* 力量訓練頁面台中教練特殊排版 (8位教練) */
#taichung-doctors-strength {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    row-gap: 15px;
}

#taichung-doctors-strength .doctor-card {
    max-width: none;
    padding: 8px;
}

/* 手機大小自適應 */
@media (max-width: 480px) {
    .doctor-avatar {
        width: 65px;
        height: 65px;
    }
    
    .doctor-card h4 {
        font-size: 0.85rem;
    }
    
    .doctor-specialty,
    .doctor-specialty1,
    .doctor-specialty-outline {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    
    .doctors-grid {
        gap: 15px;
    }
    
    .clinic-location-tabs .location-tab {
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 5px;
    }
    
    .doctors-grid {
        gap: 5px;
        padding: 0 5px;
    }
    
    .doctor-card {
        padding: 3px;
        max-width: 140px;
    }
    
    .doctor-avatar {
        width: 45px;
        height: 45px;
        margin: 0 auto 5px;
    }
    
    .doctor-card h4 {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }
    
    .doctor-specialty,
    .doctor-specialty1,
    .doctor-specialty-outline {
        font-size: 0.45rem;
        padding: 1px 3px;
        margin-bottom: 2px;
    }
}

.doctor-card {
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    min-width: 160px;
}

.doctor-avatar {
    width: 100px;
    height: 100px;
    border: 3px solid #ff6b35;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.doctor-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: white;
    text-align: center;
    font-weight: bold;
}

.doctor-specialty {
    background: #eb873b;
    padding: 4px 8px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 5px;
}

.doctor-specialty1 {
    background: #ff6b35;
    padding: 4px 8px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 5px;
}

.doctor-specialty2 {
    background: #000000;
    padding: 4px 8px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 5px;
}

.doctor-specialty-outline {
    background: rgb(238, 237, 237);
    border: 1px solid #666;
    color: black;
    padding: 4px 8px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 5px;
}

/* Clinic Environment */
.clinic-environment {
    background: #2d3748;
    padding: 40px 0;
}

.environment-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-label {
    font-weight: bold;
    color: white;
}

.location-tab {
    background: white;
    border: 2px solid #e2e8f0;
    color: #666;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.location-tab.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.environment-image {
    height: 250px;
    background: linear-gradient(135deg, #4a5568, #718096);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.environment-image img {
    filter: brightness(0) invert(1); /* 讓 SVG 圖示變白色 */
}

/* Beauty Plan */
.beauty-plan {
    background: #1a365d;
    padding: 40px 0;
}

.beauty-plan h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.plan-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #cbd5e0;
}

.beauty-plan h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    margin-top: 25px;
}

.plan-items {
    margin-bottom: 30px;
}

.plan-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.plan-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #4a5568;
    border-radius: 4px;
    background: white;
}

.plan-item label {
    color: #cbd5e0;
    cursor: pointer;
    font-size: 14px;
}

.time-investment {
    margin-bottom: 30px;
}

.time-display {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.time-display span {
    font-size: 1rem;
    color: #cbd5e0;
    margin-left: 8px;
}

.time-slider {
    margin-bottom: 15px;
}

.slider-track {
    width: 100%;
    height: 8px;
    background: #4a5568;
    border-radius: 4px;
    position: relative;
    margin-bottom: 10px;
}

.slider-fill {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    border-radius: 4px;
}

.slider-handle {
    width: 20px;
    height: 20px;
    background: #ff6b35;
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    left: 30%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #cbd5e0;
}

.plan-summary {
    background: white;
    color: #333;
    border-radius: 15px;
    padding: 25px;
}

.summary-info {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.completion-time,
.monthly-cost {
    flex: 1;
}

.completion-time h3,
.monthly-cost h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.time-value,
.cost-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1a365d;
}

.time-value span,
.cost-value span {
    font-size: 1rem;
    color: #666;
    margin-left: 5px;
}

/* Booking Section */
.booking-section {
    background: #1a365d;
    color: white;
    padding: 40px 0;
}

.progress-pricing {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.progress-bar {
    margin-bottom: 25px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    position: relative;
    margin-bottom: 10px;
}

.progress-fill {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    border-radius: 4px;
}

.progress-handle {
    width: 20px;
    height: 20px;
    background: #ff6b35;
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    left: 30%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.pricing-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    text-align: center;
}

.pricing-info .completion-time,
.pricing-info .monthly-cost {
    flex: 1;
}

.line-booking-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}


/* Consultation Section */
.consultation-section {
    background: #2d3748;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.location-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Calendar */
.calendar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.day-header {
    font-weight: bold;
    color: #666;
    padding: 8px;
    font-size: 14px;
}

.day {
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 14px;
}


.day.selected {
    background: #ff6b35;
    color: white;
}

/* Time Slots */
.time-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e2e8f0;
    padding: 12px 15px;
    border-radius: 8px;
}

.time-slot.available {
    background: white;
}

.book-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}


/* Footer */
.footer {
    background: #4a5568;
    padding: 30px 0;
    text-align: center;
    margin-top: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 16px;
}


.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.social-icons .social-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}


.social-icons .social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.social-icons .social-item img {
    position: relative;
    z-index: 2;
    width: 30px;
    height: 30px;
}

.copyright {
    color: #a0aec0;
    font-size: 12px;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #041a39;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-container {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateX(-100%);
    transition: transform 0.4s ease-out;
}

.menu-overlay.active .menu-container {
    transform: translateX(0);
}

.menu-header {
    position: absolute;
    top: 19px;
    right: 40px;
    z-index: 10001;
}

.menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 40px 120px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
    opacity: 0;
    transform: translateX(-30px);
    animation-fill-mode: forwards;
}

.menu-overlay.active .menu-item {
    animation: slideInFade 0.5s ease-out forwards;
}

.menu-overlay.active .menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-overlay.active .menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-overlay.active .menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-overlay.active .menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-overlay.active .menu-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInFade {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.menu-item.current-page {
    background: rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    padding: 8px;
}

.menu-item.current-page .menu-title {
    font-weight: bold;
}

.menu-icon {
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-icon img {
    width: 40px;
    height: 32px;
    object-fit: contain;
}

.menu-text {
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Source Han Sans TW', Arial, sans-serif;
    display: flex;
    align-items: center;
}

.menu-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-english {
    font-family: 'Archivo Expanded', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.8;
}

.menu-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.social-row {
    display: flex;
    gap: 25px;
    align-items: center;
}

.social-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}


.social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.social-item img {
    position: relative;
    z-index: 2;
    width: 35px;
    height: 35px;
}


.social-youtube img {
    width: 30px;
    height: 30px;
}

/* Home Page Styles */
.home-main {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    min-height: 72vh;
    padding-top: 70px;
    padding-bottom: 7px;
}

.home-hero {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.home-hero h1 {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
    margin-bottom: 20px;
}

.service-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 180px;
}

.service-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.service-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 2;
    color: white;
}

.service-info h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.service-info p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}


/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: -1px;
    left: 0;
    width: 100%;
    background: #1a365d;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #4a5568;
    z-index: 1000;
}

.nav-item {
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
}


.nav-item.current-page {
    background: rgba(255, 107, 53, 0.3);
    border-top: 3px solid #ff6b35;
}

/* 確保沒有current-page類別的nav-item不顯示紅色 */
.nav-item:not(.current-page) {
    background: transparent !important;
    border-top: none !important;
}



.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
}

.nav-icon img {
    filter: brightness(0) invert(1); /* 讓 SVG 圖示變白色 */
}

.nav-item span {
    font-size: 9px;
    color: #cbd5e0;
    display: block;
    line-height: 1.1;
}

/* Latest News Section */
.latest-news {
    background: #1a365d;
    padding: 30px 0 40px;
    margin-top: 70px;
}

.news-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 5px;
}

.news-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.news-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.news-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.news-arrow-left {
    left: 10px;
}

.news-arrow-right {
    right: 10px;
}

.news-slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.news-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.news-slide.active {
    opacity: 1;
}

.news-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* 佔位符樣式（用於沒有圖片的投影片） */
.news-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d3748 0%, #1a365d 100%);
    border-radius: 15px;
}

.news-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 3;
    color: white;
}

.news-content h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.news-date {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
    letter-spacing: 1px;
}

.news-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 480px) {
    .news-slider-container {
        height: 220px;
    }

    .news-content h3 {
        font-size: 1.1rem;
    }

    .news-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .news-slider-container {
        height: 200px;
    }

    .news-content {
        bottom: 15px;
        left: 15px;
    }

    .news-content h3 {
        font-size: 1rem;
    }
}