/* ========== 全局重置與基礎 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --accent: #d97706;
    --accent-light: #f5e7d6;
    --bg: #f7f4ef;
    --bg-card: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --text-muted: #b2bec3;
    --border: #ddd6cc;
    --shadow: none;
    --shadow-hover: none;
    --radius: 8px;
    --radius-sm: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --site-content-width: min(1200px, calc(100vw - 48px));
    --side-panel-width: 220px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ========== Header ========== */
.site-header {
    background: #fff;
    color: var(--text);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text);
}

.logo-sub {
    font-size: 0.75rem;
    opacity: 1;
    background: transparent;
    padding: 2px 8px;
    border-radius: 0;
    margin-left: 4px;
    color: var(--text-light);
}

.main-nav {
    display: flex;
    gap: 6px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-light);
}

.nav-link:hover,
.nav-link.active {
    background: #a45a46;
    color: var(--text);
}

.btn-post {
    background: #f3efe9;
    color: var(--text);
    padding: 8px 20px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.btn-post:hover {
    transform: none;
    box-shadow: none;
    background: #ede7df;
}

/* ========== Category Bar ========== */
.home-hero {
    padding: 24px 24px 0;
    scroll-margin-top: 88px;
}

.home-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 32px;
    border-radius: 0;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: none;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-hero-inner::before {
    display: none;
}

.home-hero-copy,
.home-hero-panel {
    position: relative;
    z-index: 1;
}

.home-hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 0;
    margin-bottom: 14px;
    background: #f3efe9;
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: none;
}

.home-hero-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.home-hero-logo {
    width: 64px;
    height: 64px;
    padding: 10px;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    border: 1px solid var(--border);
}

.home-hero-name {
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-hero-title {
    font-size: clamp(1.8rem, 2vw, 2.5rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text);
}

.home-hero-text {
    max-width: 620px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.85;
}

.home-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.home-hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 0;
    background: #f8f6f2;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: none;
}

.home-hero-tags i {
    color: var(--primary);
}

.home-hero-panel {
    padding: 22px 22px 20px;
    border-radius: 0;
    background: #faf8f5;
    border: 1px solid var(--border);
    box-shadow: none;
    backdrop-filter: none;
}

.home-hero-panel-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 0;
    margin-bottom: 12px;
    background: #f3efe9;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.home-hero-panel-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.home-hero-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.home-hero-panel-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 0;
    background: #f3efe9;
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.category-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 68px;
    z-index: 90;
    scroll-margin-top: 88px;
}

.category-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.category-inner::-webkit-scrollbar {
    display: none;
}

/* ========== 站內懸浮側窗 ========== */
.site-side-panel-wrap {
    position: fixed;
    inset: 0;
    z-index: 72;
    display: none;
    pointer-events: none;
}

.site-side-panel {
    position: absolute;
    top: 50%;
    width: var(--side-panel-width);
    padding: 12px 12px 18px;
    border-radius: 0;
    border: none;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: auto;
    overflow: hidden;
    transform: translateY(-50%);
}

.site-side-panel::before {
    display: none;
}

.site-side-panel--left {
    left: max(12px, calc((100vw - var(--site-content-width)) / 4 - var(--side-panel-width) / 2));
}

.site-side-panel--right {
    right: max(12px, calc((100vw - var(--site-content-width)) / 4 - var(--side-panel-width) / 2));
}

.site-side-panel-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.site-side-panel-media {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 5 / 3.4;
    background: #f3efe9;
    box-shadow: none;
}

.site-side-panel-media::after {
    display: none;
}

.site-side-panel-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
}

.site-side-panel-media-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 0;
    background: #f3efe9;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: none;
}

.site-side-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 0;
    background: #f3efe9;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-side-panel-title {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 800;
    color: var(--text);
}

.site-side-panel-text {
    font-size: 0.86rem;
    line-height: 1.78;
    color: var(--text-light);
}

.site-side-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.site-side-panel-tags span {
    padding: 6px 10px;
    border-radius: 0;
    background: #f3efe9;
    color: var(--text-light);
    font-size: 0.74rem;
    font-weight: 700;
}

.site-side-panel-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    justify-items: center;
}

.site-side-panel-list li {
    position: relative;
    max-width: 100%;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.7;
    text-align: center;
}

.site-side-panel-list li::before {
    display: none;
}

.site-side-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 0;
    background: #f3efe9;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 800;
    text-align: center;
    transition: var(--transition);
}

.site-side-panel-link:hover {
    transform: none;
    box-shadow: none;
    background: #ede7df;
}

/* ========== 複製提示 ========== */
.site-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 16px);
    z-index: 220;
    min-width: 220px;
    max-width: min(92vw, 420px);
    padding: 12px 18px;
    border-radius: 0;
    background: rgba(45, 52, 54, 0.92);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cat-tag {
    padding: 6px 18px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
    white-space: nowrap;
    transition: var(--transition);
}

.cat-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== Posts Container ========== */
.posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}

.posts-container .post-card:nth-child(1),
.posts-container .post-card:nth-child(2) {
    grid-column: span 1;
}

.posts-container .post-card:nth-child(n+3) {
    grid-column: span 1;
}

/* ========== Post Card ========== */
.post-card {
    background: var(--bg-card);
    border-radius: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.5s ease both;
}

.post-card:hover {
    transform: none;
    box-shadow: var(--shadow-hover);
}

.media-frame {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #f3efe9;
}

.media-frame::before,
.media-frame::after {
    display: none;
}

/* 首頁卡片維持固定節奏，避免文字長短影響對齊 */
.posts-container > .post-card:not(.post-detail-card) {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.posts-container > .post-card:not(.post-detail-card) > a:first-child {
    display: block;
    flex-shrink: 0;
    height: 220px;
    overflow: hidden;
    background: #f3eee8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.post-media-frame {
    display: block;
    height: 220px;
}

.post-body {
    padding: 18px 20px 14px;
}

.posts-container > .post-card:not(.post-detail-card) .post-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.posts-container > .post-card:not(.post-detail-card) .post-meta {
    align-items: flex-start;
}

.post-avatar {
    width: 38px;
    height: 38px;
    border-radius: 0;
    object-fit: cover;
    border: 2px solid var(--accent-light);
}

.post-user-info {
    flex: 1;
}

.posts-container > .post-card:not(.post-detail-card) .post-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
}

.post-username {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}

.posts-container > .post-card:not(.post-detail-card) .post-username {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.post-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.post-cat-badge {
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 0;
    background: var(--accent-light);
    color: #e17055;
    font-weight: 600;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
    line-height: 1.4;
}

.posts-container > .post-card:not(.post-detail-card) .post-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}

.post-content {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0 0 10px;
}

.posts-container > .post-card:not(.post-detail-card) .post-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.65em * 2);
}

