/* 攝影師詳細頁面樣式 - 紅黑主題動態版 */

/* CSS變數定義 */
:root {
    --primary-red: #e74c3c;
    --dark-red: #c0392b;
    --primary-black: #1a1a1a;
    --secondary-black: #2c2c2c;
    --text-light: #f0f0f0;
    --text-gray: #999;
    --accent-gold: #f39c12;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --border-color: rgba(231, 76, 60, 0.2);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 25px rgba(231, 76, 60, 0.2);
    --shadow-heavy: 0 15px 35px rgba(231, 76, 60, 0.3);
}

/* 基礎設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 攝影師英雄區域 */
.photographer-hero {
    position: relative;
    min-height: 80vh;
    background: var(--primary-black);
    color: var(--text-light);
    padding: 4rem 0;
    overflow: hidden;
}

.photographer-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

/* 動態背景效果 */
.photographer-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(243, 156, 18, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(231, 76, 60, 0.08) 0%, transparent 50%);
    animation: heroBackground 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroBackground {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.photographer-hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: heroSlideIn 1s ease-out;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 攝影師圖片區域 */
.photographer-image-section {
    position: relative;
    animation: imageFloat 6s ease-in-out infinite;
}

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

.photographer-main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 3px solid var(--primary-red);
    transition: all 0.3s ease;
    background: var(--secondary-black);
}

.photographer-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(231, 76, 60, 0.4);
}

.photographer-portrait {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.photographer-portrait:hover {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

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

/* 攝影師動作按鈕 */
.photographer-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.photographer-actions .action-btn {
    flex: 1;
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid var(--primary-red);
    color: var(--text-light);
    padding: 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.photographer-actions .action-btn::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;
}

.photographer-actions .action-btn:hover::before {
    left: 100%;
}

.photographer-actions .action-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.photographer-actions .action-btn.favorited {
    background: var(--primary-red);
    color: white;
}

/* 攝影師資訊區域 */
.photographer-info-section {
    padding-left: 1rem;
    animation: infoSlideIn 1s ease-out 0.3s both;
}

@keyframes infoSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.photographer-name {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-light), var(--primary-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nameGlow 3s ease-in-out infinite alternate;
}

@keyframes nameGlow {
    from { text-shadow: 0 0 20px rgba(231, 76, 60, 0.3); }
    to { text-shadow: 0 0 30px rgba(231, 76, 60, 0.6); }
}

.photographer-name-en {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: var(--text-gray);
}

.photographer-summary {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--text-light);
    position: relative;
    padding-left: 1rem;
}

.photographer-summary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-red), var(--accent-gold));
    border-radius: 2px;
}

/* 攝影師元數據 */
.photographer-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    background: var(--secondary-black);
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.meta-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-red);
}

.meta-item strong {
    font-weight: 600;
    min-width: 80px;
    color: var(--primary-red);
}

.era-tag,
.region-tag {
    background: rgba(231, 76, 60, 0.2);
    color: var(--primary-red);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.era-tag:hover,
.region-tag:hover {
    background: var(--primary-red);
    color: white;
    transform: scale(1.05);
}

/* 攝影風格 */
.photographer-styles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    animation: stylesSlideIn 1s ease-out 0.6s both;
}

@keyframes stylesSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photographer-styles strong {
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-light);
}

.styles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.styles-list .style-tag {
    background: rgba(231, 76, 60, 0.2);
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.styles-list .style-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    transition: left 0.3s ease;
    z-index: -1;
}

.styles-list .style-tag:hover::before {
    left: 0;
}

.styles-list .style-tag:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* 內容區域 */
.photographer-content {
    padding: 4rem 0;
    background: var(--primary-black);
}

.content-sections {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    background: var(--secondary-black);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
}

.content-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-red);
}

.content-section h3 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section h3::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: var(--primary-red);
    border-radius: 2px;
}

.biography-content,
.influences-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* 代表作品 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.work-item {
    background: var(--primary-black);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    transition: left 0.6s ease;
}

.work-item:hover::before {
    left: 100%;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-red);
}

.work-image-placeholder {
    width: 80px;
    height: 80px;
    background: var(--primary-red);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    transition: all 0.3s ease;
}

.work-item:hover .work-image-placeholder {
    transform: rotate(5deg) scale(1.1);
    background: var(--accent-gold);
}

.work-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

/* 關鍵技法 */
.keynote-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.keynote-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-black);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.keynote-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-light);
    border-left-color: var(--accent-gold);
}

.keynote-item svg {
    color: var(--primary-red);
    flex-shrink: 0;
}

.keynote-item span {
    font-weight: 500;
    color: var(--text-light);
}

/* 相關連結 */
.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-black);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.link-item:hover::before {
    transform: scaleX(1);
}

.link-item:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-red);
}

.wikipedia-link svg {
    color: var(--info-color);
}

.official-link svg {
    color: var(--accent-gold);
}

