@charset "UTF-8";

/* ========================================
   CSS 變數定義
======================================== */
:root {
    /* 主色系 */
    --primary-blue: #102A5E;
    --secondary-blue: #063b71;
    --dark-blue: #0A1F44;
    --navy: #081833;
    --medium-blue: #2D5B91;
    --hover-blue: #1E4A7A;
    
    /* 金色系 */
    --gold: #d4af37;
    --dark-gold: #765d1e;
    --burlywood: burlywood;
    
    /* 中性色 */
    --white: #fff;
    --off-white: #f5f5f5;
    --light-gray: #F8F5F1;
    --gray: #ccc;
    --dark-gray: #666;
    --black: #1a1a1a;
    --text-dark: #333;
    --text-medium: #444;
    
    /* 字體 */
    --font-family: "Noto Serif TC", "Noto Sans TC", sans-serif;
    
    /* 陰影 */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 6px 15px rgba(0, 0, 0, 0.3);
    
    /* 圓角 */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --radius-round: 50%;
}

/* ========================================
   基礎樣式
======================================== */
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    text-decoration: none;
    font-weight: bold;
    background-color: var(--secondary-blue);
    color: var(--white);
}

/* 大標題 */
.section {
    font-size: 250%;
    padding: 50px 20px;
    min-height: 100vh;
    text-align: center;
}

.section img {
    max-width: 100%;
    height: auto;
    object-position: left;
    padding: 10px;
}

.background-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--dark-blue);
}

.background-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   導航列 (Navbar)
======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-blue);
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    opacity: 90%;
}

.menu {
    padding-right: 10%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar a {
    font-family: var(--font-family);
    color: var(--burlywood);
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
}

.navbar a:hover {
    text-decoration: none;
    color: var(--white);
}

.menu a {
    display: block;
    padding: 5px;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.logo {
    width: 50px;
    height: auto;
    margin-left: 20px;
    padding-right: 250px;
    cursor: pointer;
}

.logo-text {
    font-size: 20px;
    color: var(--white);
    font-family: var(--font-family);
    margin-left: -240px;
}

.logo-container:hover .logo-text {
    color: var(--burlywood);
}

/* 手機選單圖示 */
.menu-icon {
    z-index: 1000;
    display: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
    margin-left: auto;
    margin-right: 40px;
    right: 10px;
}

.list-icon, .x-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, transform 0.3s;
}

.list-icon span {
    display: block;
    width: 20px;
    height: 3px;
    margin: 4px 0;
    background-color: var(--white);
    border-radius: 2px;
}

.x-icon {
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.x-icon span:first-child {
    position: absolute;
    width: 100%;
    height: 3px;
    top: 50%;
    background-color: var(--white);
    transform: translateY(-50%);
}

.x-icon span:last-child {
    position: absolute;
    width: 3px;
    height: 100%;
    left: 50%;
    background-color: var(--white);
    transform: translateX(-50%);
}

.menu-icon.active .list-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.menu-icon.active .x-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

/* ========================================
   頁尾 (Footer)
======================================== */
.footer {
    background-color: var(--navy);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1500px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    width: 200px;
    height: auto;
}

.footer-content {
    font-family: var(--font-family);
    font-size: larger;
    text-align: left;
    line-height: 1.6;
    color: var(--burlywood);
    justify-content: center;
    display: flex;
    align-items: center;
    width: 80%;
    max-width: 1500px;
    gap: 20px;
}

.footer-bottom {
    background-color: var(--navy);
    text-align: center;
    font-size: 14px;
    color: var(--dark-gray);
    padding-top: 10px;
}

.location1, .location2 {
    color: var(--burlywood);
    text-decoration: none;
}

/* ========================================
   社群圖示 (Icons)
======================================== */
.social-icons {
    z-index: 999;
    opacity: 80%;
    position: fixed;
    right: 15px;
    top: 75%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.social-icons a {
    display: block;
    width: 50px;
    height: 50px;
    background-size: cover;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.social-icons :hover {
    transform: scale(1.5);
}

.social-icons a:hover {
    animation: hoverEffect 0.3s ease-in-out forwards;
}

.social-icons a:active {
    animation: hoverEffect 0.3s ease-in-out forwards;
}

.social-icons a:focus {
    outline: none;
}

@keyframes hoverEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.5); }
}

@keyframes resetEffect {
    0% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.social-icons a:not(:hover) {
    animation: resetEffect 0.2s ease-in-out forwards;
}

.ig {
    background-image: url('../public/IG.png');
    border: 2px solid #3a506b;
    border-radius: var(--radius-round);
}

.phone_call {
    background-image: url('../public/call-icon.png');
    border: 2px solid #3a506b;
    border-radius: var(--radius-round);
    background-color: #eaeaea;
}

.line {
    background-image: url('../public/LINE.png');
    border: 2px solid #3a506b;
    border-radius: var(--radius-round);
}

/* ========================================
   律師團隊 (Lawyer Team)
======================================== */
.team-title {
    font-family: var(--font-family);
    color: var(--black);
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
}

#team {
    background-color: var(--white);
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-container {
    display: block;
    width: 55vw;
    max-width: 900px;
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 10;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.8);
    border-radius: 2% 2%;
}

.mobile-team {
    display: none;
}

.team-images {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-images img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.team-images img.active {
    opacity: 1;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* 律師手機版樣式 */
.lawyer-img {
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius-lg);
}

.lawyer-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--black);
    margin-top: 10px;
    text-align: center;
}