.post-location {
    font-size: 0.78rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.posts-container > .post-card:not(.post-detail-card) .post-location {
    margin-top: auto;
    min-height: 1.4em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-location i {
    margin-right: 4px;
}

/* 互動按鈕列 */
.post-actions {
    display: flex;
    gap: 4px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.posts-container > .post-card:not(.post-detail-card) .post-actions {
    margin-top: auto;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 0;
    border-radius: 0;
    font-size: 0.82rem;
    color: var(--text-light);
    background: none;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--bg);
    color: var(--primary);
}

.action-btn.liked {
    color: var(--primary);
    font-weight: 600;
}

.action-btn .count {
    font-weight: 600;
}

/* ========== 評論區 ========== */
.comments-section {
    padding: 0 20px 16px;
    display: none;
}

.comments-section.open {
    display: block;
}

.comment-list {
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

.comment-item:last-child {
    border-bottom: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-user {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text);
}

.comment-text {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 2px;
    line-height: 1.5;
}

.comment-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* 評論輸入 */
.comment-input-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.comment-input-row input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 0.82rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.comment-input-row input:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.comment-input-row button {
    padding: 8px 16px;
    border-radius: 0;
    background: #f3efe9;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.comment-input-row button:hover {
    background: #ede7df;
}

/* ========== 帖子詳情頁 ========== */
.detail-mode {
    display: block !important;
    max-width: 980px;
    min-height: 70vh;
    padding: 36px 24px 72px;
}

.post-detail-container {
    animation: fadeIn 0.4s ease;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--primary);
    transform: none;
}

.post-detail-card {
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: #fff;
}

.post-detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    position: relative;
    z-index: 1;
}

.post-detail-media-frame {
    height: clamp(240px, 32vw, 380px);
    border-bottom: 1px solid var(--border);
}

.post-detail-card > .post-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px clamp(22px, 4vw, 42px) 34px;
}

.post-detail-card > .post-body > .post-meta {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.post-detail-card > .post-body > .post-meta .post-user-info {
    min-width: 0;
}

.article-title {
    font-size: clamp(1.8rem, 2.8vw, 2.35rem) !important;
    line-height: 1.24 !important;
    letter-spacing: -0.02em;
    margin: 16px 0 14px !important;
}

.article-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px !important;
    padding: 7px 12px;
    border-radius: 0;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
}

.article-highlight {
    margin: 4px 0 24px;
    padding: 18px 20px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-left: 3px solid #d8cfc4;
}

.article-highlight-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text);
}

.article-highlight-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 0;
    background: #b8aa97;
    box-shadow: none;
}

.article-highlight-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.article-highlight-list li {
    position: relative;
    padding-left: 16px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.article-highlight-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 0;
    background: var(--primary);
}

.article-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 14px;
    padding: 6px 12px;
    border-radius: 0;
    background: #f3efe9;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.article-paragraph {
    font-size: 1.03rem !important;
    line-height: 1.95 !important;
    color: #455056;
    margin-bottom: 20px !important;
}

.post-detail-card > .post-body > .article-paragraph:first-of-type {
    font-size: 1.12rem !important;
    color: var(--text);
}

.article-closing {
    margin-top: 8px;
    padding-top: 4px;
    color: #566168;
}

.article-media,
.article-video-wrap {
    width: min(100%, 700px);
    margin: 26px auto;
}

.article-inline-image,
.article-video {
    display: block;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border);
}

.article-inline-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f3eee8;
}

.article-media figcaption,
.article-video-wrap figcaption {
    margin-top: 10px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.article-video {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #111;
}

.post-detail-card .post-actions {
    margin-top: 26px;
    padding-top: 16px;
}

.post-comments-panel {
    margin-top: 30px !important;
    padding: 22px 24px 18px !important;
    border-radius: 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
}

.post-comments-panel h3 {
    margin-bottom: 14px !important;
}

.comment-static-note {
    padding-top: 14px;
    border-top: 1px dashed rgba(178, 190, 195, 0.55);
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: none;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: 0;
    width: 90%;
    max-width: 520px;
    padding: 28px;
    box-shadow: none;
    border: 1px solid var(--border);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: var(--bg);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: #ede7df;
    color: var(--text);
}

#postForm input,
#postForm textarea,
#postForm select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 0.9rem;
    font-family: inherit;
    margin-bottom: 12px;
    outline: none;
    transition: var(--transition);
    background: var(--bg);
}

#postForm input:focus,
#postForm textarea:focus,
#postForm select:focus {
    border-color: var(--primary);
    box-shadow: none;
}

#postForm textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row select,
.form-row input {
    flex: 1;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #f3efe9;
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: none;
    box-shadow: none;
    background: #ede7df;
}

/* ========== Footer ========== */
.site-footer {
  background: #2b414b;
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 24px 28px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.site-trust-stats-wrap {
  padding: 8px 24px 34px;
}

.site-trust-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid rgba(199, 175, 144, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 244, 236, 0.98)),
    linear-gradient(135deg, rgba(208, 162, 93, 0.12), rgba(182, 75, 52, 0.06));
  box-shadow: 0 22px 46px rgba(101, 73, 45, 0.12);
}

.trust-stat {
  position: relative;
  padding: 4px 10px 4px 18px;
}

.trust-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(208, 162, 93, 0.2), rgba(208, 162, 93, 0.9), rgba(208, 162, 93, 0.2));
}

.trust-stat-label {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #7b6d61;
}

