/* 貪.tw - 數位禪院視覺風格 */

/* === 全域重置與基礎設定 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === 入口頁面載入樣式 === */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.loading-animation {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-spinner {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-family: var(--mono-font);
    font-size: 0.9rem;
    color: var(--muted-gray);
    opacity: 0.8;
    min-height: 1.2em;
    transition: all 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* === 參考 rewrite.tw 設計語言的暗黑禪院配色 === */
:root {
    /* 主配色 - 保持原有血紅金色主題，但採用 rewrite.tw 的現代化處理 */
    --void-black: #0d0d0d;          /* 深黑背景 - 更現代的純黑 */
    --charcoal-black: #1a1a1a;      /* 炭黑 - 卡片和區塊背景 */
    --surface-gray: #2d2d2d;        /* 表面灰 - 互動元素背景 */
    --zen-gray: #c0c0c0;            /* 主文字 - 提高對比度和可讀性 */
    --muted-gray: #909090;          /* 次要文字 - 平衡的中性灰 */
    --subtle-gray: #505050;         /* 微妙灰 - 邊框和分隔線 */
    --blood-red: #dc2626;           /* 現代血紅 - 更鮮明但不刺眼 */
    --deep-red: #991b1b;            /* 深紅 - 懸停和強調狀態 */
    --old-gold: #d4af37;            /* 現代金色 - 更亮更現代 */
    --rich-gold: #b8860b;           /* 深金 - 互動狀態 */
    --highlight-gray: #f0f0f0;      /* 高亮灰 - 最重要的文字 */
    --merit-gold: #ffd700;          /* 功德金 - 保持原有的亮金色 */

    /* 字體設定 - 參考 rewrite.tw 但保持禪院風格 */
    --title-font: 'Noto Serif TC', 'Georgia', 'Times New Roman', serif;     /* 保持襯線字體的古典感 */
    --body-font: 'Noto Sans TC', 'Inter', 'system-ui', sans-serif;          /* 現代無襯線 - 提升可讀性 */
    --mono-font: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;      /* 現代等寬字體 */
}

/* === 深淵載入提示樣式 === */
.abyss-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--void-black) 0%, var(--charcoal-black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.abyss-loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--zen-gray);
    font-family: var(--title-font);
}

.loading-symbol {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.loading-subtext {
    font-size: 1rem;
    color: var(--muted-gray);
    margin-bottom: 2rem;
    font-family: var(--body-font);
}

.version-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.version-label {
    font-size: 0.9rem;
    color: var(--muted-gray);
    font-family: var(--body-font);
}

.version-number {
    font-size: 1.1rem;
    color: var(--old-gold);
    font-weight: 600;
    font-family: var(--mono-font);
}

.version-desc {
    font-size: 0.8rem;
    color: var(--zen-gray);
    font-family: var(--body-font);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}



/* === 基礎元素樣式 === */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--void-black);
    color: var(--zen-gray);
    font-family: var(--body-font);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;

    /* 現代化的文字渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    /* 防止文字選取時的刺眼高亮 */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 自定義選取顏色 - 現代化處理 */
::selection {
    background-color: var(--blood-red);
    color: var(--highlight-gray);
}

::-moz-selection {
    background-color: var(--blood-red);
    color: var(--highlight-gray);
}

/* === 現代化容器 - 參考 rewrite.tw 的布局 === */
.void-container {
    min-height: 100vh;
    max-width: 900px;           /* 稍微放寬內容區域，提升可讀性 */
    margin: 0 auto;
    padding: 0 2rem;

    /* 現代化的容器設計 */
    position: relative;
}

/* === 網站標題區域 - 現代化間距 === */
.site-header {
    text-align: center;
    padding: 3rem 0 2.5rem 0;
    border-bottom: 1px solid var(--subtle-gray);
    margin-bottom: 3rem;
    position: relative;
}

.site-title {
    font-family: var(--title-font);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--blood-red);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;

    /* 現代化的陰影效果 */
    text-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

