/* ================================
   李文誠個人介紹 - Akke 完整風格
   Based on: Akke Knitwear Website
   ================================ */

/* ================================
   字體引入
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&display=swap');

/* ================================
   CSS 變數 - Akke 風格
   ================================ */
:root {
    /* 配色系統 */
    --color-primary: #000000;
    --color-secondary: #1a1a1a;
    --color-accent: #FD7453;
    --color-accent-dark: #e65a3a;
    --color-text: #2c2c2c;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f8f8f8;
    --color-bg-dark: #0a0a0a;
    --color-border: #e1e1e1;
    --color-overlay: rgba(0, 0, 0, 0.7);
    
    /* 字體系統 */
    --font-primary: 'Inter', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    --font-serif: 'Noto Serif TC', 'Playfair Display', Georgia, serif;
    --font-display: 'Playfair Display', 'Noto Serif TC', serif;
    
    /* 間距系統 */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 80px;
    
    /* 陰影系統 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    
    /* 過渡系統 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 1s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 2s ease-in-out;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* 背景裝飾 SVG */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    color: var(--color-primary);
    opacity: 1;
}

.bg-shape-1 {
    top: -100px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.bg-shape-2 {
    bottom: -150px;
    right: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.bg-shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: wave 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

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

/* 確保主要內容在裝飾層之上 */
.main-content,
.main-navigation,
.site-footer {
    position: relative;
    z-index: 1;
}

/* 頁面載入動畫 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    animation: pageLoadBar 1.5s ease-out forwards;
    z-index: 9999;
}

@keyframes pageLoadBar {
    to {
        transform: scaleX(1);
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

/* ================================
   導航列 - Akke 風格強化
   ================================ */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
    transform: translateY(0);
}

.main-navigation.nav-hidden {
    transform: translateY(-100%);
}

.main-navigation.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    height: 90px;
    transition: height var(--transition-base);
}

.main-navigation.scrolled .nav-container {
    height: 70px;
}

.logo {
    z-index: 10;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    position: relative;
}

.logo-icon {
    font-size: 32px;
    transition: var(--transition-bounce);
    display: inline-block;
    animation: gentle-pulse 3s ease-in-out infinite;
}

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

.logo a:hover .logo-icon {
    animation: rotate360 0.6s ease-in-out;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-text {
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.logo a:hover .logo-text::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-menu li a {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-menu li a:hover {
    color: var(--color-primary);
}

.nav-menu li a:hover::before {
    width: 100%;
}

/* ================================
   Hero Section - 大型標題區
   ================================ */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(253, 116, 83, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

/* ================================
   文章標題區 - 戲劇性設計
   ================================ */
.article-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    position: relative;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 7vw, 96px);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -3px;
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.article-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--color-text-light);
    font-weight: 400;
    margin-top: var(--space-lg);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.article-meta {
    font-size: 13px;
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.article-meta span {
    padding: 10px 24px;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    transition: var(--transition-base);
    cursor: default;
}

.article-meta span:hover {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

/* ================================
   主要內容區 - 豐富排版
   ================================ */
.main-content {
    margin-top: 90px;
    padding: var(--space-lg) 0;
    background-color: var(--color-bg);
}

/* ================================
   人物檔案卡 - 增強設計
   ================================ */
.profile-card {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 0;
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-smooth);
}

.profile-card:hover::before {
    transform: scaleY(1);
}

.profile-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.profile-info h3 {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    font-weight: 900;
    letter-spacing: -2px;
    position: relative;
    padding-bottom: var(--space-md);
}

.profile-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.info-section {
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.info-section:nth-child(2) { animation-delay: 0.1s; }
.info-section:nth-child(3) { animation-delay: 0.2s; }
.info-section:nth-child(4) { animation-delay: 0.3s; }

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

.info-section h4 {
    font-size: 14px;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-left: 20px;
}

.info-section h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: var(--color-accent);
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    padding: 14px 0;
    padding-left: 28px;
    position: relative;
    color: var(--color-text);
    line-height: 1.8;
    font-size: 15px;
    transition: var(--transition-fast);
}

.info-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
    transition: transform var(--transition-fast);
}

.info-section ul li:hover {
    color: var(--color-primary);
    padding-left: 32px;
}

.info-section ul li:hover::before {
    transform: translateX(4px);
}

.profile-photo {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: 1;
    pointer-events: none;
}

.profile-photo:hover::before {
    opacity: 1;
}

.profile-photo img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-smooth);
    filter: grayscale(0%);
}

.profile-photo:hover img {
    transform: scale(1.05);
}

.photo-caption {
    margin-top: var(--space-md);
    font-size: 13px;
    color: var(--color-text-light);
    font-style: italic;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================
   文章內容 - 雜誌式排版
   ================================ */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.9;
    color: var(--color-text);
    padding: 0 var(--space-md);
}

.lead-paragraph {
    font-family: var(--font-serif);
    font-size: 26px;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-left: 4px solid var(--color-accent);
    color: var(--color-text);
    position: relative;
    font-weight: 400;
}

.lead-paragraph::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(253, 116, 83, 0.1);
    line-height: 0;
    z-index: 0;
}

.lead-paragraph strong {
    color: var(--color-primary);
    font-weight: 700;
}

.article-content p {
    margin-bottom: var(--space-lg);
    text-align: left;
    font-weight: 400;
}

/* 首字放大效果已移除 */

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--color-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-lg);
    font-weight: 900;
    letter-spacing: -2px;
    position: relative;
    padding-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    border-radius: 2px;
}

