@charset "UTF-8";

/* =========================================
   1. Global Variables & Reset (全域變數與重置)
   ========================================= */

:root {
    /* --- 全站字體大小標準化設定 --- */
    --bs-body-font-family: 'Montserrat', 'Noto Sans TC', sans-serif !important;
    --bs-font-sans-serif: 'Montserrat', 'Noto Sans TC', sans-serif !important;
    
    /* 電腦版字體標準 */
    --font-h3-pc: 1.8rem;      /* 內文標題 */
    --font-p-pc: 1.1rem;       /* 內文段落 */
    --font-time-pc: 1.15rem;   /* 議程時間 */
    --font-loc-pc: 1.1rem;     /* 議程地點 */
    
    /* 手機版字體標準 */
    --font-h3-m: 1.6rem;       /* 手機標題 */
    --font-p-m: 1.1rem;        /* 手機內文 */
    
    /* 顏色與尺寸變數 */
    --primary-orange: #FF6600; 
    --accent-gold: #A67323; 
    --dark-bg: #111111;
    --nav-bg: #ffffff;
    --nav-text: #333333;
    
    --nav-height: 96px; 
    --nav-width: 97%;    
    --nav-radius: 50px; 
    --nav-top-spacing: 30px;
    --m-nav-height: 60px;

    /* 贊助商等級顏色變數 */
    --gold-gradient: linear-gradient(135deg, #e6ac00 0%, #d49a00 100%);
    --silver-gradient: linear-gradient(135deg, #a0a0a0 0%, #808080 100%);
    --bronze-gradient: linear-gradient(135deg, #cd7f32 0%, #a05a2c 100%);
}

body, h1, h2, h3, h4, h5, h6, 
p, a, span, div, li, button, input, select, textarea {
    font-family: 'Montserrat', 'Noto Sans TC', sans-serif !important;
}

body {
    background-color: #fff;
    overflow-x: hidden;
    font-size: 0.95rem; 
}

/* =========================================
   2. Header & Navigation (導覽列)
   ========================================= */

header#main-header {
    position: fixed;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--nav-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    top: var(--nav-top-spacing);
    width: var(--nav-width);
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--nav-radius);
    height: var(--nav-height);
    padding: 0 40px;
    max-width: 1800px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header#main-header.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
    height: 76px;
    display: block;
    transition: height 0.3s;
}

header#main-header.scrolled .logo img { height: 60px; }

.desktop-nav-group { display: flex; align-items: center; height: 100%; }
.nav-links { display: flex; list-style: none; height: 100%; align-items: center; margin-bottom: 0; padding-left: 0; }
.nav-item { margin-left: 30px; position: relative; height: 100%; display: flex; align-items: center; }

.nav-link {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s;
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-link:hover, .nav-link:focus { color: var(--accent-gold); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    transition: width 0.3s ease-out;
    border-radius: 2px;
}

.nav-item:hover .nav-link::after { width: 100%; }

.arrow-icon {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(45deg);
    margin-bottom: 3px;
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.nav-item:hover .arrow-icon { transform: rotate(-135deg) translate(-2px, -2px); }

/* Dropdown */
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 0;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1100;
}

.nav-item:hover .custom-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.custom-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
}

.custom-dropdown li a:hover { background-color: rgba(166, 115, 35, 0.08); color: var(--accent-gold); }

/* Language Button */
.lang-btn-desktop {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; border-radius: 50%;
    background-color: var(--accent-gold); color: #fff !important;
    text-decoration: none; font-weight: 700; font-size: 0.85rem;
    margin-left: 30px; border: 1px solid var(--accent-gold);
    transition: all 0.3s ease;
}
.lang-btn-desktop:hover { background-color: #fff; color: var(--accent-gold) !important; border: 1px solid var(--accent-gold); }

/* Hamburger */
.hamburger { display: none; cursor: pointer; width: 30px; height: 24px; position: relative; z-index: 1052; }
.hamburger span { display: block; position: absolute; height: 2px; width: 100%; background: var(--nav-text); border-radius: 3px; opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out; }
.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; } 
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(135deg); }
.hamburger.active span:nth-child(2) { opacity: 0; left: -60px; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-135deg); }