.trust-stat-value {
  margin: 0;
  font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #2a3f49;
  text-shadow: 0 10px 22px rgba(154, 116, 69, 0.12);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 72px;
  align-items: flex-start;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.footer-logo {
  width: 72px;
  height: 72px;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 700;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 48px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 16px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  line-height: 1.5;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

@media (max-width: 768px) {
  .site-trust-stats-wrap {
    padding: 0 20px 28px;
  }

  .site-footer {
    padding: 44px 20px 24px;
  }

  .site-trust-stats {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .trust-stat {
    padding-left: 16px;
  }

  .trust-stat-label {
    margin-bottom: 8px;
    font-size: 0.9rem;
  }

  .trust-stat-value {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer-col a:hover {
    transform: none;
  }
}
/* ========== 響應式 ========== */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 8px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .home-hero {
        padding: 18px 16px 0;
    }

    .home-hero-inner {
        padding: 24px 18px;
        border-radius: 0;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-hero-brand {
        align-items: flex-start;
    }

    .home-hero-logo {
        width: 56px;
        height: 56px;
        padding: 8px;
        border-radius: 0;
    }

    .home-hero-title {
        font-size: 1.65rem;
    }

    .home-hero-text,
    .home-hero-panel-text {
        font-size: 0.93rem;
    }

    .home-hero-tags,
    .home-hero-panel-tags {
        gap: 8px;
    }

    .home-hero-tags span,
    .home-hero-panel-tags span {
        font-size: 0.8rem;
    }

    .posts-container {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .detail-mode {
        padding: 20px 16px 48px;
    }

    .post-detail-image {
        height: 100%;
    }

    .post-detail-media-frame {
        height: 220px;
    }

    .post-detail-card > .post-body {
        padding: 22px 18px 24px;
    }

    .article-title {
        font-size: 1.55rem !important;
    }

    .article-paragraph {
        font-size: 0.98rem !important;
        line-height: 1.85 !important;
    }

    .article-inline-image {
        aspect-ratio: 5 / 4;
    }

    .logo-sub {
        display: none;
    }
}

@media (min-width: 1500px) {
    .site-side-panel-wrap {
        display: block;
    }
}

@media (min-width: 1800px) {
    :root {
        --side-panel-width: 248px;
    }
}

/* ========== 滾動條美化 ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 0;
}

/* ========== 分頁樣式 ========== */
.pagination {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 0;
    background: rgba(255, 251, 245, 0.92);
    border: 1px solid rgba(199, 175, 144, 0.55);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(91, 69, 48, 0.04);
}

.page-btn:hover:not(:disabled) {
    background: rgba(39, 67, 86, 0.06);
    border-color: rgba(39, 67, 86, 0.14);
    color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(91, 69, 48, 0.08);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), #d46a4e);
    color: #fffaf2;
    border-color: transparent;
    box-shadow: 0 16px 24px rgba(182, 75, 52, 0.22);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .pagination {
        padding: 0 16px 32px;
        gap: 6px;
    }
    
    .page-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 0.85rem;
    }
}

/* Taiwan visual refresh */
:root {
    --primary: #b64b34;
    --primary-dark: #8d3624;
    --primary-soft: #f4d7c9;
    --secondary: #a45a46;
    --secondary-soft: #4c6778;
    --accent: #d0a25d;
    --accent-soft: #f7ebd7;
    --sage: #748369;
    --sage-soft: #e7eee4;
    --bg: #f6efe4;
    --bg-alt: #fbf6ee;
    --bg-card: rgba(255, 251, 245, 0.96);
    --bg-card-strong: #fffdf9;
    --text: #213644;
    --text-light: #5a6975;
    --text-muted: #9d8e82;
    --border: #dcccb7;
    --border-strong: #c7af90;
    --shadow: 0 20px 48px rgba(101, 73, 45, 0.1);
    --shadow-hover: 0 24px 56px rgba(101, 73, 45, 0.16);
    --radius: 24px;
    --radius-sm: 12px;
    --site-content-width: min(1240px, calc(100vw - 48px));
    --side-panel-width: 248px;
    --header-height: 82px;
}

body {
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    background:
        linear-gradient(rgba(122, 89, 56, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 89, 56, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 12% 8%, rgba(208, 162, 93, 0.18), transparent 24%),
        radial-gradient(circle at 86% 10%, rgba(116, 131, 105, 0.14), transparent 20%),
        linear-gradient(180deg, #fbf5eb 0%, #f4ecdf 52%, #faf5ec 100%);
    background-size: 30px 30px, 30px 30px, auto, auto, auto;
    color: var(--text);
}

::selection {
    background: rgba(182, 75, 52, 0.18);
    color: var(--secondary);
}

.site-header {
    background: rgba(252, 247, 240, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(199, 175, 144, 0.55);
    box-shadow: 0 14px 32px rgba(92, 69, 48, 0.06);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0 18%, var(--accent) 18% 34%, #f6e5c7 34% 50%, var(--secondary) 50% 74%, var(--sage) 74% 100%);
}

.header-inner {
    max-width: 1240px;
    min-height: var(--header-height);
    padding: 14px 24px 12px;
    gap: 20px;
}

.logo {
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

/* .logo::before {
    display: none;
} */

.logo-icon {
    width: 50px;
    height: 50px;
    visibility: visible;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.logo h1 {
    font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
    font-size: 1.62rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--secondary);
}

.logo-sub {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 0;
    background: rgba(255, 251, 245, 0.88);
    border: 1px solid rgba(199, 175, 144, 0.58);
    color: var(--primary) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 18px rgba(91, 69, 48, 0.06);
}

.main-nav {
    gap: 10px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 0;
    border: 1px solid transparent;
    color: var(--text-light);
    font-size: 0.93rem;
    font-weight: 700;
    transition: transform var(--transition), color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav-link:hover {
    background: rgba(39, 67, 86, 0.06);
    border-color: rgba(39, 67, 86, 0.14);
    color: var(--secondary);
    transform: translateY(-1px);
}

.nav-link.active {
    background: #a45a46;
    border-color: var(--secondary);
    color: #fff8f0;
    box-shadow: 0 14px 24px rgba(39, 67, 86, 0.18);
}

.btn-post {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 0;
    background: linear-gradient(135deg, var(--primary), #d66b4c);
    color: #fffaf2;
    border: 1px solid rgba(141, 54, 36, 0.3);
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 16px 28px rgba(182, 75, 52, 0.24);
}

.btn-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(182, 75, 52, 0.28);
    background: linear-gradient(135deg, #bf563d, #df7a5b);
}

.category-bar {
    top: var(--header-height);
    background: rgba(251, 246, 238, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(199, 175, 144, 0.5);
}

.category-inner {
    max-width: 1240px;
    padding: 14px 24px 16px;
    gap: 10px;
}

.cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 0;
    background: rgba(255, 251, 245, 0.92);
    color: var(--text-light);
    border: 1px solid rgba(199, 175, 144, 0.55);
    box-shadow: 0 10px 18px rgba(91, 69, 48, 0.04);
    font-size: 0.88rem;
    font-weight: 700;
}

.cat-tag:hover {
    color: var(--primary);
    border-color: rgba(182, 75, 52, 0.36);
    transform: translateY(-1px);
}

.cat-tag.active {
    background: linear-gradient(135deg, var(--primary), #d46a4e);
    color: #fffaf2;
    border-color: transparent;
    box-shadow: 0 16px 24px rgba(182, 75, 52, 0.22);
}

.home-hero {
    padding: 30px 24px 0;
}

.home-hero-inner {
    max-width: 1240px;
    padding: 34px 36px;
    border-radius: 0;
    border: 1px solid rgba(199, 175, 144, 0.64);
    background: linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(246, 236, 220, 0.94));
    box-shadow: var(--shadow);
    gap: 28px;
    isolation: isolate;
}

.home-hero-inner::before {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(208, 162, 93, 0.16), transparent 26%),
        radial-gradient(circle at 8% 80%, rgba(116, 131, 105, 0.16), transparent 22%);
    z-index: 0;
}

.home-hero-inner::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 14px;
    background: repeating-linear-gradient(90deg, rgba(182, 75, 52, 0.95) 0 78px, rgba(247, 232, 206, 0.95) 78px 118px, rgba(39, 67, 86, 0.95) 118px 188px, rgba(208, 162, 93, 0.95) 188px 236px, rgba(116, 131, 105, 0.95) 236px 300px);
}

.home-hero-copy,
.home-hero-panel {
    position: relative;
    z-index: 1;
}

.home-hero-kicker {
    padding: 8px 14px;
    border-radius: 0;
    background: rgba(255, 250, 244, 0.9);
    border: 1px solid rgba(199, 175, 144, 0.58);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 20px rgba(91, 69, 48, 0.08);
}

.home-hero-brand {
    gap: 18px;
    position: relative;
}

/* .home-hero-brand::before {
    display: none;
} */

.home-hero-logo {
    width: 74px;
    height: 74px;
    visibility: visible;
    border-radius: 0;
    box-shadow: 0 18px 28px rgba(182, 75, 52, 0.25);
}

.home-hero-name {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.home-hero-title {
    font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
    font-size: clamp(2.15rem, 3vw, 3.15rem);
    line-height: 1.14;
    letter-spacing: 0.03em;
    color: var(--secondary);
}

.home-hero-text {
    max-width: 640px;
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.95;
}

.home-hero-tags {
    gap: 12px;
    margin-top: 22px;
}

.home-hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border-radius: 0;
    background: rgba(255, 252, 247, 0.88);
    border: 1px solid rgba(199, 175, 144, 0.5);
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 14px 24px rgba(91, 69, 48, 0.06);
}

.home-hero-tags i {
    color: var(--primary);
}

.home-hero-panel {
    padding: 24px 22px;
    border-radius: 0;
    background: rgba(255, 250, 243, 0.84);
    border: 1px solid rgba(199, 175, 144, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 32px rgba(91, 69, 48, 0.08);
}

.home-hero-panel::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -34px;
    width: 150px;
    height: 150px;
    border-radius: 0;
    background: radial-gradient(circle, rgba(208, 162, 93, 0.24) 0, rgba(208, 162, 93, 0) 70%);
}

.home-hero-panel-label {
    padding: 8px 12px;
    border-radius: 0;
    background: rgba(39, 67, 86, 0.08);
    border: 1px solid rgba(39, 67, 86, 0.12);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-hero-panel-text {
    color: var(--text-light);
    font-size: 0.96rem;
    line-height: 1.88;
}

.home-hero-panel-tags {
    gap: 10px;
}

.home-hero-panel-tags span {
    padding: 9px 13px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(199, 175, 144, 0.48);
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.site-side-panel {
    width: var(--side-panel-width);
    padding: 14px;
    border-radius: 0;
    border: 1px solid rgba(199, 175, 144, 0.66);
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(245, 236, 221, 0.92));
    box-shadow: var(--shadow);
}

.site-side-panel::before {
    display: block;
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary), var(--sage));
}

.site-side-panel-body {
    gap: 12px;
}

.site-side-panel-media {
    margin-bottom: 12px;
    border-radius: 0;
    background: var(--accent-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.site-side-panel-media::after {
    display: block;
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(33, 54, 68, 0.18));
}

.site-side-panel-image {
    transition: transform 0.45s ease;
}

.site-side-panel-media-badge {
    border-radius: 0;
    background: rgba(255, 249, 241, 0.92);
    color: var(--primary);
    box-shadow: 0 10px 18px rgba(91, 69, 48, 0.12);
}

.site-side-panel-eyebrow {
    padding: 7px 11px;
    border-radius: 0;
    background: rgba(39, 67, 86, 0.08);
    border: 1px solid rgba(39, 67, 86, 0.12);
    color: var(--secondary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-side-panel-title {
    font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
    font-size: 1.14rem;
    line-height: 1.45;
    font-weight: 900;
    color: var(--secondary);
}

.site-side-panel-text,
.site-side-panel-list li {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.78;
}

.site-side-panel-tags span {
    padding: 7px 11px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(199, 175, 144, 0.46);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
}

.site-side-panel-list li {
    position: relative;
    padding-left: 16px;
}

.site-side-panel-list li::before {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 0;
    background: var(--primary);
}

.site-side-panel-link {
    padding: 11px 16px;
    border-radius: 0;
    background: var(--secondary);
    color: #fffaf4;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(39, 67, 86, 0.18);
}

.site-side-panel-link:hover {
    background: #34566d;
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(39, 67, 86, 0.22);
}

.site-toast {
    border-radius: 0;
    background: rgba(33, 54, 68, 0.94);
    color: #fffaf4;
    font-weight: 800;
    box-shadow: 0 18px 32px rgba(33, 54, 68, 0.24);
}

.posts-container {
    max-width: 1240px;
    padding: 32px 24px 72px;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 26px;
}

.post-card {
    position: relative;
    border-radius: 0;
    border: 1px solid rgba(199, 175, 144, 0.6);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 248, 240, 0.96));
    box-shadow: var(--shadow);
}

.post-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 10px;
    background: linear-gradient(90deg, rgba(182, 75, 52, 0.92), rgba(208, 162, 93, 0.9), rgba(39, 67, 86, 0.9));
    opacity: 0.9;
    z-index: 2;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(182, 75, 52, 0.22);
}

.posts-container > .post-card:not(.post-detail-card) > a:first-child,
.post-media-frame {
    height: 232px;
    background: var(--accent-soft);
}

.media-frame::before {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 0;
    pointer-events: none;
    z-index: 2;
}

.media-frame::after {
    display: block;
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(33, 54, 68, 0.16));
    pointer-events: none;
    z-index: 2;
}

.post-image {
    transition: transform 0.45s ease;
}

.post-card:hover .post-image,
.site-side-panel:hover .site-side-panel-image {
    transform: scale(1.05);
}

.post-body {
    padding: 20px 22px 18px;
}

.post-meta {
    margin-bottom: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 244, 229, 0.95);
    box-shadow: 0 6px 14px rgba(91, 69, 48, 0.08);
}

.post-username {
    color: var(--secondary);
    font-size: 0.94rem;
    font-weight: 800;
}

.post-time {
    color: var(--text-muted);
}

.post-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 0;
    background: rgba(208, 162, 93, 0.18);
    border: 1px solid rgba(208, 162, 93, 0.34);
    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 800;
}

.post-title {
    color: var(--secondary);
    font-size: 1.17rem;
    font-weight: 800;
    line-height: 1.48;
}

.post-card a:hover .post-title {
    color: var(--primary);
}

.post-content {
    color: var(--text-light);
    font-size: 0.91rem;
    line-height: 1.76;
}

.posts-container > .post-card:not(.post-detail-card) .post-content {
    -webkit-line-clamp: 3;
    min-height: calc(1.76em * 3);
}

.post-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 0;
    background: rgba(116, 131, 105, 0.11);
    color: var(--primary);
    font-size: 0.79rem;
    font-weight: 700;
}

.post-actions {
    gap: 8px;
    padding-top: 14px;
    border-top: 1px dashed rgba(199, 175, 144, 0.8);
}

.action-btn {
    padding: 10px 8px;
    border-radius: 0;
    color: var(--text-light);
    font-size: 0.84rem;
    font-weight: 700;
}

.action-btn:hover {
    background: rgba(39, 67, 86, 0.06);
    color: var(--secondary);
    transform: translateY(-1px);
}

.action-btn.liked {
    background: rgba(182, 75, 52, 0.08);
    color: var(--primary);
}

.comment-item {
    padding: 12px 14px;
    border-radius: 0;
    border: 1px solid rgba(220, 204, 183, 0.72);
    background: rgba(255, 255, 255, 0.48);
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 244, 229, 0.94);
}

.comment-user {
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 800;
}

.comment-text {
    color: var(--text-light);
    font-size: 0.84rem;
    line-height: 1.62;
}

.comment-time {
    color: var(--text-muted);
}

.comment-input-row input {
    padding: 11px 14px;
    border-color: rgba(199, 175, 144, 0.68);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.86);
}