.lawyer-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.info-btn {
    background-color: var(--white);
    border: 2px solid var(--black);
    color: var(--black);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
}

.info-btn:hover {
    background-color: var(--black);
    color: var(--white);
}

.info-btn.active {
    background-color: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black) !important;
}

.lawyer-content {
    width: 100%;
    max-width: 400px;
    margin-top: 15px;
    text-align: left;
}

.lawyer-text {
    display: none;
    font-size: 16px;
    color: var(--black);
    padding: 15px;
    border-radius: var(--radius-lg);
}

.lawyer-text.active {
    display: block;
}

.lawyer-text h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0 10px;
    color: #222;
    text-align: left;
}

.lawyer-text ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.lawyer-text ul li {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.8;
    display: flex;
    padding-left: 10px;
    align-items: flex-start;
    gap: 8px;
}

.lawyer-text ul li::before {
    content: "•";
    color: var(--text-dark);
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    width: 12px;
}

.lawyer-img-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.dots-container {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: none;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: gray;
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background-color: var(--black);
}

/* ========================================
   服務項目 (Service)
======================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    width: 90%;
    margin: auto;
    padding: 30px;
    max-width: 1200px;
}

.service-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.service-item .overlay {
    font-family: var(--font-family);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0);
    color: var(--dark-blue);
    opacity: 0;
    transition: opacity 0.4s, background 0.4s;
}

.service-item:hover .overlay {
    background: rgba(255, 255, 255, 0.85);
    opacity: 1;
}

/* 手機版輪播 */
#mobile-carousel {
    display: none;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: auto;
    text-align: center;
}

.mobile-service-wrapper {
    position: relative;
    width: 100%;
}

#serviceImage {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    cursor: pointer;
}

#indicator-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: var(--gray);
    border-radius: var(--radius-round);
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--dark-blue);
}

#serviceOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0);
    color: var(--dark-blue);
    opacity: 0;
    transition: opacity 0.4s, background 0.4s;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

#serviceOverlay.active {
    background: rgba(255, 255, 255, 0.9);
    opacity: 1;
    pointer-events: auto;
}

.service-title-overlay {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    z-index: 2;
}

.service-info {
    background: none;
    padding: 15px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-top: 10px;
}

.service-title {
    font-size: 24px;
    font-weight: bold;
    color: #f8f9fa;
}

.service-description {
    font-size: 20px;
    color: #f8f9fa;
    margin-top: 20px;
}

/* ========================================
   成功案例 (Case)
======================================== */
.timeline-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    width: 65%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    background: var(--white);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    padding-left: 40px;
    border-left: 4px solid var(--gold);
}

.timeline-item:hover {
    background-color: #f7f7f7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.timeline-date {
    font-size: 16px;
    font-weight: bold;
    color: var(--gold);
    background-color: var(--white);
    padding: 8px 12px;
    border: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    text-align: center;
    width: 120px;
    min-width: 120px;
    margin-right: 15px;
    flex-shrink: 0;
}

.timeline-item:hover .timeline-date {
    background-color: var(--gold);
    color: var(--off-white);
}

.timeline-title {
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
    padding-left: 30px;
    flex-grow: 1;
}

/* 分頁按鈕 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination button {
    background-color: var(--gold);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    margin: 0 4px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.pagination button.active {
    background-color: var(--dark-gold);
    font-weight: bold;
}

.pagination button:disabled {
    background-color: var(--gray);
    cursor: not-allowed;
}

/* 彈出框 */
.detail-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background: var(--white);
    color: var(--black);
    padding: 25px;
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 80%;
    box-shadow: var(--shadow-xl);
    position: relative;
    text-align: left;
}

.popup-date {
    font-size: 20px;
    font-weight: bold;
    color: var(--gold);
    text-align: left;
    margin-bottom: 10px;
}

.popup-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: left;
}

#popup-content {
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.6;
    text-align: justify;
    max-height: 400px;
    overflow-y: auto;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--gold);
}

/* ========================================
   聯絡表單 (Contact)
======================================== */
#contact {
    background-color: var(--secondary-blue);
    text-align: center;
    padding: 20px;
}

#consultationForm {
    text-align: left;
}

.font1 {
    font-size: 250%;
}

.font2 {
    font-size: 200%;
}

