:root {
    --primary-color: #5e2a84;
    --primary-light: #7b42a4;
    --accent-color: #f2a900;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', '微軟正黑體', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

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

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 1rem;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Noto Serif TC', 'Noto Sans TC', 'PingFang TC', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Topbar */
.topbar {
    display: none;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.875rem;
    padding: 8px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left a,
.topbar-right a {
    color: #e0d4e8;
    margin-right: 16px;
}

.topbar-left a:hover,
.topbar-right a:hover {
    color: var(--accent-color);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Header Navigation */
.header {
    background-color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    position: sticky;
    top: 0;
    z-index: 1200;
    box-shadow: 0 10px 24px rgba(94, 42, 132, 0.18);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 224px;
    height: 56px;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
    position: relative;
}

.main-nav a:not(.btn-member):hover {
    color: #fff;
}

.main-nav a:not(.btn-member)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.main-nav a:not(.btn-member):hover::after {
    width: 100%;
}

.btn-member {
    background-color: var(--accent-color);
    color: #3c145d !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(242, 169, 0, 0.28);
}

.btn-member:hover {
    background-color: #ffd56a;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(242, 169, 0, 0.36);
}

.article-news-aside a.active {
  font-weight: 800;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: opacity 0.45s ease, background-image 0.45s ease;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 980px;
    width: 100%;
}

.hero-tagline {
    position: relative;
    padding-left: 24px;
}

.tagline-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: var(--accent-color);
    border-radius: 4px;
}

.hero-tagline h2 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    animation: fadeInUp 1s ease-out forwards;
    white-space: nowrap;
}

.hero-tagline p {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 2px;
    animation: fadeInUp 1.2s ease-out forwards;
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(60, 20, 93, 0.28);
    backdrop-filter: blur(8px);
}

.hero-indicator {
    width: 30px;
    height: 6px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.75);
    padding: 0;
    appearance: none;
}

.hero-indicator.active {
    background-color: var(--accent-color);
    border-color: #fff;
    width: 52px;
}

.hero-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Discover Section */
.discover-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: stretch;
}

.discover-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.discover-title h2 {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.discover-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.nav-arrows {
    display: flex;
    gap: 16px;
}

.arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.discover-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-meta {
    padding: 16px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    min-height: 80px;
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.1rem;
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-main);
    margin-bottom: 8px;
}

.card-body .author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Events Section */
.vision-statement {
    text-align: center;
    margin-bottom: 60px;
}

