/* ==========================================================================
   CSS Reset & Variables
   ========================================================================== */
   :root {
    --primary-color: #311440;       /* 深紫黑色 (Deep eggplant) 用於深色背景與大標題 */
    --secondary-color: #671372;     /* 清華紫 (NTHU Purple) 用於按鈕與強調色 */
    --accent-color: #9a38a6;        /* 亮紫色 (Bright purple) 用於懸停特效與次要裝飾 */
    --text-main: #2b1b30;           /* 深灰紫色字體 */
    --text-light: #6a5d72;          /* 淺灰紫色字體 */
    --text-white: #ffffff;
    --bg-main: #ffffff;
    --bg-light: #fcfafc;          /* 極淺紫色背景 */
    --bg-dark: #311440;             /* 深紫色背景 */
    --border-color: #e9dceb;        /* 淺紫色邊框 */
    
    --font-main: 'Noto Sans TC', sans-serif;
    --font-heading: 'Playfair Display', serif; /* Or keep sans for tech feel, let's use Noto Sans TC mostly */

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-white { color: var(--text-white); }
.text-gray { color: #94a3b8; }
.mt-4 { margin-top: 2rem; }
.bg-light { 
    background-color: transparent; 
}
.bg-dark { 
    background-color: transparent; 
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border: 1px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header.scrolled .logo a { color: var(--primary-color); }
.header.scrolled .nav-link { color: var(--primary-color); }

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

.header-action {
    display: flex;
    align-items: center;
}

.lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(49, 20, 64, 0.2);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-right: 1rem;
}

.lang-switch:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-white);
}

.header.scrolled .lang-switch {
    color: var(--primary-color);
    border-color: rgba(49, 20, 64, 0.2);
}

.header.scrolled .lang-switch:hover {
    color: var(--text-white);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 0.1em;
}

.logo span {
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.95rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    color: var(--secondary-color);
    background: rgba(0,0,0,0.02);
    padding-left: 2rem;
}

/* Submenu (Nested Dropdown) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-submenu .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.dropdown-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px);
}

.submenu li {
    margin: 0;
}

.submenu a {
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition);
}

.submenu a:hover {
    color: var(--secondary-color);
    background: rgba(0,0,0,0.02);
    padding-left: 2rem;
}

@media (max-width: 992px) {
    .dropdown-submenu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 1rem;
        transform: none;
        display: block;
    }
    .dropdown-submenu:hover > .submenu {
        transform: none;
    }
    .submenu a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        color: var(--text-light);
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition);
}

.header.scrolled .mobile-menu-btn span {
    background-color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 10;
    background-color: var(--primary-color);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: zoomOut 20s infinite alternate;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(252, 250, 252, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-theme {
    margin-bottom: 3rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.theme-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-theme h2 {
    font-size: 1.8rem;
    font-weight: 500;
}

.en-theme {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.8;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #4b5563;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scroll-down-btn {
    position: absolute;
    bottom: 2rem;
    right: 5%;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
    opacity: 0.7;
    z-index: 2;
}

.scroll-down-btn .text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-down-btn .line {
    width: 1px;
    height: 60px;
    background-color: rgba(49, 20, 64, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-down-btn .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: translateY(-100%);
    animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.0); }
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */
.section {
    padding: 8rem 0;
}

/* Glassmorphism Panel for Content */
.section > .container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.section-header {
    text-align: left;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--text-light);
    text-transform: uppercase;
}

.coming-soon {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
    letter-spacing: 0.1em;
}

.coming-soon h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    opacity: 0.5;
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-list {
    border-top: 1px solid var(--border-color);
}