.comment-input-row input:focus {
    border-color: rgba(182, 75, 52, 0.48);
    box-shadow: 0 0 0 4px rgba(182, 75, 52, 0.08);
    background: #fffdf9;
}

.comment-input-row button {
    padding: 10px 16px;
    border-radius: 0;
    background: var(--secondary);
    color: #fffaf2;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 12px 20px rgba(39, 67, 86, 0.16);
}

.comment-input-row button:hover {
    background: #34566d;
    transform: translateY(-1px);
    box-shadow: 0 16px 24px rgba(39, 67, 86, 0.2);
}

.detail-mode {
    max-width: 1120px;
    padding: 38px 24px 80px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 0;
    background: rgba(255, 250, 243, 0.9);
    border: 1px solid rgba(199, 175, 144, 0.62);
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(91, 69, 48, 0.06);
}

.btn-back:hover {
    background: var(--secondary);
    color: #fff9f2;
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(39, 67, 86, 0.18);
}

.post-detail-card > .post-body {
    max-width: 780px;
    padding: 34px clamp(22px, 4vw, 46px) 40px;
}

.post-detail-card > .post-body > .post-meta {
    gap: 14px;
    margin-bottom: 18px;
}

.post-detail-card > .post-body > .post-meta .post-avatar {
    width: 48px !important;
    height: 48px !important;
}