.section-title::before {
    content: attr(data-number);
    position: absolute;
    top: -30px;
    left: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-primary);
}

/* SVG 圖標樣式 */
.section-icon {
    flex-shrink: 0;
    color: var(--color-accent);
    opacity: 0.9;
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(253, 116, 83, 0.1));
}

.section-title:hover .section-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(253, 116, 83, 0.2));
}

/* 標題裝飾線 SVG */
.title-divider {
    margin: var(--space-lg) auto;
    display: block;
    color: var(--color-primary);
    opacity: 0.6;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.title-divider line {
    transition: all var(--transition-base);
}

.title-divider circle {
    transition: all var(--transition-base);
}

.article-header:hover .title-divider line {
    stroke-width: 2;
}

.article-header:hover .title-divider circle {
    r: 4;
}

.quote {
    font-style: italic;
    font-family: var(--font-serif);
    color: var(--color-text);
    font-size: 24px;
    padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-xl);
    border-left: 6px solid var(--color-primary);
    margin: var(--space-lg) 0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    position: relative;
    line-height: 1.7;
}

.quote::before {
    content: '"';
    position: absolute;
    left: var(--space-lg);
    top: var(--space-lg);
    font-size: 80px;
    color: rgba(0, 0, 0, 0.05);
    font-family: Georgia, serif;
    line-height: 0;
}

/* ================================
   穿插內容圖片 - 雜誌風格
   ================================ */
.content-image {
    margin: var(--space-lg) 0;
    text-align: center;
    position: relative;
}

.content-image img {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    cursor: pointer;
    display: block;
}

.content-image img:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.image-caption {
    margin-top: var(--space-md);
    font-size: 14px;
    color: var(--color-text-light);
    font-style: italic;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.6;
    padding: 0 var(--space-md);
}

.image-caption::before {
    content: '—';
    margin-right: 8px;
    color: var(--color-accent);
    font-weight: 700;
}

/* ================================
   照片畫廊 - Akke 風格網格
   ================================ */
.photo-gallery {
    margin-top: var(--space-xl);
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 50%, #fafafa 100%);
    position: relative;
}

.photo-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.photo-gallery h3 {
    font-family: var(--font-display);
    font-size: 56px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--space-lg);
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.photo-gallery-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    filter: grayscale(20%);
}

.photo-gallery-grid img:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: var(--shadow-xl);
    filter: grayscale(0%);
    z-index: 10;
}

/* 交錯動畫 */
.photo-gallery-grid img:nth-child(1) {
    animation: fadeInScale 0.6s ease 0.1s both;
}

.photo-gallery-grid img:nth-child(2) {
    animation: fadeInScale 0.6s ease 0.2s both;
}

.photo-gallery-grid img:nth-child(3) {
    animation: fadeInScale 0.6s ease 0.3s both;
}

.photo-gallery-grid img:nth-child(4) {
    animation: fadeInScale 0.6s ease 0.4s both;
}

.photo-gallery-grid img:nth-child(5) {
    animation: fadeInScale 0.6s ease 0.5s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================
   頁尾 - Akke 極簡風格
   ================================ */
.site-footer {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1a1a 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-lg) var(--space-md);
    margin-top: var(--space-xl);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(253, 116, 83, 0.5), transparent);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-quote {
    max-width: 800px;
    margin: 0 auto var(--space-md);
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-quote p {
    font-family: var(--font-serif);
    font-size: 16px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.quote-author {
    margin-top: var(--space-sm);
    font-size: 12px !important;
    color: var(--color-accent) !important;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    padding-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: var(--space-xs) 0;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ================================
   返回頂部按鈕 - 增強設計
   ================================ */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.back-to-top:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top span {
    position: relative;
    z-index: 1;
}

/* ================================
   懶加載效果
   ================================ */
.lazy-load {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lazy-load.loaded {
    opacity: 1;
}

/* ================================
   滾動動畫
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* ================================
   響應式設計
   ================================ */
@media (max-width: 1024px) {
    :root {
        --space-3xl: 60px;
        --space-2xl: 48px;
        --space-xl: 36px;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .profile-photo {
        order: -1;
    }
    
    .article-title {
        font-size: 52px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        padding: 12px;
        background: none;
        border: none;
        z-index: 100;
    }
    
    .hamburger-menu span {
        width: 28px;
        height: 2px;
        background-color: var(--color-primary);
        border-radius: 2px;
        transition: var(--transition-base);
    }
    
    .main-content {
        margin-top: 70px;
        padding: var(--space-lg) 0;
    }
    
    .article-title {
        font-size: 36px;
    }
    
    .profile-card {
        padding: var(--space-lg);
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .lead-paragraph {
        font-size: 20px;
        padding: var(--space-md);
    }
    
    /* SVG 圖標響應式調整 */
    .section-icon {
        width: 20px;
        height: 20px;
    }
    
    .title-divider {
        width: 80px;
        height: 6px;
    }
    
    .bg-shape-1,
    .bg-shape-2 {
        opacity: 0.3;
        transform: scale(0.7);
    }
    
    .bg-shape-3 {
        display: none;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .photo-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-gallery-grid img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 28px;
        letter-spacing: -1px;
    }
    
    .profile-info h3 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* ================================
   列印樣式
   ================================ */
@media print {
    .main-navigation,
    .back-to-top {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        background: white;
    }
    
    img {
        page-break-inside: avoid;
    }
}

/* ================================
   載入完成
   ================================ */
body.loaded {
    animation: fadeIn 0.5s ease;
}

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

