/* ==================== 
   自定義字體
   ==================== */

/**
 * 引用字體
 */

/* 全站修正 —— 舊刊宋&漢文隸書&DoulosSIL */
@import url(/assets/fonts/舊刊宋-20251219/result.css);
@import url(/assets/fonts/漢文隸書/result.css);
@import url(/assets/fonts/DoulosSIL-Regular/result.css);
/* 標籤雲 —— 寒蟬全圓體 */
@import url(/assets/fonts/寒蟬全圓體/result.css);
/* 收藏&計劃頁面 —— Maple Mono NF CN */
/*
@import url("https://fontsapi.zeoseven.com/442/main/result.css");
@import url("https://chinese-fonts-cdn.deno.dev/packages/maple-mono-cn/dist/MapleMono-CN-Regular/result.css");
*/

/**
 * 自定義字體定義
 */

/* 電腦端站點名稱 —— 水雲鄉 */
@font-face {
    font-family: Shuiyunxiang;
    src: url(/assets/fonts/Shuiyunxiang.woff2) format('woff2'),
         url(/assets/fonts/Shuiyunxiang.woff) format('woff');
    font-display: swap;
}

/* 手機端站點名稱 —— 水雲鄉 */
@font-face {
    font-family: Shiju-Zhuan;
    src: url(/assets/fonts/Shiju-Zhuan.woff2) format('woff2'),
         url(/assets/fonts/Shiju-Zhuan.woff) format('woff');
    font-display: swap;
}

/* 站點底部 —— 詩句 */
@font-face {
    font-family: Shiju-Bo;
    src: url(/assets/fonts/Shiju-Bo.woff2) format('woff2'),
         url(/assets/fonts/Shiju-Bo.woff) format('woff');
    font-display: swap;
}

/* 站點底部&手機端菜單底部 —— 詩句&站點名稱 */
@font-face {
    font-family: Shiju-Kai;
    src: url(/assets/fonts/Shiju-Kai.woff2) format('woff2'),
         url(/assets/fonts/Shiju-Kai.woff) format('woff');
    font-display: swap;
}

/* 站點頂部 —— 繁簡切換 */
@font-face {
    font-family: Fanjian;
    src: url(/assets/fonts/Fanjian.woff2) format('woff2'),
         url(/assets/fonts/Fanjian.woff) format('woff');
    font-display: swap;
}

/* 站點導航&手機菜單導航 —— 導航條 */
@font-face {
    font-family: Daohang;
    src: url(/assets/fonts/Daohang.woff2) format('woff2'),
         url(/assets/fonts/Daohang.woff) format('woff');
    font-display: swap;
}

/* 全站修正 —— 符號&拉丁字母&西里爾字母&希臘字母 */
@font-face {
    font-family: Fuhao;
    src: url(/assets/fonts/Fuhao.woff2) format('woff2'),
         url(/assets/fonts/Fuhao.woff) format('woff');
    font-display: swap;
}

/* 404頁面 —— 候繕 */
@font-face {
    font-family: NotFound;
    src: url(/assets/fonts/404.woff2) format('woff2'),
         url(/assets/fonts/404.woff) format('woff');
    font-display: swap;
}

/* 個人簡介頁 —— 照片題詞 */
@font-face {
    font-family: Inscription;
    src: url(/assets/fonts/Inscription.woff) format('woff');
    font-display: swap;
}

/**
 * 項目字體
 */

/* 博瞻遠望 */
@font-face {
    font-family: Bowang;
    src: url(/assets/fonts/Bowang.woff2) format('woff2'),
         url(/assets/fonts/Bowang.woff) format('woff');
    font-display: swap;
}

/* 漢服春晚 */
@font-face {
    font-family: Hanfuchunwan;
    src: url(/assets/fonts/Hanfuchunwan.woff2) format('woff2'),
         url(/assets/fonts/Hanfuchunwan.woff) format('woff');
    font-display: swap;
}

/**
 * 常用字體回退
 */

/* 楷體 */
@font-face {
    font-family: Kaiti;
    src: local("Kaiti"),
         local("楷体"),
         local("楷体_GB2312"),
         local("STKaiti"),
         local("STXingkai"),
         local("STXingkaiSC"),
         local("STXingkaiTC"),
         local("STKaitiSC"),
         local("STKaitiTC"),
         local("Noto Serif CJK JP"),
         local("Noto Serif CJK SC"),
         local("Noto Serif CJK TC");
    font-display: swap;
}

/* 宋體 */
@font-face {
    font-family: Songti;
    src: local("Typography Old P Medium"),
         local("SimSun"),
         local("宋体"),
         local("Simsun"),
         local("HiraMinProN-W3"),
         local("HiraMinProN-W6"),
         local("STSong"),
         local("STSongti"),
         local("STSongtiSC"),
         local("STSongtiTC"),
         local("STSongtiHK"),
         local("Noto Serif CJK JP"),
         local("Noto Serif CJK SC"),
         local("Noto Serif CJK TC"),
         local("Noto Serif CJK HK");
    font-display: swap;
}

/* 黑體 */
@font-face {
    font-family: Heiti;
    src: local("微軟正黑體"),
         local("Microsoft JhengHei"),
         local("微软雅黑"),
         local("Microsoft YaHei"),
         local("SimHei"),
         local("黑体"),
         local("STHeiti"),
         local("STHeitiSC"),
         local("STHeitiTC"),
         local("STHeitiHK"),
         local("HiraKakuProN-W3"),
         local("HiraKakuProN-W6"),
         local("Malgun Gothic"),
         local("Meiryo"),
         local("AppleGothic"),
         local("Noto Sans CJK JP"),
         local("Noto Sans CJK SC"),
         local("Noto Sans CJK TC"),
         local("Noto Sans CJK HK");
    font-display: swap;
}

/* 倣宋 */
@font-face {
    font-family: Fangsong;
    src: local("FangSong_GB2312"),
         local("FangSong"),
         local("仿宋_GB2312"),
         local("仿宋");
    font-display: swap;
}

/* ==================== 
   全域變量定義
   ==================== */

:root {
    /* 色調 */
    --clr-sun-moon: #f4f4f4;
    --clr-main: #0a0c24; /* 主色調：深紫色 */
    --clr-auxiliary: #8881c7; /* 輔助色：淺紫色 */
    --clr-black: #333333;
    --clr-darkblack: #000000;
    --clr-white: #f4f4f4;
    --clr-brightwhite: #ffffff;
    --clr-grey: #a5a5a5;
    --clr-darkgrey: #747474;
    --clr-gold: #cfb53b;
    --clr-darkgold: #ad9f76;
    --clr-blue: #4682b4;
    --clr-lightblue: #4299e1;
    --clr-blackblue: #40676c;
    --clr-green: #00c725;
    --clr-darkgreen: #15932d;

    /* 鏈接 */
    --clr-a: #f9f9f9;
    --clr-a-hover: #0056b3;
    --clr-a-current: #007bff;
    --clr-a-actived: #007bff;
    --clr-a-disabled: #007bff;
    --clr-a-border: #ddd;

    /* 按鈕 */
    --clr-btn: #007bff;
    --clr-btn-hover: #0056b3;
    --clr-btn-border: #ddd;

    /* 邊框陰影 */
    --clr-borderline: #e2e8f0;
    --clr-inputbg: #f8fafc;
    --clr-white-shadow: rgba(0, 0, 0, 0.2); /* 白色陰影 */
    --clr-black-shadow: rgba(255, 255, 255, 0.5); /* 黑色陰影 */

    /* 水雲鄉 */
    --clr-shadow: #260234; /* 紫黑色 */
    --clr-liuguang1: #f76f87; /* 流光配色 */
    --clr-liuguang2: #6a94d4; /* 流光配色 */
    --clr-liuguang3: #fff673; /* 流光配色 */
    --clr-seal: rgba(241, 27, 27, 0.84); /* 印章：紅色 */
    
    /* 特殊 */
    --clr-menu-background: rgba(255, 255, 255, 0.8);
    --clr-quote: rgba(0, 0, 0, 0.1);
    --clr-album-back-link: #f0f8ff;
    --bgimg-h1: url(/assets/images/svg/articles/symbols/circle.svg);  
    --bgimg-h2: url(/assets/images/svg/articles/symbols/arrow-circle.svg);
    --bgimg-h3: url(/assets/images/svg/articles/symbols/circle-line.svg);
    --bgimg-star: url(/assets/images/svg/index/title/sun.svg);

    /* 字體大小 */
    --fs-small: 12px;
    --fs-normal: 16px;
    --fs-big: 20px;
    --fs-bigger: 30px;
    --fs-large: 45px;
    --fs-huge: 100px;
}

[data-theme="dark"] {
    /* 色調 */
    --clr-sun-moon: #ad9f76;
    --clr-main: #0a0c24; /* 主色調：深紫色 */
    --clr-auxiliary: #8881c7; /* 輔助色：淺紫色 */
    --clr-black: #f4f4f4;
    --clr-darkblack: #ffffff;
    --clr-white: #333333;
    --clr-brightwhite: #616161;
    --clr-grey: #f0efef;
    --clr-darkgrey: #d7d7d7;
    --clr-gold: #cfb53b;
    --clr-darkgold: #ad9f76;
    --clr-blue: #4682b4;
    --clr-lightblue: #4299e1;
    --clr-blackblue: #8dd9e3;
    --clr-green: #00c725;
    --clr-darkgreen: #15932d;

    /* 鏈接 */
    --clr-a: #f9f9f9;
    --clr-a-hover: #0056b3;
    --clr-a-current: #007bff;
    --clr-a-actived: #007bff;
    --clr-a-disabled: #007bff;
    --clr-a-border: #ddd;

    /* 按鈕 */
    --clr-btn: #007bff;
    --clr-btn-hover: #0056b3;
    --clr-btn-border: #ddd;

    /* 邊框陰影 */
    --clr-borderline: #e2e8f0;
    --clr-inputbg: #f8fafc;
    --clr-white-shadow: rgba(0, 0, 0, 0.2); /* 白色陰影 */
    --clr-black-shadow: rgba(255, 255, 255, 0.5); /* 黑色陰影 */

    /* 水雲鄉 */
    --clr-shadow: #260234; /* 紫黑色 */
    --clr-liuguang1: #f76f87; /* 流光配色 */
    --clr-liuguang2: #6a94d4; /* 流光配色 */
    --clr-liuguang3: #fff673; /* 流光配色 */
    --clr-seal: rgba(241, 27, 27, 0.84); /* 印章：紅色 */
    
    /* 特殊 */
    --clr-menu-background: rgba(0, 0, 0, 0.6);
    --clr-quote: rgba(255, 255, 255, 0.1);
    --clr-album-back-link: #424a50ba;
    --bgimg-h1: url(/assets/images/svg/articles/symbols/circle-for-black.svg);  
    --bgimg-h2: url(/assets/images/svg/articles/symbols/arrow-circle-for-black.svg);
    --bgimg-h3: url(/assets/images/svg/articles/symbols/circle-line-for-black.svg);
    --bgimg-star: url(/assets/images/svg/index/title/moon.svg);
}

