/* ===== Guides Styles ===== */

.blog-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 8rem 0 1.5rem 0; /* 增加上方 padding 避免被導航擋住 */
    position: relative;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

/* Search and Filter Styles */
.guides-filters {
    margin-bottom: 1.5rem;
}

.filter-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.search-input,
.category-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--secondary-bg);
    color: var(--primary-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 200px;
}

.search-input:focus,
.category-select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-input::placeholder {
    color: var(--muted-text);
}

/* Guides Grid */
.guides-section {
    margin-bottom: 3rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Guide Card Styles */
.guide-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.guide-card.featured {
    grid-column: span 2;
    flex-direction: row;
    min-height: 300px;
}

.guide-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.guide-card.featured .guide-image {
    width: 50%;
    height: auto;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guide-card:hover .guide-image img {
    transform: scale(1.05);
}

.guide-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.guide-card.featured .guide-content {
    width: 50%;
}

.guide-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-text);
    line-height: 1.4;
}

.guide-excerpt {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--muted-text);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guide-date,
.guide-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-category {
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.guide-read-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.guide-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-shadow);
}

/* Admin Controls */
.admin-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-shadow);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--secondary-bg);
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--card-shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-text);
}

.close {
    color: var(--secondary-text);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-text);
}

.modal-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--tertiary-bg);
    color: var(--primary-text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-secondary {
    background: var(--tertiary-bg);
    color: var(--secondary-text);
    border: 1px solid var(--border-color);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--button-shadow);
}

.btn-secondary:hover {
    background: var(--accent-bg);
    color: var(--primary-text);
}

/* Posts Grid */
.featured-posts {
    margin-bottom: 3rem;
}

.featured-posts h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-text);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Post Card Styles */
.post-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.post-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.post-card.featured .post-image {
    height: auto;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.post-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--primary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--primary-accent);
}

.post-content p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted-text);
}

.post-category {
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Post Actions */
.post-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: none;
    gap: 0.5rem;
}

.admin-mode .post-actions {
    display: flex;
}

.post-action-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-action-btn:hover {
    background: var(--primary-accent);
    transform: scale(1.1);
}

.post-action-btn.delete {
    background: rgba(220, 53, 69, 0.8);
}

.post-action-btn.delete:hover {
    background: #dc3545;
}

/* Blog CTA */
.blog-cta {
    background: var(--dark-gradient);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid var(--border-color);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--discord-accent);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

/* Guide Modal Styles */
.guide-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.guide-detail-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.guide-detail-content {
    color: var(--primary-text);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.guide-detail-content h1 {
    font-size: 1.8rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--primary-text);
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 0.5rem;
}

/* 一般 h2 樣式 (非在 guide-section 內的) */
.guide-detail-content h2:not(.guide-section h2) {
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--tertiary-bg) 100%);
    border-left: 4px solid var(--primary-accent);
    border-radius: 8px;
    color: var(--primary-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.guide-detail-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    color: var(--primary-accent);
    border-left: 3px solid var(--primary-accent);
    background: rgba(66, 153, 225, 0.1);
    border-radius: 0 4px 4px 0;
}

.guide-detail-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* 為每個 h2 區塊增加底部間距 */
.guide-detail-content h2 + p,
.guide-detail-content h2 + ul,
.guide-detail-content h2 + ol,
.guide-detail-content h2 + table {
    margin-top: 1rem;
}

/* h2 區塊結束後的間距 */
.guide-detail-content h2:not(:last-child) {
    margin-bottom: 1.5rem;
}