.site-subtitle {
    font-family: var(--mono-font);
    font-size: 1rem;
    color: var(--muted-gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.site-motto {
    font-family: var(--title-font);
    font-size: 1.1rem;
    color: var(--old-gold);
    font-style: italic;
    letter-spacing: 0.05em;
    opacity: 0.8;
}



/* === 微妙的殿堂切換器 === */
.hall-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.hall-toggle.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.toggle-track {
    width: 80px;
    height: 32px;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(136, 136, 136, 0.2);
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.toggle-track:hover {
    border-color: rgba(136, 136, 136, 0.4);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.toggle-thumb {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--blood-red) 0%, #8B0000 100%);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.toggle-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-labels {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-family: var(--mono-font);
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hall-toggle:hover .toggle-labels {
    opacity: 0.7;
}

.label-fear,
.label-greed {
    color: var(--muted-gray);
    transition: color 0.3s ease;
}

/* 貪念狀態 */
.hall-toggle.greed-mode .toggle-thumb {
    left: 49px;
    background: linear-gradient(135deg, var(--old-gold) 0%, #8B7355 100%);
}

.hall-toggle.greed-mode .label-greed {
    color: var(--old-gold);
}

.hall-toggle.fear-mode .label-fear {
    color: var(--blood-red);
}

/* === 主題切換樣式 === */
.fear-theme .temple-title h1 {
    color: var(--blood-red);
    text-shadow: 0 0 10px rgba(183, 28, 28, 0.3);
}

.greed-theme .temple-title h1 {
    color: var(--old-gold);
    text-shadow: 0 0 10px rgba(191, 164, 95, 0.3);
}

.fear-theme .wooden-fish {
    border-color: rgba(183, 28, 28, 0.3);
}

.greed-theme .wooden-fish {
    border-color: rgba(191, 164, 95, 0.3);
}

.fear-theme .wooden-fish:hover {
    border-color: var(--blood-red);
    box-shadow: 0 0 20px rgba(183, 28, 28, 0.4);
}

.greed-theme .wooden-fish:hover {
    border-color: var(--old-gold);
    box-shadow: 0 0 20px rgba(191, 164, 95, 0.4);
}

/* === 動態文章內容樣式 === */
.post {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.post.visible {
    opacity: 1;
    transform: translateY(0);
}

.post-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(136, 136, 136, 0.2);
    padding-bottom: 1rem;
}

.post-header h2 {
    font-family: var(--title-font);
    font-size: 1.4rem;
    color: var(--zen-gray);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-family: var(--mono-font);
    font-size: 0.8rem;
    color: var(--muted-gray);
    opacity: 0.7;
}

.post-meta time {
    color: var(--muted-gray);
    display: none; /* 隱藏日期 */
}

.post-meta .category {
    color: var(--zen-gray);
    background: rgba(136, 136, 136, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

.post-content {
    line-height: 1.8;
    color: var(--zen-gray);
}

.post-content h3 {
    font-family: var(--title-font);
    font-size: 1.1rem;
    color: var(--zen-gray);
    margin: 2rem 0 1rem 0;
    border-left: 3px solid var(--muted-gray);
    padding-left: 1rem;
}

.post-content p {
    margin-bottom: 1.2rem;
}

.post-content strong {
    color: var(--zen-gray);
    font-weight: 600;
}

/* 主題特定的文章樣式 */
.fear-theme .post-header h2 {
    color: var(--blood-red);
}

.fear-theme .post-meta .category {
    background: rgba(183, 28, 28, 0.1);
    color: var(--blood-red);
}

.fear-theme .post-content h3 {
    border-left-color: var(--blood-red);
    color: var(--blood-red);
}

.greed-theme .post-header h2 {
    color: var(--old-gold);
}

.greed-theme .post-meta .category {
    background: rgba(191, 164, 95, 0.1);
    color: var(--old-gold);
}

.greed-theme .post-content h3 {
    border-left-color: var(--old-gold);
    color: var(--old-gold);
}

/* 響應式切換器設計 */
@media (max-width: 768px) {
    .hall-toggle {
        top: 1rem;
        right: 1rem;
    }

    .toggle-track {
        width: 70px;
        height: 28px;
    }

    .toggle-thumb {
        width: 22px;
        height: 22px;
        top: 2px;
    }

    .hall-toggle.greed-mode .toggle-thumb {
        left: 44px;
    }

    .toggle-labels {
        font-size: 0.6rem;
        top: -22px;
    }
}

/* 切換器微妙的脈動動畫 */
.hall-toggle.fear-mode .toggle-thumb {
    animation: fear-glow 4s ease-in-out infinite;
}

.hall-toggle.greed-mode .toggle-thumb {
    animation: greed-glow 4s ease-in-out infinite;
}

@keyframes fear-glow {
    0%, 100% {
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 8px rgba(183, 28, 28, 0.3);
    }
    50% {
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 12px rgba(183, 28, 28, 0.5);
    }
}

@keyframes greed-glow {
    0%, 100% {
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 8px rgba(191, 164, 95, 0.3);
    }
    50% {
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 12px rgba(191, 164, 95, 0.5);
    }
}

/* === 電子木魚儀式區域 === */
.wooden-fish-ritual {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(136, 136, 136, 0.2);
}

.ritual-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.wooden-fish {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem auto;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 164, 95, 0.1), transparent);
    /* 確保點擊區域足夠大 */
    min-width: 120px;
    min-height: 120px;
    /* 響應式尺寸調整時的平滑過渡 */
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease, background 0.3s ease;
    /* 確保容器保持圓形 */
    aspect-ratio: 1 / 1;
}

.wooden-fish:hover {
    transform: scale(1.05);
}

.wooden-fish:active {
    transform: scale(0.95);
}

.wooden-fish.clicked {
    animation: muyu-click 0.3s ease-out;
}

@keyframes muyu-click {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
    }
    100% {
        transform: scale(1);
    }
}

/* === 驚喜發現型自動外掛控制器 === */
.auto-controller {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    display: flex;
    gap: 4px;
    align-items: center;
}

.controller-toggle {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(191, 164, 95, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(191, 164, 95, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.4;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.controller-toggle:hover {
    opacity: 0.8;
    background: linear-gradient(135deg, rgba(191, 164, 95, 0.2), rgba(255, 215, 0, 0.1));
    border-color: var(--old-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(191, 164, 95, 0.2);
}

.controller-toggle.active {
    opacity: 1;
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.2), rgba(220, 50, 50, 0.1));
    border-color: var(--blood-red);
    animation: hack-pulse 2s ease-in-out infinite;
}

@keyframes hack-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(183, 28, 28, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(183, 28, 28, 0.5);
        transform: scale(1.05);
    }
}

.toggle-icon {
    font-size: 12px;
    color: var(--old-gold);
    transition: all 0.3s ease;
    text-shadow: 0 0 3px rgba(191, 164, 95, 0.3);
}

.controller-toggle:hover .toggle-icon {
    color: var(--merit-gold);
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.controller-toggle.active .toggle-icon {
    color: var(--blood-red);
    text-shadow: 0 0 8px rgba(183, 28, 28, 0.8), 0 0 12px rgba(183, 28, 28, 0.4);
    animation: icon-spin 3s linear infinite;
    filter: drop-shadow(0 0 4px rgba(183, 28, 28, 0.6));
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.toggle-status {
    display: none; /* 完全隱藏氣泡狀態指示 */
}

.toggle-status.online {
    display: none; /* 完全隱藏氣泡狀態指示 */
}

.controller-panel {
    position: absolute;
    top: 35px;
    right: 0;
    width: 180px;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(191, 164, 95, 0.3);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(191, 164, 95, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
    border-top: 2px solid rgba(191, 164, 95, 0.5);
}

.controller-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: panel-glow 0.5s ease-out;
}

@keyframes panel-glow {
    0% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(191, 164, 95, 0.1); }
    50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 30px rgba(191, 164, 95, 0.3); }
    100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(191, 164, 95, 0.1); }
}

.panel-header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(191, 164, 95, 0.2);
    position: relative;
}

.panel-title {
    font-family: var(--mono-font);
    font-size: 0.8rem;
    color: var(--old-gold);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-shadow: 0 0 5px rgba(191, 164, 95, 0.3);
    animation: title-flicker 3s ease-in-out infinite;
}

@keyframes title-flicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.speed-select {
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(18, 18, 18, 0.8));
    color: var(--zen-gray);
    border: 1px solid rgba(191, 164, 95, 0.3);
    border-radius: 4px;
    padding: 6px 8px;
    font-family: var(--mono-font);
    font-size: 0.75rem;
    margin-bottom: 10px;
    outline: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.speed-select:focus {
    border-color: var(--old-gold);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(18, 18, 18, 0.9));
    box-shadow: 0 0 8px rgba(191, 164, 95, 0.3);
}

.speed-select:hover {
    border-color: rgba(191, 164, 95, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.stat-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(18, 18, 18, 0.3));
    border-radius: 4px;
    padding: 6px 4px;
    border: 1px solid rgba(191, 164, 95, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box:hover {
    border-color: rgba(191, 164, 95, 0.4);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(18, 18, 18, 0.4));
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(191, 164, 95, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-box:hover::before {
    left: 100%;
}

.stat-value {
    display: block;
    font-family: var(--mono-font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--merit-gold);
    line-height: 1.2;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-box:hover .stat-value {
    color: var(--old-gold);
    text-shadow: 0 0 6px rgba(191, 164, 95, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.6rem;
    color: var(--muted-gray);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.stat-box:hover .stat-label {
    opacity: 1;
}

.fish-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 164, 95, 0.3), transparent);
    transform: translate(-50%, -50%);
    animation: breathing-glow 4s ease-in-out infinite;
}

.fish-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fish-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: sepia(0.3) brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
    border-radius: 50%;
    /* 確保圖片在容器中居中 */
    display: block;
    margin: 0 auto;
    /* 響應式尺寸調整時的平滑過渡 */
    transition: width 0.3s ease, height 0.3s ease, filter 0.3s ease;
    /* 防止圖片變形 */
    aspect-ratio: 1 / 1;
    /* 優化圖片載入 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.ritual-instruction {
    font-family: var(--title-font);
    font-size: 1.1rem;
    color: var(--old-gold);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.merit-counter {
    font-family: var(--mono-font);
    font-size: 1rem;
    color: var(--zen-gray);
    margin-bottom: 2rem;
}

.merit-text {
    color: var(--muted-gray);
}

.merit-count {
    color: var(--merit-gold);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* === 戒斷次數清除按鈕樣式 === */

.reset-button {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(191, 164, 95, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(191, 164, 95, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reset-button:hover {
    opacity: 0.8;
    background: linear-gradient(135deg, rgba(191, 164, 95, 0.2), rgba(255, 215, 0, 0.1));
    border-color: var(--old-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(191, 164, 95, 0.2);
}

.reset-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(183, 28, 28, 0.3);
}

.reset-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--old-gold);
    opacity: 0.8;
}

.reset-button:hover .reset-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* 點擊動畫效果 */
.reset-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(183, 28, 28, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.reset-button.clicked::before {
    width: 100px;
    height: 100px;
}



.sutra-display {
    min-height: 60px;
    font-family: var(--title-font);
    font-size: 1.2rem;
    color: var(--highlight-gray);
    font-style: italic;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sutra-display.show {
    opacity: 1;
}



@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes breathing-glow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* === 內容區域 === */
.content-area {
    margin-bottom: 4rem;
}

/* === 文章樣式 === */
.post {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(136, 136, 136, 0.2);
}

.post:last-child {
    border-bottom: none;
}

/* === 文章標題區域 === */
.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-family: var(--title-font);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--blood-red);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono-font);
    font-size: 0.85rem;
    color: var(--muted-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-date {
    color: var(--zen-gray);
    display: none; /* 隱藏日期 */
}

.classification {
    color: var(--old-gold);
    font-weight: 500;
}

/* === 文章內容 === */
.post-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.lead-paragraph {
    font-size: 1.25rem !important;
    color: var(--highlight-gray) !important;
    font-weight: 500;
    margin-bottom: 2rem !important;
    line-height: 1.7;
}

/* === 標題層級 === */
.post-content h3 {
    font-family: var(--title-font);
    font-size: 1.5rem;
    color: var(--old-gold);
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 600;
}

/* === 禪意引用區塊 - 現代化設計 === */
.zen-quote {
    background-color: var(--charcoal-black);
    border-left: 4px solid var(--old-gold);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--highlight-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}



/* 保持舊的dark-quote樣式以防需要 */
.dark-quote {
    background-color: var(--charcoal-black);
    border-left: 4px solid var(--blood-red);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--highlight-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
}

.dark-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--blood-red);
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-family: var(--title-font);
    opacity: 0.3;
}

/* === 連結樣式 === */
a {
    color: var(--highlight-gray);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--old-gold);
    border-bottom-color: var(--old-gold);
}

/* === 頁腳 - 現代化設計 === */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--subtle-gray);
    margin-top: 4rem;
    background: var(--charcoal-black);
    border-radius: 12px 12px 0 0;
}

.footer-text {
    font-family: var(--body-font);
    font-size: 0.85rem;
    color: var(--muted-gray);
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* === 創作者印記 - Ouroboros === */
.ouroboros-mark {
    font-size: 0.7rem;
    color: #333333;  /* 幾乎與背景融為一體的深灰 */
    text-decoration: none;
    margin-left: 0.5rem;
    font-family: var(--title-font);
    font-style: italic;
    opacity: 0.3;
    transition: all 0.5s ease;
    border-bottom: none;
    position: relative;

    /* 微妙的文字陰影，增加神秘感 */
    text-shadow: 0 0 2px rgba(51, 51, 51, 0.5);
}

.ouroboros-mark:hover {
    color: var(--old-gold);
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(191, 164, 95, 0.4);
    transform: scale(1.05);
}

.ouroboros-mark:active {
    color: var(--blood-red);
    text-shadow: 0 0 10px rgba(183, 28, 28, 0.6);
}

/* 為 Ouroboros 添加微妙的脈動效果 */
.ouroboros-mark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(191, 164, 95, 0.1), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.ouroboros-mark:hover::before {
    width: 30px;
    height: 30px;
}

/* === 響應式設計 === */
@media (max-width: 768px) {
    .void-container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .lead-paragraph {
        font-size: 1.1rem !important;
    }

    /* 自動控制器響應式 - 平衡可見性 */
    .auto-controller {
        top: -6px;
        right: -6px;
    }

    .controller-panel {
        width: 160px;
        right: -20px;
    }

    .controller-toggle {
        width: 24px;
        height: 24px;
        opacity: 0.6; /* 移動端稍微提高可見性 */
    }

    .toggle-icon {
        font-size: 10px;
    }

    .stat-box {
        padding: 8px 4px;
    }

    /* 行動版木魚放大 */
    .wooden-fish {
        width: 180px;
        height: 180px;
        margin: 0 auto 2.5rem auto;
    }

    .fish-image {
        width: 140px;
        height: 140px;
    }

    .fish-symbol {
        font-size: 5rem; /* 木魚符號更大 */
    }

    /* 行動版清除按鈕優化 */
    .reset-button {
        width: 36px;
        height: 36px;
        opacity: 0.7; /* 行動版提高可見性 */
        touch-action: manipulation; /* 優化觸控響應 */
        -webkit-tap-highlight-color: transparent; /* 移除點擊高亮 */
    }

    .reset-button:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, rgba(183, 28, 28, 0.2), rgba(255, 0, 0, 0.1));
        border-color: var(--blood-red);
    }

    .reset-icon {
        font-size: 14px;
        pointer-events: none; /* 防止圖標干擾觸控 */
    }
}

/* === 平板尺寸優化 (768px - 1024px) === */
@media (min-width: 768px) and (max-width: 1024px) {
    .wooden-fish {
        width: 160px;
        height: 160px;
        margin: 0 auto 2.5rem auto;
    }

    .fish-image {
        width: 120px;
        height: 120px;
    }

    .fish-symbol {
        font-size: 4.5rem;
    }
}

/* === 大螢幕優化 (1200px+) === */
@media (min-width: 1200px) {
    .wooden-fish {
        width: 160px;
        height: 160px;
        margin: 0 auto 2.5rem auto;
    }

    .fish-image {
        width: 120px;
        height: 120px;
    }

    .wooden-fish:hover {
        transform: scale(1.08);
    }
}

/* === 超小螢幕優化 (320px - 480px) === */
@media (max-width: 480px) {
    .wooden-fish {
        width: 160px;
        height: 160px;
        margin: 0 auto 2rem auto;
    }

    .fish-image {
        width: 120px;
        height: 120px;
    }

    .fish-symbol {
        font-size: 4.5rem;
    }
}

/* === 極小螢幕優化 (< 320px) === */
@media (max-width: 320px) {
    .wooden-fish {
        width: 140px;
        height: 140px;
        margin: 0 auto 1.5rem auto;
    }

    .fish-image {
        width: 100px;
        height: 100px;
    }

    .fish-symbol {
        font-size: 4rem;
    }
}

/* === 滾動條自定義（Webkit） === */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--muted-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--archive-gray);
}

