/* ============================================================
   TCN v3 — 暹罗华文 Royal Thai × Chinese Elegance
   泰国金碧辉煌 + 华人书法典雅
   ============================================================ */

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

:root {
    --gold:         #C9952B;
    --gold-light:   #E8B84B;
    --gold-dark:    #A67B1E;
    --gold-soft:    rgba(201,149,43,0.12);
    --navy:         #1B2A4A;
    --navy-light:   #263D5E;
    --navy-mid:     #1E3250;
    --crimson:      #C41E3A;
    --crimson-soft: rgba(196,30,58,0.10);

    --bg:           #FAFAF8;
    --bg-warm:      #F5F3EF;
    --card-bg:      #ffffff;
    --card-border:  #EBE8E0;
    --card-shadow:  0 1px 3px rgba(27,42,74,0.06);
    --card-shadow-hover: 0 8px 30px rgba(27,42,74,0.12), 0 2px 6px rgba(27,42,74,0.08);

    --text-main:    #1a1a2e;
    --text-body:    #3a3a4a;
    --text-muted:   #6B7280;
    --text-light:   #9CA3AF;

    --radius:       10px;
    --radius-sm:    6px;
    --radius-lg:    16px;
    --nav-h:        60px;
    --topbar-h:     36px;

    --font-serif:   'Noto Serif TC', 'Source Han Serif TC', 'PMingLiU', serif;
    --font-sans:    'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;

    --container:    1200px;
}

html, body {
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text-main);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body.tcn-v2-body { background: var(--bg); }

.td-outer-wrap > .td-header-wrap,
.td-outer-wrap > .td-footer-wrap,
.td-outer-wrap > .td-sub-footer-container,
.td-main-content-wrap { display: none !important; }

/* ============================================================
   Top Info Bar
   ============================================================ */
.tcn-topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    height: var(--topbar-h);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tcn-topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.tcn-topbar-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tcn-topbar-date svg {
    width: 13px;
    height: 13px;
    opacity: 0.6;
}

.tcn-topbar-tagline {
    font-style: italic;
    opacity: 0.55;
    letter-spacing: 0.03em;
}

.tcn-topbar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.15);
}

/* ============================================================
   Navigation
   ============================================================ */
.tcn-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--card-bg);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 12px rgba(27,42,74,0.06);
}

.tcn-nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 10px;
}

.tcn-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.tcn-logo > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6px;
}

.tcn-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    font-family: var(--font-serif);
    box-shadow: 0 2px 8px rgba(201,149,43,0.3);
}

.tcn-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
}

.tcn-logo-sub {
    font-size: 10px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tcn-nav-menu {
    display: flex;
    align-items: center;
    gap: 1px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.tcn-nav-menu a {
    display: block;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
    position: relative;
}

.tcn-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: width .2s;
}

.tcn-nav-menu a:hover::after,
.tcn-nav-menu .current-menu-item > a::after {
    width: 60%;
}

.tcn-nav-menu a:hover,
.tcn-nav-menu .current-menu-item > a {
    color: var(--navy);
    background: var(--gold-soft);
}

.tcn-nav-has-sub {
    position: relative;
}
.tcn-nav-has-sub > a {
    display: flex;
    align-items: center;
    gap: 2px;
}
.tcn-nav-arrow {
    font-size: 10px;
    transition: transform .2s;
}
.tcn-nav-has-sub:hover .tcn-nav-arrow {
    transform: rotate(180deg);
}
.tcn-nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 6px 0;
    z-index: 1000;
    list-style: none;
}
.tcn-nav-has-sub:hover > .tcn-nav-submenu {
    display: block;
}
.tcn-nav-submenu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-body);
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.tcn-nav-submenu a::after {
    display: none;
}
.tcn-nav-submenu a:hover {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.tcn-nav-search {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--bg-warm);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3px 7px;
    flex-shrink: 0;
    transition: border-color .2s, box-shadow .2s;
    margin-right: 3px;
}

