/* 增強版Logo樣式 - 確保一致的紅色主題和毛筆字效果 */

/* 頁面頂部Logo樣式 */
.page-header {
    background: linear-gradient(135deg, 
        #1e3c72 0%, 
        #2a5298 50%, 
        #3d6bb3 100%);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 4px solid var(--color-primary-red);
    margin-bottom: 25px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* 背景裝飾效果 */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 30, 58, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 品牌容器 */
.brand-container {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

/* 主Logo文字 - 毛筆字效果 */
.main-logo-text {
    font-family: 'STKaiti', '楷體', 'KaiTi', serif;
    font-size: 84px;
    color: var(--color-primary-red);
    margin: 0 0 15px 0;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        6px 6px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(196, 30, 58, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
    letter-spacing: 6px;
    position: relative;
    display: inline-block;
}

/* 毛筆字筆觸效果 */
.main-logo-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(196, 30, 58, 0.3);
    text-shadow: none;
    transform: translate(2px, 2px);
    z-index: -1;
}

.main-logo-text:hover {
    transform: scale(1.05) rotate(1deg);
    text-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.8),
        8px 8px 15px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(196, 30, 58, 0.5);
}

/* 品牌徽章 */
.brand-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.brand-badge {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.brand-badge:hover {
    background: linear-gradient(135deg, 
        rgba(196, 30, 58, 0.3) 0%, 
        rgba(196, 30, 58, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 頁面標題 */
.page-title {
    font-family: 'STKaiti', '楷體', 'KaiTi', serif;
    font-size: 52px;
    color: var(--color-primary-red);
    margin: 0 0 15px 0;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.8),
        4px 4px 8px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(196, 30, 58, 0.3);
    font-weight: bold;
    letter-spacing: 4px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

/* 頁面副標題 */
.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

/* 非遺符號裝飾 */
.heritage-symbols {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.heritage-symbols .symbol {
    font-size: 28px;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.heritage-symbols .symbol:hover {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* 步驟中的小Logo */
.step-logo {
    font-family: 'STKaiti', '楷體', 'KaiTi', serif;
    font-size: 32px;
    color: var(--color-primary-red);
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

/* 卡片中的Logo */
.card-logo {
    font-family: 'STKaiti', '楷體', 'KaiTi', serif;
    font-size: 24px;
    color: var(--color-primary-red);
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 15px;
    }
    
    .main-logo-text {
        font-size: 64px;
        letter-spacing: 4px;
    }
    
    .page-title {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .brand-badges {
        gap: 10px;
    }
    
    .brand-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .heritage-symbols .symbol {
        font-size: 24px;
    }
    
    .step-logo {
        font-size: 28px;
    }
    
    .card-logo {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 15px 10px;
    }
    
    .main-logo-text {
        font-size: 48px;
        letter-spacing: 2px;
    }
    
    .page-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .brand-badges {
        gap: 8px;
    }
    
    .brand-badge {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .heritage-symbols {
        gap: 15px;
    }
    
    .heritage-symbols .symbol {
        font-size: 20px;
    }
    
    .step-logo {
        font-size: 24px;
    }
    
    .card-logo {
        font-size: 18px;
    }
}

/* 動畫效果 */
@keyframes logo-glow {
    0%, 100% { 
        text-shadow: 
            3px 3px 0px rgba(0, 0, 0, 0.8),
            6px 6px 10px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(196, 30, 58, 0.3);
    }
    50% { 
        text-shadow: 
            3px 3px 0px rgba(0, 0, 0, 0.8),
            6px 6px 10px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(196, 30, 58, 0.6);
    }
}

.main-logo-text.animate {
    animation: logo-glow 3s ease-in-out infinite;
}

/* 特殊狀態 */
.logo-loading {
    opacity: 0.7;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* 確保所有Logo元素都使用一致的紅色 */
.logo-text,
.main-logo-text,
.page-title,
.step-logo,
.card-logo,
.heritage-logo {
    color: var(--color-primary-red) !important;
}

/* 毛筆字體回退方案 */
@font-face {
    font-family: 'Heritage-Brush';
    src: local('STKaiti'), local('楷體'), local('KaiTi');
    font-display: swap;
}

.brush-font {
    font-family: 'Heritage-Brush', 'STKaiti', '楷體', 'KaiTi', serif !important;
}
