/* ================================
   打小人指南 - 頁面專屬樣式
   ================================ */

/* ---------- 頁面容器 ---------- */
.guide-panel {
    max-width: 960px;
    margin: 0 auto;
}

.guide-section {
    margin-bottom: 72px;
}

.guide-section:last-child {
    margin-bottom: 0;
}

/* ---------- 溫馨提示 ---------- */
.tip-box {
    background: linear-gradient(135deg, var(--gold-50) 0%, #fff9f0 100%);
    border: 1px solid var(--gold-200);
}

.tip-box .box-title {
    color: var(--gold-600);
}

/* ---------- 物品卡片網格 ---------- */
.item-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.item-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(114, 47, 55, 0.06);
    box-shadow: 0 4px 20px rgba(114, 47, 55, 0.04);
    transition: all 0.4s ease;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(114, 47, 55, 0.1);
    border-color: rgba(114, 47, 55, 0.12);
}

.item-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--cream-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 2px dashed rgba(114, 47, 55, 0.08);
    position: relative;
    overflow: hidden;
}

.item-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 12px,
        rgba(114, 47, 55, 0.02) 12px,
        rgba(114, 47, 55, 0.02) 24px
    );
}

.item-img .ph-icon {
    font-size: 44px;
    opacity: 0.45;
    position: relative;
}

.item-img .ph-text {
    font-size: 13px;
    color: var(--gray-300);
    letter-spacing: 2px;
    position: relative;
}

/* 單張實物照片 */
.item-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* 雙圖並排（小人紙男女） */
.item-img.dual-img {
    flex-direction: row;
    gap: 0;
    padding: 0;
    background: #f5f0e8;
}

.dual-photo {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px 8px 8px;
    gap: 4px;
}

.dual-photo:first-child {
    border-right: 1px dashed rgba(114, 47, 55, 0.12);
}

.dual-photo img {
    max-width: 100%;
    max-height: calc(100% - 22px);
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.dual-label {
    font-size: 12px;
    color: var(--burgundy-700);
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.7);
    padding: 2px 10px;
    border-radius: 100px;
}

/* 五寶紙內含物展示 */
.item-inner-materials {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(114, 47, 55, 0.1);
}

.inner-photo {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(114, 47, 55, 0.06);
    box-shadow: 0 2px 8px rgba(114, 47, 55, 0.04);
}

.inner-caption {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--gray-500);
    text-align: center;
    letter-spacing: 0.5px;
}

.item-info {
    padding: 24px;
}

.item-info h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--burgundy-900);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.item-info p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--gray-700);
}

.item-info p strong {
    color: var(--burgundy-800);
    font-weight: 600;
}

/* ---------- 全寬卡片（五寶紙） ---------- */
.item-card-full {
    grid-column: 1 / -1;
}

/* ---------- 五寶紙內含物詳情 ---------- */
.item-details {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed rgba(114, 47, 55, 0.12);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.detail-item {
    background: linear-gradient(135deg, var(--burgundy-50) 0%, rgba(255,255,255,0.5) 100%);
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(114, 47, 55, 0.06);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(114, 47, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
}

.detail-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.detail-num {
    width: 26px;
    height: 26px;
    background: var(--burgundy-600);
    color: var(--gold-200);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-name {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--burgundy-900);
    letter-spacing: 1px;
}

.detail-item > p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
    padding-left: 36px;
}

/* ---------- 影片播放器 ---------- */
.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--burgundy-900);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(45, 10, 12, 0.2);
    position: relative;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
    border: none;
}

/* ---------- 步驟時間線 ---------- */
.step-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    margin-top: 32px;
}

.step-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold-300), var(--burgundy-200));
}

.step-card {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    position: relative;
}

.step-card:first-child {
    padding-top: 0;
}

.step-card:last-child {
    padding-bottom: 0;
}

.step-num {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--burgundy-600);
    color: var(--gold-200);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(114, 47, 55, 0.25);
    position: relative;
    z-index: 1;
}

.step-body {
    flex: 1;
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(114, 47, 55, 0.06);
    box-shadow: 0 2px 12px rgba(114, 47, 55, 0.04);
    transition: all 0.3s ease;
}