/* ==================== 
   基礎樣式
   ==================== */

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

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-padding-top: 80px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    background-color: var(--clr-white);
    font-family: Fuhao, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
}

h1 {
    margin: 10px 0;
    font-size: var(--fs-big);
    font-weight: 800;
    font-family: Fuhao, "漢文隸書", sans-serif;
    color: var(--clr-black);
}

p {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    word-spacing: -0.05em;
    margin-top: 0;
    margin-bottom: 1rem;
}

.nocopy,
header {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* FontAwesome圖標 */
i {
    margin-right: 5px;
}

/* ==================== 
   手機端菜單樣式
   ==================== */

.mobile-bar {
    position: fixed;
    left: 40px;
    top: 20px;
    z-index: 1002;
}

@media (min-width: 768px) {
    .mobile-bar {
        display: none;
    }
}

/* 菜單按鈕（放在語言切換條中） */
#menu-open {
    cursor: pointer;
}

#menu-open {
	position: relative;
	top: 2px;	
}

@media (min-width: 768px) {
    #menu-open {
        display: none;
    }
}

/* 菜單容器 */
#menu {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
    width: 50%;
    min-width: 300px;
    height: 100%;
    font-size: var(--fs-normal);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    background-color: var(--clr-menu-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 15px var(--clr-quote);
    z-index: 1002;
}

#menu.open {
    transform: translateX(0);
}

body.menu-open {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* 菜單背景遮罩 */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* 菜單選項 */
.menu-nav {
    display: flex;
    flex-direction: column;
    margin: 20px 0 0 0;
    justify-content: center;
}

.menu-nav-item {
	height: 34px;
    padding: 5px 30px;
    font-family: Daohang, serif;
    color: var(--clr-blue);
	line-height: 1.5em;
}

.menu-nav-item i {
    margin-right: 20px;
}

.menu-nav-item a {
    color: var(--clr-blue);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.menu-nav-item a:hover {
    color: var(--clr-lightblue);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.menu-nav-item a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-lightblue);
    transition: width 0.3s ease;
}

.menu-nav-item a:hover::after {
    width: 100%;
}

/* 菜單選項右側 */
.menu-nav-item-end {
    float: right;
}

.menu-nav-item-end-img {
    position: absolute;
    bottom: 42px;
    right: 40px;
    width: 60px;
    height: 60px;
}

/* 菜單底部 */
.menu-bottom {
    position: absolute;
    bottom: 20px;
    right: 30px;
    padding-left: 10px;
    color: var(--clr-darkgrey);
    font-family: Shiju-Kai, serif;
    font-size: var(--fs-normal);
    border-top: 0.75px solid var(--clr-darkgrey);
}

.menu-bottom img {
    position: relative;
    top: 2px;
    width: 16px;
    height: 16px;
    margin-left: 5px;
}
/* ==================== 
   微信模態框樣式
   ==================== */

.weixin-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    pointer-events: auto;
    /* 完全阻止觸摸事件 */
    touch-action: none;
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
}

.weixin-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 10px 20px 20px 20px;
    border-radius: 8px;
    width: 260px;
    text-align: center;
    pointer-events: auto;
    /* 完全阻止選擇和拖動 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* 允許內容區域內的觸摸滾動 */
    touch-action: pan-y;
}

/* 改進的防穿透方案 */
body.wechat-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
    /* 完全阻止背景滾動 */
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

.qr-image {
    width: 220px;
    height: 220px;
    display: block;
    margin: 0 auto 10px;
}

.qr-text {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #555;
}

/* ==================== 
   頭部樣式
   ==================== */

header {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px 0;
    width: 100%;
    background: linear-gradient(135deg, var(--clr-main), #314152e0);
    border-bottom: 2px solid var(--clr-darkgold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #0a0c24c4;
        z-index: 1000;
        transition: transform 0.3s ease-in-out;
        transform: translateY(0);
        will-change: transform;
    }
}

/* 頭部菜單、名稱、語言欄 */
.language-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
	font-family: Fuhao, "漢文隸書", sans-serif;
}

.language-selector img {
    width: 24px;
    height: 24px;
}

.language-site-name {
    width: calc(100% - 134px);
    padding-left: 36px;
    text-align: center;
}

.language-site-name a {
    font-size: var(--fs-big);
    font-family: Shiju-Zhuan, Shiju-Kai, Heiti, sans-serif;
    color: var(--clr-darkgold);
    font-weight: bolder;
}

@media (min-width: 768px) {
    .language-site-name {
        display: none;
    }
}

/* 語言選擇 */
.select-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.selected-language,
.language-option {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 60px;
    cursor: pointer;
}

.selected-language {
    padding: 5px 15px 5px 5px;
    border: 1px solid #7d7d7db0;
    border-radius: 5px;
    background-color: transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.selected-language:hover {
    border-color: #8881c799;
}

.selected-language img,
.language-option img {
    width: 16px;
    height: 16px;
}

.selected-language span,
.language-option span {
    font-size: var(--fs-small);
    color: white;
}

.selected-language::after {
    content: "";
    position: absolute;
    right: 31px;
    top: 34px;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid #7f8c8d;
    transition: transform 0.3s ease;
}

.language-options {
    position: absolute;
    top: 51px;
    right: 25px;
    background-color: #2c3e5099;
    border-radius: 5px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.language-option {
    padding: 5px;
    transition: background 0.2s ease;
}

.language-option:hover {
    background-color: #8881c799;
}

.select-wrapper.active .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-wrapper.active .selected-language::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 明暗切換按鈕 */
.theme-toggle {
    position: fixed;
    top: 25px;
    right: 125px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: transparent;
    color: var(--clr-sun-moon);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: var(--fs-small);
    cursor: pointer;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: #3c9aa9;
}

.theme-toggle i {
    font-size: 16px;
    margin: 0;
}

@media (max-width: 768px) {
    .theme-toggle {
        position: fixed;
        top: 23px;
        left: 60px;
    }
}

/* 繁簡切換按鈕 */
#t-s {
    position: absolute;
    right: 90px;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

#t-s button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: transparent;
    font-size: var(--fs-small);
    font-family: Fanjian;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#t-s button[data-mode="traditional"] {
    color: #f4f4f499;
    border: 1px solid #57897e99;
}

#t-s button[data-mode="simple"] {
    color: #cfb53be8;
    border: 1px solid #f11b1be8;
}

/* 網頁頭部內容 */
.container-nav {
    display: flex;
    padding: 20px 0;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .container-nav {
        display: none;
    }
}

/* 水雲鄉 */
.branding {
    margin: 0;
    padding: 0 60px;
    overflow: hidden;
}

.branding h1 {
    margin: 10px 0;
    height: 65px;
    color: white;
    font: normal var(--fs-large) Shuiyunxiang;
    text-shadow: 0 0 1px black, 1px 1px 3px var(--clr-shadow);
}

.branding span {
    position: relative;
    top: 8px;
    margin: 0 0 0 5px;
    padding: 0;
    color: var(--clr-seal);
}

/*流光效果*/
.liuguang {
    position: absolute;
    z-index: 2;
    mix-blend-mode: darken;
}

.liuguang_item {
    overflow: hidden;
    position: absolute;
    border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%;
    filter: blur(15px);
    mix-blend-mode: overlay;
}

.liuguang_item:nth-of-type(1) {
    width: 65px;
    height: 65px;
    background-color: var(--clr-liuguang1);
    animation: liuguang-1 7s ease-in-out infinite alternate;
}

.liuguang_item:nth-of-type(2) {
    width: 160px;
    height: 65px;
    background-color: var(--clr-liuguang2);
    animation: liuguang-2 3s ease-in-out infinite alternate;
}

.liuguang_item:nth-of-type(3) {
    width: 160px;
    height: 65px;
    background-color: var(--clr-liuguang3);
    animation: liuguang-3 5s ease-in-out infinite alternate;
}

@keyframes liuguang-1 {
    0% {
        transform: translate(0, -65px) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translate(90px, -65px) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, -65px) scale(0.8);
        opacity: 0.8;
    }
}

@keyframes liuguang-2 {
    0% {
        transform: translate(0, -100px) scale(0.2);
        opacity: 0.1;
    }
    50% {
        transform: translate(0, -65px) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(0, -100px) scale(0.2);
        opacity: 0.1;
    }
}

@keyframes liuguang-3 {
    0% {
        transform: translate(-50px, -100px) scale(0.8);
        opacity: 0.1;
    }
    50% {
        transform: translate(48px, -50px) scale(0.3);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50px, -100px) scale(0.8);
        opacity: 0.1;
    }
}