.tcn-nav-search:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.tcn-nav-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 70px;
    color: var(--text-main);
    font-family: var(--font-sans);
}

.tcn-nav-search input::placeholder { color: var(--text-light); }

.tcn-nav-search button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color .15s;
}

.tcn-nav-search button:hover { color: var(--gold); }

.tcn-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}

.tcn-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .3s;
}

.tcn-mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(27,42,74,0.5);
    backdrop-filter: blur(4px);
}

.tcn-mobile-drawer.active { display: block; }

.tcn-mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
}

.tcn-mobile-drawer.active .tcn-mobile-drawer-panel {
    transform: translateX(0);
}

.tcn-mobile-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-warm);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin-left: auto;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--text-muted);
}

.tcn-mobile-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tcn-mobile-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    transition: all .15s;
}

.tcn-mobile-menu a:hover,
.tcn-mobile-menu .current-menu-item > a {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.tcn-mobile-has-sub > .tcn-mobile-sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.tcn-mobile-arrow {
    font-size: 10px;
    transition: transform .2s;
}
.tcn-mobile-has-sub.open > .tcn-mobile-sub-toggle .tcn-mobile-arrow {
    transform: rotate(180deg);
}
.tcn-mobile-submenu {
    display: none;
    list-style: none;
    padding-left: 16px;
}
.tcn-mobile-has-sub.open > .tcn-mobile-submenu {
    display: block;
}
.tcn-mobile-submenu a {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
}

/* ============================================================
   Page Container
   ============================================================ */
.tcn-page-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 32px 24px 104px;
}

/* ============================================================
   Homepage — Carousel
   ============================================================ */
.tcn-carousel-wrap {
    margin-bottom: 36px;
}

.tcn-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy);
}

.tcn-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.tcn-carousel-slide {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.tcn-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.tcn-carousel-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease;
}

.tcn-carousel-slide.active .tcn-carousel-img {
    transform: scale(1.05);
}

.tcn-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(27,42,74,0.90) 0%,
        rgba(27,42,74,0.35) 40%,
        transparent 65%);
}

.tcn-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    z-index: 2;
}

.tcn-cat-badge {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
}

/* 轮播分类容器：定位在图片左上角 */
.tcn-carousel-slide .tcn-cat-badges {
    top: 16px;
    left: 16px;
    z-index: 3;
}

.tcn-carousel-slide .tcn-cat-badges .tcn-cat-badge {
    margin-bottom: 0;
}

.tcn-carousel-caption h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 8px;
    font-family: var(--font-serif);
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.tcn-carousel-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
}

/* Carousel navigation buttons */
.tcn-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.20);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.tcn-carousel-btn:hover { background: rgba(255,255,255,0.40); }

.tcn-carousel-prev { left: 16px; }
.tcn-carousel-next { right: 16px; }

/* Carousel dots */
.tcn-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.tcn-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.40);
    cursor: pointer;
    transition: all 0.3s;
}

.tcn-carousel-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   Category Quick Nav
   ============================================================ */
.tcn-cat-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    margin-bottom: 28px;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.tcn-cat-nav::-webkit-scrollbar { display: none; }

.tcn-cat-nav-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 8px;
    border-right: 1px solid var(--card-border);
    margin-right: 4px;
}

.tcn-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    white-space: nowrap;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all .2s;
}