.vision-statement .small-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.vision-statement h2 {
    font-size: 2.2rem;
    color: var(--text-main);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    font-family: 'Noto Sans TC', sans-serif;
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab:hover:not(.active) {
    color: var(--text-main);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.event-item {
    display: flex;
    align-items: center;
    min-width: 0;
    background: var(--bg-white);
    padding: 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid transparent;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-color);
}

.event-item:nth-child(even):hover {
    border-left-color: var(--accent-color);
}

.event-date {
    background-color: var(--bg-light);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 120px;
    max-width: 180px;
    margin-right: 20px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-date strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.event-date span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-title {
    font-weight: 500;
    font-size: 1.1rem;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.more-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.more-link:hover {
    color: var(--accent-color);
}

.whats-on .section-heading,
.events-list-wrapper .section-heading {
    margin-bottom: 24px;
    font-family: 'Noto Sans TC', sans-serif;
}

.poster-carousel {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.event-poster {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.poster-carousel:hover .event-poster {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.poster-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    min-height: 18px;
    margin-top: 18px;
}

.poster-indicator {
    width: 28px;
    height: 6px;
    border: 1px solid rgba(94, 42, 132, 0.18);
    border-radius: 999px;
    background: rgba(94, 42, 132, 0.24);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    appearance: none;
}

.poster-indicator.active {
    width: 44px;
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.hover-scale:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.leader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leader-badge {
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.leader-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-light), #e2e8f0);
    margin-bottom: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.leader-avatar::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: #cbd5e1;
    border-radius: 50%;
}

.leader h4 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.leader p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ═══ QR Code Side Widget ═══ */
.qrcode-widget {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d1a5c 100%);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    width: 220px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.qrcode-widget.hidden {
    transform: translateX(150%) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.qrcode-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.qrcode-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.qrcode-widget h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 12px;
    font-family: 'Noto Sans TC', sans-serif;
}

.qrcode-frame-mini {
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 8px;
    padding: 0;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.25);
}

.qrcode-hint-mini {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    line-height: 1.5;
}

body.wechat-webview .qrcode-widget {
    display: none !important;
}

/* Embedded Member Portal */
.member-portal-section {
    background:
        linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.member-portal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 14px;
}

.member-portal-head h2 {
    margin-bottom: 0;
}

.member-open-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #cbd9ea;
    border-radius: 8px;
    color: var(--primary-color);
    background: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.member-open-link:hover {
    border-color: var(--primary-color);
    color: #fff;
    background: var(--primary-color);
}

.member-portal-copy {
    max-width: 850px;
    margin: 0 0 26px;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.member-portal-frame-wrap {
    overflow: hidden;
    border: 1px solid #d7e5f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.member-portal-frame {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
    background: transparent;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 180px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: #fff;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

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

.contact-info p {
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.footer-links a {
    margin-left: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Detail pages */
.article-container {
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: calc(100vh - 320px);
    margin: 0;
    padding: 58px max(24px, calc((100vw - 920px) / 2)) 100px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(100deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 58%, rgba(255, 255, 255, 0.82) 100%),
        url("/site/圖片素材/首頁輪播圖片/hero_banner.png") right 34px top 42px / min(360px, 30vw) auto no-repeat,
        url("/site/圖片素材/首頁輪播圖片/arch_card.png") right 110px top 230px / min(240px, 22vw) auto no-repeat;
}

.article-container::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 14% 78%, rgba(94, 42, 132, 0.12), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(242, 169, 0, 0.18), transparent 26%);
    pointer-events: none;
}

.article-container .back-btn {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 3;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.article-header {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 0 28px;
    padding: 26px 30px;
    border: 1px solid rgba(94, 42, 132, 0.12);
    border-left: 6px solid var(--accent-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 38px rgba(42, 26, 68, 0.1);
    backdrop-filter: blur(10px);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-title {
    margin-bottom: 14px;
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    line-height: 1.08;
}

.article-header p {
    max-width: 720px;
    color: var(--text-main);
    font-size: 1.08rem;
    line-height: 1.75;
}

.article-content {
    max-width: 820px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.article-content>img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
}

.content-card {
    padding: 28px 30px;
    border: 1px solid rgba(94, 42, 132, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 44px rgba(42, 26, 68, 0.1);
    backdrop-filter: blur(12px);
}

.content-card p+p {
    margin-top: 16px;
}

.article-news-page {
    background: #eef1f5;
}

.article-news-page .qrcode-widget {
    display: none !important;
}

.article-news-layout {
    width: min(100% - 48px, 1100px);
    min-height: calc(100vh - 220px);
    margin: 0 auto;
    padding: 28px 0 70px;
    background: transparent;
    overflow: visible;
}

.article-breadcrumb {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    color: #5f6675;
    font-size: 0.84rem;
}

.article-breadcrumb a:hover {
    color: var(--primary-color);
}

.article-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.paper-article {
    min-height: 720px;
    padding: 36px 50px 42px;
    background: #fff;
    color: #111;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    font-family: "Microsoft YaHei", "PingFang SC", "Microsoft JhengHei", sans-serif;
}

.paper-article h1 {
    max-width: 660px;
    margin: 0 auto 18px;
    color: #111;
    text-align: center;
    font-size: 1.32rem;
    font-weight: 500;
    line-height: 1.65;
}

.paper-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 72px;
    color: #111;
    font-size: 0.78rem;
}

.paper-meta strong {
    color: var(--primary-color);
}

.paper-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-icon {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 3px;
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.share-wechat {
    background: #20b455;
}

.share-star {
    background: var(--primary-color);
}

.share-rss {
    background: var(--accent-color);
}

.paper-divider {
    height: 1px;
    margin: 22px 0 38px;
    background: #dfe3ea;
}

.paper-body {
    font-size: 0.96rem;
    line-height: 2.05;
}

.paper-body p {
    margin: 0 0 24px;
    text-indent: 2em;
}

.paper-source {
    margin: 34px 0 0;
    color: #111;
    text-align: right;
}

.article-news-aside {
    background: #fff;
}

.aside-block {
    position: relative;
    padding: 30px 30px 26px;
}

.aside-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    width: 36px;
    height: 3px;
    background: #0d6efd;
}

.aside-block:first-child {
    border-top: none;
}

.aside-block+.aside-block {
    border-top: 1px solid #e2e6ed;
}

.aside-block h2 {
    margin: 0 0 16px;
    color: #111;
    font-size: 1.3rem;
    font-family: "Microsoft YaHei", "PingFang SC", "Microsoft JhengHei", sans-serif;
    font-weight: 500;
}

.aside-block li+li {
    margin-top: 12px;
}

.aside-block a {
    display: block;
    color: #263244;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aside-block a:hover {
    color: var(--primary-color);
}

.recommended-list { margin-top: 10px; }
.recommended-list li + li { margin-top: 16px; }
.recommended-list a { 
  display: flex !important; 
  gap: 12px; 
  align-items: center; 
  white-space: normal !important; 
  transition: transform 0.2s ease;
}
.recommended-list a:hover {
  transform: translateX(4px);
  color: var(--primary-color);
}
.recommended-list img { 
  width: 60px; 
  height: 60px; 
  object-fit: cover; 
  border-radius: 6px; 
  flex-shrink: 0;
}
.recommended-list .rec-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.recommended-list .rec-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommended-list .rec-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-about .article-container {
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 58%, rgba(94, 42, 132, 0.12) 100%),
        url("/site/圖片素材/首頁輪播圖片/arch_card.png") right 48px top 54px / min(360px, 30vw) auto no-repeat,
        url("/site/圖片素材/首頁輪播圖片/hero_banner.png") right 132px top 246px / min(230px, 21vw) auto no-repeat;
}

.nav-news .article-container {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 58%, rgba(242, 169, 0, 0.16) 100%),
        url("/site/圖片素材/活動圖片/event_poster.png") right 60px top 62px / min(260px, 22vw) auto no-repeat,
        url("/site/圖片素材/首頁輪播圖片/hero_banner.png") right 138px top 246px / min(250px, 22vw) auto no-repeat;
}

.nav-dev .article-container {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 248, 255, 0.9) 58%, rgba(26, 166, 183, 0.16) 100%),
        url("/site/圖片素材/首頁輪播圖片/hero_banner.png") right 42px top 58px / min(360px, 30vw) auto no-repeat,
        url("/site/圖片素材/首頁輪播圖片/arch_card.png") right 126px top 252px / min(230px, 21vw) auto no-repeat;
}

.nav-contact .article-container {
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 58%, rgba(94, 42, 132, 0.16) 100%),
        url("/site/logo_full.png") right 52px top 60px / min(300px, 28vw) auto no-repeat,
        url("/site/圖片素材/首頁輪播圖片/hero_banner.png") right 116px top 242px / min(250px, 22vw) auto no-repeat;
}

.article-detail .article-container {
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 58%, rgba(94, 42, 132, 0.12) 100%),
        url("/site/圖片素材/首頁輪播圖片/hero_banner.png") right 44px top 56px / min(360px, 30vw) auto no-repeat,
        url("/site/圖片素材/活動圖片/event_poster.png") right 128px top 254px / min(190px, 18vw) auto no-repeat;
}

.nav-news .content-card {
    border-left: 5px solid var(--accent-color);
}

.nav-dev .content-card {
    border-left: 5px solid var(--cyan);
}

.nav-contact .content-card {
    border-left: 5px solid var(--primary-color);
}

/* Article-style layout for secondary and tertiary pages */
.page-feature {
    background: #f6f7fb;
}

.page-feature .article-container {
    display: grid;
    grid-template-columns: 230px minmax(0, 820px);
    justify-content: center;
    gap: 46px;
    width: min(1180px, calc(100% - 48px));
    min-width: 0;
    min-height: calc(100vh - 360px);
    margin: 0 auto;
    padding: 38px 0 92px;
    overflow: hidden;
    background: transparent;
}

.page-feature .article-container::after {
    display: none;
}

.page-feature .article-sidebar {
    grid-row: 1 / span 3;
    align-self: start;
    position: sticky;
    top: 132px;
    border: 1px solid #e7eaf0;
    border-top: 5px solid var(--primary-color);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.06);
    overflow: hidden;
}

.page-feature .article-sidebar a {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 0 24px;
    border-bottom: 1px solid #eef1f5;
    color: #394150;
    font-size: 1rem;
    line-height: 1.4;
}

.page-feature .article-sidebar a:hover,
.page-feature .article-sidebar a.active {
    color: var(--primary-color);
    background: linear-gradient(90deg, rgba(94, 42, 132, 0.1), #fff 52%);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.page-feature .article-container .back-btn {
    grid-column: 2;
    width: fit-content;
    margin: 0 0 12px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
}

.page-feature .article-header {
    grid-column: 2;
    max-width: none;
    margin: 0 0 22px;
    padding: 34px 38px 30px;
    border: 0;
    border-left: 5px solid var(--accent-color);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(30, 41, 59, 0.08);
    backdrop-filter: none;
    text-align: left;
}

.page-feature .article-meta {
    display: flex;
    justify-content: flex-start;
    gap: 10px 18px;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 0.92rem;
    text-align: left;
}

.page-feature .article-title {
    max-width: none;
    margin: 0 0 16px;
    color: #222831;
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: 0;
}

.page-feature .article-header p {
    max-width: 720px;
    margin: 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.85;
    text-align: left;
}

.page-feature .article-content {
    grid-column: 2;
    max-width: none;
    color: #2f3744;
    font-size: 1.02rem;
    line-height: 2;
}

.page-feature .article-content>img {
    display: none;
}

.page-feature .content-card {
    padding: 34px 38px;
    border: 1px solid #e7eaf0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(30, 41, 59, 0.07);
    backdrop-filter: none;
}

.page-feature .content-card p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.page-feature .content-card p:last-child {
    margin-bottom: 0;
}

.page-feature .content-card a {
    color: var(--primary-color);
    font-weight: 700;
}

.page-feature .article-list {
    display: grid;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
}

.page-feature .article-list-item {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid #e7eaf0;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    background: #fff;
    transition: var(--transition);
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.page-feature .article-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 41, 59, 0.08);
}

.page-feature .article-list-title {
    display: block;
    margin-bottom: 8px;
    color: #222831;
    font-size: 1.08rem;
    font-weight: 800;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.page-feature .article-list-desc {
    display: block;
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.75;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.page-feature .qrcode-widget {
    display: none;
}

.nav-news.page-feature .article-title,
.article-detail.page-feature .article-title {
    color: #2f3a45;
}

.nav-contact.page-feature .article-title {
    color: #2f3a45;
}

.contact-standalone {
    background: #f6f7fb;
}

.contact-page {
    width: min(1120px, calc(100% - 48px));
    min-height: calc(100vh - 250px);
    margin: 0 auto;
    padding: 54px 0 90px;
}

.contact-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
    padding: 42px 46px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(120deg, #3c145d, #5e2a84 62%, #14796a);
    box-shadow: 0 18px 46px rgba(42, 26, 68, 0.18);
}

.contact-hero h1 {
    margin: 8px 0 14px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.contact-hero p {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.06rem;
    line-height: 1.8;
}

.contact-back {
    flex: 0 0 auto;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 260px;
    padding: 26px;
    border: 1px solid #e7eaf0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(30, 41, 59, 0.07);
    overflow-wrap: anywhere;
}

.contact-card span {
    color: var(--accent-color);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-card h2 {
    margin: 10px 0 14px;
    color: #222831;
    font-size: 1.35rem;
}

.contact-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

.contact-card img {
    width: 136px;
    height: 136px;
    margin-top: 18px;
    border-radius: 6px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
}

.contact-actions a {
    padding: 9px 14px;
    border-radius: 6px;
    color: #fff;
    background: var(--primary-color);
    font-weight: 700;
}

.news-standalone {
    background: #e8edf3;
}

.news-page {
    width: min(100%, 760px);
    min-height: calc(100vh - 220px);
    margin: 40px auto;
    background: #fff;
    box-shadow: 0 20px 70px rgba(24, 32, 51, 0.12);
    overflow: hidden;
    border-radius: 12px;
}

.news-hero {
    position: relative;
    min-height: 420px;
    color: #fff;
    overflow: hidden;
    background: #3c145d;
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(60, 20, 93, 0.94), rgba(94, 42, 132, 0.7), rgba(7, 56, 73, 0.42)),
        url("/site/圖片素材/首頁輪播圖片/hero_banner.png") center / cover;
}

.news-hero-inner {
    position: relative;
    z-index: 1;
    padding: max(32px, env(safe-area-inset-top)) 24px 34px;
}

.news-logo {
    width: min(86%, 430px);
    margin-bottom: 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.news-hero h1 {
    margin: 10px 0 14px;
    color: #fff;
    font-size: clamp(2.7rem, 7vw, 4.8rem);
    line-height: 1.08;
}

.news-hero p:not(.eyebrow) {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 1.75;
}

.news-hero .eyebrow {
    margin: 28px 0 10px;
    color: #ffd871;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.news-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.news-actions .primary-action,
.news-actions .secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
}

.news-actions .primary-action {
    background: var(--accent-color);
    color: #28123b;
}

.news-actions .secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.48);
    color: #fff;
}

.news-quick-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.news-quick-nav a {
    display: grid;
    place-items: center;
    min-height: 58px;
    padding: 0 8px;
    color: var(--primary-color);
    font-weight: 800;
    text-align: center;
}

.news-section {
    padding: 38px 28px 60px;
}

.news-section-head {
    margin-bottom: 20px;
}

.news-section-head p {
    margin: 0 0 6px;
    color: var(--accent-color);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.news-section-head h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.news-list {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.news-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(24, 32, 51, 0.06);
    overflow-wrap: anywhere;
}

.news-card h3 {
    margin: 0;
    color: #182033;
    font-size: 1.25rem;
    line-height: 1.35;
}

.news-card p {
    margin: 0;
    color: #667085;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* News Pagination */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 32px;
    padding: 18px 0 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.pagi-total {
    color: #667085;
    margin-right: 10px;
    font-size: 0.85rem;
}

.pagi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    background: #fff;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.pagi-btn:hover:not(:disabled) {
    border-color: #4086f4;
    color: #4086f4;
    background: #f0f5ff;
}

.pagi-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagi-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    background: #fff;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.pagi-num:hover {
    border-color: #4086f4;
    color: #4086f4;
}

.pagi-num.active {
    background: #4086f4;
    border-color: #4086f4;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(64, 134, 244, 0.3);
}

.pagi-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    color: #9aa4b2;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.pagi-jump {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    color: var(--text-main);
    font-size: 0.85rem;
}

.pagi-input {
    width: 48px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    text-align: center;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.pagi-input::-webkit-inner-spin-button,
.pagi-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pagi-input:focus {
    border-color: #4086f4;
    box-shadow: 0 0 0 2px rgba(64, 134, 244, 0.15);
}

.pagi-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    background: #fff;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.pagi-go:hover {
    border-color: #4086f4;
    color: #4086f4;
    background: #f0f5ff;
}

@media (max-width: 520px) {
    .news-pagination {
        gap: 4px;
        padding: 14px 8px 0;
        font-size: 0.82rem;
    }

    .pagi-total {
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
        margin-right: 0;
    }

    .pagi-btn {
        min-width: 52px;
        height: 28px;
        font-size: 0.78rem;
    }

    .pagi-num {
        min-width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .pagi-jump {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
        margin-left: 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {

    .discover-grid,
    .events-grid,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .news-quick-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-hero,
    .news-hero-inner {
        min-height: 430px;
    }

    .news-logo {
        width: 100%;
        margin-bottom: 28px;
    }

    .news-section {
        padding: 30px 18px 48px;
    }

    .contact-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .discover-title {
        text-align: center;
        margin-bottom: 24px;
    }

    .nav-arrows {
        justify-content: center;
    }

    .discover-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .member-portal-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-portal-frame {
        height: 980px;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        /* Add hamburger menu for real impl */
    }

    .hero-tagline h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 520px) {
    .hero {
        min-height: 440px;
    }

    .hero-tagline {
        padding-left: 16px;
    }

    .hero-tagline h2 {
        font-size: 1.55rem;
    }

    .hero-tagline p {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero-indicator {
        width: 26px;
    }

    .hero-indicator.active {
        width: 38px;
    }

    .member-portal-frame {
        height: 1060px;
    }
}

/* Responsive repair for WeChat webview and desktop */
.article-title,
.article-content,
.content-card,
.card,
.card-meta,
.card-body,
.event-item,
.event-item *,
.page-feature .article-header,
.page-feature .article-header *,
.page-feature .content-card,
.page-feature .content-card *,
.page-feature .article-list,
.page-feature .article-list * {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
}

@media (max-width: 768px) {
    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .topbar-left {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .topbar-left a,
    .topbar-right a {
        margin-right: 0;
    }

    .header-inner {
        height: auto;
        min-height: 88px;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .logo {
        width: min(100%, 224px);
        height: 56px;
        padding: 0;
    }

    .logo img {
        width: 100%;
        height: 100%;
    }

    .main-nav ul {
        display: flex;
        width: 100%;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .main-nav li {
        flex: 0 0 auto;
    }

    .main-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
        white-space: nowrap;
    }

    .main-nav a::after {
        display: none !important;
    }

    .btn-member {
        border-radius: 8px;
        padding: 0 14px;
    }

    .hero-tagline h2 {
        max-width: 100%;
        white-space: normal;
    }

    .qrcode-widget {
        right: 14px;
        bottom: 14px;
        width: min(320px, calc(100vw - 28px));
        padding: 24px 18px 20px;
    }

    .qrcode-frame-mini {
        width: 170px;
        height: 170px;
    }

    .page-feature .article-container {
        display: block;
        width: min(100% - 28px, 1200px);
        padding: 26px 0 70px;
    }

    .page-feature .article-sidebar {
        margin-bottom: 26px;
        overflow-x: auto;
        border-top-width: 5px;
    }

    .page-feature .article-sidebar ul {
        display: flex;
        min-width: max-content;
    }

    .page-feature .article-sidebar a {
        min-height: 52px;
        padding: 0 18px;
        white-space: nowrap;
    }

    .page-feature .article-header {
        margin: 14px 0 20px;
        padding: 24px 22px 22px;
        text-align: left;
    }

    .page-feature .article-title {
        margin-left: 0;
        margin-right: 0;
        font-size: 1.7rem;
    }

    .page-feature .content-card {
        padding: 24px 22px;
    }

    .article-news-layout {
        width: min(100% - 28px, 980px);
        padding: 18px 0 48px;
    }

    .article-breadcrumb {
        justify-content: flex-start;
        flex-wrap: wrap;
        font-size: 0.78rem;
    }

    .article-news-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .paper-article {
        min-height: auto;
        padding: 30px 24px 36px;
    }

    .paper-article h1 {
        font-size: 1.25rem;
    }

    .paper-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-news-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .aside-block+.aside-block {
        border-top: 4px solid var(--accent-color);
    }

    .aside-block+.aside-block::before {
        display: none;
    }
}

@media (max-width: 520px) {
    .article-container {
        min-height: auto;
        margin: 0 !important;
        padding: 28px 18px 70px !important;
        background-position: right 12px top 18px, right 42px top 150px !important;
        background-size: auto 150px, auto 96px !important;
    }

    .page-feature .article-container {
        padding: 22px 16px 64px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        background: #fff !important;
    }

    .article-container .back-btn {
        margin-bottom: 18px;
    }

    .article-header {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-bottom: 18px;
        padding: 16px 18px;
    }

    .article-header p {
        max-width: none;
    }

    .article-content {
        max-width: none;
    }

    .article-title {
        font-size: 2rem !important;
        line-height: 1.25;
    }

    .page-feature .article-title {
        font-size: 1.55rem !important;
        line-height: 1.35;
    }

    .page-feature .article-header {
        padding: 20px 18px;
    }

    .article-meta {
        gap: 8px !important;
        flex-direction: column;
    }

    .content-card {
        padding: 18px !important;
    }

    .article-news-layout {
        width: 100%;
        padding: 0 0 38px;
    }

    .paper-article {
        padding: 26px 18px 32px;
    }

    .paper-body {
        font-size: 0.95rem;
        line-height: 1.95;
    }

    .article-news-aside {
        display: block;
    }

    .aside-block {
        padding: 0 20px 22px;
    }
}



/* ══════════════════════════════════════════════════
   Inline Article Reader Overlay
   ══════════════════════════════════════════════════ */
.article-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.article-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.article-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 40, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.article-overlay-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1060px;
    margin: 20px;
    background: var(--bg-white);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-overlay.active .article-overlay-panel {
    transform: translateY(0);
}

.article-overlay-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border-radius: 18px 18px 0 0;
    font-size: 0.85rem;
}

.article-overlay-head a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.article-overlay-head a:hover {
    color: #fff;
}

.article-overlay-head span {
    margin: 0 6px;
    opacity: 0.5;
}

.article-overlay-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.article-overlay-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.article-overlay-body {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0;
    min-height: 300px;
}

.article-overlay-main {
    padding: 36px 40px 48px;
    border-right: 1px solid var(--border-color);
}

.article-overlay-main h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-overlay-meta {
    display: flex;
    gap: 24px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.article-overlay-meta strong {
    color: var(--primary-color);
}

.article-overlay-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 30%, transparent);
    margin-bottom: 24px;
    border-radius: 2px;
}

.article-overlay-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-main);
    margin-bottom: 16px;
    text-align: justify;
}

.article-overlay-source {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.article-overlay-aside {
    padding: 36px 24px;
    background: var(--bg-light);
    border-radius: 0 0 18px 0;
}

.article-overlay-aside h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
}

.article-overlay-aside section {
    margin-bottom: 28px;
}

.article-overlay-aside ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-overlay-aside li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.article-overlay-aside li:last-child {
    border-bottom: none;
}

.article-overlay-aside a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.article-overlay-aside a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .article-overlay-panel {
        margin: 0;
        border-radius: 0;
        max-width: 100%;
    }

    .article-overlay-head {
        border-radius: 0;
        padding: 12px 16px;
    }

    .article-overlay-body {
        grid-template-columns: 1fr;
    }

    .article-overlay-main {
        padding: 24px 20px 32px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .article-overlay-aside {
        border-radius: 0;
    }
}

/* Unified Card Layout for About & Member pages */
.page-feature .article-container.unified-card-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 24px 80px;
}

.page-feature .unified-card-layout .back-btn {
    align-self: flex-start;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.unified-card {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.05);
    border: 1px solid #e7eaf0;
    border-top: 5px solid var(--primary-color);
    overflow: hidden;
}

.unified-card .card-header {
    padding: 40px 45px 25px;
}

.unified-card .card-meta {
    display: flex;
    gap: 15px;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.unified-card .card-title {
    font-size: 2.2rem;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 12px;
}

.unified-card .card-subtitle {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
}

.unified-card .card-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0 45px;
}

.unified-card .card-body {
    padding: 30px 45px 45px;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.95;
}

.unified-card .card-body p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.unified-card .card-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .unified-card .card-header {
        padding: 30px 24px 20px;
    }
    .unified-card .card-meta {
        flex-wrap: wrap;
        gap: 6px 15px;
    }
    .unified-card .card-meta > span {
        white-space: nowrap;
        max-width: 100%;
    }
    .unified-card .card-body {
        padding: 20px 24px 30px;
    }
    .unified-card .card-divider {
        margin: 0 24px;
    }
    .news-page {
        margin: 0 auto;
        border-radius: 0;
    }
}

/* ══════════════════════════════════════════════════════════════ */
/*                    MOBILE RESPONSIVE STYLING                  */
/* ══════════════════════════════════════════════════════════════ */

/* Tablet & Mobile tweaks */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* Main Mobile Breakpoint (Phones) */
@media (max-width: 768px) {
    /* Layout & Section Spacing */
    .section-padding {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    /* Topbar */
    .topbar-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .topbar-left a, 
    .topbar-right a {
        margin: 0 8px;
    }

    /* Header & Navigation Adaptability */
    .header-inner {
        height: auto;
        flex-direction: column;
        padding: 15px 10px;
        gap: 12px;
    }
    
    .logo {
        width: 180px;
        height: 45px;
        margin: 0 auto;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }
    
    .main-nav a {
        font-size: 0.85rem;
        padding: 4px 6px;
    }
    
    .main-nav a:not(.btn-member)::after {
        display: none; /* Disable animated underline on mobile to save space */
    }
    
    .btn-member {
        padding: 6px 14px;
        font-size: 0.82rem;
        border-radius: 20px;
        margin-top: 4px;
        display: inline-block;
    }

    /* Hero Banner Text Wrapping & Scale */
    .hero {
        height: auto;
        min-height: 380px;
        padding: 60px 0;
    }
    
    .hero::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 60%, rgba(255, 255, 255, 0.75) 100%);
    }
    
    .hero-tagline {
        padding-left: 16px;
        text-align: left;
    }
    
    .hero-tagline h2 {
        font-size: 2rem !important;
        white-space: normal !important;
        line-height: 1.35;
        margin-bottom: 0.75rem;
    }
    
    .hero-tagline p {
        font-size: 1rem !important;
        letter-spacing: 1px;
        line-height: 1.5;
    }
    
    .hero-indicators {
        bottom: 15px;
    }

    /* Latest News Grid (Discover Section) */
    .discover-cards {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0;
    }
    
    .card {
        margin: 0 auto;
        max-width: 480px;
        width: 100%;
    }
    
    .card-img {
        height: 180px;
    }

    /* Academic Events Section */
    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .event-date {
        margin-right: 0;
        margin-bottom: 4px;
        width: 100%;
        max-width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
    }
    
    .event-date strong {
        display: inline;
        font-size: 0.95rem;
    }
    
    .event-date span {
        display: inline;
        font-size: 0.8rem;
    }

    .poster-carousel {
        max-width: 320px;
    }

    /* QR Code Side Widget (Convert to Block on Mobile) */
    .qrcode-widget {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 40px auto 20px;
        width: 100%;
        max-width: 280px;
        box-shadow: var(--shadow-md);
        display: block !important;
    }
    
    .qrcode-widget.hidden {
        display: none !important;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 24px;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
    
    .footer-col h4 {
        margin-bottom: 12px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 16px;
    }
    
    .footer-links a {
        margin: 0 8px;
    }

    /* Sub-pages Article Grid Sidebar to Tabs Conversion */
    .page-feature .article-container {
        grid-template-columns: 1fr !important;
        gap: 24px;
        padding: 20px 12px 40px;
    }
    
    .page-feature .article-sidebar {
        grid-row: auto;
        position: relative;
        top: 0;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        border-radius: 4px;
    }
    
    .page-feature .article-sidebar a {
        flex: 1 1 auto;
        min-height: 45px;
        padding: 0 12px;
        justify-content: center;
        font-size: 0.88rem;
        border-bottom: 1px solid #eef1f5;
    }
    
    .page-feature .article-sidebar a:hover,
    .page-feature .article-sidebar a.active {
        background: rgba(94, 42, 132, 0.05);
        box-shadow: inset 0 -3px 0 var(--primary-color);
    }
    
    .page-feature .article-header {
        grid-column: 1 !important;
        padding: 20px 16px;
    }
    
    .page-feature .article-title {
        font-size: 1.5rem !important;
    }
    
    .page-feature .article-content {
        grid-column: 1 !important;
        font-size: 0.95rem;
    }
    
    .page-feature .content-card {
        padding: 20px 16px;
    }
    
    .page-feature .article-container .back-btn {
        grid-column: 1 !important;
    }

    /* Contact Page Adjustments */
    .contact-page {
        padding: 24px 0 50px;
    }
    
    .contact-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
    }
    
    .contact-back {
        width: 100%;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .contact-card {
        min-height: auto;
        padding: 20px;
    }

    /* Article Detail Page Adjustments */
    .article-container {
        padding: 24px 16px 50px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    }
    
    .article-header {
        padding: 16px 20px;
        border-left-width: 4px;
    }
    
    .article-title {
        font-size: 1.8rem !important;
    }
    
    .article-content {
        font-size: 0.98rem;
        line-height: 1.8;
    }

    /* News Feed Layout Adjustments */
    .article-news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .paper-article {
        padding: 20px 16px;
        min-height: auto;
    }
    
    .paper-article h1 {
        font-size: 1.15rem;
    }
    
    .paper-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .article-news-aside {
        width: 100%;
    }
    
    .aside-block {
        padding: 20px 16px;
    }
    
    .aside-block::before {
        left: 16px;
    }
}

/* Final cascade for the September optimization.  Kept last so legacy responsive
   rules cannot restore the old white hero, wrapped navigation, or oversized QR. */
/* The icon drawer is mobile-only; desktop keeps its existing text navigation. */
@media (min-width: 769px) {
    .header .mobile-menu-toggle,
    .header .mobile-nav-head,
    .header .nav-backdrop,
    .header .nav-glyph {
        display: none !important;
    }
    .header .nav-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
    }
}

.mobile-menu-toggle,
.mobile-nav-head,
.nav-backdrop,
.nav-glyph {
    display: none;
}

.discover.container {
    width: 100%;
}

.hero-tagline {
    max-width: 880px;
}

.home-news-card .news-card-image {
    transition: transform .45s ease;
}

.home-news-card:hover .news-card-image {
    transform: scale(1.045);
}

.home-news-card .author,
.home-news-card .read-more {
    font-size: .84rem;
}

.qrcode-close {
    top: 8px;
    right: 9px;
}

.qrcode-drag-handle:active {
    cursor: grabbing;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.hero {
    padding: 0;
    touch-action: pan-y;
}

.hero-image,
.hero-tagline {
    transition: opacity .22s ease, transform .22s ease;
}

.hero.is-changing .hero-image,
.hero.is-changing .hero-tagline {
    opacity: .28;
}

.hero.is-changing .hero-tagline {
    transform: translateY(7px);
}

.hero::after {
    background: linear-gradient(180deg, rgba(15, 15, 18, .08) 0%, rgba(18, 17, 21, .18) 48%, rgba(20, 16, 25, .8) 100%);
}

.hero-content {
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 72px;
}

.hero-tagline h2,
.hero-tagline p {
    color: #fff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .5);
}

.card.home-news-card {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    isolation: isolate;
    overflow: hidden;
    border: 0;
    background: #2a2330;
    color: #fff;
}

.card.home-news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .02) 18%, rgba(0, 0, 0, .25) 54%, rgba(0, 0, 0, .9) 100%);
}