/* 相關攝影師 */
.related-photographers {
    background: var(--secondary-black);
    padding: 4rem 0;
    position: relative;
}

.related-photographers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}

.related-photographers h3 {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.related-photographers > .container > p {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* 簡化的相關攝影師卡片 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.related-card {
    background: var(--primary-black);
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: auto;
}

.related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.related-card:hover::before {
    transform: scaleX(1);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-red);
}

.related-card .photographer-name {
    margin-bottom: 0.6rem;
}

.related-card .photographer-name a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.related-card .photographer-name a:hover {
    color: var(--primary-red);
}

.related-card .photographer-meta {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.75rem;
}

.related-card .photographer-nationality,
.related-card .photographer-era {
    background: rgba(231, 76, 60, 0.2);
    color: var(--primary-red);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.related-card .photographer-summary {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card .photographer-styles {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.related-card .tag {
    background: var(--primary-red);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-card .tag:hover {
    background: var(--dark-red);
    transform: scale(1.05);
}

.related-card .tag.more-styles {
    background: var(--accent-gold);
    color: white;
    font-weight: 600;
}

.related-card .btn {
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.8rem;
    display: inline-block;
}

.related-card .btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.btn-secondary {
    background: var(--secondary-black);
    color: var(--text-light);
    border: 2px solid var(--primary-red);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* 圖片模態框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--secondary-black);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--primary-red);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
}

.modal-caption {
    padding: 1.5rem;
    background: var(--secondary-black);
    font-weight: 600;
    text-align: center;
    color: var(--text-light);
}

/* Toast 通知 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: var(--primary-red);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-heavy);
    animation: toastSlideIn 0.3s ease;
    border: 1px solid var(--dark-red);
}

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

.toast-info {
    background: var(--info-color);
    border-color: var(--info-color);
}

.toast-success {
    background: var(--success-color);
    border-color: var(--success-color);
}

.toast-error {
    background: var(--primary-red);
    border-color: var(--dark-red);
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.toast-close:hover {
    transform: scale(1.2);
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .photographer-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .photographer-info-section {
        padding-left: 0;
    }
    
    .photographer-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .photographer-hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .photographer-hero-content {
        padding: 0 1rem;
    }
    
    .photographer-name {
        font-size: 2rem;
    }
    
    .photographer-meta {
        grid-template-columns: 1fr;
    }
    
    .photographer-styles {
        justify-content: center;
    }
    
    .photographer-actions {
        justify-content: center;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .keynote-list {
        grid-template-columns: 1fr;
    }
    
    .links-list {
        justify-content: center;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 0.8rem;
        max-width: 400px;
    }
    
    .related-card {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .photographer-hero {
        padding: 1rem 0;
    }
    
    .photographer-name {
        font-size: 1.5rem;
    }
    
    .photographer-summary {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .content-section h3 {
        font-size: 1.5rem;
    }
    
    .biography-content,
    .influences-content {
        font-size: 1rem;
    }
    
    .related-card {
        padding: 1.5rem;
    }
    
    .related-card .photographer-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 載入動畫 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 滾動動畫 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 粒子容器 */
.particle-container {
    overflow: hidden;
}

/* 文字發光效果 */
.photographer-name {
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
    animation: nameGlowPulse 4s ease-in-out infinite;
}

@keyframes nameGlowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(231, 76, 60, 0.6), 0 0 30px rgba(231, 76, 60, 0.4);
    }
}

/* 互動按鈕增強效果 */
.photographer-actions .action-btn {
    position: relative;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.photographer-actions .action-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 相關卡片進入動畫 */
.related-card {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card.animate-in {
    transform: translateY(0);
    opacity: 1;
}

/* 工作項目動畫 */
.work-item {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item.animate-in {
    transform: translateY(0);
    opacity: 1;
}

/* 關鍵技法項目動畫 */
.keynote-item {
    transform: translateX(-30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.keynote-item.animate-in {
    transform: translateX(0);
    opacity: 1;
}

/* 標籤動畫 */
.style-tag {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

@keyframes tagFadeIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 元數據項目動畫 */
.meta-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 增強的hover效果 */
.content-section:hover {
    background: linear-gradient(135deg, var(--secondary-black) 0%, rgba(44, 44, 44, 0.95) 100%);
}

.related-card:hover {
    background: linear-gradient(135deg, var(--primary-black) 0%, rgba(26, 26, 26, 0.95) 100%);
}

/* 動態邊框效果 */
@keyframes borderPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.6), 0 0 30px rgba(231, 76, 60, 0.3);
    }
}

.photographer-main-image:hover {
    animation: borderPulse 2s ease-in-out infinite;
}

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
}

/* 選擇文字時的樣式 */
::selection {
    background: var(--primary-red);
    color: white;
}

::-moz-selection {
    background: var(--primary-red);
    color: white;
}

/* 焦點樣式 */
.action-btn:focus,
.style-tag:focus,
.era-tag:focus,
.region-tag:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* 進度指示器 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* 載入狀態 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}