.news-item {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.news-date {
    font-weight: 600;
    color: var(--secondary-color);
    width: 120px;
    flex-shrink: 0;
}

.news-item:hover {
    background-color: var(--bg-light);
    padding-left: 1rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.news-title a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-desc p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-wrapper img {
    transition: var(--transition);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Timeline Section
   ========================================================================== */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

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

.timeline-dot {
    position: absolute;
    left: 15px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 2px solid var(--bg-main);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot,
.timeline-item.highlight .timeline-dot {
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-date {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-item.highlight .timeline-date {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.timeline-text {
    color: var(--text-light);
}

/* ==========================================================================
   Forums Section
   ========================================================================== */
.forum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.forum-card {
    background-color: rgba(255,255,255,0.5);
    padding: 3rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.8);
}

.forum-card:hover {
    transform: translateY(-10px);
    background-color: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.forum-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.forum-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.forum-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-main);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--secondary-color);
}

.footer-brand p {
    color: #94a3b8;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer p, .footer ul {
    color: var(--text-light);
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.85rem;
    padding: 0.4rem 1.15rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    font-size: 0.82rem;
    color: #64748b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.counter-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.counter-icon {
    display: inline-block;
    vertical-align: middle;
    color: var(--primary-color);
    opacity: 0.85;
}

.counter-number {
    font-weight: 700;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.02em;
}

.counter-divider {
    color: #cbd5e1;
    font-size: 0.75rem;
}


/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav, .header-action {
        display: none;
        width: 100%;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-container.mobile-open {
        background-color: rgba(255, 255, 255, 0.98);
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
        width: 85%;
        max-width: 320px;
        min-height: 100vh;
        padding: 1rem 2rem 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        border-radius: 0 0 0 16px;
        align-content: flex-start;
    }

    .header-container.mobile-open .nav,
    .header-container.mobile-open .header-action {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
    }

    .header-container.mobile-open .header-action {
        order: 2;
        flex-direction: row;
        justify-content: flex-end;
        gap: 1rem;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .header-container.mobile-open .nav {
        order: 3;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .header-container.mobile-open .nav-list {
        flex-direction: column;
        align-items: flex-end;
        gap: 1.5rem;
    }

    .header-container.mobile-open .nav-link {
        color: var(--primary-color);
    }

    .header-container.mobile-open .lang-switch {
        color: var(--primary-color);
        border-color: rgba(49, 20, 64, 0.2);
        margin: 0;
    }
    
    .header-container.mobile-open .logo a {
        color: var(--primary-color);
    }

    /* Fix mobile dropdown overlapping issue */
    .header-container.mobile-open .dropdown {
        width: 100%;
        text-align: right;
    }
    
    .header-container.mobile-open .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        padding: 0.5rem 0 0 0;
        margin-top: 0.5rem;
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    .header-container.mobile-open .dropdown:hover .dropdown-menu,
    .header-container.mobile-open .dropdown:active .dropdown-menu,
    .header-container.mobile-open .dropdown:focus-within .dropdown-menu {
        display: flex;
        transform: none;
    }

    .header-container.mobile-open .dropdown-menu a {
        padding: 0.5rem;
        color: var(--text-light);
        font-size: 0.95rem;
        text-align: right;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1010;
    }
    
    .header-container.mobile-open .mobile-menu-btn span {
        background-color: var(--primary-color);
    }
    
    .hero h1 {
        font-size: 3rem;
    }

    .section > .container {
        padding: 2rem;
        border-radius: 16px;
    }

    .about-grid, .forum-grid, .footer-grid {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Lottie Background Container
   ========================================================================== */
#lottie-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 150vw;
    height: 150vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lottie-bg svg {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.section, .footer {
    position: relative;
    z-index: 1; /* 確保內容不會被動畫蓋住，同時動畫在 Hero 下方 */
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--text-white);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Content Sections Styling
   ========================================================================== */

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-theme-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

/* Organization Section */
.organization-content {
    max-width: 1000px;
    margin: 0 auto;
}

.org-block {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.org-subtitle {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(49, 20, 64, 0.1);
}

.org-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
    text-align: left;
}

.org-table th {
    background-color: var(--bg-light);
    color: var(--secondary-color);
    padding: 0.8rem 1rem;
    font-weight: 700;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.org-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    color: var(--text-main);
}

.org-table td:nth-child(1),
.org-table td:nth-child(3) {
    font-weight: 700;
    color: var(--secondary-color);
    white-space: nowrap;
    width: 12%;
}

.org-table td:nth-child(2),
.org-table td:nth-child(4) {
    width: 38%;
}

.org-table tbody tr:nth-child(even) {
    background-color: rgba(248, 246, 250, 0.4);
}

.org-table tbody tr:hover {
    background-color: rgba(49, 20, 64, 0.03);
}

.int-org-table td:nth-child(1) {
    font-weight: 700;
    color: var(--secondary-color);
    white-space: normal;
    width: 22%;
}

.int-org-table td:nth-child(2) {
    white-space: nowrap;
    width: 12%;
    font-weight: 500;
}

.int-org-table td:nth-child(3) {
    font-weight: 400;
    color: var(--text-main);
    width: 28%;
}

.int-org-table td:nth-child(4) {
    width: 38%;
    font-size: 0.92rem;
    color: var(--text-light);
}

/* International Member List (Option B) */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.member-item {
    background: #ffffff;
    border: 1px solid rgba(49, 20, 64, 0.08);
    border-left: 4px solid var(--secondary-color);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 20, 64, 0.08);
}

.member-main-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.member-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 180px;
}

.member-country .country-badge {
    background: rgba(49, 20, 64, 0.08);
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.member-affiliation {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
    flex: 1;
}

.member-interests {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.interests-label {
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .org-block {
        padding: 1.25rem;
    }
}

/* Agenda Section */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1300px;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .agenda-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .agenda-grid {
        grid-template-columns: 1fr;
    }
}

.agenda-slot.empty {
    background: transparent;
    border: none;
    box-shadow: none;
}

.agenda-day-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(49, 20, 64, 0.08);
}

.agenda-day-header {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 1.25rem;
    text-align: center;
}

.agenda-day-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #ffffff;
}

.agenda-day-header span {
    font-size: 0.95rem;
    opacity: 0.85;
}

.agenda-day-body {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.agenda-slot {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.05rem;
    border-left: 3px solid transparent;
}

.agenda-slot.normal {
    border-left-color: rgba(49, 20, 64, 0.2);
}

.agenda-slot.highlight {
    background: #fff8e6;
    border: 1.5px solid #f6d887;
    border-left: 4px solid #f39c12;
    color: #b7791f;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.12);
}

.agenda-slot.accent {
    background: rgba(49, 20, 64, 0.06);
    border-left: 4px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 700;
}

.agenda-parallel-container {
    display: flex;
    gap: 0.6rem;
    width: 100%;
}

.agenda-parallel-container .agenda-slot {
    flex: 1;
    font-size: 0.95rem;
    padding: 0.8rem 0.5rem;
}

.agenda-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0.4rem 0;
}

.agenda-audience-note {
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
    text-align: center;
}

.agenda-audience-note h4 {
    font-size: 0.95rem;
    color: #d97706;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.agenda-audience-note p {
    font-size: 0.9rem;
    color: #b45309;
    font-weight: 600;
    margin: 0;
}

/* Submission Section */
.submission-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.submission-block {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.block-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.block-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.block-desc {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Topic List (A) */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    counter-reset: topic-counter;
}

.topic-list li {
    position: relative;
    padding-left: 2.2rem;
    line-height: 1.6;
    color: var(--text-main);
}

.topic-list li::before {
    counter-increment: topic-counter;
    content: counter(topic-counter) ".";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    font-size: 1rem;
}

/* Category Cards (B) */
.category-cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 250px;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(49, 20, 64, 0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--secondary-color);
}

.card .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-light);
}

/* Timeline (C) */
.timeline {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 190px;
    height: 100%;
    width: 2px;
    background: rgba(49, 20, 64, 0.1);
}

.timeline .timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
    padding-left: 0;
}

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

.timeline .date {
    width: 190px;
    min-width: 190px;
    box-sizing: border-box;
    padding-right: 20px;
    text-align: right;
    font-weight: 700;
    color: var(--secondary-color);
    padding-top: 3px;
    white-space: nowrap;
}

.timeline .event {
    flex: 1;
    padding-left: 60px;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

.timeline .event::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        flex-direction: column;
    }
    .timeline .date {
        width: 100%;
        min-width: auto;
        padding-right: 0;
        text-align: left;
        padding-left: 50px;
        margin-bottom: 0.5rem;
    }
    .timeline .event {
        padding-left: 50px;
    }
    .timeline .event::before {
        left: 14px;
        top: -24px;
    }
}

/* Specification Comparison Table (Student Competition Table) */
.spec-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 0.5rem;
}

.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
    font-size: 1.05rem;
}