.home-news-card .news-card-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-card .news-card-content {
    width: 100%;
    padding: 26px 24px 22px;
}

.home-news-card .card-meta {
    display: -webkit-box;
    min-height: 0;
    margin: 0 0 10px;
    padding: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .8);
    border: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-news-card .news-card-title {
    display: block;
    margin-bottom: 14px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.35;
}

.home-news-card .news-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.home-news-card .author {
    color: rgba(255, 255, 255, .82);
}

.home-news-card .read-more {
    color: #ffd56a;
    white-space: nowrap;
}

.qrcode-widget {
    width: 186px;
    padding: 16px 14px 14px;
    border: 1px solid rgba(255, 255, 255, .46);
    background: linear-gradient(145deg, #9469b5 0%, #74469a 100%);
    box-shadow: 0 16px 38px rgba(47, 22, 67, .2);
}

.qrcode-widget.is-dragging {
    transition: none;
    user-select: none;
}

.qrcode-drag-handle {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0 22px 0 2px;
    cursor: grab;
    touch-action: none;
}

.qrcode-drag-handle > span {
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    letter-spacing: -3px;
}

.qrcode-widget h4 {
    margin: 0 0 10px;
    font-size: .9rem;
}

.qrcode-frame-mini {
    width: 132px;
    height: 132px;
    margin-bottom: 10px;
}

.qrcode-img {
    transform: none;
}

.qrcode-hint-mini {
    font-size: .73rem;
}

.contact-hero {
    background: linear-gradient(120deg, #3c145d 0%, #5e2a84 54%, #8251a3 100%);
}

.contact-info a {
    color: rgba(255, 255, 255, .82);
}

.contact-info h4 a {
    color: #fff;
}

@media (max-width: 768px) {
    body.mobile-nav-open {
        overflow: hidden;
    }

    .header-inner {
        height: 68px !important;
        min-height: 68px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 9px 16px !important;
        gap: 12px !important;
    }

    .logo {
        width: 148px !important;
        height: 42px !important;
        margin: 0 !important;
    }

    .mobile-menu-toggle {
        display: grid !important;
        width: 42px;
        height: 42px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, .32);
        border-radius: 12px;
        background: rgba(255, 255, 255, .1);
        place-content: center;
        gap: 4px;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
    }

    .main-nav {
        position: fixed !important;
        top: 0;
        right: 0;
        z-index: 2200;
        display: block !important;
        width: min(84vw, 330px) !important;
        height: 100dvh;
        padding: 18px;
        overflow-y: auto;
        background: linear-gradient(180deg, #542276, #321348);
        box-shadow: -20px 0 48px rgba(23, 10, 34, .34);
        transform: translateX(105%);
        transition: transform .25s ease;
    }

    body.mobile-nav-open .main-nav {
        transform: translateX(0);
    }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
        color: #fff;
    }

    .mobile-menu-close {
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, .26);
        border-radius: 999px;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        font-size: 25px;
    }

    .main-nav ul {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        width: 100%;
        max-height: calc(100dvh - 92px);
        gap: 10px !important;
        padding: 0 !important;
        overflow-y: auto;
    }

    .main-nav li {
        min-width: 0;
    }

    .main-nav a,
    .main-nav .btn-member {
        display: flex !important;
        width: 100%;
        min-height: 76px;
        margin: 0 !important;
        padding: 10px 6px !important;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 13px;
        background: rgba(255, 255, 255, .08);
        box-shadow: none;
        color: #fff !important;
    }

    .main-nav .btn-member {
        border-color: rgba(242, 169, 0, .58);
        background: rgba(242, 169, 0, .17);
    }

    .nav-glyph {
        display: grid !important;
        width: 38px;
        height: 38px;
        border-radius: 11px;
        background: rgba(255, 255, 255, .13);
        color: #fff;
        font-size: 23px;
        line-height: 1;
        place-items: center;
    }

    .nav-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 2100;
        display: block;
        border: 0;
        background: rgba(24, 11, 32, .52);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    body.mobile-nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .hero {
        height: 440px !important;
        min-height: 440px !important;
        padding: 0 !important;
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(15, 15, 18, .05) 0%, rgba(18, 17, 21, .18) 46%, rgba(20, 16, 25, .84) 100%) !important;
    }

    .hero-content {
        padding: 0 20px 64px;
    }

    .hero-tagline {
        width: 100%;
        padding-left: 14px !important;
    }

    .hero-tagline h2 {
        color: #fff !important;
        font-size: clamp(1.72rem, 8vw, 2.15rem) !important;
    }

    .hero-tagline p {
        color: rgba(255, 255, 255, .88) !important;
        font-size: .92rem !important;
    }

    .card.home-news-card {
        min-height: 320px;
    }

    .discover.container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .qrcode-widget {
        position: fixed !important;
        top: auto;
        right: 10px;
        bottom: 10px;
        left: auto;
        display: block !important;
        width: 148px;
        max-width: none;
        margin: 0 !important;
        padding: 13px 10px 10px;
        border-radius: 14px;
    }

    .qrcode-widget.hidden {
        display: block !important;
        opacity: 0;
        transform: translateX(150%) scale(.9);
        pointer-events: none;
    }

    .qrcode-widget h4 {
        margin-bottom: 8px;
        font-size: .74rem;
        line-height: 1.3;
    }

    .qrcode-close {
        top: 5px;
        right: 7px;
        font-size: 20px;
    }

    .qrcode-frame-mini {
        width: 104px;
        height: 104px;
        margin-bottom: 0;
    }

    .qrcode-hint-mini {
        display: none;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr !important;
        gap: 26px 18px !important;
        text-align: center;
    }

    .footer-logo {
        max-width: 132px;
    }

    .contact-info a {
        position: relative;
        z-index: 1;
        display: inline-block;
        padding: 3px 0;
    }
}