.guide-detail-content ul,
.guide-detail-content .guide-list {
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.5rem 1.2rem 2.5rem;
    background: rgba(45, 55, 72, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--highlight-accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.guide-detail-content ol {
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.5rem 1.2rem 2.5rem;
    background: rgba(26, 31, 46, 0.4);
    border-radius: 8px;
    border-left: 4px solid var(--primary-accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.guide-detail-content ul li,
.guide-detail-content .guide-list li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: var(--primary-text);
    position: relative;
    padding-left: 0.5rem;
}

.guide-detail-content ol li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: var(--primary-text);
    position: relative;
    padding-left: 0.5rem;
}

/* 自定義無序列表的項目符號 */
.guide-detail-content ul li::before {
    content: "▶";
    color: var(--highlight-accent);
    position: absolute;
    left: -1.2rem;
    font-size: 0.8rem;
}

/* 有序列表樣式改進 */
.guide-detail-content ol {
    counter-reset: step-counter;
}

.guide-detail-content ol li {
    counter-increment: step-counter;
}

.guide-detail-content ol li::before {
    content: counter(step-counter);
    background: var(--primary-accent);
    color: white;
    font-weight: 600;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -2rem;
    font-size: 0.8rem;
}

.guide-detail-content ul li:last-child,
.guide-detail-content ol li:last-child {
    margin-bottom: 0;
}

.guide-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: var(--card-shadow);
}

.guide-detail-content code {
    background: var(--tertiary-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

.guide-detail-content pre {
    background: var(--tertiary-bg);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.guide-detail-content table,
.guide-detail-content .guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem 0;
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.guide-detail-content table:hover,
.guide-detail-content .guide-table:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.guide-detail-content th,
.guide-detail-content td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.guide-detail-content thead th,
.guide-detail-content .table-header th {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.guide-detail-content tbody td {
    background: var(--secondary-bg);
    font-size: 0.95rem;
}

.guide-detail-content tbody tr:nth-child(even) td {
    background: rgba(45, 55, 72, 0.4);
}

.guide-detail-content tbody tr:hover td {
    background: var(--accent-bg);
    color: var(--primary-text);
    cursor: pointer;
}

/* 第一欄（通常是費用或數字）居中對齊 */
.guide-detail-content td:first-child {
    text-align: center;
    font-weight: 600;
    color: var(--highlight-accent);
}

/* 最後一欄（通常是描述）左對齊 */
.guide-detail-content td:last-child {
    text-align: left;
}

.guide-detail-content strong {
    color: var(--highlight-accent);
    font-weight: 600;
    background: rgba(246, 224, 94, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.guide-detail-content code {
    background: var(--tertiary-bg);
    color: var(--highlight-accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
}

/* 攻略詳細圖片樣式 */
.guide-detail-image {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--tertiary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.guide-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 0.75rem;
}

.image-caption {
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.guide-actions {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

/* 攻略區塊容器樣式 */
.guide-detail-content .guide-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(26, 31, 46, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.guide-detail-content .guide-section:hover {
    background: rgba(26, 31, 46, 0.7);
    border-color: var(--primary-accent);
}

.guide-detail-content .guide-section h2 {
    margin: 0 0 1rem 0;
    padding: 0.75rem 1rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 特殊內容樣式 */
.guide-detail-content .emoji {
    font-size: 1.2em;
}

/* 攻略內的項目符號優化 */
.guide-detail-content ul li::marker {
    color: var(--highlight-accent);
}

.guide-detail-content ol li::marker {
    color: var(--primary-accent);
    font-weight: bold;
}

/* 數字列表額外樣式 */
.guide-detail-content ol {
    counter-reset: step-counter;
}

.guide-detail-content ol li {
    position: relative;
}

.guide-detail-content ol li::marker {
    color: var(--primary-accent);
    font-weight: 600;
}

/* 攻略重點區塊 */
.guide-detail-content blockquote {
    background: var(--tertiary-bg);
    border-left: 4px solid var(--primary-accent);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

/* 攻略步驟編號 */
.guide-detail-content .step-number {
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.25);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
}

.discord-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.discord-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.discord-link:hover::before {
    left: 100%;
}

.discord-link i {
    font-size: 0.9rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* 在攻略內容中的 Discord 連結樣式 */
.guide-detail-content .discord-link {
    margin: 0 0.2rem;
    display: inline-flex;
    width: auto;
    vertical-align: baseline;
}

/* 包含 Discord 連結的段落樣式 */
.guide-detail-content p:has(.discord-link) {
    text-align: center;
    padding: 2rem;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(88, 101, 242, 0.2);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.guide-detail-content p:has(.discord-link)::before {
    content: "💬";
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    opacity: 0.3;
}

/* 對於不支援 :has() 的瀏覽器，使用通用樣式 */
.guide-detail-content p:last-child {
    padding: 1.5rem;
    background: rgba(88, 101, 242, 0.05);
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

/* No Guides / Error States */
.no-guides,
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--secondary-text);
    grid-column: 1 / -1;
}

.no-guides i,
.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--muted-text);
}

.no-guides h3,
.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.retry-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-shadow);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-card.featured {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .guide-card.featured .guide-image {
        width: 100%;
        height: 200px;
    }
    
    .guide-card.featured .guide-content {
        width: 100%;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input,
    .category-select {
        min-width: auto;
        width: 100%;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .guide-modal-content {
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .blog-header {
        padding: 7rem 0 1.5rem 0; /* 平板版避免被導航擋住 */
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .guide-detail-content h1 {
        font-size: 1.6rem;
    }
    
    .guide-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .guide-meta {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .guide-content {
        padding: 1rem;
    }
    
    .blog-header {
        padding: 6rem 0 1rem 0; /* 手機版也要避免被導航擋住 */
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .guide-title {
        font-size: 1.1rem;
    }
    
    .guide-read-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
}

/* ===== 圖片放大功能樣式 ===== */
.image-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
    to {
        opacity: 1;
    }
}

.image-zoom-backdrop {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

.image-zoom-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.image-zoom-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.image-zoom-container {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoomed-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.image-zoom-caption {
    margin-top: 1rem;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.image-zoom-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.3;
    }
}

/* 圖片提示樣式 */
.image-hint {
    color: var(--secondary-text);
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

.guide-image-clickable {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-image-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .image-zoom-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .image-zoom-container {
        max-width: 95vw;
        max-height: 75vh;
    }
    
    .zoomed-image {
        max-height: 60vh;
    }
    
    .image-zoom-caption {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }
    
    .image-zoom-hint {
        bottom: 1rem;
        font-size: 0.8rem;
    }
}