/* Mobile Menu */
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #fff; z-index: 1040; padding-top: 100px; padding-bottom: 50px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-20px); transition: all 0.3s ease; display: flex; flex-direction: column; }
.mobile-menu-overlay.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-list { list-style: none; padding: 0 20px; margin: 0; flex-grow: 1; }
.m-menu-item { border-bottom: 1px solid #eee; }
.m-menu-link { display: flex; justify-content: center; align-items: center; padding: 15px 0; font-size: 1rem; color: #333; font-weight: 600; text-decoration: none; gap: 8px; cursor: pointer; }
.m-arrow { transition: transform 0.3s; font-size: 0.8rem; }
.m-menu-link.expanded { color: var(--accent-gold); }
.m-menu-link.expanded .m-arrow { transform: rotate(180deg); }
.m-submenu { display: none; background-color: #f9f9f9; list-style: none; padding: 0; margin: 0; border-top: 1px solid #f0f0f0; }
.m-submenu li a { display: block; padding: 12px 0; color: #666; text-decoration: none; font-size: 0.9rem; text-align: center; }
.m-submenu li a:hover { color: var(--accent-gold); background-color: #f0f0f0; }
.mobile-lang-container { padding: 30px 20px 50px; text-align: center; }
.lang-btn-mobile { display: block; width: 80%; margin: 0 auto; padding: 12px 0; border-radius: 50px; background-color: var(--accent-gold); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; border: 1px solid var(--accent-gold); transition: all 0.3s ease; }
.lang-btn-mobile:hover { background-color: #fff; color: var(--accent-gold); border: 1px solid var(--accent-gold); }

/* =========================================
   3. Homepage Styles (首頁樣式)
   ========================================= */
.hero { position: relative; height: 100vh; width: 100%; background: url('../images/index-bg.jpg') no-repeat center center/cover; display: flex; align-items: center; justify-content: center; }
.hero.hero-en { background-image: url('../images/index-bg-en.jpg'); }

.countdown-container { position: absolute; bottom: 50px; right: 5%; background-color: rgba(255, 255, 255, 0.95); padding: 25px 35px; border-radius: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.15); text-align: center; z-index: 100; border-top: 4px solid var(--accent-gold); display: flex; flex-direction: column; gap: 10px; min-width: 280px; }
.countdown-label { font-family: 'Montserrat', 'Noto Sans TC', sans-serif !important; font-size: 1rem; color: #333; font-weight: 700; letter-spacing: 1px; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 5px; }
.countdown-timer { display: flex; justify-content: space-between; align-items: center; font-family: 'Montserrat', sans-serif !important; }
.timer-item { display: flex; flex-direction: column; align-items: center; }
.timer-number { font-size: 2rem; font-weight: 700; color: var(--accent-gold); line-height: 1; }
.timer-text { font-family: 'Noto Sans TC', sans-serif !important; font-size: 0.8rem; color: #888; margin-top: 5px; font-weight: 500; }
.timer-separator { font-size: 1.5rem; color: #ccc; margin-bottom: 15px; }

/* 浮動按鈕區域 */
.floating-sidebar { position: fixed; right: 20px; bottom: 20px; z-index: 1030; display: flex; flex-direction: column; gap: 15px; transition: bottom 0.1s ease-out; }
.float-btn { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background-color: var(--accent-gold); color: #fff; border-radius: 50%; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: all 0.3s ease; font-size: 1.2rem; opacity: 0; visibility: hidden; pointer-events: none; }
.float-btn.show { opacity: 1; visibility: visible; pointer-events: auto; }
.float-btn:hover { background-color: #8a5f1d; transform: translateY(-3px); color: #fff; }

.content-section { padding: 80px 0; background-color: #f8f9fa; }
.section-title { text-align: center; margin-bottom: 50px; font-weight: 700; color: #333; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent-gold); margin: 15px auto 0; border-radius: 2px; }
.custom-card { border: none; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; overflow: hidden; height: 100%; background: #fff; }
.custom-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-img-top { height: 200px; object-fit: cover; }
.card-body { padding: 25px; }
.card-title { font-weight: 700; margin-bottom: 15px; color: #333; }
.card-text { color: #666; font-size: 0.9rem; line-height: 1.6; }
.btn-custom { background-color: var(--accent-gold); color: #fff; border-radius: 30px; padding: 8px 25px; transition: all 0.3s; border: none; font-size: 0.95rem; }
.btn-custom:hover { background-color: #8a5f1d; color: #fff; }

/* Footer */
footer { background: linear-gradient(135deg, #003366 33.33%, #473110 100%); color: #fff; padding: 25px 0; text-align: center; position: relative; z-index: 20; }
.footer-text { color: #ffffff; text-shadow: none; font-size: 0.9rem; letter-spacing: 0.5px; font-weight: 500; line-height: 1.8; }

/* =========================================
   4. Inner Page Styles (內頁共用樣式)
   ========================================= */

/* 內頁 Banner (波浪遮罩) */
.page-banner { 
    position: relative; 
    background: linear-gradient(135deg, #003366 33.33%, #473110 100%); 
    background-size: cover; 
    margin-top: 0; 
    padding-top: calc(var(--nav-height) + var(--nav-top-spacing)); 
    height: 350px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 

    /* CSS Masking 遮罩設定 (預設 PC 版) */
    -webkit-mask-image: url('../images/banner-mask-pc.svg'); 
    -webkit-mask-size: cover; 
    -webkit-mask-position: bottom center; 
    -webkit-mask-repeat: no-repeat;

    mask-image: url('../images/banner-mask-pc.svg');
    mask-size: cover;
    mask-position: bottom center;
    mask-repeat: no-repeat;
    
    border-radius: 0;
}

.page-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.3); z-index: 1; }
.page-banner::after { content: ''; position: absolute; top: 80%; left: 10%; transform: translateY(-50%); width: 700px; height: 700px; background-image: url('../images/50LOGO-W.png'); background-repeat: no-repeat; background-position: center; background-size: contain; opacity: 0.1; z-index: 0; pointer-events: none; }
.banner-title { position: relative; color: #fff; font-size: 2.2rem; font-weight: 700; z-index: 2; letter-spacing: 2px; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.banner-subtitle { font-size: 1rem; font-weight: 400; letter-spacing: 1px; opacity: 0.9; font-family: 'Noto Sans TC', sans-serif; position: relative; z-index: 2; }

/* 麵包屑 */
.breadcrumb-area { padding: 15px 0; }
.breadcrumb-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; font-size: 0.85rem; color: #666; }
.breadcrumb-list li { display: flex; align-items: center; white-space: nowrap; }
.breadcrumb-list li + li::before { content: '\f105'; font-family: "Font Awesome 6 Pro"; font-weight: 900; margin: 0 10px; color: #999; }
.breadcrumb-list a { text-decoration: none; color: #666; transition: color 0.3s; }
.breadcrumb-list a:hover { color: var(--accent-gold); }
.breadcrumb-list span { color: var(--accent-gold); font-weight: 600; }

.inner-layout { padding: 60px 0 100px; background-color: #fff !important; }

.content-area h3 {
    font-size: var(--font-h3-pc);
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    position: relative;
    line-height: 1.4;
}

.content-area h3::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background-color: var(--accent-gold); }
.content-icon-title { display: block; }

.president-profile { display: block; margin-bottom: 40px; overflow: hidden; }
.president-img-box { float: left; width: 300px; margin-right: 40px; margin-bottom: 20px; position: relative; }
.president-img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: block; }
.president-text-box { display: contents; }

.quote-block { background-color: #f9f9f9; border-left: 5px solid #005C9D; padding: 30px; margin: 20px 0 30px; position: relative; border-radius: 0 10px 10px 0; overflow: hidden; }
.quote-block i.fa-quote-left { position: absolute; top: 20px; left: 20px; font-size: 1.8rem; color: rgba(0, 92, 157, 0.3); }
.quote-text { font-size: 1.4rem; font-weight: 600; line-height: 1.6; color: #555; position: relative; z-index: 1; }

.signature-block { margin-top: 50px; text-align: right; }
.signature-img { height: 60px; margin-bottom: 10px; }
.signature-name { font-size: 1.25rem; font-weight: 700; color: #333; }
.signature-title { font-size: 1.0rem; color: #777; }

.content-p { margin-bottom: 20px; line-height: 1.8; color: #444; text-align: justify; font-size: var(--font-p-pc); }

/* =========================================
   8. Program Overview Styles
   ========================================= */
.program-date-section { margin-bottom: 60px; position: relative; }
.date-header { display: flex; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid #eee; }
.date-number { font-size: 2.5rem; font-weight: 700; color: var(--accent-gold); margin-right: 15px; line-height: 1; font-family: 'Montserrat', sans-serif; }
.date-day { font-size: 1.2rem; color: #333; font-weight: 600; background: #f0f0f0; padding: 2px 12px; border-radius: 20px; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.overview-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 25px 25px 60px 25px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; display: flex; flex-direction: column; justify-content: flex-start; height: 100%; border-left: 5px solid #ddd; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.025); }
.overview-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: transparent; }

.oc-time { font-family: 'Montserrat', sans-serif; font-size: var(--font-time-pc); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.oc-title { font-size: var(--font-h3-pc); font-weight: 700; color: #222; margin-bottom: 15px; line-height: 1.4; transition: color 0.3s; }
.oc-location { font-size: var(--font-loc-pc); color: #666; display: flex; align-items: flex-start; gap: 6px; margin-top: auto; padding-top: 15px; border-top: none; font-weight: 500; padding-right: 60px; position: relative; }

.oc-arrow { position: absolute; bottom: 20px; right: 20px; width: 40px; height: 40px; background: #f8f9fa; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ccc; transition: all 0.3s; z-index: 2; }
.overview-card:hover .oc-arrow { transform: rotate(-45deg); }

.overview-card.type-main { border-left-color: var(--primary-orange); }
.overview-card.type-main .oc-time { color: var(--primary-orange); }
.overview-card.type-main:hover .oc-title { color: var(--primary-orange); }
.overview-card.type-main:hover .oc-arrow { background-color: var(--primary-orange); color: #fff; }

.overview-card.type-workshop { border-left-color: #0056b3; }
.overview-card.type-workshop .oc-time { color: #0056b3; }
.overview-card.type-workshop:hover .oc-title { color: #0056b3; }
.overview-card.type-workshop:hover .oc-arrow { background-color: #0056b3; color: #fff; }

.overview-card.type-special { border-left-color: #28a745; }
.overview-card.type-special .oc-time { color: #28a745; }
.overview-card.type-special:hover .oc-title { color: #28a745; }
.overview-card.type-special:hover .oc-arrow { background-color: #28a745; color: #fff; }

/* =========================================
   9. Detailed Agenda Styles
   ========================================= */
.agenda-header { text-align: center; margin-bottom: 50px; padding-bottom: 30px; border-bottom: 2px solid #f0f0f0; }
.agenda-main-title { font-size: 2rem; font-weight: 700; color: #000000; margin-bottom: 15px; line-height: 1.4; }
.agenda-subtitle { font-size: 1.2rem; color: #555; font-weight: 500; margin-bottom: 20px; font-family: 'Montserrat', sans-serif; }
.agenda-info-bar { display: inline-flex; gap: 30px; background: #f9f9f9; padding: 10px 30px; border-radius: 50px; font-size: 1rem; color: #666; font-weight: 500; }
.agenda-info-bar i { color: var(--accent-gold); margin-right: 8px; }

.timeline-wrapper { position: relative; padding-left: 0; }
.session-section-header { background: #2c3e50; color: #fff; padding: 15px 25px; border-radius: 8px; margin: 40px 0 30px 0; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); position: relative; overflow: hidden; }
.session-section-header::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--primary-orange); }
.section-tag { background: var(--primary-orange); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 0.9rem; margin-right: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }

.timeline-item { display: flex; margin-bottom: 25px; position: relative; align-items: flex-start; }
.tl-time-box { flex: 0 0 180px; text-align: right; padding-right: 30px; position: relative; }
.tl-time { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--accent-gold); display: block; line-height: 1.2; white-space: nowrap; }
.tl-duration { display: none; }
.tl-time-box::after { content: ''; position: absolute; top: 10px; right: -6px; width: 12px; height: 12px; background: #fff; border: 3px solid var(--accent-gold); border-radius: 50%; z-index: 2; }
.timeline-item:not(:last-child) .tl-content-box::before { display: none; }

.tl-content-box { flex: 1; background: #fff; border: 1px solid #eee; border-left: 4px solid #ddd; border-radius: 8px; padding: 20px 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: all 0.3s; position: relative; }
.tl-content-box:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

.timeline-item.type-break .tl-content-box { background: #fcf8f2; border-left-color: var(--accent-gold); border: none; display: flex; align-items: center; padding: 15px 25px; }
.timeline-item.type-break .tl-title { font-size: 1.2rem; color: #555; margin-bottom: 0; }
.timeline-item.type-break .tl-icon { margin-right: 15px; font-size: 1.2rem; color: var(--accent-gold); }

.tl-title { font-size: 1.35rem; font-weight: 700; color: #222; margin-bottom: 15px; line-height: 1.4; }

.tl-people { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #eee; }
.person-group { display: flex; align-items: flex-start; gap: 10px; }
.person-icon { width: 32px; height: 32px; background: #f0f4f8; color: #0056b3; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.person-info { font-size: 1rem; color: #444; line-height: 1.4; }
.person-role { font-size: 0.8rem; color: #888; display: block; font-weight: 500; margin-bottom: 2px; }
.person-name { font-weight: 700; color: #333; }
.person-org { font-size: 0.9rem; color: #666; }
.tl-tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; background: #e3f2fd; color: #0d6efd; }

.back-btn-container { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid #eee; }
.btn-back-overview { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #f8f9fa; color: #555; padding: 12px 40px; border-radius: 50px; font-weight: 600; font-size: 1.1rem; text-decoration: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); border: 1px solid #ddd; }
.btn-back-overview i { transition: transform 0.3s ease; }
.btn-back-overview:hover { background-color: var(--accent-gold); color: #fff; border-color: var(--accent-gold); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(166, 115, 35, 0.2); }
.btn-back-overview:hover i { transform: translateX(-5px); }

/* =========================================
   10. Registration Form Styles
   ========================================= */
.form-container { width: 100%; max-width: none; margin: 0 auto; background: #fff; padding: 0; }
.form-group { margin-bottom: 35px; position: relative; }
.form-label { font-size: 1.35rem; font-weight: 500; color: #222; margin-bottom: 12px; display: block; line-height: 1.4; }
.form-label i { margin-right: 10px; color: var(--accent-gold); width: 24px; text-align: center; }

.form-control-custom { width: 100%; padding: 0 15px; height: 54px; line-height: 54px; font-size: 1.1rem; color: #333; background-color: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 8px; transition: all 0.3s ease; }
textarea.form-control-custom { height: auto; padding: 15px; line-height: 1.5; }
.form-control-custom:focus { background-color: #fff; border-color: var(--primary-orange); box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1); outline: none; }

select.form-control-custom { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 20px center; background-size: 18px; padding-right: 50px; cursor: pointer; }

.org-switch-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.custom-checkbox-label { cursor: pointer; display: flex; align-items: flex-start; gap: 10px; font-size: 1.1rem; color: #444; user-select: none; font-weight: 500; line-height: 1.5; }
.custom-checkbox-input { appearance: none; width: 24px; height: 24px; border: 2px solid #ccc; border-radius: 6px; position: relative; cursor: pointer; transition: all 0.2s; background-color: #fff; vertical-align: middle; flex-shrink: 0; margin-top: 3px; }
.custom-checkbox-input:checked { background-color: var(--primary-orange); border-color: var(--primary-orange); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e"); background-size: 80% 80%; background-position: center; background-repeat: no-repeat; }

.org-input-group { display: none; animation: fadeIn 0.3s ease; }
.org-input-group.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.session-group { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 25px; margin-bottom: 25px; position: relative; overflow: hidden; border-left: 6px solid #ddd; }
.session-group[data-date="10/01"] { border-left-color: #6f42c1; }
.session-group[data-date="10/02"] { border-left-color: var(--primary-orange); }
.session-group[data-date="10/03"] { border-left-color: #0056b3; }
.session-group[data-date="10/04"] { border-left-color: #28a745; }

.session-date { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 700; color: #333; margin-bottom: 20px; border-bottom: 1px dashed #eee; padding-bottom: 12px; }
.session-option { margin-bottom: 15px; }

/* Captcha */
.captcha-combined-wrapper {
    display: flex;
    align-items: center;
    width: 400px;
    height: 54px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 0 5px 0 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.captcha-combined-wrapper:focus-within {
    background-color: #fff;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
}

.captcha-input-inner { flex: 1; border: none; background: transparent; height: 100%; font-size: 1.1rem; color: #333; padding: 0; outline: none; min-width: 0; }
.captcha-visual-group { display: flex; align-items: center; gap: 10px; padding-left: 10px; flex-shrink: 0; }
.captcha-img-inner { height: 36px; width: auto; object-fit: contain; border-radius: 4px; cursor: pointer; }
.btn-refresh-inner { background: transparent; border: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #28a745; font-size: 1.2rem; cursor: pointer; transition: transform 0.3s ease; border-radius: 50%; }
.btn-refresh-inner:hover { background-color: rgba(40, 167, 69, 0.1); transform: rotate(180deg); }

.form-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; }
.form-actions { display: flex; gap: 20px; }

.btn-submit, .btn-reset { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 50px; border-radius: 50px; font-weight: 600; font-size: 1.1rem; cursor: pointer; transition: all 0.3s; border: none; white-space: nowrap; }
.btn-submit { background-color: #fff; color: var(--accent-gold); border: 2px solid var(--accent-gold); }
.btn-submit:hover { background-color: var(--accent-gold); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(166, 115, 35, 0.2); }
.btn-reset { background-color: #f8f9fa; color: #555; border: 2px solid #ddd; }
.btn-reset:hover { background-color: #e2e6ea; border-color: #ccc; transform: translateY(-3px); }

/* =========================================
   11. Confirmation Page Styles
   ========================================= */

.confirm-alert-box { background-color: #fff5eb; border-radius: 12px; padding: 40px; text-align: center; margin-bottom: 40px; border: 1px solid rgba(255, 102, 0, 0.1); position: relative; overflow: hidden; }
.confirm-icon-animate { font-size: 3.5rem; color: var(--primary-orange); margin-bottom: 20px; display: inline-block; animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 80% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.confirm-title-text { font-size: 1.5rem; font-weight: 700; color: #333; margin-bottom: 10px; }
.confirm-desc-text { font-size: 1.1rem; color: #666; }

.data-review-card {
    background: transparent; 
    border: none;            
    box-shadow: none;        
    padding: 0;              
    margin-bottom: 30px;
}

.review-section-title { font-size: 1.3rem; font-weight: 700; color: #2c3e50; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; display: flex; align-items: center; gap: 10px; }
.review-section-title i { color: var(--accent-gold); }

.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 40px; }
.review-item { display: flex; flex-direction: column; gap: 8px; }
.review-label { font-size: 1.35rem; color: #222; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.review-label i { font-size: 1.2rem; color: var(--accent-gold); width: 20px; text-align: center; }
.review-value { font-size: 1.1rem; color: #333; font-weight: 400; padding-left: 28px; word-break: break-word; line-height: 1.5; }

.selected-session-list { display: flex; flex-direction: column; gap: 15px; }
.selected-session-item { background: #f9f9f9; padding: 15px 20px; border-radius: 8px; border-left: 5px solid #ccc; display: flex; flex-direction: column; gap: 5px; }
.selected-session-item[data-date="10/01"] { border-left-color: #6f42c1; background: #fdfaff; }
.selected-session-item[data-date="10/02"] { border-left-color: var(--primary-orange); background: #fff5eb; }
.selected-session-item[data-date="10/03"] { border-left-color: #0056b3; background: #f0f8ff; }
.selected-session-item[data-date="10/04"] { border-left-color: #28a745; background: #f0fff4; }
.ss-date { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #333; font-size: 1.4rem; display: block; margin-bottom: 5px; }
.ss-name { font-size: 1.1rem; font-weight: 500; color: #444; }

.confirm-actions { 
    display: flex; 
    justify-content: center; 
    gap: 25px; 
    margin-top: 50px;
    padding-top: 40px;           
    border-top: 1px solid #e0e0e0; 
}

/* =========================================
   13. English Version Overrides
   ========================================= */

html[lang="en"] .org-switch-wrapper { flex-direction: column; align-items: flex-start; gap: 8px; }
html[lang="en"] .org-switch-wrapper .form-label { margin-bottom: 0; }

/* =========================================
   14. Login/Inquiry Page
   ========================================= */
.login-layout { display: flex; justify-content: center; padding-bottom: 60px; }
.login-card { background: #fff; border-radius: 16px; box-shadow: none; border: 1px solid #e0e0e0; border-top: 6px solid var(--primary-orange); padding: 50px 60px; width: 100%; max-width: 550px; position: relative; }
.login-title { text-align: center; font-size: 2rem; font-weight: 700; color: #333; margin-bottom: 40px; position: relative; letter-spacing: 1px; }
.login-title::after { content: ''; display: block; width: 60px; height: 4px; background-color: #eee; margin: 15px auto 0; border-radius: 2px; }
.login-btn-container { margin-top: 40px; text-align: center; }
.btn-login { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 0; font-size: 1.2rem; font-weight: 600; border-radius: 50px; background-color: #2c3e50; color: #fff; border: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; }
.btn-login:hover { background-color: var(--accent-gold); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(166, 115, 35, 0.25); }

/* =========================================
   15. Inquiry Result
   ========================================= */
.notice-box { width: 100%; margin: 0 0 50px; background-color: #fff5eb; padding: 35px 40px; border-radius: 12px; position: relative; overflow: hidden; border: 1px solid #ffd1b3; border-left: 1px solid #ffd1b3; border-top: 1px solid #ffd1b3; box-shadow: none; display: flex; flex-direction: column; align-items: flex-start; }
.notice-title { font-size: 1.3rem; font-weight: 700; color: #CC5200; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; width: 100%; border-bottom: none; padding-bottom: 0; }
.notice-title i { color: var(--primary-orange); font-size: 1.4rem; }
.notice-list { list-style: none; padding: 0; margin: 0; width: 100%; color: #555; font-size: 1.05rem; line-height: 1.8; counter-reset: notice-counter; }
.notice-list li { margin-bottom: 8px; padding-left: 30px; position: relative; }
.notice-list li::before { counter-increment: notice-counter; content: counter(notice-counter) "."; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--primary-orange); position: absolute; left: 0; top: 0; font-size: 1.1rem; }

.result-card-container { display: flex; flex-direction: column; gap: 30px; width: 100%; margin-bottom: 50px; }
.result-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 35px; box-shadow: none; position: relative; overflow: hidden; border-left: 6px solid #ddd; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.result-card.status-review { border-left-color: #6f42c1; }
.result-card.status-success { border-left-color: #0056b3; }
.result-card.status-full { border-left-color: #dc3545; background-color: #fffbfc; }

.rc-header { border-bottom: 1px dashed #eee; padding-bottom: 20px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 15px; }
.rc-info { flex: 1; }
.rc-date { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 700; color: #555; margin-bottom: 8px; display: block; }
.rc-title { font-size: 1.4rem; font-weight: 700; color: #222; line-height: 1.4; margin: 0; }
.rc-status { font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.status-review .rc-status { color: #6f42c1; }
.status-success .rc-status { color: #0056b3; }
.status-full .rc-status { color: #dc3545; }

.rc-qr-area { background-color: #f8f9fa; padding: 30px; border-radius: 12px; margin: 25px 0; text-align: center; border: 2px dashed #e0e0e0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rc-qr-label { font-size: 0.9rem; color: #888; margin-top: 10px; }
.rc-actions { display: flex; gap: 15px; justify-content: flex-end; }
.btn-sm-custom { padding: 10px 25px; font-size: 1rem; border-radius: 50px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; cursor: pointer; background: #fff; }
.btn-outline-danger { color: #dc3545; border: 1px solid #dc3545; }
.btn-outline-danger:hover { background-color: #dc3545; color: #fff; }
.btn-outline-primary { color: #0056b3; border: 1px solid #0056b3; }
.btn-outline-primary:hover { background-color: #0056b3; color: #fff; }

.bottom-action-area { text-align: center; margin-top: 50px; }
.btn-register-more { display: inline-flex; align-items: center; gap: 10px; padding: 12px 50px; border-radius: 50px; background-color: #fff; color: #555; border: 2px solid #555; font-weight: 600; font-size: 1.15rem; text-decoration: none; transition: all 0.3s; }
.btn-register-more:hover { background-color: #555; color: #fff; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* =========================================
   16. Add Sessions Page
   ========================================= */
.add-session-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 35px; padding-bottom: 15px; border-bottom: 2px solid #eee; position: relative; gap: 20px; }
.add-session-header::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background-color: var(--accent-gold); }
.add-session-header h3 { border-bottom: none !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
.add-session-header h3::after { display: none !important; }

.page-hint { text-align: right; color: #888; font-size: 1.1rem; font-weight: 500; margin-bottom: 5px; }
.page-hint i { color: var(--accent-gold); margin-right: 5px; }

.session-list-container { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.session-option.is-full { opacity: 0.6; pointer-events: none; user-select: none; }
.session-option.is-full .custom-checkbox-label { color: #999; cursor: not-allowed; }
.text-full-alert { color: #dc3545 !important; font-weight: 700; margin-left: 5px; font-size: 0.95rem; }

.form-footer-inline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; }
.footer-left-group { display: flex; align-items: center; gap: 15px; }
.form-footer-inline .form-label { margin-bottom: 0; white-space: nowrap; min-width: fit-content; font-weight: 600; }
.form-footer-inline .captcha-combined-wrapper { width: 400px; display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 8px; background-color: #fff; padding: 0 10px; height: 54px; overflow: hidden; transition: all 0.3s ease; }
.form-footer-inline .captcha-combined-wrapper:focus-within { background-color: #fff; border-color: var(--primary-orange); box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1); }
.form-footer-inline .captcha-input-inner { border: none !important; background: transparent !important; box-shadow: none !important; height: 100%; padding: 0; flex: 1; min-width: 0; font-size: 1.1rem; color: #333; outline: none; }
.form-footer-inline .captcha-visual-group { flex-shrink: 0; }
.form-footer-inline .form-actions { display: flex; gap: 15px; }

/* =========================================
   17. Sponsors Page Styles
   ========================================= */
.sponsor-level-section { margin-bottom: 60px; position: relative; }
.level-header { display: flex; align-items: center; margin-bottom: 30px; position: relative; }
.level-header::after { content: ''; flex: 1; height: 2px; background: #f0f0f0; margin-left: 20px; border-radius: 2px; }

.level-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 35px;
    color: #fff; font-size: 1.35rem; font-weight: 700; border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); position: relative; z-index: 2; letter-spacing: 1px;
}
.level-badge i { font-size: 1.2rem; }

.level-gold .level-badge { background: var(--gold-gradient); }
.level-silver .level-badge { background: var(--silver-gradient); }
.level-bronze .level-badge { background: var(--bronze-gradient); }
.level-normal .level-badge { background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); }
.level-coorganizer .level-badge { background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%); }

.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }
.level-gold .sponsor-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.sponsor-card {
    background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 25px 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    height: 100%; min-height: 220px; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; overflow: hidden;
    text-decoration: none; width: 100%;
}
.sponsor-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: transparent; }
.level-gold .sponsor-card:hover { box-shadow: 0 15px 30px rgba(230, 172, 0, 0.15); }

.sponsor-img-box { width: 100%; height: 110px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.sponsor-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.8; transition: all 0.3s ease; }
.sponsor-card:hover .sponsor-img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

.sponsor-label {
    font-size: 1.1rem !important; font-weight: 700; color: #444; text-align: center;
    line-height: 1.4; margin: 0; padding: 0; font-family: 'Noto Sans TC', sans-serif;
    word-wrap: break-word; border: none !important; text-decoration: none !important;
}
.sponsor-label::after, .sponsor-label::before { display: none !important; content: none !important; }

/* =========================================
   18. Submission Guidelines Styles
   ========================================= */
.guide-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    border-top: 5px solid var(--accent-gold);
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
}
.guide-card.color-blue { border-top-color: #0056b3; }
.guide-card.color-green { border-top-color: #28a745; }
.guide-card.color-purple { border-top-color: #6f42c1; }

.guide-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #eee;
}
.guide-card-title i {
    color: var(--primary-orange);
    font-size: 1.8rem;
    background: #fff5eb;
    width: 60px; 
    height: 60px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 12px;
}

.date-timeline { border-left: 3px solid #e0e0e0; padding-left: 35px; margin-left: 20px; }
.date-item { position: relative; margin-bottom: 30px; }
.date-item:last-child { margin-bottom: 0; }
.date-item::before { content: ''; position: absolute; left: -44px; top: 5px; width: 16px; height: 16px; background: var(--accent-gold); border-radius: 50%; box-shadow: 0 0 0 4px #fff; transition: transform 0.3s ease; }
.date-item:hover::before { transform: scale(1.3); background: var(--primary-orange); }
.date-title { font-size: 1.15rem; font-weight: 700; color: #333; margin-bottom: 5px; }
.date-desc { font-size: 1.1rem; color: var(--primary-orange); font-weight: 600; font-family: 'Montserrat', sans-serif; }
.date-sublist { margin-top: 10px; padding-left: 20px; list-style-type: disc; color: #666; font-size: 1.05rem; }
.date-sublist li { margin-bottom: 5px; }

.ordered-guide-list { counter-reset: guide-counter; list-style: none; padding: 0; margin: 0; }
.ordered-guide-list > li { position: relative; padding-left: 55px; margin-bottom: 30px; font-size: 1.1rem; color: #444; line-height: 1.8; }
.ordered-guide-list > li:last-child { margin-bottom: 0; }
.ordered-guide-list > li::before { counter-increment: guide-counter; content: counter(guide-counter, decimal-leading-zero); position: absolute; left: 0; top: 0; background: #f0f4f8; color: var(--primary-orange); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; font-family: 'Montserrat', sans-serif; }

.list-heading { font-size: 1.25rem; font-weight: 700; color: #0056b3; display: block; margin-bottom: 8px; }
.inner-bullet-list { list-style-type: none; padding-left: 15px; margin-top: 10px; }
.inner-bullet-list li { position: relative; padding-left: 15px; margin-bottom: 8px; }
.inner-bullet-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: #ccc; border-radius: 50%; }

.highlight-text { color: #dc3545; font-weight: 700; }
.disclaimer-box { text-align: center; padding: 30px; background: #fff5f5; border-radius: 12px; color: #dc3545; font-weight: 700; font-size: 1.15rem; line-height: 1.6; border: 1px dashed #ffc107; }

/* =========================================
   19. Abstract Form Layout (論文投稿表單)
   ========================================= */
.abstract-layout { position: relative; padding-bottom: 100px; }

.abstract-action-bar {
    position: sticky;
    top: var(--nav-height);
    z-index: 1020;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 15px 0;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-bottom: none; 
    box-shadow: none;    
}

.abstract-action-bar.is-stuck {
    border-bottom: 1px solid #eee;
    box-shadow: none;
}

header#main-header.scrolled ~ * .abstract-action-bar,
.scrolled ~ * .abstract-action-bar {
    top: 80px;
}

.btn-outline-abstract { border: 1px solid #1a4a75; color: #1a4a75; background: #fff; padding: 10px 30px; border-radius: 50px; font-weight: 600; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; cursor: pointer; }
.btn-outline-abstract:hover { background: #1a4a75; color: #fff; box-shadow: 0 5px 15px rgba(26, 74, 117, 0.2); }
.btn-outline-draft { border: 1px solid var(--primary-orange); color: var(--primary-orange); background: #fff; padding: 10px 30px; border-radius: 50px; font-weight: 600; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; cursor: pointer; }
.btn-outline-draft:hover { background: var(--primary-orange); color: #fff; box-shadow: 0 5px 15px rgba(255, 102, 0, 0.2); }

.abstract-form-card { background: #fff; border-radius: 12px; border: none; box-shadow: none; }
.abstract-section-row { border-bottom: 1px dotted #ccc; padding-bottom: 35px; margin-bottom: 35px; }
.abstract-section-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0;}
.abstract-section-title { font-size: 1.4rem; color: #1a4a75; font-weight: 500; font-family: 'Noto Sans TC', sans-serif; margin-bottom: 20px; }

.author-block { border: 2px solid #eee; border-radius: 8px; padding: 25px; margin-bottom: 20px; position: relative; background: #fff; transition: all 0.3s; }
.author-block.main-author { border-color: #e0e0e0; border-width: 3px; background: #fafafa; }
.author-remove-btn { position: absolute; right: 20px; top: 20px; background: #dc3545; color: #fff; border: none; border-radius: 4px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; }
.author-remove-btn:hover { background: #c82333; }

.btn-add-author {
    background: #1a4a75; 
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-add-author:hover { background: #2c5d8a; }
.btn-add-author i { transition: transform 0.4s ease-in-out; }
.btn-add-author:hover i { transform: rotate(360deg); }

.form-control-abstract { width: 100%; height: 48px; padding: 0 15px; font-size: 1.1rem; border: 1px solid #ddd; border-radius: 4px; background-color: #fff; outline: none; transition: all 0.3s; margin-bottom: 10px; }
.form-control-abstract:focus { border-color: var(--primary-orange); box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1); }
textarea.form-control-abstract { height: 240px; padding: 15px; resize: vertical; margin-bottom: 0; }
select.form-control-abstract { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 15px center; background-size: 16px; padding-right: 40px; cursor: pointer; margin-bottom: 0; }

.char-counter { font-size: 0.9rem; color: #666; margin-left: 5px; font-weight: 400; }
.custom-radio-label { cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; color: #444; user-select: none; }
.custom-radio { appearance: none; width: 22px; height: 22px; border: 2px solid #ccc; border-radius: 50%; position: relative; cursor: pointer; transition: all 0.2s; background: #fff; margin: 0; flex-shrink: 0; }
.custom-radio:checked { border-color: var(--primary-orange); }
.custom-radio:checked::after { content: ''; position: absolute; width: 10px; height: 10px; background: var(--primary-orange); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.declaration-text { font-size: 1rem; color: #555; line-height: 1.6; margin-bottom: 15px; text-align: justify; }

.modal-guideline .modal-content { border-radius: 12px; border: none; border-top: 5px solid var(--accent-gold); box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.modal-guideline .modal-header { border-bottom: 1px dashed #eee; padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; }
.modal-guideline .modal-title { font-size: 1.5rem; font-weight: 700; color: #1a4a75; display: flex; align-items: center; gap: 10px; margin: 0; }
.modal-guideline .modal-body { padding: 30px; max-height: 70vh; overflow-y: auto; }
.btn-close-modal { background: none; border: none; font-size: 1.5rem; color: #888; cursor: pointer; transition: color 0.3s; padding: 0; }
.btn-close-modal:hover { color: #dc3545; }

/* =========================================
   20. Abstract & Registration Success Pages
   ========================================= */
.abstract-success-wrapper { position: relative; z-index: 10; margin-top: -60px; display: flex; justify-content: center; }
.abstract-success-card { background: transparent; border-radius: 12px; border: none; padding: 60px 0; width: 100%; max-width: 700px; text-align: center; }
.abstract-success-icon { font-size: 3.5rem; color: var(--accent-gold); margin-bottom: 20px; display: inline-block; animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.abstract-success-title { font-size: 2rem; font-weight: 700; color: var(--accent-gold); margin-bottom: 30px; letter-spacing: 1px; }
.abstract-success-desc { font-size: 1.15rem; color: #555; line-height: 2.2; }
.abstract-success-divider { border-top: 1px dashed #ddd; margin: 40px 0; }

.btn-continue-abstract { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 45px; border-radius: 50px; font-weight: 600; font-size: 1.15rem; color: #1a4a75; background-color: #fff; border: 2px solid #1a4a75; text-decoration: none; transition: all 0.3s; cursor: pointer; }
.btn-continue-abstract:hover { background-color: #1a4a75; color: #fff; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(26, 74, 117, 0.2); }

/* =========================================
   21. Venue & Travel Page (位置交通)
   ========================================= */

/* 小標題樣式 (修正多行文字 ICON 對齊) */
.location-item-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: flex-start; /* 修正對齊第一行頂部 */
    gap: 8px;
    margin-bottom: 15px;
}
.location-item-title::before {
    content: ''; 
    display: inline-block; 
    width: 6px; 
    height: 20px;
    background: var(--accent-gold); 
    border-radius: 3px;
    flex-shrink: 0; /* 防止 ICON 被擠壓變形 */
    margin-top: 4px; /* 微調高度，與第一行文字置中 */
}

/* 動態交通按鈕 (垂直堆疊，寬度 100%) */
.transport-btn-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.btn-transport {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #fdfdfd;
    color: #333;
    border: 2px solid #eaeaea;
    padding: 22px 30px;
    border-radius: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%; /* 確保向外延展，左右填滿欄位 */
}
.btn-transport::before {
    content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%;
    background: var(--accent-gold); transition: width 0.3s ease; z-index: 0;
}
.btn-transport:hover::before { width: 100%; }
.btn-transport i, .btn-transport span { position: relative; z-index: 1; transition: color 0.3s ease; }
/* 金色 ICON */
.btn-transport i { font-size: 2.2rem; color: var(--accent-gold); }
.btn-transport:hover { border-color: var(--accent-gold); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(166, 115, 35, 0.15); }
.btn-transport:hover i, .btn-transport:hover span { color: #fff; }

/* 會議廳位置圖片特效 (寬度 100% 填滿左側欄位) */
.venue-img-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    cursor: pointer;
    display: block;
    margin: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    max-width: 100%; 
}
.venue-img-box:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--accent-gold); 
}
.venue-img-box img { width: 100%; display: block; transition: transform 0.5s ease; }
.venue-img-box:hover img { transform: scale(1.02); }

.venue-img-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.venue-img-box:hover .venue-img-overlay { opacity: 1; }
.venue-img-overlay i {
    color: #fff;
    font-size: 4rem;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.venue-img-box:hover .venue-img-overlay i { transform: scale(1); }

/* Google Map 滿版區塊 (Footer 上方) */
.fullwidth-map-wrapper {
    width: 100%;
    height: 450px;
    display: block;
    margin-top: 20px;
    margin-bottom: -5px; 
    background: #eee; 
    position: relative;
    z-index: 10;
}
.fullwidth-map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 大圖 Modal 設定 */
.modal-venue-img .modal-content { background: transparent; border: none; box-shadow: none; }
.modal-venue-img .modal-header { border: none; padding: 0; position: absolute; right: -40px; top: 0; z-index: 10; }
.modal-venue-img .btn-close-img { background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; opacity: 0.8; transition: opacity 0.3s; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.modal-venue-img .btn-close-img:hover { opacity: 1; }
.modal-venue-img .modal-body { padding: 0; }
.modal-venue-img img { width: 100%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }

/* =========================================
   22. Mobile RWD & General Fixes (手機版)
   ========================================= */
@media (max-width: 991px) {
    .hero { background-image: url('../images/index-bg-mobile.jpg'); }
    .hero.hero-en { background-image: url('../images/index-bg-mobile-en.jpg'); }
    
    header#main-header { width: 95%; top: 15px; height: var(--m-nav-height); padding: 0 25px; border-radius: 35px; }
    header#main-header.scrolled { width: 100%; top: 0; border-radius: 0; height: 60px; padding: 0 20px; }
    header#main-header .logo img { height: 40px; }
    header#main-header.scrolled .logo img { height: 35px; }
    .desktop-nav-group { display: none; }
    .hamburger { display: block !important; }
    header#main-header .logo { width: auto; text-align: left; }
    
    .footer-text { font-size: 0.85rem; }
    .countdown-container { width: 45%; min-width: auto; right: 20px; bottom: 30px; padding: 15px 10px; }
    .countdown-label { font-size: 0.85rem; }
    .timer-number { font-size: 1.4rem; }
    .timer-separator { font-size: 1.2rem; margin-bottom: 12px; }
    .timer-text { font-size: 0.65rem; }
    
    .banner-title { font-size: 1.8rem; }
    .banner-subtitle { font-size: 0.9rem; }
    .page-banner::after { left: 75%; transform: translate(-50%, -50%); width: 500px; height: 500px; }
    .page-banner { -webkit-mask-image: url('../images/banner-mask-mobile.svg'); mask-image: url('../images/banner-mask-mobile.svg'); }

    .content-area h3 { font-size: var(--font-h3-m); }
    .content-p { font-size: var(--font-p-m); }
    .quote-text { font-size: 1.1rem; }
    .signature-name { font-size: 1.1rem; }
    .signature-title { font-size: 0.9rem; }
    .president-profile { overflow: visible; }
    .president-img-box { float: none; margin: 0 auto 30px; width: 100%; max-width: 400px; }
    .inner-layout .container { padding-left: 30px !important; padding-right: 30px !important; }
    
    .program-grid { grid-template-columns: 1fr; gap: 20px; }
    .overview-card { padding: 20px 20px 60px 20px; box-shadow: none !important; border: 1px solid #eee; border-left-width: 5px; transform: none !important; } 
    .overview-card:hover { transform: none !important; box-shadow: none !important; }
    .oc-title { font-size: var(--font-h3-m); }
    .overview-card.type-main .oc-arrow { background-color: var(--accent-gold); color: #fff; }
    .overview-card.type-workshop .oc-arrow { background-color: #0056b3; color: #fff; }
    .overview-card.type-special .oc-arrow { background-color: #28a745; color: #fff; }
    .date-number { font-size: 2rem; }

    .agenda-header { margin-bottom: 30px; }
    .agenda-main-title { font-size: 1.6rem; }
    .agenda-info-bar { flex-direction: column; gap: 10px; border-radius: 12px; padding: 15px; width: 100%; }
    .timeline-item { flex-direction: column; margin-bottom: 30px; }
    .tl-time-box { text-align: left; padding-right: 0; margin-bottom: 10px; flex: 0 0 auto; padding-left: 20px; width: 100%; }
    .tl-time-box::after { left: 0; right: auto; top: 6px; }
    .tl-content-box { width: 100%; border-left-width: 5px; }
    .session-section-header { font-size: 1.1rem; padding: 12px 15px; flex-direction: column; align-items: flex-start; gap: 5px; }
    .section-tag { margin-bottom: 5px; white-space: normal; }
    .btn-back-overview:hover { transform: none !important; box-shadow: none !important; background-color: #f8f9fa; color: #555; border-color: #ddd; }
    .btn-back-overview:active { background-color: #e9ecef; }
    
    .form-group { margin-bottom: 25px; }
    .form-label { font-size: 1.2rem; }
    .captcha-combined-wrapper { width: 100%; border: none; background: transparent; padding: 0; flex-wrap: wrap; height: auto; box-shadow: none !important; }
    .captcha-input-inner { width: 100%; flex: 0 0 100%; height: 54px; border: 1px solid #e0e0e0; background-color: #f9f9f9; border-radius: 8px; padding: 0 15px; margin-bottom: 15px; transition: all 0.3s; }
    .captcha-input-inner:focus { background-color: #fff; border-color: var(--primary-orange); box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1); }
    .captcha-visual-group { width: 100%; padding-left: 0; justify-content: flex-start; }
    .captcha-img-inner { height: 48px; background: #e3f2fd; }
    .btn-refresh-inner { width: 48px; height: 48px; background-color: #f0f0f0; border-radius: 8px; }
    .form-footer { flex-direction: column; align-items: stretch; gap: 30px; }
    .form-actions { flex-direction: column; gap: 15px; }
    .btn-submit, .btn-reset { width: 100%; }
    .form-footer-inline { flex-direction: column; align-items: stretch; gap: 30px; }
    .footer-left-group { flex-direction: column; align-items: stretch; gap: 10px; }
    .form-footer-inline .form-label { margin-bottom: 5px; }
    .form-footer-inline .captcha-combined-wrapper { width: 100%; border: none; background: transparent; padding: 0; height: auto; flex-wrap: wrap; overflow: visible; }
    .form-footer-inline .captcha-input-inner { width: 100%; flex: 0 0 100%; height: 54px; border: 1px solid #e0e0e0 !important; background-color: #f9f9f9 !important; border-radius: 8px; padding: 0 15px; margin-bottom: 15px; }
    .form-footer-inline .captcha-input-inner:focus { background-color: #fff !important; border-color: var(--primary-orange) !important; box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1) !important; }
    .form-footer-inline .captcha-combined-wrapper:focus-within { border-color: transparent; box-shadow: none; background-color: transparent; }
    .form-footer-inline .captcha-visual-group { width: 100%; padding-left: 0; justify-content: flex-start; }
    .form-footer-inline .form-actions { width: 100%; flex-direction: column; }
    .review-grid { grid-template-columns: 1fr; gap: 25px; } 
    .data-review-card { padding: 25px 20px; }
    .confirm-alert-box { padding: 30px 20px; }
    .confirm-title-text { font-size: 1.3rem; }
    .confirm-actions { flex-direction: column; gap: 15px; }
    .confirm-actions .btn-submit, .confirm-actions .btn-reset { width: 100%; }
    .login-card { padding: 40px 25px; }
    .login-title { font-size: 1.6rem; }
    
    .level-badge { font-size: 1.1rem; padding: 8px 25px; width: 100%; justify-content: center; }
    .level-header::after { display: none; }
    .sponsor-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .sponsor-card { min-height: 160px; padding: 20px 15px; transform: none !important; box-shadow: 0 5px 10px rgba(0,0,0,0.05) !important; width: 100%; }
    .sponsor-img-box { height: 80px; margin-bottom: 10px; }
    .sponsor-label { font-size: 1.1rem !important; }
    .sponsor-img { filter: grayscale(0%) !important; opacity: 1 !important; transform: scale(1.02); }
    .level-gold .sponsor-card::before { opacity: 1 !important; }
    .sponsor-card:active { background-color: #f9f9f9; transform: scale(0.98) !important; }

    .guide-card { padding: 40px 25px; }
    .guide-card-title { font-size: 1.5rem; flex-direction: row; align-items: center; gap: 12px; }
    .guide-card-title i { width: 45px; height: 45px; font-size: 1.3rem; flex-shrink: 0; }
    .ordered-guide-list > li { padding-left: 45px; padding-top: 0; }
    .ordered-guide-list > li::before { top: 0; left: 0; width: 32px; height: 32px; font-size: 0.95rem; }
    .date-timeline { margin-left: 10px; padding-left: 25px; }
    .date-item::before { left: -34px; width: 14px; height: 14px; }

    .abstract-action-bar { top: var(--m-nav-height); padding: 10px 0; }
    header#main-header.scrolled ~ * .abstract-action-bar, .scrolled ~ * .abstract-action-bar { top: 60px; }
    .abstract-section-title { margin-bottom: 10px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
    .author-block { padding: 15px; }
    .author-remove-btn { top: 15px; right: 15px; }
    .btn-outline-abstract, .btn-outline-draft { font-size: 1rem; padding: 8px 20px; }
    textarea.form-control-abstract { height: 600px; }

    .abstract-success-wrapper { margin-top: -30px; }
    .abstract-success-card { padding: 40px 0; }

    .modal-venue-img .modal-header { right: 0; top: -45px; }
    .fullwidth-map-wrapper { height: 350px; margin-top: 40px; }
}

/* =========================================
   23. Small Mobile RWD (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    .page-hint { text-align: left; }
    .rc-header { flex-direction: column; }
    .rc-status { margin-top: 5px; white-space: normal; line-height: 1.3; }
    .rc-actions { flex-direction: column; }
    .btn-sm-custom { width: 100%; justify-content: center; }
    .result-card { padding: 25px; }
    .notice-box { padding: 25px; }

    html[lang="en"] .en-btn-text-pc { display: none; }
    html[lang="en"] .en-btn-text-mobile { display: inline; }
    html[lang="en"] .en-mobile-label { display: block; margin-bottom: 10px; color: #555; font-weight: 600; font-size: 1.1rem; }

    html[lang="en"] .abstract-action-bar { gap: 10px; }
    html[lang="en"] .btn-outline-abstract, html[lang="en"] .btn-outline-draft { font-size: 0.9rem; padding: 8px 15px; white-space: nowrap; }

    .abstract-success-icon { font-size: 3rem; }
    .abstract-success-title { font-size: 1.8rem; margin-bottom: 25px; }
    .abstract-success-desc { font-size: 1.05rem; line-height: 1.8; }
    .btn-continue-abstract { font-size: 1.1rem; padding: 12px 30px; width: 100%; }

    /* 位置交通小手機版修正 */
    .btn-transport { padding: 15px 20px; font-size: 1.15rem; max-width: 100%; }
    .btn-transport i { font-size: 1.8rem; }
}

.en-btn-text-mobile { display: none; }
.en-mobile-label { display: none; }

@media (min-width: 992px) {
    .mobile-menu-overlay { display: none !important; opacity: 0 !important; visibility: hidden !important; }
    .hamburger { display: none !important; }
    body { overflow: auto !important; }
}

html[lang="en"] .content-p { text-align: left !important; }

/* =========================================
   24. Contact Us Page (聯絡我們 - 扁平重疊設計)
   ========================================= */

/* 秘書處主卡片 (橫幅漸層) */
.secretariat-block {
    background: linear-gradient(135deg, #fff5eb 0%, #ffffff 100%);
    border-left: 6px solid var(--primary-orange);
    border-radius: 16px;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    gap: 35px;
    box-shadow: none; /* 預設無陰影 */
    position: relative;
    margin-bottom: 60px;
    border: 1px solid #ffeedb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.secretariat-block:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.1); /* 淡淡的小陰影 */
}
.secretariat-icon {
    width: 90px; height: 90px; background: var(--primary-orange);
    border-radius: 50%; color: #fff; font-size: 2.8rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; 
    box-shadow: none; /* 【已修正】移除橘色 ICON 的陰影 */
}
.secretariat-info { flex: 1; min-width: 0; }
.secretariat-info h4 { font-size: 1.6rem; font-weight: 700; color: #222; margin-bottom: 12px; }
.secretariat-details { display: flex; flex-wrap: wrap; gap: 20px; font-size: 1.15rem; color: #555; }
.secretariat-details > div { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; }
.secretariat-details i { color: var(--primary-orange); font-size: 1.1rem; flex-shrink: 0; margin-top: 5px; }
.secretariat-name { font-weight: 700; color: #333; font-size: 1.25rem !important; align-items: center !important; }
.secretariat-name i { margin-top: 0; }

/* 聯絡網格 (扁平重疊卡片) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 45px 30px;
}
.contact-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 60px 30px 30px;
    position: relative;
    box-shadow: none; /* 預設無陰影 */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.contact-card:hover {
    transform: translateY(-4px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.06); /* 極淡、極小的陰影 */
    border-color: var(--accent-gold);
}

/* 傾斜重疊 ICON */
.contact-icon-overlap {
    position: absolute;
    top: -25px; left: 30px;
    width: 60px; height: 60px;
    color: #fff;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    transform: rotate(-8deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}
.contact-card:hover .contact-icon-overlap { transform: rotate(0deg) scale(1.1); }

/* 顏色主題 */
.theme-blue .contact-icon-overlap { background: linear-gradient(135deg, #005C9D, #003b66); box-shadow: 0 5px 15px rgba(0, 92, 157, 0.3); }
.theme-green .contact-icon-overlap { background: linear-gradient(135deg, #20c997, #138462); box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3); }
.theme-gold .contact-icon-overlap { background: linear-gradient(135deg, var(--accent-gold), #7a5214); box-shadow: 0 5px 15px rgba(166, 115, 35, 0.3); }
.theme-purple .contact-icon-overlap { background: linear-gradient(135deg, #6f42c1, #4a2a82); box-shadow: 0 5px 15px rgba(111, 66, 193, 0.3); }

/* 日期標籤 */
.contact-date-badge {
    position: absolute;
    top: 15px; right: 20px;
    background: #f4f6f9; color: #555;
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.9rem; font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #e9ecef;
    z-index: 2;
}

/* 標題移除 padding-right，因已往下挪 */
.contact-title { font-size: 1.35rem; font-weight: 700; color: #222; margin-bottom: 12px; line-height: 1.4; position: relative; z-index: 1; }

.contact-tag {
    display: inline-block; background: #fff5eb; color: var(--primary-orange);
    padding: 4px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 700;
    margin-bottom: 20px; border: 1px solid #ffd1b3;
}
.contact-info-list { margin-top: auto; border-top: 1px dashed #eee; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; color: #444; font-size: 1.1rem; font-weight: 500; }
.contact-detail i { color: #a0a0a0; width: 20px; text-align: center; font-size: 1.1rem; transition: color 0.3s; margin-top: 4px; flex-shrink: 0; }
.contact-card:hover .contact-detail i { color: var(--accent-gold); }

/* 電話與分機的容器 */
.phone-wrap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* =========================================
   手機版與平板完全取消 hover 陰影與互動特效
   ========================================= */
@media (max-width: 991px) {
    .secretariat-block:hover { transform: none !important; box-shadow: none !important; }
    .contact-card:hover { transform: none !important; box-shadow: none !important; border-color: #eee !important; }
    .contact-card:hover .contact-icon-overlap { transform: rotate(-8deg) scale(1) !important; }
    .contact-card:hover .contact-detail i { color: #a0a0a0 !important; }
}

/* =========================================
   聯絡我們 手機排版修正
   ========================================= */
@media (max-width: 768px) {
    .secretariat-block { flex-direction: column; text-align: center; padding: 40px 25px; gap: 20px; }
    .secretariat-icon { margin: 0 auto; width: 80px; height: 80px; font-size: 2.2rem; }
    .secretariat-details { flex-direction: column; gap: 10px; align-items: center; width: 100%; }
    
    .email-text { word-break: break-all; overflow-wrap: anywhere; }
    .phone-wrap { flex-direction: column; align-items: flex-start; gap: 2px; }
    .secretariat-details .phone-wrap { align-items: center; } 

    .contact-grid { grid-template-columns: 1fr; gap: 40px 20px; }
    .contact-card { padding: 60px 20px 25px; }
    .contact-icon-overlap { left: 20px; width: 50px; height: 50px; font-size: 1.5rem; }
}

/* =========================================
   25. 第 3 層下拉選單與外連圖示設定
   ========================================= */

/* 外連小圖示 (External Link Icon) */
.ext-icon {
    font-size: 0.85em;
    margin-left: 6px;
    opacity: 0.6;
    transition: opacity 0.3s;
}
a:hover .ext-icon { opacity: 1; color: var(--accent-gold); }

/* --- PC 版第 3 層選單樣式 --- */
.custom-dropdown li { position: relative; }
.custom-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    transform: translateX(15px);
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-orange); /* 左側點綴橘線 */
}
.custom-dropdown li:hover > .custom-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}
.custom-submenu li a {
    font-size: 1.05rem;
    padding: 10px 20px;
    text-align: center;
    color: #555;
    text-decoration: none;
    display: block;
}
.custom-submenu li a:hover {
    background-color: rgba(166, 115, 35, 0.08);
    color: var(--accent-gold);
}
/* 指示展開的箭頭 */
.caret-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #ccc;
}

/* --- 手機版第 3 層選單樣式 --- */
.m-menu-link-lvl3 {
    display: block;
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    border-bottom: 1px solid #f0f0f0;
}
.m-menu-link-lvl3.expanded {
    color: var(--accent-gold) !important;
    background-color: #f6f6f6;
}
.m-menu-link-lvl3 .m-arrow {
    display: inline-block;
    transition: transform 0.3s;
    margin-left: 5px;
    font-size: 0.8rem;
}
.m-menu-link-lvl3.expanded .m-arrow {
    transform: rotate(180deg);
}
.m-submenu-lvl3 {
    display: none;
    background-color: #e4e4e4; /* 顏色稍微深一點以利區分階層 */
    list-style: none;
    padding: 0;
    margin: 0;
}
.m-submenu-lvl3 li a {
    display: block;
    font-size: 0.85rem !important;
    padding: 10px 0 !important;
    color: #555 !important;
    text-decoration: none;
    text-align: center;
}
.m-submenu-lvl3 li a:hover {
    color: var(--accent-gold) !important;
    background-color: #dcdcdc !important;
}


/* =========================================
   26. Honored Guests (貴賓介紹)
   ========================================= */

.guests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 110px 30px; 
    margin-top: 100px;
}

.guest-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
    border: 1px solid #f0f0f0;
    box-shadow: none; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
}

.guest-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.4s;
    pointer-events: none;
    z-index: 0;
}

.guest-card:hover {
    transform: translateY(-8px); 
    box-shadow: none; 
}

.guest-card:hover::before {
    border-color: var(--accent-gold); 
}

.guest-avatar-box {
    position: absolute;
    top: -70px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.guest-card:hover .guest-avatar-box {
    transform: scale(1.05) rotate(3deg); 
}

.guest-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f8f9fa; 
}

.guest-deco-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at top right, rgba(255, 102, 0, 0.05), transparent 70%);
    border-radius: 0 16px 0 100%;
    pointer-events: none;
    z-index: 1;
}

.guest-content {
    margin-top: 75px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
}

.guest-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px; 
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
    text-align: center; 
    border-bottom: none !important; 
    padding-bottom: 0 !important;   
}

.guest-name::after, .guest-name::before {
    display: none !important;
}

html[lang="zh-TW"] .guest-name {
    margin-bottom: 2px;
}

.guest-name-zh {
    display: block;
    font-size: 1.15rem;  
    color: #555;
    font-weight: 700;    
    font-family: 'Noto Sans TC', sans-serif;
    margin-bottom: 15px;
    min-height: 1.7rem;  
    line-height: 1.5;
    text-align: center;
    border-bottom: none !important;
}

.guest-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guest-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
    font-weight: 500;
}

.guest-info-list li i {
    color: var(--accent-gold);
    margin-top: 3px;
    width: 22px; 
    text-align: center;
    flex-shrink: 0; 
}

.guest-session-tag {
    display: flex; 
    align-items: flex-start; 
    background: rgba(255, 102, 0, 0.06);
    color: var(--primary-orange);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 102, 0, 0.15);
    width: 100%; 
    line-height: 1.4;
    text-align: left; 
}

.guest-session-tag i {
    flex-shrink: 0; 
    margin-top: 3px; 
    margin-right: 6px; 
}

.btn-view-resume {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fdfdfd;
    color: #444;
    border: 1px solid #ddd;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
}

.btn-view-resume:hover {
    background: var(--accent-gold);
    color: #fff;
    border-color: var(--accent-gold);
}


/* =========================================
   27. Speaker Resume (簡歷內容)
   ========================================= */

.resume-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #eee;
}

.resume-avatar-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    flex-shrink: 0;
}

.resume-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f8f9fa;
}

.resume-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.resume-en-name {
    font-size: 1.25rem;
    color: #777;
    font-weight: 500;
    margin-left: 12px;
    font-family: 'Montserrat', sans-serif;
}

.resume-wrapper .content-icon-title {
    font-size: 1.25rem;
    color: #005C9D;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.resume-wrapper .content-icon-title::after {
    background-color: #005C9D; 
}

.resume-wrapper .content-icon-title i {
    margin-right: 8px;
}

.resume-timeline-list { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 40px 0; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.resume-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.rtl-year {
    flex: 0 0 210px; 
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #555;
    background: #f8f9fa;
    padding: 6px 15px;
    border-radius: 6px;
    text-align: center;
    border-left: 4px solid #ddd;
    white-space: nowrap; 
}

.rtl-desc {
    flex: 1;
    font-size: 1.15rem;
    color: #333;
    font-weight: 400; 
    line-height: 1.6;
    padding-top: 4px;
    text-align: justify; 
}

.resume-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.resume-bullet-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 1.15rem;
    color: #333;
    font-weight: 400; 
    line-height: 1.6;
    text-align: justify; 
}

.resume-bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-family: Arial, sans-serif;
}

/* 論文專用：強制靠左對齊 */
.resume-paper-list li {
    text-align: left !important;
}

/* 英文版強制靠左對齊 */
html[lang="en"] .rtl-desc,
html[lang="en"] .resume-bullet-list li {
    text-align: left;
}


/* =========================================
   Modal 浮動視窗微調與強制適應螢幕
   ========================================= */

.modal-resume .modal-dialog {
    max-width: 850px;
    margin: 1.5rem auto;
}

.modal-resume .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    max-height: calc(100vh - 3rem); 
    display: flex;
    flex-direction: column;
}

.modal-resume .modal-header {
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 18px 25px;
    flex-shrink: 0;
}

.modal-resume .modal-title {
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-resume .btn-close {
    background-color: #eee;
    border-radius: 50%;
    padding: 10px;
    opacity: 0.8;
    transition: all 0.3s;
}

.modal-resume .btn-close:hover {
    opacity: 1;
    background-color: #005C9D;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}

.modal-resume .modal-body {
    padding: 0;
    position: relative;
    flex-grow: 1;
    height: 65vh; 
    min-height: 400px;
    overflow: hidden;
}

.modal-resume iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    position: absolute; 
    top: 0;
    left: 0;
    z-index: 2;
}


/* =========================================
   Iframe 崁入模式隱藏外部導覽列與優化邊界
   ========================================= */

html.in-iframe body { background: transparent !important; }
html.in-iframe #header-container, html.in-iframe #main-header, html.in-iframe header,
html.in-iframe #footer-container, html.in-iframe footer, html.in-iframe .page-banner,
html.in-iframe .breadcrumb-area, html.in-iframe .floating-sidebar { display: none !important; }

html.in-iframe .inner-layout { padding: 0 !important; background: transparent !important; }
html.in-iframe .container { max-width: 100% !important; padding: 0 25px !important; }
html.in-iframe .content-area { padding: 25px 0 0 0 !important; box-shadow: none !important; border: none !important; margin-bottom: 0 !important; }


/* =========================================
   論文投稿操作列 (Sticky Bar) 黏住時的上下間距對稱與底線
   ========================================= */

.abstract-action-bar,
.abstract-action-bar.is-stuck {
    top: 70px !important; /* 絕對黏緊選單，保證不留縫隙！ */
}

.abstract-action-bar.is-stuck {
    height: auto !important; 
    /* 【關鍵修正：視覺補償】
       刻意加大上方的留白，去抵銷被選單微微蓋住的空間，
       這樣視覺上按鈕就會完美置中在白底正中央！ */
    padding-top: 28px !important;    
    padding-bottom: 16px !important; 
    background-color: rgba(255, 255, 255, 0.98) !important; 
    box-shadow: none !important; 
    border-bottom: 1px solid #eaeaea !important; 
    z-index: 90 !important;
}

.abstract-action-bar.is-stuck button {
    margin-top: 0 !important; 
}

/* =========================================
   響應式排版 (包含手機版 Sticky Bar 滑動與貴賓排版)
   ========================================= */

/* 平板與手機版 (<= 991px) */
@media (max-width: 991px) {
    .abstract-action-bar,
    .abstract-action-bar.is-stuck {
        top: 60px !important; 
        
        display: flex !important;
        flex-wrap: nowrap !important; 
        justify-content: flex-start !important; 
        overflow-x: auto !important; 
        -webkit-overflow-scrolling: touch; 
        padding-left: 15px !important; 
        padding-right: 15px !important; 
        padding-top: 15px !important;    
        padding-bottom: 15px !important; 
        gap: 12px !important; 
    }

    /* 隱藏原生捲軸，維持介面乾淨 */
    .abstract-action-bar::-webkit-scrollbar {
        display: none;
    }
    .abstract-action-bar {
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }

    /* 確保按鈕寬度不被壓縮 */
    .abstract-action-bar button {
        flex: 0 0 auto !important; 
        white-space: nowrap !important; 
        margin: 0 !important; 
    }
}

/* 手機版 (<= 768px) */
@media (max-width: 768px) {
    /* 貴賓介紹網格 */
    .guests-grid { 
        grid-template-columns: 1fr; 
        gap: 100px 20px; 
        margin-top: 100px; 
    }
    
    /* 判斷無中文名時，取消預留高度並補回下邊距 */
    html[lang="zh-TW"] .guest-name-zh:empty {
        min-height: 0;
        margin-bottom: 13px; 
    }

    /* 簡歷內頁 */
    .resume-header { flex-direction: column; text-align: center; gap: 15px; padding-bottom: 25px; }
    .resume-en-name { display: block; margin-left: 0; margin-top: 5px; }
    .resume-timeline-item { flex-direction: column; gap: 5px; }
    .rtl-year { flex: none; width: fit-content; text-align: left; padding: 4px 10px; font-size: 1rem; }
    .rtl-desc { padding-left: 10px; font-size: 1.1rem; }
    .resume-bullet-list li { font-size: 1.1rem; }

    /* 手機版 Modal 強制留白與高度限制 */
    .modal-resume .modal-dialog {
        margin: 1.5rem 1rem; 
        min-height: calc(100vh - 3rem);
        display: flex;
        align-items: center; 
    }
    
    .modal-resume .modal-content {
        max-height: calc(100vh - 3rem); 
        width: 100%;
    }
    
    .modal-resume .modal-body {
        height: calc(100vh - 3rem - 65px); 
        min-height: auto; 
    }
}


/* =========================================
   Draft List (暫存清單區塊)
   ========================================= */
.draft-list-container {
    display: flex;
    flex-direction: column;
}

.draft-item {
    display: flex;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px dotted #ccc; 
    gap: 15px;
}

.draft-item:first-child {
    padding-top: 0;
}

.draft-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.draft-icon {
    color: #333; 
    font-size: 1.1rem; 
    line-height: 1.5; /* 【關鍵修改】強制圖示的行高與右側標題一模一樣 */
    margin-top: 0;    /* 【關鍵修改】把距離歸零，交給行高自動完美對齊 */
    flex-shrink: 0;
}

.draft-content {
    flex-grow: 1;
}

.draft-title-zh {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.5; /* 中文標題行高為 1.5 */
}

.draft-title-en {
    font-size: 1.1rem; 
    color: #666;
    font-weight: 500;  
    line-height: 1.4;
}

.draft-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

/* 右側操作按鈕 (共用基礎設定) */
.btn-draft-action {
    background: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    padding: 0;
}

.btn-draft-action.edit {
    border: 1px solid #005C9D;
    color: #005C9D;
}

.btn-draft-action.edit:hover {
    background: #005C9D;
    color: #fff;
}

.btn-draft-action.delete {
    border: 1px solid #E33A36;
    color: #E33A36;
}

.btn-draft-action.delete:hover {
    background: #E33A36;
    color: #fff;
}

/* 手機版排版微調 */
@media (max-width: 768px) {
    .draft-item {
        flex-wrap: wrap;
    }
    .draft-content {
        width: calc(100% - 35px); 
    }
    .draft-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 12px;
    }
}

/* =========================================
   Under Construction Page (網頁建構中專用 - 應用全站設計重點)
   ========================================= */

/* A. 內容區塊基礎與質感背景 (科技藍圖網格) */
.uc-content-area {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    box-shadow: none !important;
    border: none !important;
    min-height: 450px;
    background-color: #fafbfc; /* 極淡的科技灰白底 */
    /* 畫龍點睛的背景：非常淡的點陣網格，象徵「建構中/藍圖」 */
    background-image: radial-gradient(rgba(0, 92, 157, 0.08) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    overflow: hidden; 
}

/* 創意巧思 1：漂浮的醫療與程式符號 (純 CSS 呈現，完全不用改 HTML) */
.uc-content-area::before {
    content: '+'; /* 醫療十字 */
    position: absolute;
    font-size: 12rem;
    font-weight: 300;
    color: rgba(0, 92, 157, 0.03); /* 主題藍極淡色 */
    top: 5%;
    left: 8%;
    z-index: 0;
    pointer-events: none;
    animation: floatUpDown 6s ease-in-out infinite;
}

.uc-content-area::after {
    content: '</>'; /* 程式碼符號 */
    position: absolute;
    font-size: 8rem;
    font-family: 'Montserrat', monospace;
    font-weight: 700;
    color: rgba(227, 58, 54, 0.03); /* 橘紅色極淡色 */
    bottom: 10%;
    right: 12%;
    z-index: 0;
    pointer-events: none;
    animation: floatUpDown 8s ease-in-out infinite reverse;
}

/* 創意巧思 2：把原本寂寞的色塊，變成具現代感的「虛線科技環」與「光暈」 */
.uc-shape-blue {
    position: absolute;
    width: 450px;
    height: 450px;
    background: transparent;
    border: 2px dashed rgba(0, 92, 157, 0.1); /* 科技感虛線環 */
    border-radius: 50%;
    top: -180px;
    right: -150px;
    z-index: 0;
    pointer-events: none;
}

.uc-shape-gold {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 60%); /* 柔和主題金光暈 */
    bottom: -250px;
    left: -200px;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

.uc-page-wrapper {
    position: relative;
    z-index: 2; /* 確保文字與主要 Icon 蓋在這些背景特效上方 */
}

/* B. 主視覺 Icon 運用 */
.uc-visual-icon {
    width: 150px;
    height: 150px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
}

.uc-visual-icon i {
    font-size: 7rem;
    color: var(--primary-orange); 
    background: linear-gradient(135deg, var(--primary-orange), #ffcc80); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s;
}

/* C. 標題與打字機、淡入效果 */
.uc-heading-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100px; /* 防止打字清空時高度塌陷 */
}

.uc-title-zh {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
    letter-spacing: 2px;
    opacity: 0; /* 預設隱藏，交給 JS 打字 */
}

.uc-title-en {
    font-size: 1.4rem;
    color: #888;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif; 
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: none !important; 
    opacity: 0; /* 預設隱藏，交給 JS 淡入 */
}

/* JS 啟動後套用：主標題打字與游標閃爍 */
.typewriter-ready {
    opacity: 1 !important;
    display: inline-block;
    white-space: nowrap;
    border-right: 3px solid var(--primary-orange); 
    padding-right: 8px; 
    margin: 0 auto;
    animation: blink-caret 0.8s step-end infinite;
}

/* JS 啟動後套用：副標題優雅淡入 */
.fade-in-ready {
    opacity: 1 !important;
    transition: opacity 1s ease-in-out; 
}

/* 游標與背景動態效果 */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-orange); }
}

.uc-icon-bounce-animated i {
    animation: iconSubtleBounce 3s ease-in-out infinite;
}

@keyframes iconSubtleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); } 
}

.animated-shape-slow {
    animation: slowRotateShape 20s linear infinite;
}

.animated-shape-fast {
    animation: slowRotateShape 15s linear infinite reverse;
}

@keyframes slowRotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================================
   響應式調整 (包含手機版防爆版動態字體)
   ========================================= */
@media (max-width: 991px) {
    .uc-content-area { min-height: 380px; }
    .uc-visual-icon i { font-size: 6rem; }
    .uc-shape-blue { width: 220px; height: 220px; top: -50px; right: -50px; }
    .uc-shape-gold { width: 180px; height: 180px; bottom: -40px; left: -40px; }
}

@media (max-width: 768px) {
    .uc-title-zh { 
        font-size: clamp(1.4rem, 6.5vw, 2rem) !important; 
        letter-spacing: 1px;
    }
    .uc-title-en { 
        font-size: 1rem !important; 
        letter-spacing: 2px;
    }
}

/* =========================================
   Footer 創意連結特效 (Creative Footer Links)
   ========================================= */
.footer-creative-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #fff; 
    text-decoration: none !important;
    font-weight: 500;
    /* 【已修正】左側留 6px，右側留 14px，讓 Icon 有足夠的右方空間不貼邊 */
    padding: 2px 10px 2px 6px; 
    margin: 0 4px;
    z-index: 1;
    transition: color 0.3s ease;
}

/* 預設狀態：底部虛線 */
.footer-creative-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px; 
    background-color: transparent;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1; 
}

/* 小 Icon：外部連結提示 */
.footer-creative-link::after {
    content: '\f08e'; 
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 0.75rem;
    margin-left: 6px; /* 增加 Icon 與文字的距離 */
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(0, 0);
}

/* Hover (滑鼠移過) 時的觸發效果 - 【提高對比度與視覺層次】 */
.footer-creative-link:hover {
    color: var(--primary-blue, #005C9D); /* 文字變為主題深藍 */
}

.footer-creative-link:hover::before {
    height: 100%; 
    border-bottom: 1px solid #ffffff; 
    background-color: #ffffff; /* 【已修正】色塊改為純白色，與深藍文字形成完美對比 */
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* 增加微微的立體陰影 */
}

.footer-creative-link:hover::after {
    opacity: 1;
    transform: translate(2px, -2px); /* Icon 往右上方微幅彈跳飛出 */
    color: var(--primary-orange, #E33A36); /* 【畫龍點睛】Icon 變成橘色，增加亮點 */
}

