/* 豐富的字體層次和排版 */

/* 引入更多字體 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* 字體變數擴展 */
:root {
    --font-serif: 'Noto Serif SC', 'KaiTi', serif;
    --font-sans: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-display: 'Noto Serif SC', 'STKaiti', serif;
    
    /* 字體大小層次 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* 行高層次 */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
}

/* 標題層次 */
.display-title {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--color-earth-yellow);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    margin-bottom: 1rem;
    text-align: center;
}

.main-heading {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: 600;
    line-height: var(--leading-tight);
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.main-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-earth-yellow), transparent);
}

.section-heading {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 500;
    line-height: var(--leading-snug);
    color: var(--color-earth-yellow);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading::before {
    content: '◆';
    color: var(--color-earth-yellow);
    font-size: 0.8em;
}

.sub-heading {
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: var(--leading-snug);
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.75rem;
}

/* 正文文字層次 */
.body-large {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: var(--leading-relaxed);
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

.body-text {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.75rem;
}

.body-small {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.5rem;
}

.caption {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.25rem;
}

/* 特殊文字樣式 */
.highlight-text {
    color: var(--color-earth-yellow);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.emphasis-text {
    font-style: italic;
    color: rgba(255,255,255,0.95);
    position: relative;
}

.emphasis-text::before {
    content: '"';
    color: var(--color-earth-yellow);
    font-size: 1.2em;
    margin-right: 2px;
}

.emphasis-text::after {
    content: '"';
    color: var(--color-earth-yellow);
    font-size: 1.2em;
    margin-left: 2px;
}

.cultural-text {
    font-family: var(--font-serif);
    color: var(--color-earth-yellow);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.cultural-text:hover {
    border-bottom-color: var(--color-earth-yellow);
}

/* 數字和統計 */
.number-display {
    font-family: var(--font-sans);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--color-earth-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    line-height: 1;
}

.metric-label {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* 按鈕文字 */
.btn-text-primary {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-text-secondary {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.25px;
}

/* 標籤和徽章文字 */
.badge-text {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-text {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.25px;
}

/* 引用和詩詞 */
.quote-text {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: var(--leading-relaxed);
    color: rgba(255,255,255,0.9);
    text-align: center;
    position: relative;
    padding: 1rem 2rem;
}

.poetry-text {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    line-height: var(--leading-loose);
    color: rgba(255,255,255,0.85);
    text-align: center;
    letter-spacing: 2px;
}

/* 描述性文字 */
.description-text {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: rgba(255,255,255,0.8);
    text-align: justify;
    text-justify: inter-ideograph;
}

/* 標題裝飾 */
.decorated-heading {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.decorated-heading::before,
.decorated-heading::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-earth-yellow), transparent);
}

.decorated-heading::before {
    left: -70px;
}

.decorated-heading::after {
    right: -70px;
}

/* 文字陰影效果 */
.text-shadow-soft {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.text-shadow-strong {
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.text-glow {
    text-shadow: 0 0 10px rgba(212, 148, 30, 0.5);
}

/* 響應式字體 */
@media (max-width: 768px) {
    .display-title {
        font-size: var(--text-4xl);
    }
    
    .main-heading {
        font-size: var(--text-3xl);
    }
    
    .section-heading {
        font-size: var(--text-xl);
    }
    
    .number-display {
        font-size: var(--text-4xl);
    }
    
    .decorated-heading::before,
    .decorated-heading::after {
        width: 30px;
    }
    
    .decorated-heading::before {
        left: -40px;
    }
    
    .decorated-heading::after {
        right: -40px;
    }
}

@media (max-width: 480px) {
    .display-title {
        font-size: var(--text-3xl);
    }
    
    .main-heading {
        font-size: var(--text-2xl);
    }
    
    .section-heading {
        font-size: var(--text-lg);
    }
    
    .number-display {
        font-size: var(--text-3xl);
    }
    
    .quote-text {
        padding: 0.5rem 1rem;
        font-size: var(--text-base);
    }
    
    .decorated-heading::before,
    .decorated-heading::after {
        display: none;
    }
}