.tcn-cat-chip::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tcn-cat-chip:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.tcn-cat-chip[data-cat="breaking"]::before { background: #f47b02; }
.tcn-cat-chip[data-cat="politics"]::before { background: #02c8ef; }
.tcn-cat-chip[data-cat="finance"]::before { background: #d4a574; }
.tcn-cat-chip[data-cat="society"]::before { background: #81d742; }
.tcn-cat-chip[data-cat="community"]::before { background: #ad78e2; }
.tcn-cat-chip[data-cat="industry_commerce"]::before { background: #0000ff; }
.tcn-cat-chip[data-cat="real_estate"]::before { background: #9b5d00; }
.tcn-cat-chip[data-cat="gourmet_information"]::before { background: #e282e5; }

/* ============================================================
   Section Header
   ============================================================ */
.tcn-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tcn-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    font-family: var(--font-serif);
    letter-spacing: 0.02em;
}

.tcn-section-header::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-radius: 2px;
    flex-shrink: 0;
}

.tcn-section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--card-border), transparent);
}

/* ============================================================
   News Card Grid (Homepage)
   ============================================================ */
.tcn-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tcn-news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.tcn-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--gold);
}

.tcn-news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.tcn-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.tcn-news-card:hover .tcn-news-thumb img { transform: scale(1.06); }

.tcn-cat-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 24px);
}

.tcn-news-thumb .tcn-cat-badge {
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tcn-news-body {
    flex: 1;
    padding: 15px 20px 20px;
    display: flex;
    flex-direction: column;
}

.tcn-news-body h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0 0 8px 0;
    font-family: var(--font-serif);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tcn-news-card:hover .tcn-news-body h3 { color: var(--gold-dark); }

.tcn-news-body p {
    font-size: 15px !important;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
    flex: 1;
}

.tcn-news-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

.tcn-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tcn-date svg {
    width: 13px;
    height: 13px;
    opacity: 0.5;
}

/* ============================================================
   Infinite Scroll — Loader & States
   ============================================================ */
.tcn-load-sentinel {
    height: 1px;
    width: 100%;
}

.tcn-load-state {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 32px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.tcn-load-state.active {
    display: flex;
}

.tcn-loader {
    width: 24px;
    height: 24px;
    border: 3px solid var(--card-border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: tcnSpin .8s linear infinite;
}

@keyframes tcnSpin {
    to { transform: rotate(360deg); }
}

.tcn-all-done {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.tcn-all-done::before,
.tcn-all-done::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

/* ============================================================
   Back to Top Button
   ============================================================ */
.tcn-back-to-top {
    position: fixed;
    bottom: 56px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s, transform .3s, bottom .4s cubic-bezier(.4,0,.2,1), background .2s;
    pointer-events: none;
    z-index: 999;
}

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

.tcn-back-to-top:hover {
    background: var(--gold-dark);
    transform: scale(1.1);
}

.tcn-back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================================
   Mini Footer Bar (inside .tcn-footer-wrap)
   ============================================================ */
.tcn-mini-footer {
    background: var(--navy);
    border-top: 2px solid var(--gold);
    font-size: 12px;
}

.tcn-mini-footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tcn-mini-footer-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.6);
}

.tcn-mini-footer-contact svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.tcn-mini-footer-contact a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color .15s;
}

.tcn-mini-footer-contact a:hover {
    color: var(--gold-light);
}

.tcn-mini-footer-top {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}

.tcn-mini-footer-top:hover {
    color: var(--gold);
}

/* ============================================================
   Article Detail Page
   ============================================================ */
.tcn-article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.tcn-article-main {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 40px 44px;
}

.tcn-article-header { margin-bottom: 32px; }

.tcn-article-header h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--navy);
    margin-bottom: 20px;
    font-family: var(--font-serif);
    letter-spacing: 0.01em;
}

.tcn-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gold-soft);
}

.tcn-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(201,149,43,0.3);
}

.tcn-article-meta-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tcn-article-meta-info .author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.tcn-article-meta-info .date {
    font-size: 12px;
    color: var(--text-light);
}

.tcn-article-cover {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.tcn-article-cover img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
    object-fit: cover;
}

.tcn-article-cover figcaption {
    font-size: 12px;
    color: var(--text-light);
    padding: 10px 4px;
    text-align: left;
    font-style: italic;
}

.tcn-article-body {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-body);
}