/* === 高級視覺效果 === */

/* 文章淡入動畫 */
.post {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.post.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 標題發光效果 */
.site-title {
    animation: subtle-glow 4s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    from {
        text-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
    }
    to {
        text-shadow: 0 0 25px rgba(220, 38, 38, 0.6), 0 0 35px rgba(220, 38, 38, 0.3);
    }
}

/* 引用區塊的呼吸效果 */
.dark-quote {
    animation: breathing 6s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% {
        border-left-width: 4px;
    }
    50% {
        border-left-width: 6px;
    }
}

/* 分類標籤的閃爍效果 */
.classification {
    animation: classification-blink 3s ease-in-out infinite;
}

@keyframes classification-blink {
    0%, 90%, 100% {
        opacity: 1;
    }
    95% {
        opacity: 0.7;
    }
}

/* 滑鼠懸停時的文字陰影增強 - 現代化效果 */
.post-title:hover {
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.7);
    transition: text-shadow 0.3s ease;
    transform: translateY(-1px);
}

/* 頁面載入時的整體淡入 */
body {
    animation: page-fade-in 1.5s ease-out;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 連結的微妙動畫 */
a {
    position: relative;
    overflow: hidden;
}

a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: var(--old-gold);
    transition: left 0.3s ease;
}

a:hover::after {
    left: 0;
}