/*閃爍效果*/
@keyframes glow {
    0% {
    }
    50% {
        text-shadow: 0 0 1px #F4F4F4, 0 0 4px #ACE7EF, 0 0 6px #ACE7EF, 0 0 8px #ACE7EF, 0 0 10px #ACE7EF, 0 0 12px #ACE7EF;
    }
    100% {
        text-shadow: 0 0 3px #F4F4F4, 0 0 10px #ACE7EF, 0 0 15px #ACE7EF, 0 0 20px #ACE7EF, 0 0 25px #ACE7EF, 0 0 30px #ACE7EF;
    }
}

.glow-text {
    color: #F4F4F4;
    animation: glow 3s ease-in-out infinite;
}

/* 導航條 */
nav {
    display: flex;
    align-items: flex-end;
    margin: 0;
    padding: 0;
    font-family: Daohang, "Typography Old P Medium", Songti, serif;
    font-size: 16px;
}

nav ul {
    margin: 0 20px 0 0;
    padding: 0;
    list-style: none;
}

nav li {
    margin: 0 10px;
    padding: 0;
    display: inline;
}

nav a {
    color: white;
}

nav a:hover {
    color: var(--clr-auxiliary);
}

.current {
    color: var(--clr-auxiliary);
}
/* ==================== 
   主容器樣式
   ==================== */

.main-container {
    display: flex;
    flex: 1;
    width: 100%;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        margin-top: 72px;
        min-height: calc(100dvh - 72px);
    }
}
/* ==================== 
   首頁-側邊欄樣式
   ==================== */

.index-sidebar {
    width: 360px;
    flex-shrink: 0;
    padding: 20px;
    border-right: 1px solid #a5a5a554;
}

@media (max-width: 768px) {
    .index-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #a5a5a554;
    }
}

/* 頭像 */
.avatar-container {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--clr-brightwhite);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .index-sidebar .avatar {
        display: none;
    }
}

/* 社交鏈接 */
.social-links {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
}

.social-links a {
    position: relative;
    display: inline-block;
    margin: 0 5px;
	width: 30px;
	height: 30px;
    background-color: var(--clr-brightwhite);
	border-radius:50%;
}

@media (max-width: 768px) {
    .index-sidebar .social-links {
        display: none;
    }
}

.social-tooltip {
    visibility: hidden;
    width: max-content;
    background-color: var(--clr-main);
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 6px 12px;
    position: absolute;
    z-index: 999;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font: var(--fs-small) Heiti;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.social-links a:hover .social-tooltip {
    visibility: visible;
    opacity: 0.75;
}

.social-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--clr-main) transparent transparent transparent;
}

/* 雜言雜語 */
.mind {
    position: relative;
    width: 100%;
    margin: 0 0 20px 0;
    padding: 20px;
    border: 1px dotted var(--clr-grey);
    border-radius: 0.375rem;
    color: var(--clr-black);
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
}

.mind p {
    max-height: 75px;
    overflow-y: auto;
}

.mind_img {
	position: relative;
	top: 3px;
    width: auto;
    height: 18px;
}

@media (max-width: 768px) {
    .mind {
        width: calc(100% - 20px);
        margin: 0 10px 20px 10px;
    }
    
    .index-sidebar .mind {
        display: none;
    }
}

.mind::before {
    content: "\201C";
    font-size: 80px;
    color: var(--clr-quote);
    position: absolute;
    left: -20px;
    top: -23px;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    line-height: 1;
    z-index: -2;
}

.mind-timestamp {
    position: absolute;
    bottom: 5px;
    right: 10px;
    color: var(--clr-grey);
    font-size: 0.9em;
}

/* 手機端網站標題 */
.site-name {
    display: none;
    margin: 0 0 40px 0;
    padding: 10px 0;
    text-align: center;
}