.post-detail-image {
    padding: 18px clamp(14px, 3vw, 28px);
}

.post-detail-media-frame {
    height: clamp(320px, 36vw, 470px);
    border-bottom: 1px solid rgba(199, 175, 144, 0.58);
    background: linear-gradient(135deg, #f2e6d2, #fbf5ec);
}

.article-title {
    margin: 18px 0 16px !important;
    color: var(--secondary);
    font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
    font-size: clamp(2.1rem, 3.2vw, 2.9rem) !important;
    line-height: 1.28 !important;
    letter-spacing: 0.03em;
}

.article-location {
    margin-bottom: 22px !important;
}

.article-quick-answer {
    position: relative;
    overflow: hidden;
    margin: 24px 0 !important;
    padding: 24px 24px 22px !important;
    border-radius: 0 !important;
    background: linear-gradient(135deg, rgba(182, 75, 52, 0.12), rgba(255, 248, 239, 0.96)) !important;
    border: 1px solid rgba(182, 75, 52, 0.28) !important;
    box-shadow: 0 22px 44px rgba(121, 75, 48, 0.1) !important;
    color: var(--text) !important;
}

.article-quick-answer::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -52px;
    width: 170px;
    height: 170px;
    border-radius: 0;
    background: radial-gradient(circle, rgba(208, 162, 93, 0.32) 0, rgba(208, 162, 93, 0) 70%);
}

.article-quick-answer > * {
    position: relative;
    z-index: 1;
}

.article-quick-answer > div {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    margin-bottom: 12px !important;
}

.article-quick-answer h3 {
    color: var(--secondary) !important;
    font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
    font-size: 1.16rem !important;
    font-weight: 900 !important;
}

.article-quick-answer i {
    margin-right: 0 !important;
    color: var(--primary) !important;
    font-size: 1.12rem !important;
}

.article-quick-answer p {
    color: var(--text-light) !important;
    font-size: 0.99rem !important;
    line-height: 1.9 !important;
}

.article-quick-answer strong {
    color: var(--text) !important;
}

.article-highlight {
    padding: 22px 22px 20px;
    border-radius: 0;
    background: rgba(255, 250, 244, 0.82);
    border: 1px solid rgba(199, 175, 144, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.article-highlight-title {
    gap: 10px;
    color: var(--secondary);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.article-highlight-title::before {
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(182, 75, 52, 0.14);
}

.article-highlight-list li {
    padding-left: 18px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.78;
}

.article-highlight-list li::before {
    width: 7px;
    height: 7px;
    top: 0.72em;
    background: var(--accent);
}

.article-section-label {
    padding: 8px 14px;
    border-radius: 0;
    background: rgba(39, 67, 86, 0.08);
    border: 1px solid rgba(39, 67, 86, 0.12);
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.article-paragraph {
    color: #475965;
    font-size: 1.04rem !important;
    line-height: 2 !important;
}

.post-detail-card > .post-body > .article-paragraph:first-of-type {
    color: var(--text);
    font-size: 1.13rem !important;
}

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

.article-inline-image,
.article-video {
    border-radius: 0;
    border: 1px solid rgba(199, 175, 144, 0.62);
    box-shadow: 0 22px 44px rgba(101, 73, 45, 0.08);
}

.article-faq-section {
    position: relative;
    margin-top: 32px !important;
    padding: 26px !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.97), rgba(250, 243, 232, 0.92)) !important;
    border: 1px solid rgba(199, 175, 144, 0.72) !important;
    box-shadow: 0 20px 44px rgba(101, 73, 45, 0.08) !important;
}

.article-faq-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    border-radius: 0;
}

.article-faq-section > h3 {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    margin: 0 0 20px !important;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(199, 175, 144, 0.72);
    color: var(--secondary) !important;
    font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
    font-size: 1.38rem !important;
}

.article-faq-section > h3 i {
    margin-right: 0 !important;
    color: var(--primary) !important;
}

.article-faq-section .faq-item {
    margin: 0 !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid rgba(220, 204, 183, 0.72) !important;
}

.article-faq-section .faq-item:last-child {
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.article-faq-section h4 {
    color: var(--secondary) !important;
    font-size: 1.04rem !important;
    font-weight: 800 !important;
    line-height: 1.72;
}

.article-faq-section h4 i {
    margin-right: 8px !important;
    color: var(--primary) !important;
    font-size: 0.92rem !important;
}

.article-faq-section p {
    padding-left: 0 !important;
    color: var(--text-light) !important;
    line-height: 1.86 !important;
}

.article-faq-section p i {
    margin-right: 8px !important;
    color: var(--sage) !important;
    font-size: 0.92rem !important;
}

.post-detail-card .post-actions {
    margin-top: 30px;
    padding-top: 18px;
}

.post-comments-panel {
    margin-top: 30px !important;
    padding: 24px 24px 8px !important;
    border-radius: 0;
    background: rgba(255, 250, 244, 0.84);
    border: 1px solid rgba(199, 175, 144, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.post-comments-panel h3 {
    border-bottom: 1px dashed rgba(199, 175, 144, 0.78) !important;
    color: var(--secondary);
    font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
    font-size: 1.22rem !important;
}

.comment-static-note {
    border-top: 1px dashed rgba(199, 175, 144, 0.72);
}

.modal-overlay {
    background: rgba(26, 34, 42, 0.42);
    backdrop-filter: blur(10px);
}

.modal {
    max-width: 540px;
    padding: 30px;
    border-radius: 0;
    border: 1px solid rgba(199, 175, 144, 0.62);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 248, 240, 0.96));
    box-shadow: var(--shadow-hover);
}

.modal-header h2 {
    color: var(--secondary);
    font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
    font-size: 1.35rem;
    font-weight: 900;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: rgba(39, 67, 86, 0.08);
    color: var(--secondary);
}

.modal-close:hover {
    background: var(--secondary);
    color: #fffaf2;
    transform: rotate(90deg);
}

#postForm input,
#postForm textarea,
#postForm select {
    padding: 13px 16px;
    border: 1px solid rgba(199, 175, 144, 0.68);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
}

#postForm input:focus,
#postForm textarea:focus,
#postForm select:focus {
    border-color: rgba(182, 75, 52, 0.48);
    box-shadow: 0 0 0 4px rgba(182, 75, 52, 0.08);
    background: #fffdf9;
}