.spec-table th.spec-label {
    width: 150px;
    min-width: 130px;
    background: transparent;
    padding: 0.25rem 0.5rem 0.25rem 0;
    vertical-align: top;
    text-align: center;
    white-space: nowrap;
}

.spec-badge {
    display: inline-block;
    width: 100%;
    background-color: #d1d5db;
    color: #111827;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.55rem 0.75rem;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: center;
}

.spec-table td.spec-content {
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.7;
    padding: 0.75rem 1.25rem;
    vertical-align: top;
}

.spec-table td.spec-content ul,
.spec-table td.spec-content ol {
    margin: 0;
}

.spec-table td.spec-content li {
    margin-bottom: 0.5rem;
}

.spec-table td.spec-content li:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td {
        display: block;
        width: 100%;
    }
    .spec-table tr {
        margin-bottom: 1.5rem;
    }
    .spec-table th.spec-label {
        width: 100%;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    .spec-table td.spec-content {
        padding: 0.5rem 0;
    }
}

/* Domain Direction Sub-Table (領域方向表格) */
.domain-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 0.5rem;
}

.domain-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    background-color: #ffffff;
}

.domain-table th {
    background-color: #e5e7eb;
    color: #111827;
    font-weight: 700;
    padding: 0.6rem 0.85rem;
    text-align: left;
    border: 1px solid #d1d5db;
}