.site-name::before {
    content: "";
    position: absolute;
    top: 180px;
    left: calc(50% + 20px);
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-image: url(/assets/images/svg/index/title/seal.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.site-name::after {
    z-index: -1;
    content: "";
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 120px;
    border-radius: 0.375rem;
    background-image: var(--bgimg-star),
        url(/assets/images/svg/index/title/snow-1.svg),
        url(/assets/images/svg/index/title/snow-1.svg),
        url(/assets/images/svg/index/title/snow-2.svg),
        url(/assets/images/svg/index/title/snow-2.svg),
        url(/assets/images/svg/index/title/mountain.svg),
        linear-gradient(135deg, transparent, #4c8276);
    background-size: 80px 80px, 20px 20px, 15px 15px, 5px 5px, 7px 7px, 100px auto,
        auto 200px;
    background-position: -35px -35px, calc(50% + 110px) 34px,
        calc(50% + 65px) 55px, calc(50% + 90px) 25px, calc(50% + 102px) 58px,
        calc(50% + 100px) 64px, 0 0;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat,
        no-repeat;
}

.site-name h1 {
    margin: 0;
    transform: translateX(-50px);
    font-family: Shuiyunxiang, serif;
    font-size: var(--fs-large);
    font-weight: normal;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .site-name {
        display: block;
    }
}

.gradient {
    background: linear-gradient(
        135deg,
        #db8c9a,
        #db8c9a,
        #4c8276,
        #4c8276,
        #f4f3ec,
        #4c8276,
        #4c8276,
        #db8c9a,
        #db8c9a
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    animation: rainbow 8s linear infinite;
}

@keyframes rainbow {
    0% {
        background-position: 0% center;
    }
    
    100% {
        background-position: 200% center;
    }
}

/* 文章列表 */
.index-sidebar h1 {
    text-align: center;
}

.index-sidebar .list-group {
	display: flex;
    flex-direction: column;
	padding: 0;
    border: none;
	border-radius: 0.375rem;
    box-shadow: 0 10px 30px var(--clr-quote);
	overflow: hidden;
    font-size: var(--fs-normal);
}

.list-group-item {
	height: 42px;
	padding: 12px 16px;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    background-color: var(--clr-white);
    border: none;
    border-bottom: 1px dotted #a5a5a540;
	transition: all 0.3s ease;
}

.list-group-item:nth-child(6){
	border-bottom: none;
}

.list-group-item:hover {
    background-color: var(--clr-brightwhite);
	transform: translateY(-2px);
}

.list-group-item a{
    color: var(--clr-black);	
}

.list-group-item:not(:last-child):hover a{	
    color: #3385ff;
}

.list-group-item i {
    margin: 0 10px 0 0;
	color: var(--clr-black);
}

.index_to_articles {
    background-color: var(--clr-darkgrey);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: var(--fs-normal);
}

.index_to_articles:hover{
    background-color: var(--clr-darkgrey);
	transform: none;
}

.index_to_articles a {
    color: var(--clr-white);
    cursor: pointer;
}

.index_to_articles a:hover{
    color: var(--clr-gold);
}

.index_to_articles i {
    color: var(--clr-white);
    margin: 0 10px;
}

/* 熱搜列表 */
.selector {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 50%;
    margin: 10px auto;
    padding: 4px;
    border: 1px solid var(--clr-grey);
    border-radius: 8px;
}

.selector-btn {
    width: 50%;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    border: none;
    background: transparent;
    color: var(--clr-black);
}

.selector-btn.active {
    color: var(--clr-white);
}

.slider {
    position: absolute;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: var(--clr-lightblue);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.slider.weibo {
    transform: translateX(0);
}

.slider.baidu {
    transform: translateX(100%);
}

.platform-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.platform-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    
    to {
        opacity: 1;
    }
}
/* ==================== 
   首頁-主內容區樣式
   ==================== */

.index-main-content {
    flex: 1;
    padding: 20px;
    min-width: 0;
    background: var(--clr-brightwhite);
}

.index-main-content section {
    margin: 0 0 30px 0;
}

@media (max-width: 768px) {
    .index-main-content {
        width: 100%;
    }
}

/* 相冊樣式 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    font-size: var(--fs-small);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    color: white;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .gallery-caption-photo-date {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
        padding: 10px;
    }
}

.stack-container {
    position: relative;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    aspect-ratio: 3/2;
}

.stack-container:hover {
    transform: scale(1.05);
    z-index: 2;
}

.stack-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: rotate(var(--rotate));
    transition: all 0.3s ease;
}

.stack-container img:nth-child(1) {
    position: relative;
    z-index: 1;
}

.stack-container img:nth-child(2) {
    top: 5%;
    left: 5%;
    z-index: 0;
}

.stack-container img:nth-child(3) {
    top: 10%;
    left: -5%;
    z-index: -1;
}

.counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    font-family: Fuhao, sans-serif;
    font-size: var(--fs-small);
}

/* Fancybox 自定義標題樣式 */
.fancybox-caption {
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    line-height: 1.5;
}

.fancybox-caption__title {
    font-size: 16px;
    margin-bottom: 8px;
    text-align: center;
    font-family: Fuhao, Heiti, sans-serif;
}

.fancybox-caption__location,
.fancybox-caption__date {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
    text-align: center;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
}

.fancybox-caption__location i,
.fancybox-caption__date i {
    margin-right: 5px;
    width: 15px;
    text-align: center;
}

@media (max-width: 480px) {
    .fancybox-caption__title {
        text-align: left;
    }
    
    .fancybox-caption__location,
    .fancybox-caption__date {
        text-align: left;
    }
}
/* ==================== 
   留言表單樣式
   ==================== */

/* 留言板 */
.form-container {
    width: 100%;
}

.form-group {
    text-align: center;
    margin-bottom: 25px;
    font-size: var(--fs-normal);
}

.form-control {
	width: 100%;
    padding: 12px;
    border: 1px solid var(--clr-borderline);
    border-radius: 8px;
    font-size: var(--fs-small);
    transition: all 0.3s ease;
    background: var(--clr-white);
    color: var(--clr-black);
	font-family: Fuhao, "Typography Old P Medium", Songti, serif;
}

.form-control::placeholder {
    color: var(--clr-grey);
	font-family: Fuhao, "Typography Old P Medium", Songti, serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-lightblue);
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
    background: var(--clr-brightwhite);
}

/* 表情 */
.emoji-toggle-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.toggle-emoji-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b38fd9 0%, #2575fc 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.toggle-emoji-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #2575fc 0%, #b38fd9 100%);
}

.toggle-emoji-btn i {
    margin: 0;
    padding: 0;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.toggle-emoji-btn:hover i {
    transform: scale(1.2);
}

#message {
    padding-right: 50px !important;
}

.emoji-container {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    background: var(--clr-brightwhite);
    margin: 10px 0;
}

.emoji-set-switcher {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.emoji-set-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 12px;
	
}

.emoji-set-btn:hover {
    background: #e9ecef;
}

.emoji-set-btn img {
    width: 24px;
    height: 24px;
}

.emoji-set-btn.active {
    background: #4caf50;
    color: white;
    border-color: #388e3c;
}

/* 留言內容編輯器 */
.message-editor {
    position: relative;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    padding-right: 48px;
    border: 1px solid var(--clr-borderline);
    border-radius: 8px;
    background: var(--clr-white);
    color: var(--clr-black);
    text-align: left;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    font-size: var(--fs-normal);
    line-height: 1.5;
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 使用 ::before 偽元素顯示佔位符 */
.message-editor[data-placeholder]:empty:not(:focus)::before {
    content: attr(data-placeholder);
    color: var(--clr-grey);
    font-size: var(--fs-small);
    position: absolute;
    top: 12px;
    left: 12px;
    pointer-events: none;
    user-select: none;
    white-space: pre-wrap;
}

.message-editor:focus {
    outline: none;
    border-color: var(--clr-lightblue);
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
    background: var(--clr-brightwhite);
}

.message-editor img.emoji-inline {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin: 0 2px;
    pointer-events: none;
}

.message-editor br,
.message-editor div,
.message-editor p {
    line-height: 1.5;
    margin: 0;
}

.message-editor img.emoji-inline {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin: 0 2px;
    pointer-events: none;
}

.message-editor br,
.message-editor div,
.message-editor p {
    line-height: 1.5;
    margin: 0;
}

textarea[name="message"] {
    display: none !important;
}

.emoji-inline {
    cursor: pointer;
    transition: opacity 0.2s;
}

.emoji-inline:active {
    opacity: 0.7;
}

.emoji-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    justify-content: center;
    justify-items: center;
    gap: 5px;
    max-height: 170px;
    overflow-y: auto;
    border: 1px dotted #eee;
    border-radius: 8px;
    padding: 5px;
}

.emoji-thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 2px;
    cursor: pointer;
    border: 1px solid rgba(51, 48, 0, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.emoji-thumb:hover {
    background-color: #f8f9fa;
    border-color: #2575fc;
}

.emoji-thumb img {
    max-width: 100%;
    max-height: 100%;
    cursor: pointer;
    transition: transform 0.2s;
}

.emoji-thumb img:hover {
    transform: scale(1.2);
}

.emoji-loading-placeholder {
    color: #6c757d;
    font-size: 14px;
}

.emoji-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}

/* 驗證碼 */
.captcha-group {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.captcha-img {
    vertical-align: middle;
    height: 40px;
    border: 1px solid var(--clr-borderline);
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.captcha-img:hover {
    transform: translateY(-1px);
}

/* 發送按鈕 */
.submit-btn {
    position: relative;
    left: calc(100% - 100px);
    width: 80px;
    margin: 0 0 12px 0;
    padding: 8px;
    background: var(--clr-lightblue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: var(--fs-normal);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: var(--clr-blackblue);
    transform: translateY(-1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* 最新留言 */
.message {
    position: relative;
    border: 1px solid #ddd;
    padding: 15px 10px;
    margin: 15px 0 0 0;
    border-radius: 5px;
    transition: margin-left 0.3s ease;
    border-left: 2px solid #eee;
}

.message-header {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 10px 10px 10px;
    justify-content: space-between;
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.message-info {
    flex: 1;
    padding-bottom: 5px;
    border-bottom: 1px dotted #ddd;
}

.message-belong-to {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    margin-right: 58px;
    gap: 5px;
    line-height: 1em;
	color: var(--clr-black);
}

.message-belong-to a{
	color: var(--clr-lightblue);
}

.message-flag {
    width: 1.33rem;
    height: 1rem;
    border: 1px solid #eee;
    object-fit: cover;
}

.message-location {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 0.85rem;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    color: var(--clr-darkgrey);
}

.message-content {
    margin: 0 10px;
	line-height:1.5em;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    vertical-align: middle;
    overflow: hidden;
    color: var(--clr-black);
}

.message-content .emoji {
    width: auto;
    height: auto;
	max-height: 1.6em;
    vertical-align: middle;
    margin: 0 2px;
}

.message-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 10px 10px 10px;
}

.message-date {
    font-size: 0.85rem;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    color: var(--clr-darkgrey);
    text-align: right;
    width: 100%;
}

.reply-btn-container-header {
    position: absolute;
    top: 11px;
    right: 11px;
}

.reply-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 3px 6px;
    font-size: 12px;
    cursor: pointer;
    color: #666;
    min-width: 24px;
}

.reply-btn:hover {
    background: #e0e0e0;
}

.reply-notice {
    background: #f9f9f9;
    border-left: 3px solid #4caf50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 15px 0;
    font-size: 0.9em;
}

.reply-notice p {
    margin: 0;
    padding: 0;
}

/* 取消回覆按钮样式 */
.cancel-reply-btn {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.cancel-reply-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

.cancel-reply-btn i {
    margin: 0;
    padding: 0;
}

/* 留言狀態提醒 */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.custom-alert.show {
    transform: translateX(0);
}

.custom-alert-success {
    border-left: 4px solid #4caf50;
}

.custom-alert-error {
    border-left: 4px solid #f44336;
}

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

.alert-content i {
    font-size: 20px;
}

.custom-alert-success .alert-content i {
    color: #4caf50;
}

.custom-alert-error .alert-content i {
    color: #f44336;
}

.alert-content span {
    flex: 1;
    color: #333;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

.custom-alert-success .alert-close i,
.custom-alert-error .alert-close i {
    color: #999;
}

.alert-close i:hover {
    color: #666;
}

/* 加載錯誤消息 */
.error-msg {
    color: #dc3545;
    text-align: center;
    padding: 15px;
}

/* ==================== 
   分頁導航條樣式
   ==================== */

.pagination-container {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    font-size: var(--fs-small);
}

.pagination-item {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: var(--clr-black);
    transition: all 0.2s;
}

.pagination-item i {
    margin: 0 auto;
    padding: 0 5px;
}

.pagination-item:hover {
    background: var(--clr-a-hover);
    color: var(--clr-white);
}

.pagination-item.current {
    background: var(--clr-a-current);
    color: var(--clr-white);
    border-color: var(--clr-a-current);
}

/* 省略號點 */
.pagination-ellipsis {
    padding: 0 4px;
    color: var(--clr-black);
}

/* 跳轉按鈕 */
.pagination-jump {
    margin-left: 8px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: var(--fs-small);
    color: var(--clr-black);
}

.pagination-jump input {
    text-align: center;
    width: 48px;
    height: 28px;
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: var(--clr-black);
    background-color: var(--clr-white);
}

.pagination-jump button {
    width: 50px;
    height: 28px;
    margin: 0 0 0 0.25em;
    padding: 2px 4px;
    background: var(--clr-a-current);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pagination-jump button:hover {
    background: var(--clr-a-hover);
}
/* ==================== 
   底部樣式
   ==================== */

footer {
    position: relative;
    bottom: 0;
    padding: 10px;
    width: 100%;
    text-align: center;
    background: var(--clr-main);
    color: var(--clr-white);
}

footer div {
    font-family: Fuhao, Georgia, "Typography Old P Medium", Songti, serif;
    font-size: var(--fs-small);
    color: var(--clr-darkgrey);
}

footer a {
    text-decoration: none;
    color: var(--clr-darkgrey);
}

footer a:hover {
    color: var(--clr-a-hover);
}

/* 底部詩句 */
.poem {
    margin: 0 0 10px 0;
    text-align: center;
    font-size: var(--fs-big);
    font-family: Shiju-Bo, Shiju-Kai, "Typography Old P Medium", Songti, serif;
    color: var(--clr-darkgold);
    text-shadow: 0 0 1px black, 1px 1px 3px var(--clr-shadow);
}

@media (max-width: 768px) {
    .poem {
        font-size: var(--fs-normal);
    }
}

/* 底部網站信息 */
.site-info,
.site-info a {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    font-weight: normal;
}

.site-info i {
    margin: 0;
}

/* 蟲洞 */
.wormhole {
    margin-left: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-wormhole {
    font-size: var(--fs-small);
    color: lime;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: change-color 5s linear infinite;
    transform: scale(0.03);
    transform-origin: center;
    white-space: nowrap;
}

@keyframes change-color {
    to {
        filter: hue-rotate(1turn);
    }
}

.container-wormhole span {
    position: absolute;
    --diameter: calc(5em + (var(--n) - 1) * 3em);
    width: var(--diameter);
    height: var(--diameter);
    border-style: solid;
    border-width: 1em 1em 0 0;
    border-color: currentColor transparent;
    border-radius: 50%;
    animation: rotating linear infinite;
    animation-duration: calc(5s / (9 - var(--n) + 1));
}

@keyframes rotating {
    to {
        transform: rotate(1turn);
    }
}

.container-wormhole span:nth-child(1) {
    --n: 1;
}

.container-wormhole span:nth-child(2) {
    --n: 2;
}

.container-wormhole span:nth-child(3) {
    --n: 3;
}

.container-wormhole span:nth-child(4) {
    --n: 4;
}

.container-wormhole span:nth-child(5) {
    --n: 5;
}

.container-wormhole span:nth-child(6) {
    --n: 6;
}

.container-wormhole span:nth-child(7) {
    --n: 7;
}

.container-wormhole span:nth-child(8) {
    --n: 8;
}

.container-wormhole span:nth-child(9) {
    --n: 9;
}
/* ==================== 
   文章頁面樣式
   ==================== */

#articles-container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    line-height: 1.8;
}

#article {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #articles-container {
        margin-top: 72px;
        width: 100%;
    }
    
    #article {
        width: 95%;
    }
}

/* 搜索條 */
#search {
    margin: 0 auto;
    margin-top: 2em;
    text-align: right;
    width: 80%;
    max-width: 1000px;
}

@media (max-width: 768px) {
    #search {
        width: 95%;
    }
}

#search select[name="type"] {
    height: 30px;
    padding: 0 5px;
    border: 1px solid var(--clr-darkgrey);
    border-radius: 2px;
    font: var(--fs-small) Heiti;
    background: var(--clr-white);
    color: var(--clr-black);
}

#search input[type="text"] {
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--clr-darkgrey);
    border-radius: 2px;
    font: var(--fs-small) Heiti;
    background: var(--clr-white);
    color: var(--clr-black);
}

#search input::placeholder {
    color: var(--clr-grey);
}