.tcn-article-body p { margin-bottom: 1.5em; }
.tcn-article-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 2em 0 0.8em;
    color: var(--navy);
    font-family: var(--font-serif);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-soft);
}
.tcn-article-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 1.6em 0 0.6em;
    color: var(--navy);
    font-family: var(--font-serif);
}
.tcn-article-body img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 8px 0;
}
.tcn-article-body a {
    color: var(--gold-dark);
    text-decoration: underline;
    text-decoration-color: var(--gold-soft);
    text-underline-offset: 3px;
    transition: color .15s;
}
.tcn-article-body a:hover { color: var(--gold); }

.tcn-article-body blockquote {
    border-left: 4px solid var(--gold);
    margin: 1.6em 0;
    padding: 16px 24px;
    background: var(--gold-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

.tcn-article-body ul, .tcn-article-body ol {
    margin: 1em 0 1.5em 1.5em;
    line-height: 1.8;
}

/* ============================================================
   Ad Banner
   ============================================================ */
.tcn-ad-banner {
    margin: 32px 0;
    text-align: center;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-warm);
}

.tcn-ad-banner a {
    display: block;
    text-decoration: none;
}

.tcn-ad-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tcn-ad-top {
    margin-top: 24px;
    margin-bottom: 32px;
}

.tcn-ad-bottom {
    margin-top: 32px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .tcn-ad-banner {
        margin: 20px 0;
        border-radius: var(--radius-sm);
    }
    .tcn-ad-top { margin-top: 16px; margin-bottom: 24px; }
    .tcn-ad-bottom { margin-top: 24px; margin-bottom: 16px; }
}

.tcn-article-tags {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 2px solid var(--gold-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tcn-tag {
    font-size: 12px;
    padding: 5px 14px;
    background: var(--bg-warm);
    color: var(--text-muted);
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--card-border);
    transition: all .2s;
}

.tcn-tag:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* ============================================================
   Sidebar
   ============================================================ */
.tcn-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tcn-sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 22px;
    overflow: hidden;
}

.tcn-sidebar-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    margin: -22px -22px 18px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.tcn-sidebar-card h3 {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tcn-sidebar-card h3::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--gold);
    border-radius: 2px;
}

.tcn-sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.tcn-sidebar-list li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tcn-sidebar-list li:last-child { border-bottom: none; }

.tcn-sidebar-list a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-main);
    transition: color .15s;
}

.tcn-sidebar-list a:hover { color: var(--gold-dark); }

.tcn-sidebar-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tcn-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tcn-sidebar-item-text { flex: 1; min-width: 0; }

.tcn-sidebar-item-text span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tcn-sidebar-item-text small {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ============================================================
   Footer (Fixed Bottom — expand on hover)
   ============================================================ */
.tcn-footer-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    max-height: 44px;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.4,0,.2,1);
}

.tcn-footer-wrap:hover {
    max-height: 500px;
}

.tcn-footer-wrap:hover ~ .tcn-back-to-top.visible {
    bottom: calc(100vh * 0.45 + 12px);
}

.tcn-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 0;
    position: relative;
}

.tcn-footer-ornament {
    height: 4px;
    background: linear-gradient(90deg,
        var(--gold-dark),
        var(--gold),
        var(--gold-light),
        var(--gold),
        var(--gold-dark));
}

.tcn-footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.tcn-footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    padding: 48px 0 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tcn-footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 16px;
    letter-spacing: 0.06em;
    font-family: var(--font-serif);
}

.tcn-footer-col p,
.tcn-footer-col a {
    font-size: 13px !important;
    color: rgba(255,255,255,0.55);
    line-height: 1.9;
    text-decoration: none;
    display: block;
    transition: color .15s;
}

.tcn-footer-col a:hover { color: var(--gold-light); }

.tcn-footer-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}

.tcn-quick-col a {
    display: block;
}

.tcn-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ============================================================
   Generic Glass Card (for backward compat)
   ============================================================ */