.domain-table th.domain-col-title {
    width: 140px;
    white-space: nowrap;
}

.domain-table td {
    padding: 0.6rem 0.85rem;
    border: 1px solid #e5e7eb;
    vertical-align: top;
    color: var(--text-main);
    line-height: 1.6;
}

.domain-table td.domain-title {
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    width: 140px;
}

/* 8. Accommodations & Venue Grid */
.venue-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.venue-info-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.venue-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.venue-info-item {
    background: #f9fafb;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.venue-info-item h4 {
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.3rem;
}

.venue-info-item p {
    font-size: 0.92rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .hotel-grid {
        grid-template-columns: 1fr;
    }
}

.hotel-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.hotel-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f3f4f6;
}

.hotel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.hotel-stars {
    color: #f59e0b;
    font-size: 0.95rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.hotel-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hotel-info-list li {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 0.4rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.2rem;
}

.hotel-info-list li::before {
    content: "•";
    position: absolute;
    left: 0.3rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* CMT Acknowledgement Note */
.cmt-note {
    max-width: 760px;
    margin: 2.5rem auto 0 auto;
    text-align: center;
    padding: 1.1rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.cmt-note p {
    margin: 0;
}

/* 7. Schedule Section Layout Optimization - Ultra Compact */
#schedule.section {
    padding: 3rem 0;
}

#schedule > .container {
    padding: 2.5rem 3rem;
}

#schedule .section-header {
    margin-bottom: 1.2rem;
    text-align: center;
}

#schedule .section-title {
    font-size: 1.75rem;
}

#schedule .submission-content {
    gap: 0.5rem;
}

#schedule .submission-block {
    padding: 0;
}

#schedule .timeline {
    max-width: 440px;
    margin: 0 auto;
}

#schedule .timeline::before {
    left: 150px;
}

#schedule .timeline .date {
    width: 150px;
    min-width: 150px;
    padding-right: 15px;
    font-size: 0.95rem;
}

#schedule .timeline .event {
    padding-left: 40px;
    font-size: 0.98rem;
}

#schedule .timeline .event::before {
    left: 14px;
    top: 4px;
    width: 12px;
    height: 12px;
}

#schedule .timeline .timeline-item {
    margin-bottom: 0.75rem;
}

#schedule .timeline-item:last-child {
    margin-bottom: 0;
}

#schedule .cmt-note {
    max-width: 480px;
    margin: 1.2rem auto 0 auto;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    line-height: 1.45;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    border-left-width: 3px;
}

@media (max-width: 768px) {
    #schedule.section {
        padding: 1.8rem 0;
    }
    #schedule > .container {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
    #schedule .section-header {
        margin-bottom: 1rem;
    }
}

/* Template Download Buttons */
.template-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    background-color: #ffffff;
    color: var(--primary-color);
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.template-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.template-btn.accent {
    background-color: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.template-btn.accent:hover {
    background-color: #3730a3;
    border-color: #3730a3;
}