@media (max-width: 768px) {
    #search select[name="type"] {
        max-width: 100px;
        overflow: hidden;
    }
    
    #search input[type="text"] {
        max-width: 120px;
        overflow: hidden;
    }
}

#search button {
    height: 30px;
    padding: 0 10px;
    background: var(--clr-darkgrey);
    border: 1px solid var(--clr-darkgrey);
    border-radius: 2px;
    color: var(--clr-white);
    font: var(--fs-small) Heiti;
    background-image: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0.2) 80%,
        rgba(255, 255, 255, 0.3) 100%
    );
}

#search button:hover {
    background: #3837378c;
    cursor: pointer;
    background-image: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0.2) 80%,
        rgba(255, 255, 255, 0.3) 100%
    );
}

/* 文本目錄為空 */
.article-error {
    margin: 0;
    padding: 0;
    text-align: center;
    color: var(--clr-seal);
}
/* 分享彈窗樣式 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.share-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(30, 30, 40, 0.98);
    border-radius: 16px;
    padding: 30px 20px;
    width: 95%;
    max-width: 400px;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transform: translateY(-50px);
    transition: transform 0.4s ease;
    position: relative;
    overflow-y: auto;
}

.share-modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    z-index: 10;
}

.close-btn i {
    margin: 0;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--clr-auxiliary);
    padding: 0 10px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.share-option {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.share-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.share-label {
    font-size: 0.8rem;
    color: #e0e0f0;
}

.url-copy {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.url-input {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.copy-btn {
    background: var(--clr-btn);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
}

.copy-btn:hover {
    background: var(--clr-btn-hover);
}

.notification {
    position: fixed;
    top: 15px;
    right: 15px;
    left: 15px;
    background: rgba(46, 204, 113, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-100px);
    transition: transform 0.4s ease;
    z-index: 2000;
    text-align: center;
    max-width: 90vw;
    margin: 0 auto;
}

.notification.show {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 25px 15px;
        max-width: 360px;
    }
    
    .modal-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .share-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .share-option {
        padding: 12px 6px;
    }
    
    .share-icon {
        font-size: 1.6rem;
    }
    
    .share-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px 12px;
        border-radius: 14px;
        width: 80%;
        max-width: 80vw;
    }
    
    .close-btn {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .share-option {
        padding: 10px 5px;
        border-radius: 10px;
    }
    
    .share-icon {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .share-label {
        font-size: 0.7rem;
    }
    
    .url-copy {
        margin-top: 15px;
        padding: 10px;
    }
    
    .url-input {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .copy-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .notification {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .share-option {
        padding: 8px 4px;
    }
    
    .share-icon {
        font-size: 1.4rem;
    }
    
    .share-label {
        font-size: 0.65rem;
    }
}/* ==================== 
   文章段落樣式
   ==================== */

/* 文章標題 */
.article-title {
    position: relative;
    margin: 20px 0;
    padding: 10px 25px;
    color: white;
    font-size: var(--fs-big);
	font-weight: bold;
	font-family: Fuhao, Heiti, sans-serif;
    text-shadow: 1px 1px 2px var(--clr-white-shadow);
    background-clip: padding-box;
}

.article-title::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    /* 調整背景順序，先 SVG 後漸變 */
    background-image: linear-gradient(to right, var(--clr-main), transparent),
        url(/assets/images/svg/articles/plants/bamboo.svg);
    /* 設置 SVG 的寬度自動並居左，漸變覆蓋剩餘部分 */
    background-size: 100% 100%, auto 100%;
    background-position: left, right;
    background-repeat: no-repeat;
}

.article-title a {
    text-decoration: none;
    color: white;
}

/* 作者 */
.article-author {
	display:flex;	
    align-items: center;
    position: relative;
    padding: 10px 32px 0 32px;
    color: var(--clr-black);
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    font-weight: normal;
}

.article-author::after {
    content: "";
    position: absolute;
	top: 58px;
    left: 32px;
    right: calc(50% - 32px);
    height: 1px;
    background-image: linear-gradient(to right, var(--clr-darkgold), transparent);
}

.article-author-decoration {
    text-indent: 0;
	margin-right: 5px;
    display: inline-block;
}

.article-author-decoration img{
	width:auto;
	height:48px;
}

/* 文章功能選項 */
.article-functions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 10px 32px 10px;
}

.article-functions a {
    color: #66699988;
    transition: color 0.3s;
}

.article-functions a:hover {
    color: #666999;
}

/* 文章內容 */
.article-content {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0 32px;
    color: var(--clr-black);
    font-family: "Doulos SIL", Fuhao, "Typography Old P Medium", Songti, serif;
    font-size: var(--fs-normal);
}

/* 文章圖片 */
.article-image {
    float: right;
    display: flex;
    flex-direction: column;
    margin: 0 0 16px 30px;
    width: 50%;
    max-width: 450px;
}

@media (max-width: 768px) {
    .article-image {
        float: none;
        width: 100%;
        max-width: 300px;
        margin: 20px auto;
    }
}

.article-image-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    transform: perspective(1000px) rotateX(0) rotateY(0);
}

.article-image-container:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateX(1deg) rotateY(1deg);
    filter: url('/assets/images/svg/filters.svg#neon-glow');
    filter: brightness(1.25);
}

.article-image-container img {
	display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 圖片標籤 */
.article-image-caption {
    position: relative;
    margin: 16px 0 0 0;
    padding: 0 10px;
    text-align: center;
    font-family: Fuhao, Heiti, sans-serif;
    font-size: var(--fs-small);
    color: var(--clr-darkgreen);
}

.article-image-caption a {
    margin: 0;
    padding: 0;
    position: relative;
    display: inline-block;
}

.article-image-caption a .article-image-caption-icon {
    margin: 0 0 0 5px;
    color: var(--clr-seal);
}

.article-image-caption a .article-image-caption-tip {
    visibility: hidden;
    width: max-content;
    max-width: 200px;
    background-color: var(--clr-main);
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 6px 8px;
    position: absolute;
    z-index: 999;
    bottom: 100%;
    left: 50%;
    transform: translateX(calc(-75% + 2.5px));
    opacity: 0;
    transition: opacity 0.3s;
    font-size: var(--fs-small);
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.2em;
    pointer-events: none;
    margin-bottom: 8px;
}

.article-image-caption a:hover .article-image-caption-tip {
    visibility: visible;
    opacity: 0.75;
}

.article-image-caption a .article-image-caption-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 75%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--clr-main) transparent transparent transparent;
}

/* 圖片特效 */
.grayPic {
    filter: grayscale(50%);
}

.img-flip-horizontal {
    transform: scaleX(-1);
}

.img-flip-vertical {
    transform: scaleY(-1);
}

.img-flip-both {
    transform: scaleX(-1) scaleY(-1);
}

/* 文章段落樣式 */
.article-p {
    text-indent: 32px;
}

@media (max-width: 768px) {
    .article-p {
        text-indent: 0;
    }
}

.article-h1,
.article-h2,
.article-h3 {
    margin: 16px 0;
    padding-left: 0;
    font-weight: bold;
}

.article-h1 {
    position: relative;
    padding: 0;
    text-indent: 28px;
    font-size: var(--fs-big);
    font-family: Fuhao, Heiti, sans-serif;
    color: var(--clr-darkblack);
}

.article-h1::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 20px;
    height: 20px;
    background-image: var(--bgimg-h1);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.article-h2 {
    position: relative;
    padding: 0;
    text-indent: 28px;
    font-size: var(--fs-normal);
    color: var(--clr-darkblack);
}

.article-h2::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 20px;
    height: 20px;
    background-image: var(--bgimg-h2);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.article-h3 {
    position: relative;
    padding: 0;
    text-indent: 28px;
    font-size: var(--fs-normal);
    color: var(--clr-darkblack);
}

.article-h3::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-image: var(--bgimg-h3);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.article-quote {
    margin: 1em 0;
    padding-left: 12px;
    border-left: 2px solid var(--clr-grey);
}

.article-content hr {
    border: 0;
    opacity: 0.45;
    height: 16px;
    margin: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12' fill='%233498db'%3E%3Cpath d='M0,6 L24,6' stroke='%233498db' stroke-width='2' stroke-dasharray='5,5'/%3E%3Ccircle cx='12' cy='6' r='4' fill='%23e74c3c'/%3E%3C/svg%3E")
        center/24px 12px repeat-x;
}

.article-content table {
    margin: 0 auto;
    width: auto;
    border-collapse: collapse;
    border-top: 1px solid var(--clr-black);
	border-bottom: 1px solid var(--clr-black);
}

.article-content th,
.article-content td {
    padding: 0 10px;
}

.article-ol,
.article-ul {
    margin: 16px 0;
    padding: 24px 36px 24px 36px;
    border: 1px solid var(--clr-grey);
    border-radius: 12px;
    display: block;
    overflow: auto;
}