.tcn-glass {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes tcnFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tcn-carousel-wrap { animation: tcnFadeUp .5s ease-out; }
.tcn-cat-nav { animation: tcnFadeUp .5s ease-out .1s both; }
.tcn-news-grid { animation: tcnFadeUp .5s ease-out .2s both; }

/* ============================================================
   Responsive — Tablet (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
    .tcn-article-layout { grid-template-columns: 1fr; }
    .tcn-sidebar { position: static; }

    .tcn-carousel-caption { padding: 24px; }
    .tcn-carousel-caption h2 { font-size: 22px; }

    .tcn-footer-top { grid-template-columns: 1fr 1fr; }
    .tcn-topbar-tagline { display: none; }
}

/* ============================================================
   Responsive — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
    :root {
        --nav-h: 56px;
    }

    .tcn-page-wrap { padding: 20px 14px 84px; }

    .tcn-nav-menu { display: none; }
    .tcn-nav-search { display: none; }
    .tcn-hamburger { display: flex; }

    .tcn-carousel-caption { padding: 16px; }
    .tcn-carousel-caption h2 { font-size: 17px; margin-bottom: 4px; }
    .tcn-carousel-meta { font-size: 11px; }
    .tcn-carousel-btn { width: 32px; height: 32px; font-size: 14px; }
    .tcn-carousel-prev { left: 8px; }
    .tcn-carousel-next { right: 8px; }
    .tcn-carousel-dots { bottom: 10px; gap: 6px; }
    .tcn-carousel-dot { width: 6px; height: 6px; }
    .tcn-carousel-dot.active { width: 18px; }

    .tcn-news-grid { grid-template-columns: 1fr; }

    .tcn-article-main { padding: 24px 18px; border-radius: var(--radius); }
    .tcn-article-header h1 { font-size: 22px; }
    .tcn-article-body { font-size: 16px; }

    .tcn-cat-nav { padding: 10px 0; margin-bottom: 20px; }

    .tcn-footer-top { grid-template-columns: 1fr; gap: 28px; padding: 24px 0 20px; }
    .tcn-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .tcn-footer-wrap:hover { max-height: 44px; }

    .tcn-topbar { display: none; }

    .tcn-back-to-top { bottom: 56px; right: 16px; width: 40px; height: 40px; }
    .tcn-footer-wrap:hover ~ .tcn-back-to-top.visible { bottom: 56px; }
    .tcn-mini-footer-inner { padding: 8px 16px; }
    .tcn-mini-footer-contact a { font-size: 11px; }

    .tcn-section-header h2 { font-size: 18px; }

    .tcn-breadcrumb { padding: 10px 0; }
    .tcn-cat-title { font-size: 24px; }
    .tcn-static-page { padding: 24px 18px; }
    .tcn-static-page-title { font-size: 24px; }
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.tcn-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.tcn-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}

.tcn-breadcrumb a:hover { color: var(--gold); }

.tcn-breadcrumb-sep { color: var(--text-light); }

/* ============================================================
   Category Page Header
   ============================================================ */
.tcn-cat-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gold-soft);
}

.tcn-cat-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.tcn-cat-desc {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.tcn-cat-chip-active {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-weight: 600;
}

/* ============================================================
   Static Page (聯絡我們 / 廣告刊登 etc.)
   ============================================================ */
.tcn-static-page {
    max-width: 800px;
    margin: 0 auto 48px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 40px 48px;
}

.tcn-static-page-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gold-soft);
    line-height: 1.3;
}

.tcn-static-page-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-body);
}

.tcn-static-page-content h2,
.tcn-static-page-content h3 {
    font-family: var(--font-serif);
    color: var(--navy);
    margin: 28px 0 12px;
}

.tcn-static-page-content h2 { font-size: 22px; }
.tcn-static-page-content h3 { font-size: 18px; }

.tcn-static-page-content p { margin-bottom: 16px; }