.btn-submit {
    border-radius: 0;
    background: linear-gradient(135deg, var(--secondary), #3c5c70);
    color: #fffaf4;
    font-size: 0.98rem;
    font-weight: 800;
    box-shadow: 0 16px 28px rgba(39, 67, 86, 0.18);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #34566d, #456980);
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(39, 67, 86, 0.22);
}


@media (max-width: 1080px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        margin-right: auto;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .header-actions {
        margin-left: auto;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .posts-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .site-side-panel-wrap {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: auto;
        padding: 18px 16px 16px;
        gap: 12px;
    }

    .logo {
        margin-right: 0;
    }

    .logo-sub {
        display: none;
    }

    .main-nav {
        justify-content: space-between;
        gap: 8px;
    }

    .nav-link {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.84rem;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-post {
        padding: 10px 16px;
    }

    .category-bar {
        position: relative;
        top: 0;
    }

    .category-inner {
        padding: 12px 16px 14px;
    }

    .home-hero {
        padding: 20px 16px 0;
    }

    .home-hero-inner {
        padding: 28px 20px 22px;
        gap: 20px;
        border-radius: 0;
    }

    .home-hero-inner::after {
        height: 10px;
    }

    /* .home-hero-brand::before {
        width: 62px;
        height: 62px;
        border-radius: 0;
        font-size: 1.5rem;
    } */

    .home-hero-logo {
        width: 62px;
        height: 62px;
    }

    .home-hero-title {
        font-size: 1.94rem;
    }

    .home-hero-text,
    .home-hero-panel-text {
        font-size: 0.95rem;
    }

    .home-hero-tags span,
    .home-hero-panel-tags span,
    .cat-tag {
        font-size: 0.82rem;
    }

    .posts-container {
        grid-template-columns: 1fr !important;
        padding: 16px;
        gap: 16px;
    }
    
    .posts-container .post-card:nth-child(1),
    .posts-container .post-card:nth-child(2),
    .posts-container .post-card:nth-child(n+3) {
        grid-column: span 1 !important;
    }

    .post-card,
    .home-hero-panel,
    .article-quick-answer,
    .article-faq-section,
    .post-comments-panel,
    .modal {
        border-radius: 0 !important;
    }

    .posts-container > .post-card:not(.post-detail-card) > a:first-child,
    .post-media-frame {
        height: 220px;
    }

    .detail-mode {
        padding: 22px 16px 52px;
    }

    .post-detail-media-frame {
        height: 260px;
    }

    .post-detail-card > .post-body {
        padding: 24px 18px 28px;
    }

    .article-title {
        font-size: 1.82rem !important;
    }

    .article-paragraph {
        font-size: 0.99rem !important;
        line-height: 1.9 !important;
    }

    .article-inline-image,
    .article-video {
        border-radius: 0;
    }

    .post-comments-panel {
        padding: 22px 18px 8px !important;
    }

    .post-actions {
        gap: 6px;
    }

    .action-btn {
        font-size: 0.8rem;
    }

    .comment-item {
        padding: 12px;
    }
}

@media (max-width: 520px) {
    .logo h1 {
        font-size: 1.46rem;
    }

    .nav-link {
        flex-basis: 100%;
    }

    .home-hero-title {
        font-size: 1.72rem;
    }

    .home-hero-tags span,
    .home-hero-panel-tags span {
        width: 100%;
        justify-content: center;
    }

    .post-body {
        padding: 18px 18px 16px;
    }

    .comments-section {
        padding: 0 18px 18px;
    }

    .article-quick-answer,
    .article-faq-section {
        padding: 20px !important;
    }

    .article-faq-section > h3 {
        font-size: 1.2rem !important;
    }

    .article-title {
        font-size: 1.62rem !important;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }
}

.info-page-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 24px 72px;
}

.info-page-card {
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.96);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.info-page-card::before {
    display: none;
}

.info-page-card .post-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 34px clamp(22px, 4vw, 40px) 38px;
}

.info-page-header {
    margin-bottom: 24px;
}

.info-page-intro {
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.95;
    margin-top: 12px;
}

.info-page-grid {
    display: grid;
    gap: 18px;
}

.info-page-section {
    padding: 20px 22px;
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.9);
    background: #faf6ef;
}

.info-page-section h2 {
    color: var(--secondary);
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.info-page-section p {
    color: var(--text-light);
    font-size: 0.96rem;
    line-height: 1.86;
}

.info-page-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.info-page-list li {
    position: relative;
    padding-left: 16px;
    color: var(--text-light);
    font-size: 0.96rem;
    line-height: 1.8;
}

.info-page-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 0;
    background: var(--primary);
}

.info-page-contact {
    display: grid;
    gap: 12px;
}

.info-page-contact a {
    color: var(--secondary);
    font-weight: 700;
}

.info-page-contact strong {
    color: var(--text);
}

@media (max-width: 768px) {
    .info-page-shell {
        padding: 24px 16px 52px;
    }

    .info-page-card,
    .info-page-section {
        border-radius: 0;
    }

    .info-page-card .post-body {
        padding: 24px 18px 28px;
    }

    .info-page-intro,
    .info-page-section p,
    .info-page-list li {
        font-size: 0.95rem;
    }
}

@media (min-width: 1500px) {
    .site-side-panel-wrap {
        display: block;
    }
}

@media (min-width: 1800px) {
    :root {
        --side-panel-width: 260px;
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 250, 243, 0.82);
}

::-webkit-scrollbar-thumb {
    background: rgba(182, 75, 52, 0.32);
    border-radius: 0;
    border: 2px solid rgba(255, 250, 243, 0.82);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(182, 75, 52, 0.46);
}