.article-ol p,
.article-ul p {
    margin: 0;
    padding: 0;
    text-indent: 0;
    text-align: 1.5;
}

/* 腳註樣式 */
.footnote-ref {
	position: relative;
    top: -3px;
    left: 0;
    margin: 0 2px;
    padding: 2px 5px;
    border-radius: 10px;
    background-color: #e64d4d;
    font-family: Fuhao;
    font-size: var(--fs-small);
    color: #fff;
}

.footnote-backref {
    color: #7292ad;
}

.footnotes {
    width: 100%;
    font-size: var(--fs-small);
    overflow: auto;
}

/* 文章插入的行內圖片樣式 */
.article-image-inline {
	position: relative;
	top: 2px;
    height: 16px;
    margin: 0 3px;
}

/* 標籤 */
.tags {
    clear: both;
    padding: 32px;
    text-align: left;
    font: var(--fs-small) Heiti;
}

.tags a {
    padding: 5px 12px;
    color: white;
    text-shadow: 1px 1px 2px var(--clr-white-shadow);
    border-radius: 5px;
    background-color: var(--clr-lightblue);
}

.tags a:hover {
    background-color: var(--clr-blackblue);
}

/* 文章時間 */
.article-time {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 32px;
    padding: 8px 0;
    font-size: var(--fs-small);
    font-family: Fuhao, Heiti, sans-serif;
    font-weight: normal;
    color: var(--clr-darkgrey);
}

.article-time::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 1px;
    background-image: linear-gradient(to left, var(--clr-darkgold), transparent);
}

.article-time a {
    color: var(--clr-darkgrey);
}

/* 評論按鈕 */
.comment-button-container {
    padding: 0;
}

.comment-button {
    padding: 10px;
    background: var(--clr-white);
    border: 1px solid #ddd;
    border-radius: 5px;
    color: var(--clr-darkgrey);
    text-decoration: none;
    font-family: Fuhao, Heiti, sans-serif;
    font-size: var(--fs-small);
}

.comment-button:hover {
    background: var(--clr-brightwhite);
}

/* 加密文章 */
.password-prompt {
    width: calc(100% - 96px);
    margin: 32px auto;
    margin-left: 64px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: var(--clr-white);
    color: var(--clr-black);
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
}

@media (max-width: 768px) {
    .password-prompt {
        width: calc(100% - 64px);
        margin: 32px auto;
	}
}

.password-prompt form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.password-prompt input[type="password"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 250px;
    background-color: var(--clr-brightwhite);
}

.password-prompt button {
    padding: 4px 12px;
    background-color: var(--clr-a-current);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* 相鄰文章導航 */
.adjacent-articles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 32px 20px 32px;
    padding: 20px 0;
    border-top: 1px solid var(--clr-borderline);
}

.adjacent-prev,
.adjacent-next {
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.adjacent-label {
    font-size: var(--fs-small);
    color: var(--clr-darkgrey);
    margin-bottom: 8px;
    font-family: Fuhao, Heiti, sans-serif;
}

.adjacent-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--clr-black);
    transition: color 0.3s ease;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
}

.adjacent-link:hover {
    color: var(--clr-blue);
}

.adjacent-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.adjacent-prev .adjacent-link {
    text-align: left;
}

.adjacent-next .adjacent-link {
    text-align: right;
    flex-direction: row;
}

.adjacent-prev i,
.adjacent-next i {
    margin: 0 10px;
    font-size: var(--fs-small);
    color: var(--clr-darkgrey);
}

@media (max-width: 768px) {
    .adjacent-articles {
        flex-direction: column;
        gap: 20px;
        margin: 30px 16px 15px 16px;
    }
    
    .adjacent-prev,
    .adjacent-next {
        max-width: 100%;
        width: 100%;
    }
    
    .adjacent-next .adjacent-link {
        justify-content: flex-end;
        flex-direction: row-reverse;
        text-align: left;
    }
}

/* 留言板 */
#guestbook {
    padding: 20px 10%;
    background: var(--clr-brightwhite);
    border-top: 1px dotted var(--clr-darkgold);
}

#guestbook section {
    max-width: 1000px;
    margin: 0 auto;
}

#guestbook {
    padding: 20px 5%;
}

@media (max-width: 480px) {
    #guestbook {
        padding: 20px;
    }
}/* ==================== 
   媒體樣式
   ==================== */
   
/* 文章插入的音樂樣式 */
.netease {
    padding-left: 24px;
}

.audio-player-wrapper {
	margin: 16px 0;
    padding: 0 0 0 32px;
    width: calc(100% + 5px);
    max-width: 360px;
    transform: translateX(-5px);
}