.container {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    color: var(--black);
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-group.half {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form {
    padding: 10px;
    margin-top: 10px;
}

label {
    font-size: 16px;
    color: var(--black);
    margin-bottom: 5px;
    font-weight: bold;
}

form {
    padding: 10px;
}

input {
    width: 80%;
    padding: 8px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

select {
    width: 90%;
    padding: 8px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
}

textarea {
    width: 100%;
    height: auto;
    padding: 8px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 16px;
    overflow-y: auto;
    min-height: 80px;
    resize: vertical;
    box-sizing: border-box;
}

textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.required {
    color: red;
}

.submit-btn {
    width: 100%;
    background-color: var(--medium-blue);
    color: var(--white);
    padding: 10px;
    font-size: 18px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.submit-btn:hover {
    background-color: var(--hover-blue);
}

/* Modal */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: fadeIn 0.3s ease-out;
}

.modal-content button {
    background-color: var(--medium-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    margin-top: 15px;
    transition: background-color 0.3s ease-in-out;
}

.modal-content button:hover {
    background-color: var(--hover-blue);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   短影音 (Video)
======================================== */
.video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--off-white);
}

.video-text {
    text-align: center;
    margin-bottom: 5px;
    color: var(--black);
}

.video-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    zoom: 135%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: auto;
    transition: transform 0.3s ease-in-out;
}

.video-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    padding-bottom: 50px;
    overflow: visible !important;
}

.video-container video {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-lg);
    z-index: 1;
}

.video-title {
    color: var(--black);
    text-align: center;
    margin-top: 10px;
}

.video-desc {
    color: var(--black);
    text-align: center;
    display: none;
    width: 90%;
    max-width: 350px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 15px;
    margin: 20px auto 0 auto;
    transition: opacity 0.3s ease-in-out;
}

.video-desc.show {
    opacity: 1;
}

.video-container .show-more {
    margin-top: 10px;
}

.show-more {
    margin-top: 10px;
    font-size: 16px;
    color: var(--dark-blue);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.video-container .show-more:hover {
    color: #007bff;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--text-dark);
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: #000;
}

.lang-toggle-btn {
    background-color: var(--gold);
    color: var(--primary-blue);
    border: 2px solid var(--gold);
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.lang-toggle-btn:hover {
    background-color: var(--primary-blue);
    color: var(--gold);
    border-color: var(--gold);
}

/* 手機版語言切換按鈕 */
@media screen and (max-width: 850px) {
    .lang-toggle-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        padding: 10px 15px;
    }
}

/* ========================================
   響應式設計 - 桌面版專屬
======================================== */
@media screen and (min-width: 801px) {
    #team {
        position: relative;
    }
    #team::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("../public/backgroud.jpg");
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        opacity: 0.5;
        z-index: 0;
    }
}

/* 桌面版隱藏手機按鈕 */
@media (min-width: 801px) {
    #mobile-carousel {
        display: none;
    }
}

/* ========================================
   響應式設計 - 平板/手機通用 (≤850px)
======================================== */
@media screen and (max-width: 850px) {
    .navbar {
        padding: 10px;
    }
    .logo {
        width: 40px;
        height: auto;
        margin-left: 10px;
    }
    .menu {
        display: flex;
        flex-direction: column;
        background: var(--primary-blue);
        position: absolute;
        top: 50px;
        right: 15px;
        width: 200px;
        padding: 5px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .menu.show {
        opacity: 1;
        visibility: visible;
    }
    .menu-icon {
        display: block;
        position: relative;
        right: -5px;
    }
}

/* ========================================
   響應式設計 - 手機版 (≤800px)
======================================== */
@media (max-width: 800px) {
    /* 基礎調整 */
    .section img {
        max-width: 80%;
    }
    
    /* 頁尾 */
    .footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .footer-content {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        width: 90%;
        max-width: 500px;
    }
    .footer-logo {
        margin-bottom: 10px;
    }
    
    /* 律師團隊 */
    .prev, .next {
        display: none;
    }
    .team-container {
        display: none;
    }
    #team::before {
        content: none;
    }
    .mobile-team {
        display: block;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* 服務項目 */
    .desktop-services {
        display: none !important;
    }
    #mobile-carousel {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* 成功案例 */
    .timeline-item {
        width: 90%;
        padding-left: 0px;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    .timeline-date {
        width: auto;
        text-align: center;
        font-size: 14px;
        position: absolute;
        left: 28px;
        top: 5px;
        background-color: var(--white);
        padding: 5px 10px;
        margin: 3px 0px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--gold);
    }
    .timeline-title {
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: calc(100% - 30px);
        padding-top: 25px;
        font-size: 18px;
        font-weight: bold;
    }
    .timeline {
        padding-left: 20px;
    }
    .popup-content {
        width: 80vh;
        height: 60vh;
        overflow-y: auto;
    }
    
    /* 短影音 */
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    .video-container video {
        width: 90vw;
        max-width: none;
        height: auto;
    }
}

/* ========================================
   響應式設計 - 手機版 (≤500px)
======================================== */
@media (max-width: 500px) {
    /* 聯絡表單 */
    .form-row {
        flex-direction: column;
        gap: 0px;
    }
    .form-group.half {
        width: 100%;
    }
    input {
        width: 94%;
    }
    select, textarea {
        width: 100%;
    }
    .submit-btn {
        padding: 14px;
    }
}