.step-body:hover {
    box-shadow: 0 6px 24px rgba(114, 47, 55, 0.08);
    border-color: rgba(114, 47, 55, 0.1);
}

.step-body h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--burgundy-900);
    margin-bottom: 10px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.step-note {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gold-100);
    color: var(--gold-600);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 100px;
    border: 1px solid var(--gold-200);
}

.step-body p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--gray-700);
}

.step-body p strong {
    color: var(--burgundy-800);
    font-weight: 600;
}

/* ---------- 報紙版本步驟 ---------- */
.alt-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.alt-step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    border-radius: 14px;
    padding: 22px 28px;
    border: 1px solid rgba(114, 47, 55, 0.06);
    transition: all 0.3s ease;
}

.alt-step-item:hover {
    background: var(--burgundy-50);
    border-color: rgba(114, 47, 55, 0.1);
    transform: translateX(4px);
}

.alt-step-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--burgundy-600);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.alt-step-item p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--gray-700);
    padding-top: 4px;
}

/* ---------- 注意事項框 ---------- */
.note-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 18px 24px;
    background: var(--gold-50);
    border: 1px solid var(--gold-200);
    border-radius: 12px;
}

.note-icon {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-600);
}

.note-box p {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

/* ---------- 口訣區塊 ---------- */
.chant-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
}

.chant-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(114, 47, 55, 0.06);
    box-shadow: 0 4px 20px rgba(114, 47, 55, 0.04);
    transition: all 0.4s ease;
}

.chant-card:hover {
    box-shadow: 0 8px 32px rgba(114, 47, 55, 0.08);
    transform: translateY(-3px);
}

.chant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--burgundy-800) 0%, var(--burgundy-700) 100%);
}

.chant-version {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-300);
    letter-spacing: 2px;
}

.chant-badge {
    padding: 4px 14px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-200);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 100px;
}

.chant-body {
    padding: 28px;
}

.chant-body p {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 2.2;
    color: var(--burgundy-900);
    letter-spacing: 1px;
}

.chant-rhyme {
    color: var(--burgundy-600);
    font-weight: 600;
}

/* ---------- 禁忌卡片網格（來自儀式禁忌樣式） ---------- */
.taboo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.taboo-card {
    background: var(--white);
    border: 1px solid rgba(114,47,55,0.08);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.taboo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--burgundy-300);
    transition: background 0.3s ease;
}

.taboo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(114,47,55,0.1);
    border-color: var(--burgundy-200);
}

.taboo-card:hover::before {
    background: var(--burgundy-600);
}

.taboo-card .taboo-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.taboo-card h4 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--burgundy-900);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.taboo-card p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--gray-500);
}

/* ---------- 警告提示 ---------- */
.warning-box {
    background: var(--white);
    border: 2px solid var(--burgundy-200);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    text-align: center;
}

.warning-box .warning-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.warning-box h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--burgundy-800);
    margin-bottom: 12px;
}

.warning-box p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- 重點提示盒 ---------- */
.highlight-box {
    background: linear-gradient(135deg, var(--gold-50) 0%, var(--cream) 100%);
    border: 1px solid var(--gold-200);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    position: relative;
}

.highlight-box .box-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--burgundy-800);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-box p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--gray-700);
}

/* ---------- 分隔裝飾 ---------- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 56px 0;
    color: var(--gold-400);
    font-size: 18px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: var(--gold-200);
}

/* ---------- 回應式 ---------- */
@media (max-width: 768px) {
    .item-grid {
        grid-template-columns: 1fr;
    }

    .item-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-timeline::before {
        left: 22px;
    }

    .step-card {
        gap: 16px;
    }

    .step-num {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .step-body {
        padding: 20px;
    }

    .alt-step-item {
        flex-direction: column;
        gap: 12px;
    }

    .alt-step-tag {
        align-self: flex-start;
    }

    .chant-header {
        padding: 16px 20px;
    }

    .chant-body {
        padding: 20px;
    }

    .chant-body p {
        font-size: 15px;
        line-height: 2;
    }

    .taboo-grid {
        grid-template-columns: 1fr;
    }

    .warning-box,
    .highlight-box {
        padding: 24px;
    }

    .video-wrapper {
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .item-details {
        grid-template-columns: 1fr;
    }
}