/* 文字選取時的特殊效果 */
.post-content p::selection {
    background: linear-gradient(90deg, var(--blood-red), var(--old-gold));
    color: var(--void-black);
}

/* 深度陰影效果 */
.void-container {
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

/* 微妙的邊框動畫 */
.site-header {
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--muted-gray), transparent);
    animation: border-expand 2s ease-out 1s forwards;
}

@keyframes border-expand {
    to {
        width: 100%;
        left: 0;
    }
}

/* 煉金術爆發效果 */
@keyframes alchemical-burst {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(2) rotate(360deg) translateY(-20px);
    }
}

/* === 極簡功德箱 === */
.donation-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(136, 136, 136, 0.2);
}

.donation-box {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--charcoal-black);
    border: 1px solid var(--subtle-gray);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* 左右分欄布局 */
.donation-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.donation-left {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
}

.donation-right {
    flex: 1;
    text-align: left;
}

.donation-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.donation-header:hover {
    background-color: rgba(191, 164, 95, 0.05);
}

.donation-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.donation-info {
    flex: 1;
}

.expand-indicator {
    font-size: 1.2rem;
    color: var(--old-gold);
    transition: transform 0.3s ease;
    margin-left: auto;
    user-select: none;
}

.donation-title {
    font-family: var(--title-font);
    font-size: 1.5rem;
    color: var(--old-gold);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.donation-desc {
    font-size: 1rem;
    color: var(--zen-gray);
    margin: 0;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.crypto-list {
    margin-bottom: 2rem;
}

.crypto-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--surface-gray);
    border-radius: 8px;
    border: 1px solid var(--subtle-gray);
    min-width: 0;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.crypto-symbol {
    font-size: 1.2rem;
    color: var(--old-gold);
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.crypto-name {
    font-family: var(--title-font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--old-gold);
    min-width: 80px;
    max-width: 80px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.2;
}

.crypto-input {
    flex: 1;
    padding: 0.8rem 0.6rem;
    background: var(--void-black);
    border: 1px solid var(--subtle-gray);
    border-radius: 6px;
    color: var(--zen-gray);
    font-family: var(--mono-font);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
    width: 100%;
    min-width: 350px;
    height: auto;
    min-height: 2.8rem;
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.4;
    resize: none;
    overflow: visible;
    box-sizing: border-box;
}

.crypto-input:focus {
    border-color: var(--old-gold);
}

.crypto-input::placeholder {
    color: rgba(136, 136, 136, 0.5);
    font-style: italic;
}

/* 地址輸入框交互效果 - 現代化處理 */
.crypto-input:hover {
    border-color: var(--old-gold);
    background: var(--charcoal-black);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.crypto-input:focus {
    background: var(--charcoal-black);
    border-color: var(--old-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.copy-button {
    padding: 0.6rem 1rem;
    background: var(--old-gold);
    color: var(--void-black);
    border: none;
    border-radius: 4px;
    font-family: var(--title-font);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-button:hover {
    background: var(--merit-gold);
    transform: translateY(-1px);
}

.copy-button:active {
    transform: translateY(0);
}

.donation-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(136, 136, 136, 0.2);
}

.share-button {
    font-family: var(--title-font);
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--zen-gray);
    border: 1px solid rgba(136, 136, 136, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.share-button:hover {
    background: rgba(136, 136, 136, 0.1);
    color: var(--old-gold);
    border-color: var(--old-gold);
    transform: translateY(-1px);
}

.box-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(191, 164, 95, 0.3);
}

.box-image {
    text-align: center;
    margin-bottom: 2rem;
}

.merit-box-image {
    max-width: 150px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merit-box-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(191, 164, 95, 0.2);
}

.box-title {
    font-family: var(--title-font);
    font-size: 2rem;
    color: var(--old-gold);
    margin: 0;
    font-weight: 600;
}

.incense-icon {
    font-size: 2rem;
    filter: sepia(1) hue-rotate(30deg) brightness(1.2);
    animation: flicker 2s ease-in-out infinite alternate;
}

.box-content {
    width: 100%;
    overflow: visible;
    display: block;
}

.box-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--zen-gray);
    margin-bottom: 1.5rem;
    text-align: left;
    width: 100%;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    font-style: italic;
    padding-left: 1rem;
}

/* === 加密貨幣地址樣式 === */
.crypto-addresses {
    margin-bottom: 2.5rem;
}

.address-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(191, 164, 95, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.crypto-item:hover {
    border-color: var(--old-gold);
    box-shadow: 0 4px 15px rgba(191, 164, 95, 0.1);
}

.crypto-symbol {
    font-family: var(--title-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--old-gold);
    min-width: 80px;
    text-align: center;
}

.address-container {
    display: flex;
    flex: 1;
    gap: 0.5rem;
}

.crypto-address {
    flex: 1;
    padding: 0.8rem;
    background: var(--void-black);
    border: 1px solid rgba(136, 136, 136, 0.3);
    border-radius: 6px;
    color: var(--zen-gray);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.crypto-address:focus {
    border-color: var(--old-gold);
}

.copy-btn {
    padding: 0.8rem 1.2rem;
    background: var(--old-gold);
    color: var(--void-black);
    border: none;
    border-radius: 6px;
    font-family: var(--title-font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--merit-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(191, 164, 95, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.merit-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.donation-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.donation-btn {
    font-family: var(--title-font);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.donation-btn.primary {
    background: linear-gradient(135deg, var(--old-gold), var(--merit-gold));
    color: var(--void-black);
    box-shadow: 0 4px 15px rgba(191, 164, 95, 0.3);
}

.donation-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 164, 95, 0.4);
}

.donation-btn.secondary {
    background: transparent;
    color: var(--old-gold);
    border: 2px solid var(--old-gold);
}

.donation-btn.secondary:hover {
    background: var(--old-gold);
    color: var(--void-black);
    transform: translateY(-2px);
}

/* === 功德按鈕樣式 === */
.merit-btn {
    font-family: var(--title-font);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.merit-btn.primary {
    background: linear-gradient(135deg, var(--old-gold), var(--merit-gold));
    color: var(--void-black);
    box-shadow: 0 4px 15px rgba(191, 164, 95, 0.3);
}

.merit-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 164, 95, 0.4);
}

.merit-btn.secondary {
    background: transparent;
    color: var(--old-gold);
    border: 2px solid var(--old-gold);
}

.merit-btn.secondary:hover {
    background: var(--old-gold);
    color: var(--void-black);
    transform: translateY(-2px);
}

.alternative-merit {
    font-size: 0.9rem;
    color: var(--muted-gray);
    font-style: italic;
    line-height: 1.5;
}

@keyframes border-glow {
    from {
        opacity: 0.2;
    }
    to {
        opacity: 0.5;
    }
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* === 功德箱響應式設計 === */
@media (max-width: 768px) {
    .merit-box-image {
        max-width: 180px;
    }

    .crypto-item {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .crypto-symbol {
        min-width: auto;
        text-align: left;
        font-size: 1.1rem;
    }

    .address-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .crypto-address {
        font-size: 0.8rem;
        word-break: break-all;
    }

    .copy-btn {
        align-self: stretch;
        text-align: center;
    }

    .merit-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .merit-btn {
        width: 100%;
        padding: 1.2rem;
    }
}

/* === 提示動畫 === */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* === 極簡功德箱響應式設計 === */
@media (max-width: 768px) {
    .donation-box {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .donation-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .donation-image {
        width: 60px;
        height: 60px;
    }

    .expand-indicator {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }

    .crypto-row {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .crypto-symbol {
        font-size: 1.5rem;
    }

    .crypto-name {
        min-width: auto;
        text-align: center;
        font-size: 1rem;
    }

    .crypto-input {
        font-size: 0.75rem;
        text-align: left;
        padding: 1rem 0.8rem;
        line-height: 1.5;
        min-height: 4rem;
        min-width: 250px;
        word-break: break-all;
        white-space: pre-wrap;
    }

    .donation-box {
        margin: 0 0.5rem;
        padding: 1.5rem;
        max-width: none;
    }

    /* 行動裝置改為垂直布局 */
    .donation-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .donation-left {
        flex: none;
        align-self: center;
    }

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

    .box-description {
        text-align: center;
        padding-left: 0;
        font-size: 0.95rem;
    }

    .crypto-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 1rem;
    }

    .crypto-name {
        min-width: auto;
        max-width: none;
        text-align: center;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        line-height: 1.3;
    }



    .copy-button {
        width: 100%;
        padding: 0.8rem;
    }

    .share-button {
        width: 100%;
        padding: 1rem;
    }
}

/* Fix: remove yellow underline for header links */
.site-header a,
.site-header a:visited {
    text-decoration: none !important;
    box-shadow: none !important;
}

.site-header a::before,
.site-header a::after {
    content: none !important;
}

.site-header a:hover,
.site-header a:focus {
    color: var(--old-gold);
    text-decoration: none !important;
}

/* Global: strip all link underlines/effects */
a, a:visited {
    text-decoration: none !important;
    box-shadow: none !important;
}

a::before, a::after {
    content: none !important;
}

a:hover, a:focus {
    color: var(--old-gold);
    text-decoration: none !important;
}
