* {
    font-family: 'LiHei Pro', '微軟正黑體', Microsoft JhengHei, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f0f0f0;
}

/* ===== Desktop Layout ===== */
.page-layout {
    display: flex;
    height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 210px;
    min-width: 210px;
    flex-shrink: 0;
    background: #1e293b;
    color: #e2e8f0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-home {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.sidebar-home a {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.sidebar-home a:hover {
    color: #e2e8f0;
}

.sidebar-visits {
    padding: 12px 16px;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    bottom: 0;
    background: #1e293b;
}

.sidebar-title {
    padding: 24px 16px 16px;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.sidebar-nav li a {
    display: block;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-nav li a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
}

.sidebar-nav li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: #60a5fa;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.banner img {
    width: 100%;
    display: block;
    max-height: 150px;
    object-fit: contain;
    background-color: #FFE9EB;    
}

.content-body {
    flex: 1;
    min-height: 0;
    padding: 1em;
    display: flex;
    flex-direction: column;
}

.content-body h1 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #1e293b;
}

.content-placeholder {
    margin-left: .5em;
}

/* ===== 左右兩欄版面 ===== */
.content-columns {
    display: flex;
    gap: 2em;
    flex: 1;
    min-height: 0;
}

.schedule-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 480px;
    font-size: 0.95rem;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    text-align: left;
}

.schedule-table thead th {
    background: #1e293b;
    color: #ffffff;
    font-weight: bold;
}

.schedule-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.col-text {
    flex: 1;
    min-width: 0;
    line-height: 1.8;
    font-size: 0.95rem;
    color: #2c3e50;
}

.col-text p {
    margin: 0 0 0.6em;
}

.col-text ol {
    padding-left: 1.4em;
    margin: 0;
}

.col-text ol li {
    margin-bottom: 0.3em;
}

.col-image {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
}

.col-image img {
    width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    object-position: top;
    border-radius: 8px;
    
}

@media (max-width: 768px) {
    .content-columns {
        flex-direction: column;
    }
    .col-image {
        order: -1;
    }
}

/* ===== Mobile Hamburger Button ===== */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 990;
    background: #1e293b;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1;
}

/* ===== UIkit Offcanvas Overrides ===== */
.uk-offcanvas-bar {
    background: #1e293b !important;
}

.uk-offcanvas-bar .sidebar-title {
    padding: 20px 16px 12px;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 8px;
    color: #e2e8f0;
}

.uk-offcanvas-bar .sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uk-offcanvas-bar .sidebar-nav li a {
    display: block;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid transparent;
}

.uk-offcanvas-bar .sidebar-nav li.active a {
    color: #ffffff;
    border-left-color: #60a5fa;
}

/* ===== Responsive ===== */
@media (max-width: 959px) {
    .sidebar {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }

    .main-content {
        padding-top: 0px;
    }
}