/* Taiwan visual refresh v2 */
:root {
    --primary: #a45a46;
    --primary-dark: #824534;
    --secondary: #27424c;
    --accent: #b89557;
    --bg: #f5f0e8;
    --bg-card: #fffdf8;
    --text: #213440;
    --text-light: #5f6d76;
    --text-muted: #988c7d;
    --border: #d7ccc0;
    --shadow: 0 10px 28px rgba(77, 60, 42, 0.07);
    --shadow-hover: 0 16px 34px rgba(77, 60, 42, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --header-height: 72px;
}

body {
    background: linear-gradient(180deg, #f8f4ee 0%, #f2ebe1 100%);
    color: var(--text);
}

.site-header {
    background: rgba(250, 246, 240, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(215, 204, 192, 0.92);
    box-shadow: 0 6px 18px rgba(77, 60, 42, 0.05);
}

.site-header::before {
    content: none;
}

.header-inner {
    max-width: 1180px;
    min-height: var(--header-height);
    padding: 12px 24px;
}

/* .logo::before {
    width: 38px;
    height: 38px;
    border-radius: 0;
    background: #f3e6da;
    color: var(--primary);
    border: 1px solid rgba(164, 90, 70, 0.18);
    box-shadow: none;
    font-size: 1.02rem;
} */

.logo h1 {
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    color: var(--text);
}

.logo-sub {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    color: var(--text-light) !important;
    font-size: 0.78rem;
}

.main-nav {
    gap: 8px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 0;
    border-color: transparent;
    color: var(--text-light);
}

.nav-link:hover {
    background: #fff7f0;
    border-color: rgba(164, 90, 70, 0.28);
    color: var(--primary);
    transform: none;
}

.nav-link.active {
    background: #fff7f0;
    border-color: rgba(164, 90, 70, 0.28);
    color: var(--primary);
    box-shadow: none;
}

.btn-post {
    padding: 10px 16px;
    border-radius: 0;
    background: #fff7f0;
    color: var(--primary);
    border: 1px solid rgba(164, 90, 70, 0.24);
    box-shadow: none;
}

.btn-post:hover {
    background: var(--primary);
    color: #fffaf5;
    box-shadow: none;
}

.category-bar {
    top: var(--header-height);
    background: rgba(250, 246, 240, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(215, 204, 192, 0.84);
}

.category-inner {
    max-width: 1180px;
    padding: 12px 24px;
    gap: 10px;
}

.cat-tag {
    padding: 9px 16px;
    border-radius: 0;
    background: #fffdf8;
    border: 1px solid rgba(215, 204, 192, 0.96);
    box-shadow: none;
    color: var(--text-light);
}

.cat-tag:hover {
    background: #fff7f0;
    color: var(--primary);
    border-color: rgba(164, 90, 70, 0.28);
}

.cat-tag.active {
    background: #fff7f0;
    color: var(--primary);
    border-color: rgba(164, 90, 70, 0.28);
    box-shadow: none;
}

.home-hero {
    padding: 24px 24px 0;
}

.home-hero-inner {
    max-width: 1180px;
    padding: 32px;
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.96);
    border-top: 4px solid var(--accent);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    gap: 24px;
}

.home-hero-inner::before,
.home-hero-inner::after {
    content: none;
}

.home-hero-kicker {
    padding: 0 0 0 10px;
    border: none;
    border-left: 3px solid var(--primary);
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--primary);
    font-size: 0.82rem;
}

.home-hero-brand {
    gap: 10px;
    align-items: center;
}

/* .home-hero-brand::before {
    width: 58px;
    height: 58px;
    border-radius: 0;
    background: #f3e8dc;
    color: var(--primary);
    border: 1px solid rgba(164, 90, 70, 0.16);
    box-shadow: none;
    font-size: 1.34rem;
} */

.home-hero-logo {
    width: 68px;
    height: 68px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: block;
}

.home-hero-name {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
}

.home-hero-title {
    font-size: clamp(1.95rem, 2.7vw, 2.6rem);
    line-height: 1.18;
    letter-spacing: 0.02em;
    color: var(--text);
}

.home-hero-text {
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.9;
}

.home-hero-tags span {
    padding: 10px 14px;
    border-radius: 0;
    background: #f7f2eb;
    border: 1px solid rgba(215, 204, 192, 0.9);
    box-shadow: none;
    color: var(--secondary);
}

.home-hero-panel {
    padding: 22px 20px;
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.96);
    background: #faf5ee;
    box-shadow: none;
}

.home-hero-panel::after {
    content: none;
}

.home-hero-panel-label {
    padding: 0 0 0 10px;
    border: none;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    background: none;
    color: var(--primary);
}

.home-hero-panel-tags span {
    padding: 8px 12px;
    border-radius: 0;
    background: #fffdf8;
    border: 1px solid rgba(215, 204, 192, 0.9);
    color: var(--secondary);
}

.site-side-panel-wrap {
    display: none !important;
}

.posts-container:not(.detail-mode) {
    max-width: 1180px;
    padding: 28px 24px 68px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
}

.posts-container > .post-card:not(.post-detail-card) {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.96);
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.posts-container > .post-card:not(.post-detail-card):first-child {
    grid-column: span 7;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
}

.posts-container > .post-card:not(.post-detail-card):nth-child(2) {
    grid-column: span 5;
}

.post-card {
    position: relative;
}

.post-card::before {
    display: none;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.posts-container > .post-card:not(.post-detail-card) > a:first-child {
    height: 214px;
    background: #f3ece2;
}

.posts-container > .post-card:not(.post-detail-card):first-child > a:first-child {
    height: 100%;
    min-height: 336px;
}

.post-media-frame {
    height: 214px;
}

.media-frame::before {
    border-color: rgba(255, 255, 255, 0.18);
}

.media-frame::after {
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(33, 52, 64, 0.08));
}

.post-body {
    padding: 18px 20px 16px;
}

.posts-container > .post-card:not(.post-detail-card):first-child .post-body {
    padding: 24px 24px 20px;
}

.post-avatar {
    border-color: rgba(255, 247, 240, 1);
    box-shadow: none;
}

.post-cat-badge {
    background: #f5eee3;
    border: 1px solid rgba(215, 204, 192, 0.96);
    color: var(--secondary);
}

.post-title {
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.46;
}

.posts-container > .post-card:not(.post-detail-card):first-child .post-title {
    font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
    font-size: 1.72rem;
    line-height: 1.35;
    -webkit-line-clamp: 3;
    min-height: unset;
}

.posts-container > .post-card:not(.post-detail-card):first-child .post-content {
    -webkit-line-clamp: 4;
    min-height: calc(1.76em * 4);
    font-size: 0.95rem;
}

.post-location {
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--primary);
    font-size: 0.8rem;
}

.post-actions {
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(215, 204, 192, 0.9);
}

.action-btn {
    padding: 10px 10px;
    border-radius: 0;
    background: #faf6f0;
    border: 1px solid transparent;
    color: var(--text-light);
}

.action-btn:hover {
    background: #f3ece3;
    border-color: rgba(215, 204, 192, 0.96);
    color: var(--secondary);
    transform: none;
}

.action-btn.liked {
    background: #f8ebe5;
    border-color: rgba(164, 90, 70, 0.14);
}

.comment-item {
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.88);
    background: #fffdfa;
}

.detail-mode {
    max-width: 980px;
    padding: 32px 24px 72px;
}

.post-detail-card {
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.96);
    box-shadow: var(--shadow);
    background: var(--bg-card);
}

.post-detail-card::before {
    display: none;
}

.post-detail-media-frame {
    height: clamp(280px, 34vw, 420px);
    border-bottom: 1px solid rgba(215, 204, 192, 0.96);
    background: #f4eee6;
}

.post-detail-image {
    padding: 20px;
}

.post-detail-card > .post-body {
    padding: 30px clamp(22px, 4vw, 40px) 34px;
}

.article-title {
    font-size: clamp(1.95rem, 3vw, 2.45rem) !important;
    line-height: 1.34 !important;
    color: var(--text);
}

.article-quick-answer {
    padding: 20px 22px !important;
    border-radius: 0 !important;
    border: 1px solid rgba(215, 204, 192, 0.96) !important;
    border-left: 4px solid var(--primary) !important;
    background: #faf3ea !important;
    box-shadow: none !important;
}

.article-quick-answer::after {
    content: none;
}

.article-quick-answer h3 {
    font-size: 1.08rem !important;
    color: var(--text) !important;
}

.article-quick-answer p {
    color: var(--text-light) !important;
}

.article-highlight {
    padding: 18px 20px;
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.96);
    background: #f8f3ed;
    box-shadow: none;
}

.article-highlight-title {
    color: var(--secondary);
}

.article-highlight-title::before {
    width: 8px;
    height: 8px;
    border-radius: 0;
    box-shadow: none;
}

.article-section-label {
    padding: 0 0 0 10px;
    border: none;
    border-left: 3px solid var(--secondary);
    border-radius: 0;
    background: none;
    color: var(--secondary);
}

.article-paragraph {
    font-size: 1.02rem !important;
    line-height: 1.95 !important;
}

.article-inline-image,
.article-video {
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.96);
    box-shadow: none;
}

.article-faq-section {
    padding: 22px !important;
    border-radius: 0 !important;
    border: 1px solid rgba(215, 204, 192, 0.96) !important;
    background: #fffdf8 !important;
    box-shadow: none !important;
}