/* Desktop narrow windows retain a single horizontal text menu. */
@media (max-width: 768px) and (pointer: fine) {
    .header .header-inner { height: 64px !important; min-height: 64px !important; flex-direction: row !important; padding: 10px 12px !important; gap: 12px !important; }
    .header .logo { width: 120px !important; height: 36px !important; margin: 0 !important; flex-shrink: 0; }
    .header .mobile-menu-toggle, .header .mobile-nav-head,
    .header .nav-backdrop, .header .nav-glyph { display: none !important; }
    .header .main-nav { position: static !important; width: auto !important; min-width: 0; flex: 1; height: auto; padding: 0; overflow-x: auto; background: none; box-shadow: none; transform: none; transition: none; }
    .header .main-nav ul { display: flex !important; flex-wrap: nowrap; justify-content: flex-start; width: max-content; max-height: none; gap: 6px !important; overflow: visible; }
    .header .main-nav a { width: auto; min-height: 0; padding: 8px !important; border-radius: 8px; white-space: nowrap; font-size: 12px; }
    .header .nav-label { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }
    body.mobile-nav-open { overflow: auto; }
}
@media (max-width: 768px) and (pointer: coarse) {
    .header .logo { width: 120px !important; height: 36px !important; margin: 0 !important; }
    .header .main-nav a { flex-direction: column; gap: 8px; min-height: 104px; }
    .header .nav-glyph { width: 44px; height: 44px; background: transparent; }
    .header .nav-glyph svg { width: 34px; height: 34px; }
    .header .nav-label { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; font-size: 12px; line-height: 1.4; }
}

@media (min-width: 769px) {
    .header .header-inner { max-width: none; width: 100%; height: 68px; padding: 10px 24px; gap: 24px; }
    .header .logo { width: 160px; height: 44px; margin: 0; flex-shrink: 0; }
    .header .main-nav ul { flex-wrap: nowrap; }
}