.aplayer-container {
	border-radius: 8px !important;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bilibili {
	padding: 0 32px;
}

@media (max-width: 768px) {
    .netease {
        padding-left: 0;
        transform: translateX(-10px);
    }
    
    .bilibili {
        padding: 0;
    }
    
    .audio-player-wrapper {
        margin: 16px 0;
        padding: 0 0;
    }
}

/* 文章插入的音樂（使用Plyr播放器） */
.audio-player-wrapper-plyr {
	width: 100%;
}

.audio-visualizer-plyr {
	position: relative;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	overflow: hidden;
}

.song-info-plyr {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	padding: 15px 20px;
	background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
	color: white;
	text-shadow: 1px 1px 2px #000;
	pointer-events: none;
}

.song-info-plyr,
.audio-plyr-controls,
.lyrics-container-plyr {
	transition: all 0.3s ease;
}

.song-info-plyr.hidden {
	opacity: 0;
	transform: translateY(-100%);
	pointer-events: none;
}

.song-info-plyr h2 {
	margin: 0 0 5px 0;
	font-family: Fuhao, "漢文隸書", sans-serif;
	font-size: var(--fs-big);
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.song-info-plyr p {
	margin: 0;
	font-size: var(--fs-normal);
	opacity: 0.9;
	text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.language-selector-plyr {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 11;
	background: none;
	border-radius: 5px;
	padding: 4px 8px;
	border: 1px dotted rgba(0, 0, 0, 0.1);
	pointer-events: auto;
	color: #fff;
	font-size: var(--fs-normal);
	font-family: "Doulos SIL", Fuhao, "Typography Old P Medium", Songti, serif;
}

.language-selector-plyr option {
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
}

.visual-area-plyr {
	height: auto;
	aspect-ratio: 16/9;
	position: relative;
	overflow: hidden;
}

.slide-container {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.slide {
	position: absolute;
	width: 100%;
	height: auto;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.slide.active {
	opacity: 1;
}

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

.play-pause-btn-plyr {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	padding: 0;
	background: #3a3a3a3a;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	transition: all 0.3s ease;
	opacity: 0;
}

.play-pause-btn-plyr:hover {
	background: #3a3a3a4d;
	transform: translate(-50%, -50%) scale(1.1);
}

.visual-area-plyr:hover .play-pause-btn-plyr {
	opacity: 1;
}

.play-pause-icon {
	width: 24px;
	height: 24px;
	color: white;
	position: relative;
}

.play-pause-icon svg {
	width: 100%;
	height: 100%;
}

.pause-icon {
	display: none;
}

.audio-visualizer-plyr.playing .play-icon {
	display: none;
}

.audio-visualizer-plyr.playing .pause-icon {
	display: block;
}

.lyrics-container-plyr {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	width: 100%;
}

.lyrics-container-plyr.bottom-10 {
	bottom: 10px !important;
}

.lyrics-overlay {
	margin: 0 auto;
	padding: 4px 8px;
	background: #3a3a3a3a;
	color: #fff;
	text-shadow: 1px 1px 2px #000;
	font-family: "Doulos SIL", Fuhao, "Typography Old P Medium", Songti, serif;
	font-size: var(--fs-normal);
	border-radius: 5px;
	width: fit-content;
	max-width: 100%;
}

@media (max-width: 768px) {
	.song-info-plyr h2 {
		font-size: var(--fs-normal);
		line-height: var(--fs-normal);
	}
	.song-info-plyr p {
		font-size: var(--fs-small);
		line-height: var(--fs-small);
	}
	.language-selector-plyr {
		font-size: var(--fs-small);
	}
	.play-pause-btn-plyr {
		width: 40px;
		height: 40px;
	}
	.lyrics-overlay {
		font-size: var(--fs-small);
	}
}

.audio-plyr-controls {
	position: absolute !important;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 12 !important;
	background: none !important;
}

.audio-plyr-controls.hidden {
	opacity: 0;
	transform: translateY(100%);
	pointer-events: none;
}

.plyr__controls {
	height: 50px !important;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%) !important;
	color: #fff !important;
}

.plyr__menu__container {
	max-height: 120px !important;
	overflow-y: auto;
}

.plyr__menu__container:after {
	display: none;
}

/* 文章插入的視頻樣式 */

.plyr-container {
	margin: 20px 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	max-width: 100%;
	max-height: 526.5px;
}

.plyr__video-wrapper {
	background: none !important;
}

.plyr--video .plyr__controls {
	background: rgba(0, 0, 0, 0.8);
	height: 50px;
	padding: 10px !important;
}

.plyr__progress input[type=range]::-webkit-slider-runnable-track {
	background-color: #e0e0e0;
}

.plyr__progress input[type=range]::-moz-range-track {
	background-color: #e0e0e0;
}

.plyr .plyr__poster {
	background: none !important;
	background-size: 100% 100% !important;
	background-position: center;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* 音量控件 - 垂直方向 */
.plyr__volume input[type=range]::-webkit-slider-runnable-track {
	background-color: #e0e0e0;
}

.plyr__volume input[type=range]::-moz-range-track {
	background-color: #e0e0e0;
}

.plyr__controls .plyr__controls__item {
	margin-left: 0 !important;
}

.plyr--full-ui .plyr__volume {
	margin: 0;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	width: 30px;
	height: 100px;
}

.plyr--full-ui .plyr__volume input[type="range"] {
	width: 100px;
	height: 6px;
	transform: rotate(-90deg);
	transform-origin: left bottom;
	position: absolute;
	bottom: 70px;
	left: 11px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.plyr--full-ui .plyr__volume:hover input[type="range"] {
	opacity: 1;
}

@media (max-width: 768px) {
	.plyr--full-ui .plyr__volume {
		height: 80px;
	}
	
	.plyr--full-ui .plyr__volume input[type="range"] {
		width: 60px;
		bottom: 65px;
		left: 11px;
	}
}

/* 視頻字幕樣式 */
.plyr__captions {
	font-size: var(--fs-normal);
	padding: 10px;
	border-radius: 4px;
}

.plyr__captions .plyr__caption {
	background: #3a3a3a3a;
	color: #fff;
	text-shadow: 1px 1px 2px #000;
	font-family: "Doulos SIL", Fuhao, "Typography Old P Medium", Songti, serif;
	border-radius: 5px;
}

/* 字幕菜單樣式 */
.plyr__menu__container [data-plyr="captions"] {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.plyr__captions-label {
	margin-right: 8px;
}

/* 光盤圖標容器 */
.vinyl-disc-container-plyr {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 8;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.vinyl-disc-container-plyr:hover {
    opacity: 1;
}

/* 光盤SVG圖標 */
.vinyl-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 光盤旋轉動畫 */
.vinyl-disc-container-plyr.playing .vinyl-icon {
    animation: vinyl-spin 3s linear infinite;
}

/* 光盤暫停狀態 - 緩慢停止 */
.vinyl-disc-container-plyr.paused .vinyl-icon {
    animation: vinyl-spin-slow 3s linear forwards;
}

/* 專輯封面 */
.cover-square {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transform: translateX(-50%);
    z-index: 9;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.cover-square img{
    opacity: 1;
}

/* 光盤旋轉動畫 */
@keyframes vinyl-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 光盤緩慢停止動畫 */
@keyframes vinyl-spin-slow {
    0% {
        transform: rotate(0deg);
        animation-timing-function: ease-out;
    }
    100% {
        transform: rotate(180deg);
    }
}

/* 響應式調整 */
@media (max-width: 768px) {
    .vinyl-disc-container-plyr {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .vinyl-disc-container-plyr {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
}/* ==================== 
   文章其他部分樣式
   ==================== */

/* 數學公式放大後的背景和邊框 */
#MathJax_Zoom {
    background-color: var(--clr-white) !important;
    border: 1px solid var(--clr-black) !important;
}

/* 代碼&代碼塊 */

pre {
    border-radius: 10px;
	max-height: 600px;
    overflow-x: auto;
	overflow-y: auto;
}

pre code {
    margin: 0;
    padding: 0;
}

pre.code-block {
    margin: 0;
    overflow-x: auto;
    font-size: var(--fs-normal);
    line-height: 1.5;
}

pre.code-block code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    tab-size: 4;
}

.code-block-container {
    position: relative;
    margin: 1em 0;
}

.code-block-wrapper {
    position: relative;
    background: #0d1117;
    border-radius: 8px;
    overflow: hidden;
	padding-left: 50px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #30363d;
    font-family: Fuhao, Heiti, sans-serif;
    font-size: 14px;
}

.code-language {
	color: #ffeb3b;
}

.copy-button {
    background: #238636;
    color: white;
    border: none;
    padding: 4px 10px 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    transition: background 0.2s;
}

.copy-button:hover {
    background: #2ea043;
}

.copy-button.copied {
    background: #1f6feb;
}

/* 行號樣式 */
.line-numbers {
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    width: 40px;
    background: rgb(22, 27, 34);
    border-right: 1px solid rgb(48, 54, 61);
    padding: 60px 8px 16px 8px;
    text-align: right;
    color: rgb(139, 148, 158);
    font-family: Fuhao;
    font-size: var(--fs-normal);
    line-height: 1.5;
    user-select: none;
    touch-action: none;
    user-drag:none;
}

/* 代碼塊滾動條樣式 */
pre.code-block::-webkit-scrollbar {
    height: 8px;
}

pre.code-block::-webkit-scrollbar-track {
    background: #161b22;
}

pre.code-block::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

pre.code-block::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* 支持語言的圖標 */
.code-language::before {
    margin-right: 6px;
    color: #f30000;
}

.code-language.language-javascript::before {
    content: "\f3b9"; /* fa-js */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-python::before {
    content: "\f3e2"; /* fa-python */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-html::before {
    content: "\f13b"; /* fa-html5 */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-css::before {
    content: "\f38b"; /* fa-css3 */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-php::before {
    content: "\f457"; /* fa-php */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-java::before {
    content: "\f4e4"; /* fa-java */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-sql::before {
    content: "\f1c0"; /* fa-database */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-c::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-cpp::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-go::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-rust::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-ruby::before {
    content: "\f43e"; /* fa-gem */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-swift::before {
    content: "\f8e1"; /* fa-swift */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-kotlin::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-typescript::before {
    content: "\f2d6"; /* fa-t */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-bash::before,
.code-language.language-shell::before,
.code-language.language-sh::before {
    content: "\f120"; /* fa-terminal */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-zsh::before {
    content: "\f120"; /* fa-terminal */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-powershell::before,
.code-language.language-ps1::before {
    content: "\f120"; /* fa-terminal */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-json::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-yaml::before,
.code-language.language-yml::before {
    content: "\f1c9"; /* fa-file-alt */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-toml::before {
    content: "\f1c9"; /* fa-file-alt */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-ini::before {
    content: "\f0c9"; /* fa-bars */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-xml::before {
    content: "\f1c9"; /* fa-file-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-markdown::before,
.code-language.language-md::before {
    content: "\f894"; /* fa-markdown */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-txt::before,
.code-language.language-text::before,
.code-language.language-plaintext::before {
    content: "\f15c"; /* fa-file-alt */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-diff::before {
    content: "\f0ec"; /* fa-exchange-alt */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-dockerfile::before {
    content: "\f395"; /* fa-docker */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-makefile::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-nginx::before {
    content: "\f542"; /* fa-server */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-apache::before {
    content: "\f542"; /* fa-server */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-git::before {
    content: "\f1d3"; /* fa-git */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-vim::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-lua::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-perl::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-r::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-matlab::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-scala::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-haskell::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-elixir::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-erlang::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-clojure::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-groovy::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-dart::before {
    content: "\f179"; /* fa-google */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-objectivec::before {
    content: "\f179"; /* fa-apple */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-assembly::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-vbnet::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-csharp::before,
.code-language.language-cs::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-fsharp::before,
.code-language.language-fs::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-scss::before {
    content: "\f38b"; /* fa-css3 */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-sass::before {
    content: "\f38b"; /* fa-css3 */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-less::before {
    content: "\f38b"; /* fa-css3 */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-stylus::before {
    content: "\f38b"; /* fa-css3 */
    font-family: "Font Awesome 5 Brands";
}

.code-language.language-coffeescript::before,
.code-language.language-coffee::before {
    content: "\f0f4"; /* fa-coffee */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-graphql::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-protobuf::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-solidity::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-ocaml::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-reason::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-rescript::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-elm::before {
    content: "\f121"; /* fa-code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-lrc::before {
    content: "\f001"; /* fa-music */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-vtt::before {
    content: "\f03d"; /* fa-video */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.code-language.language-srt::before {
    content: "\f03d"; /* fa-video */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* 文中超鏈接、背景顏色等其他特殊樣式 */
.label-text {
    margin: 0 2.5px;
    padding: 4px 3px;
    border-radius: 5px;
    color: white;
}

.normal-link {
    color: var(--clr-a-current);
}

.normal-link i,
.pdf-link i {
    margin: 0 2px;
    color: var(--clr-grey);
}

.pdf-link {
    padding: 10px 8px;
    border: 1px solid var(--clr-a-current);
    border-radius: 5px;
    color: var(--clr-a-current);
}/* ==================== 
   文章歸檔頁面樣式
   ==================== */

/* 文章歸檔 */
.archive-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Fuhao, "Cambria", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.archive-year {
    position: relative;
    margin-top: 50px;
    border-bottom: 1px solid var(--clr-darkgold);
    color: var(--clr-black);
    font-size: var(--fs-big);
}

.archive-count {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.archive-year-group {
    margin-bottom: 30px;
}

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

.archive-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px dashed var(--clr-grey);
    transition: background-color 0.2s ease;
}

.archive-item:hover {
    background: var(--clr-brightwhite);
}

.archive-date {
    flex: 0 0 80px;
    font-size: 0.8rem;
    color: #777;
}

.archive-title {
    flex: 1;
    font-size: 1rem;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    text-decoration: none;
    color: var(--clr-darkgrey);
    transition: color 0.2s ease;
}

.archive-title:hover {
    color: #3498db;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .archive-container {
        padding: 15px;
    }
    
    .archive-year {
        font-size: var(--fs-big);
    }
    
    .archive-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .archive-date {
        margin-bottom: 5px;
        flex: 0;
    }
}

.toggle-year {
    cursor: pointer;
    position: relative;
    padding-right: 40px !important;
    transition: all 0.3s ease;
}

.toggle-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: var(--fs-big);
    color: #666;
}

.archive-year-group.collapsed .archive-list {
    display: none;
}

.archive-year-group.expanded .archive-list {
    display: block;
}

.archive-year-group.collapsed .toggle-icon {
    transform: translateY(-50%) rotate(0deg);
}

.archive-year-group.expanded .toggle-icon {
    transform: translateY(-50%) rotate(0deg);
}
/* ==================== 
   文章搜索結果頁面樣式
   ==================== */

/* 搜索結果頁 */
.search-status {
    margin: 2rem 0;
    padding: 2rem;
    background: #5883a74f;
    border-radius: 20px;
}

.search-status p,
.no-results p {
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
    color: var(--clr-black);
}

.no-results {
    padding: 2rem 2rem 4rem 2rem;
    text-align: center;
}

.no-results img {
    width: 100%;
    max-height: 200px;
}

.no-results a {
    padding: 10px 16px;
    border: 1px solid var(--clr-btn);
    border-radius: 5px;
    color: var(--clr-btn);
    box-shadow: 0 0 15px var(--clr-quote);
}

.no-results a:hover {
    border: 1px solid var(--clr-btn-hover);
    color: var(--clr-btn-hover);
    background: var(--clr-brightwhite);
}

/* 標籤雲朵 */
.cloud {
    position: relative;
    top: 0%;
    left: calc(100% - 180px);
    width: 120px;
    height: 48px;
    background: white;
    border-radius: 75px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 3s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    background: white;
    border-radius: 50%;
    z-index: 0;
}

.cloud::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 18px;
}

.cloud::after {
    width: 72px;
    height: 72px;
    top: -36px;
    right: 18px;
}

.cloud a {
    position: relative;
    z-index: 1;
    width: 100px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    color: grey;
    text-decoration: none;
    font-family: Fuhao, Kaiti, sans-serif;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    
    50% {
        transform: translateY(-12px);
    }
}

@media (max-width: 768px) {
    .cloud {
        position: relative;
        top: 0%;
        left: calc(100% - 120px);
    }
}

@media (max-width: 480px) {
    .cloud {
        position: relative;
        top: 0%;
        left: calc(100% - 100px);
    }
}

/* 標籤雲 */
.cloud-title,
.year-title {
    margin: 60px 0 0 0;
    text-align: center;
	font-size: var(--fs-bigger);
}

.cloud-subtitle,
.year-subtitle {
    margin: 0;
    text-align: center;
    font-size: var(--fs-normal);
    font-family: Fuhao, Heiti;
    color: var(--clr-darkgrey);
}

.cloud-container {
    text-align: center;
    padding: 2rem;
    line-height: 2.5;
    word-break: keep-all;
}

.cloud-tag {
    display: inline-block;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    text-shadow: 1px 1px 2px var(--clr-menu-background);
    opacity: 0.9;
    font-family: Fuhao, "寒蝉全圆体", Heiti, sans-serif;
    font-weight: normal;
}

.cloud-tag:hover {
    transform: scale(1.15);
    opacity: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.no-tags {
    text-align: center;
    color: #999;
    padding: 2rem;
}
/* ==================== 
   相冊頁面樣式
   ==================== */

#gallery-container {
    display: block;
    margin: 50px auto;
    width: 100%;
    max-width: 1200px;
}

@media (max-width: 768px) {
    #gallery-container {
        margin-top: 120px;
    }
}

/* 相冊列表 */
.gallery-title {
    text-align: center;
    margin: 20px 0;
    font-size: var(--fs-bigger);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 4fr));
    gap: 24px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.album-item {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    color: var(--clr-lightblue);
    text-decoration: none;
}

.album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    color: #ef3a3a;
}

.album-item::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-image: url(/assets/images/svg/index/title/seal.svg);
    background-size: 20px 20px;
    background-repeat: no-repeat;
}

.album-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.album-item:hover .album-cover {
    transform: scale(1.07);
}

.album-info {
    padding: 10px;
    background: var(--clr-brightwhite);
    text-align: center;
    border-top: 5px solid #2fa544;
}

.album-info h3 {
    margin: 5px 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    font-family: Heiti, sans-serif;
}

.album-info p {
    margin: 0;
    padding-top: 5px;
    font-size: 14px;
    color: var(--clr-darkgrey);
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
}

.album-info p::before {
    content: "";
    position: absolute;
    bottom: 32.5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-image: radial-gradient(circle, #0a0c24 0.5px, transparent 0.5px);
    background-size: 2px 100%;
    background-repeat: round;
    background-position: left center;
}

.album-info p::after {
    content: "";
    position: absolute;
    bottom: 25px;
    left: 10%;
    width: 20px;
    height: 20px;
    background-image: url(/assets/images/svg/index/title/bow-1.svg);
    background-size: 20px 20px;
    background-repeat: no-repeat;
}

.album-info i {
    margin: 0 0 0 5px;
}

@media (max-width: 768px) {
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 3fr));
        gap: 16px;
        padding: 16px;
    }
    
    .album-cover {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 2fr));
        gap: 12px;
    }
    
    .album-info h3 {
        font-size: var(--fs-normal);
    }
    
    .album-info p {
        font-size: var(--fs-small);
    }
}

/* 返回按鈕 */
.back-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 0 10px 20px;
    background: var(--clr-album-back-link);
    color: var(--clr-blackblue);
    border: 1px solid var(--clr-blackblue);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: var(--fs-small);
    font-family: Fuhao, Heiti, sans-serif;
}

.back-link:hover {
    background: var(--clr-blackblue);
    color: var(--clr-white);
    border-color: transparent;
}

/* 照片卡片 */
.photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--clr-brightwhite);
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.photo-card::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-image: url(/assets/images/svg/index/title/seal.svg);
    background-size: 20px 20px;
    background-repeat: no-repeat;
}

.gallery-photo {
    display: block;
    text-decoration: none;
    color: inherit;
}

.photo-content {
    position: relative;
    overflow: hidden;
}

.photo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.photo-card:hover .photo-image {
    transform: scale(1.07);
}

.photo-meta {
    padding: 16px;
    background: var(--clr-brightwhite);
}

.photo-location,
.photo-date,
.photo-title {
    display: flex;
    align-items: center;
    margin: 3px 0;
    font-size: var(--fs-small);
    color: var(--clr-black);
}

.photo-location {
    font-weight: bold;
    font-family: Fuhao, Heiti, sans-serif;
}

.photo-date,
.photo-title {
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
}

.photo-location i,
.photo-date i,
.photo-title i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
    font-size: var(--fs-small);
    color: var(--clr-black);
}

@media (max-width: 768px) {
    .photo-image {
        height: 150px;
    }
    
    .photo-meta {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .photo-location,
    .photo-date,
    .photo-title {
        font-size: var(--fs-small);
    }
}
/* ==================== 
   音樂頁面樣式
   ==================== */

#music-container {
    min-height: calc(100dvh - 276px);
}

@media (max-width: 768px) {
    #music-container {
        min-height: calc(100dvh - 148px);
    }
}
/* ==================== 
   項目頁面樣式
   ==================== */

#projects-container {
    display: flex;
    flex-direction: column;
    margin: 50px auto;
    width: calc(100% - 64px);
    max-width: 800px;
    min-height: calc(100dvh - 393px);
}

@media (max-width: 768px) {
    #projects-container {
        margin-top: 120px;
    }
}

.projects {
    margin-bottom: 50px;
}

.project-title {
    text-align: left;
    margin: 0 0 30px 0;
    padding: 5px 0 5px 10px;
    border-left: 4px solid #2196f3;
    font-size: var(--fs-big);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(6, 80px);
    gap: 30px;
    padding: 0 20px;
    justify-content: space-around;
    transition: all 0.3s ease;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.app-caption {
    font-size: 12px;
    color: #666;
    width: 100px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.app-item:hover .app-caption {
    color: #2196f3;
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(4, 80px);
    }
}

@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: repeat(3, 80px);
    }
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
    background-color: var(--clr-brightwhite);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-icon:hover {
    transform: scale(1.1);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

i.universal-access {
    color: var(--clr-darkgreen);
    margin: 0 5px;
}

i.universal-access:hover {
    color: var(--clr-green);
}

i.lock-open {
    color: var(--clr-darkgrey);
    margin: 0 5px;
}

i.lock-open:hover {
    color: var(--clr-grey);
}

i.locked {
    color: var(--clr-darkgold);
    margin: 0 5px;
}

i.locked:hover {
    color: var(--clr-gold);
}

.under-construction {
    position: absolute;
    transform: translate(-70px, 6px);
    width: 60px;
    height: 60px;
}

/* ==================== 
   鄉人頁面樣式
   ==================== */

#about-container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 80%;
    max-width: 1000px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    #about-container {
        margin-top: 72px;
        width: 95%;
    }
}

/* 簡歷下載 */
.resume {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0 0 0;
}

.resume-container {
    padding: 3px 8px;
    border: 1px solid var(--clr-darkgold);
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.resume-container:hover {
    border-color: var(--clr-btn-hover);
}

.resume-container a {
    color: var(--clr-darkgrey);
    font-size: var(--fs-small);
}

/* 鄉人圖片特效 */
.about-me,
.about-me:hover,
.about-me img {
    border: none;
    box-shadow: none;
    transform: none;
    filter: none;
    position: relative;
}

.inscription {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: absolute;
    top: 10%;
    right: 15%;
    font-size: 2em;
    font-family: Inscription, Shuiyunxiang;
}

@media (max-width: 768px) {
    .inscription {
        font-size: 1.2em;
    }
}

/* 教育背景&工作經歷&聯絡方式 */
.education-item,
.work-item,
.contact-item {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    overflow: hidden;
    font-family: Fuhao, "Typography Old P Medium", Songti, serif;
}

.contact-item {
    margin-bottom: 60px;
}

.education-item div,
.work-item div,
.contact-item div {
    width: 100%;
}

.education-item h1,
.work-item h1 {
    margin: 10px 0;
    color: var(--clr-blue);
    font-family: Fuhao, "漢文隸書", sans-serif;
    font-size: var(--fs-big);
}

.education-item p,
.work-item p,
.contact-item p {
    margin: 10px 0;
}

.education-item a{
	color: var(--clr-lightblue);
}

/* 校徽佈局 */
.education-item-logo {
    width: 120px;
    height: 120px;
    margin: 16px 0 0 0;
    background-color: #f4f4f4;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .education-item,
    .work-item,
    .contact-item {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .contact-item {
        margin-bottom: 60px;
    }
    
    .education-item-logo {
        width: 25%;
        height: 25%;
        max-width: 200px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .education-item,
    .work-item,
    .contact-item {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
}