.tcn-static-page-content a {
    color: var(--gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tcn-static-page-content a:hover { color: var(--crimson); }

.tcn-static-page-content table {
    border-collapse: collapse;
    margin: 24px auto;
    font-size: 13px;
}

.tcn-static-page-content th,
.tcn-static-page-content td {
    border: 1px solid var(--card-border);
    padding: 6px 10px;
}

.tcn-static-page-content td h1 {
    font-size: 20px;
    margin: 0;
    line-height: 1.4;
}

.tcn-static-page-content td h3 {
    font-size: 13px;
    font-weight: 500;
    margin: 2px 0;
    line-height: 1.4;
    color: var(--text-body);
}

.tcn-static-page-content tr:first-child td {
    background: var(--navy);
    border-color: var(--navy);
}

.tcn-static-page-content tr:first-child td h1 {
    color: #fff;
    letter-spacing: 3px;
}

.tcn-static-page-content tr:nth-child(2) td {
    background: var(--gold-soft);
    border-color: var(--gold);
}

.tcn-static-page-content tr:nth-child(2) td h3 {
    font-weight: 700;
    color: var(--navy);
    font-size: 13px;
}

.tcn-static-page-content th {
    background: var(--bg-warm);
    font-weight: 600;
    color: var(--navy);
}

@media (max-width: 768px) {
    .tcn-static-page-content table {
        font-size: 11px;
        width: 100%;
    }
    .tcn-static-page-content td,
    .tcn-static-page-content th {
        padding: 4px 5px;
    }
    .tcn-static-page-content td h1 {
        font-size: 16px;
    }
    .tcn-static-page-content td h3 {
        font-size: 11px;
    }
    .tcn-static-page-content tr:nth-child(2) td h3 {
        font-size: 11px;
    }
}

.tcn-static-page-content ul,
.tcn-static-page-content ol {
    margin: 12px 0 16px 24px;
}

.tcn-static-page-content li { margin-bottom: 6px; }

.tcn-static-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

/* ============================================================
   Contact Page (聯絡我們) — 獨立 PHP 頁面專用樣式
   ============================================================ */
.tcn-contact-page {
    max-width: 1000px;
    margin: 0 auto 48px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 48px 56px;
}

.tcn-contact-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gold-soft);
    line-height: 1.3;
    letter-spacing: 4px;
}

.tcn-contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 36px;
    font-family: var(--font-sans);
}

.tcn-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.tcn-contact-qr {
    text-align: center;
}

.tcn-contact-qr img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
}

.tcn-contact-qr-label {
    margin-top: 18px;
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--navy);
    font-weight: 600;
}

.tcn-contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding-top: 16px;
}

.tcn-contact-info-item {
    text-align: center;
}

.tcn-contact-icon {
    width: 56px;
    height: 56px;
    color: var(--gold);
    margin-bottom: 14px;
    display: inline-block;
}

.tcn-contact-info-label {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--gold-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.tcn-contact-info-value {
    font-size: 17px;
    color: var(--text-body);
    text-decoration: none;
    font-family: var(--font-sans);
    display: inline-block;
    word-break: break-all;
}

a.tcn-contact-info-value:hover {
    color: var(--crimson);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .tcn-contact-page {
        padding: 32px 20px;
    }
    .tcn-contact-title {
        font-size: 26px;
        letter-spacing: 3px;
    }
    .tcn-contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .tcn-contact-info {
        gap: 32px;
    }
    .tcn-contact-icon {
        width: 48px;
        height: 48px;
    }
    .tcn-contact-info-label {
        font-size: 22px;
    }
    .tcn-contact-info-value {
        font-size: 16px;
    }
}

/* ============================================================
   SC Toggle — 繁简切换
   ============================================================ */
html.tcn-sc-preload {
    --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
    --font-sans:  'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body.tcn-sc {
    --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
    --font-sans:  'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.tcn-sc-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    background: var(--bg-warm);
    color: var(--text-body);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s;
    line-height: 1;
    padding: 0;
    margin-right: 3px;
}

.tcn-sc-toggle:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.tcn-sc-toggle-mobile {
    display: block;
    padding: 10px 0;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
}

@media (max-width: 640px) {
    .tcn-sc-toggle { display: none; }
}