.article-faq-section::before {
    content: none;
}

.article-faq-section > h3 {
    border-bottom: 1px solid rgba(215, 204, 192, 0.96) !important;
    padding-bottom: 12px;
    font-size: 1.24rem !important;
    color: var(--text) !important;
}

.article-faq-section .faq-item {
    padding: 16px 0 !important;
    border-bottom: 1px solid rgba(215, 204, 192, 0.76) !important;
}

.article-faq-section h4 {
    font-size: 0.98rem !important;
    color: var(--secondary) !important;
}

.article-faq-section p {
    color: var(--text-light) !important;
}

.post-comments-panel {
    padding: 22px 22px 8px !important;
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.96);
    background: #faf6ef;
    box-shadow: none;
}

.post-comments-panel h3 {
    border-bottom: 1px solid rgba(215, 204, 192, 0.96) !important;
    color: var(--text);
    font-size: 1.08rem !important;
}

.btn-back {
    padding: 10px 14px;
    border-radius: 0;
    background: #fffdf8;
    border: 1px solid rgba(215, 204, 192, 0.96);
    box-shadow: none;
}

.btn-back:hover {
    background: #f2ece3;
    color: var(--secondary);
    box-shadow: none;
}

.modal {
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.96);
    box-shadow: var(--shadow);
}

.modal-header h2 {
    color: var(--text);
}

.modal-close {
    border-radius: 0;
}

.btn-submit {
    border-radius: 0;
    background: var(--secondary);
    box-shadow: none;
}

.btn-submit:hover {
    background: #345461;
    box-shadow: none;
}


@media (max-width: 1080px) {
    .site-header {
        position: relative;
        top: 0;
        backdrop-filter: none;
    }

    .header-inner {
        height: auto;
        min-height: auto;
        padding: 16px;
        gap: 12px;
    }

    .category-bar {
        position: relative;
        top: 0;
        overflow-x: hidden;
        backdrop-filter: none;
        scroll-margin-top: 24px;
    }

    .category-inner {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 12px 16px 14px;
        flex-wrap: wrap;
        gap: 10px;
        overflow-x: visible;
    }

    .cat-tag {
        flex: 0 0 auto;
        max-width: 100%;
        white-space: nowrap;
    }

    .posts-container:not(.detail-mode) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .posts-container > .post-card:not(.post-detail-card),
    .posts-container > .post-card:not(.post-detail-card):first-child,
    .posts-container > .post-card:not(.post-detail-card):nth-child(2) {
        grid-column: span 1;
        display: flex;
        grid-template-columns: none;
    }

    .posts-container > .post-card:not(.post-detail-card):first-child > a:first-child {
        min-height: 0;
        height: 240px;
    }

    .posts-container > .post-card:not(.post-detail-card):first-child .post-title {
        font-size: 1.32rem;
        -webkit-line-clamp: 2;
    }

    .posts-container > .post-card:not(.post-detail-card):first-child .post-content {
        -webkit-line-clamp: 3;
        min-height: calc(1.76em * 3);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 16px;
    }

    .nav-link {
        border-radius: 0;
    }

    .home-hero {
        padding: 18px 16px 0;
    }

    .home-hero-inner {
        padding: 24px 20px;
        border-radius: 0;
    }
/* 
    .home-hero-brand::before {
        width: 50px;
        height: 50px;
        border-radius: 0;
        font-size: 1.14rem;
    } */

    .home-hero-logo {
        width: 50px;
        height: 50px;
    }

    .home-hero-title {
        font-size: 1.78rem;
    }

    .posts-container:not(.detail-mode) {
        padding: 20px 16px 56px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .posts-container > .post-card:not(.post-detail-card):first-child > a:first-child,
    .posts-container > .post-card:not(.post-detail-card) > a:first-child,
    .post-media-frame {
        height: 220px;
    }

    .post-card,
    .home-hero-panel,
    .post-detail-card,
    .article-quick-answer,
    .article-highlight,
    .article-faq-section,
    .post-comments-panel,
    .modal {
        border-radius: 0 !important;
    }

    .detail-mode {
        padding: 24px 16px 52px;
    }

    .post-detail-card > .post-body {
        padding: 24px 18px 28px;
    }

    .article-title {
        font-size: 1.74rem !important;
    }

    .article-paragraph {
        font-size: 0.98rem !important;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }
}
/* Final mobile overrides: keep header and category flow stable after theme overrides. */
@media (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: auto;
        gap: 12px;
    }

    .logo {
        margin-right: 0;
    }

    .logo-sub {
        display: none;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        gap: 8px;
    }

    .nav-link {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.84rem;
    }

    .header-actions {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .category-bar {
        position: relative;
        top: 0;
        overflow-x: hidden;
        scroll-margin-top: 24px;
    }

    .category-inner {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 12px 16px 14px;
        flex-wrap: wrap;
        gap: 10px;
        overflow-x: visible;
    }

    .cat-tag {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .main-nav {
        gap: 8px;
    }

    .nav-link {
        flex-basis: calc(50% - 8px);
    }
}

/* ========== Share Page 發帖分享頁面 ========== */
.share-page {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 24px 72px;
}

.share-page-card {
    border-radius: 0;
    border: 1px solid rgba(215, 204, 192, 0.96);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    padding: 36px 40px 40px;
}

.share-page-copy {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(215, 204, 192, 0.9);
}

.share-page-copy .home-hero-kicker {
    margin-bottom: 16px;
}

.share-page-copy h2 {
    font-family: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 12px;
}

.share-page-copy p {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-light);
}

.share-form {
    display: grid;
    gap: 22px;
}

.share-form-field {
    display: grid;
    gap: 10px;
}

.share-form-field > span {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 0.02em;
}

.share-form-field input,
.share-form-field textarea,
.share-form-field select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(215, 204, 192, 0.96);
    border-radius: 0;
    font-size: 0.96rem;
    font-family: inherit;
    background: #fffdf8;
    color: var(--text);
    transition: all 0.3s ease;
}

.share-form-field input:focus,
.share-form-field textarea:focus,
.share-form-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(164, 90, 70, 0.08);
    background: #fff;
}

.share-form-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

.share-form-field input[type="file"] {
    padding: 12px 14px;
    cursor: pointer;
}

.share-upload-preview {
    padding: 16px 18px;
    border-radius: 0;
    background: #f8f3ed;
    border: 1px dashed rgba(215, 204, 192, 0.96);
    color: var(--text-light);
    font-size: 0.92rem;
    text-align: center;
}

.btn-submit {
    margin-top: 8px;
    padding: 16px 24px;
    border-radius: 0;
    background: var(--secondary);
    color: #fffaf5;
    font-size: 1.02rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: #345461;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(39, 66, 76, 0.18);
}

@media (max-width: 768px) {
    .share-page {
        padding: 24px 16px 52px;
    }

    .share-page-card {
        padding: 28px 22px 32px;
        border-radius: 0;
    }

    .share-page-copy h2 {
        font-size: 1.68rem;
    }

    .share-page-copy p {
        font-size: 0.96rem;
    }

    .share-form {
        gap: 20px;
    }

    .share-form-field input,
    .share-form-field textarea,
    .share-form-field select {
        padding: 12px 14px;
        font-size: 0.94rem;
    }
}
