/* 2025年現代字體導入 - 參考 html2md.pages.dev 的設計風格 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600;700;800;900&family=Marcellus&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

/* 現代可變字體 */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Recursive:slnt,wght,CASL,CRSV,MONO@-15..0,300..1000,0..1,0..1,0..1&display=swap');

/* 2025年新增：支持字體調色板的彩色字體 */
@import url('https://fonts.googleapis.com/css2?family=Bungee+Color&display=swap');

/* 參考 html2md.pages.dev 的現代設計系統 */
:root {
    /* 參考網站的配色方案 */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --blue-400: #60a5fa;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    
    --red-400: #f87171;
    --red-600: #dc2626;
    
    --green-500: #22c55e;
    --green-600: #16a34a;
    
    --orange-500: #f97316;
    
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 參考網站的字體系統 */
body {
    /* font-family: 'Marcellus', 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
    background-color: var(--slate-50);
    color: var(--slate-600);
    line-height: 1.6;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
    font-size-adjust: 0.5; /* 2025年新特性 */
}

/* 中文字體優化 */
body, h1, h2, h3, h4, h5, h6, p, span, div {
    /* font-family: 'Marcellus', 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

/* 英文元素使用 Marcellus */
.btn, .form-input, .form-label, .control-group label {
    /* font-family: 'Marcellus', system-ui, -apple-system, BlinkMacSystemFont, sans-serif; */
}

/* 頁面頭部 */
.page-header {
    background-color: white;
    border-bottom: 2px dashed var(--slate-200);
    padding: 2rem;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--slate-700);
    line-height: 1.1;
    margin-bottom: 1rem;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.page-subtitle {
    color: var(--slate-600);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

/* 語言選擇器 */
.language-selector {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.language-dropdown-btn {
    background-color: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate-700);
    transition: all 0.2s;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.language-dropdown-btn:hover {
    background-color: var(--slate-50);
    border-color: var(--slate-300);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    z-index: 1000;
    display: none;
    margin-top: 0.25rem;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--slate-700);
    transition: background-color 0.2s;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.language-option:hover {
    background-color: var(--slate-50);
}

.language-option:first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.language-option:last-child {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* 瀏覽器信息 */
.browser-info {
    background-color: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--slate-600);
    box-shadow: var(--shadow-sm);
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

/* 控制面板 */
.controls-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--slate-200);
}

.controls-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 1.5rem;
    text-align: center;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.four-column {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.four-column > div h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 1rem;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.control-group input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
}

.control-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    background-color: white;
    color: var(--slate-900);
    /* font-family: 'Marcellus', system-ui, -apple-system, BlinkMacSystemFont, sans-serif; */
}

.control-group select:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* 特性標籤 */
.feature-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
}

.new-feature {
    background-color: rgb(34 197 94 / 0.1);
    color: var(--green-600);
    border: 1px solid rgb(34 197 94 / 0.2);
}

.experimental {
    background-color: rgb(245 158 11 / 0.1);
    color: var(--orange-500);
    border: 1px solid rgb(245 158 11 / 0.2);
}

/* 可變字體控制 */
.variable-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.axis-control {
    margin-bottom: 1rem;
}

.axis-control label {
    font-size: 0.875rem;
    color: var(--slate-700);
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

/* 信息區域 */
.info-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--slate-200);
}

.info-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 2rem;
    text-align: center;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    background-color: var(--slate-50);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--slate-200);
    transition: transform 0.2s;
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tech-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.tech-item p {
    color: var(--slate-600);
    font-size: 0.875rem;
    line-height: 1.5;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.tech-item code {
    background-color: var(--slate-100);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--slate-800);
    /* font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace; */
}

.compatibility-note {
    background-color: rgb(29 78 216 / 0.1);
    border: 1px solid rgb(29 78 216 / 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.compatibility-note p {
    color: var(--blue-700);
    font-weight: 600;
    margin-bottom: 1rem;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.compatibility-note ul {
    list-style: none;
    padding: 0;
}

.compatibility-note li {
    color: var(--slate-600);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.compatibility-note li::before {
    content: "•";
    color: var(--blue-600);
    position: absolute;
    left: 0;
}

/* 字體展示區塊 */
.text-block {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--slate-200);
    transition: transform 0.2s;
}

.text-block:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* 標題使用全局字體，但內容區域不受影響 */
.text-block h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--blue-600);
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif !important; */
}

/* 重置 text-block 內部元素的字體繼承，讓每個字體類別自行定義 */
.text-block .demo-text,
.text-block .number-demo {
    font-family: inherit; /* 繼承父元素的字體設定，不使用全局字體 */
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--slate-700);
}

.text-block .number-demo {
    font-size: 2rem;
    font-weight: 600;
    margin: 1rem 0;
    color: var(--slate-800);
}

/* font-info 區域使用全局字體 */
.text-block .font-info {
    background-color: var(--slate-50);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif !important; */
}

/* 基礎字體樣式 - 使用 !important 確保不被全局字體覆蓋 */
.text-block.system-sans-serif,
.text-block.system-sans-serif .demo-text,
.text-block.system-sans-serif .number-demo {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Microsoft JhengHei", "PingFang TC", "PingFang HK", "Noto Sans CJK TC", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif !important;
}

.text-block.system-serif,
.text-block.system-serif .demo-text,
.text-block.system-serif .number-demo {
    font-family: Georgia, "Times New Roman", "MingLiU", "PMingLiU", "Songti TC", "Noto Serif CJK TC", "SimSun", "Songti SC", "Noto Serif CJK SC", serif !important;
}

/* 新增UI系統字體 */
.text-block.ui-sans-serif,
.text-block.ui-sans-serif .demo-text,
.text-block.ui-sans-serif .number-demo {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.text-block.ui-serif,
.text-block.ui-serif .demo-text,
.text-block.ui-serif .number-demo {
    font-family: ui-serif, Georgia, "Times New Roman", serif !important;
}

.text-block.ui-monospace,
.text-block.ui-monospace .demo-text,
.text-block.ui-monospace .number-demo {
    font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace !important;
}

.text-block.noto-sans-tc,
.text-block.noto-sans-tc .demo-text,
.text-block.noto-sans-tc .number-demo {
    font-family: 'Noto Sans TC', sans-serif !important;
}

.text-block.noto-serif-tc,
.text-block.noto-serif-tc .demo-text,
.text-block.noto-serif-tc .number-demo {
    font-family: 'Noto Serif TC', serif !important;
}

/* 可變字體樣式 */
.text-block.variable-sans,
.text-block.variable-sans .demo-text,
.text-block.variable-sans .number-demo {
    font-family: 'Inter', sans-serif !important;
    font-optical-sizing: auto;
}

.text-block.variable-serif,
.text-block.variable-serif .demo-text,
.text-block.variable-serif .number-demo {
    font-family: 'Crimson Pro', serif !important;
    font-optical-sizing: auto;
}

.text-block.variable-multi,
.text-block.variable-multi .demo-text,
.text-block.variable-multi .number-demo {
    font-family: 'Recursive', sans-serif !important;
    font-optical-sizing: auto;
}

.text-block.sans,
.text-block.sans .demo-text,
.text-block.sans .number-demo {
    font-family: sans-serif !important;
}

.text-block.serif,
.text-block.serif .demo-text,
.text-block.serif .number-demo {
    font-family: serif !important;
}

.text-block.monospace,
.text-block.monospace .demo-text,
.text-block.monospace .number-demo {
    font-family: monospace !important;
}

/* 彩色字體 */
.text-block.color-font,
.text-block.color-font .demo-text,
.text-block.color-font .number-demo {
    font-family: 'Bungee Color', 'Noto Color Emoji', cursive !important;
    font-palette: normal;
}

.text-block.color-font-light,
.text-block.color-font-light .demo-text,
.text-block.color-font-light .number-demo {
    font-palette: light;
}

.text-block.color-font-dark,
.text-block.color-font-dark .demo-text,
.text-block.color-font-dark .number-demo {
    font-palette: dark;
}

.text-block.emoji-text,
.text-block.emoji-text .demo-text,
.text-block.emoji-text .number-demo {
    font-variant-emoji: text;
}

.text-block.emoji-emoji,
.text-block.emoji-emoji .demo-text,
.text-block.emoji-emoji .number-demo {
    font-variant-emoji: emoji;
}

/* 字體平滑相關樣式 */
.font-smoothing-auto {
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

.font-smoothing-antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-smoothing-subpixel {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

.font-smoothing-none {
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
}

/* 字體合成控制 */
.font-synthesis-none {
    font-synthesis: none;
}

.font-synthesis-weight {
    font-synthesis: weight;
}

.font-synthesis-style {
    font-synthesis: style;
}

.font-synthesis-all {
    font-synthesis: weight style;
}

/* 文本渲染控制 */
.text-rendering-auto {
    text-rendering: auto;
}

.text-rendering-speed {
    text-rendering: optimizeSpeed;
}

.text-rendering-legibility {
    text-rendering: optimizeLegibility;
}

.text-rendering-precision {
    text-rendering: geometricPrecision;
}

/* 光學尺寸控制 */
.optical-sizing-auto {
    font-optical-sizing: auto;
}

.optical-sizing-none {
    font-optical-sizing: none;
}

/* 字體顯示控制 */
.font-display-auto {
    font-display: auto;
}

.font-display-block {
    font-display: block;
}

.font-display-swap {
    font-display: swap;
}

.font-display-fallback {
    font-display: fallback;
}

.font-display-optional {
    font-display: optional;
}

/* OpenType 特性控制 */
.opentype-liga-on {
    font-feature-settings: "liga" 1;
}

.opentype-liga-off {
    font-feature-settings: "liga" 0;
}

.opentype-kern-on {
    font-feature-settings: "kern" 1;
}

.opentype-kern-off {
    font-feature-settings: "kern" 0;
}

.opentype-smcp-on {
    font-feature-settings: "smcp" 1;
}

.opentype-smcp-off {
    font-feature-settings: "smcp" 0;
}

.opentype-tnum-on {
    font-feature-settings: "tnum" 1;
}

.opentype-tnum-off {
    font-feature-settings: "tnum" 0;
}

/* CSS 屬性參考區域 */
.css-reference-section, .references-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--slate-200);
}

.css-reference-section h2, .references-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.css-reference-section h2::after, .references-section h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 2px;
    background-color: var(--blue-600);
}

.reference-grid, .references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.reference-card, .reference-source {
    background-color: var(--slate-50);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--slate-200);
    transition: transform 0.2s;
}

.reference-card:hover, .reference-source:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.reference-card h3, .reference-source h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 1rem;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.css-property {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--slate-200);
}

.css-property:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.css-property code {
    background-color: var(--slate-100);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--slate-800);
    font-weight: 600;
    /* font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace; */
}

.css-property p {
    color: var(--slate-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.reference-source ul {
    list-style: none;
    padding: 0;
}

.reference-source li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.reference-source li::before {
    content: "→";
    color: var(--blue-600);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.reference-source a {
    color: var(--blue-700);
    text-decoration: none;
    transition: color 0.2s;
}

.reference-source a:hover {
    color: var(--blue-600);
    text-decoration: underline;
}

.update-note {
    background-color: rgb(245 158 11 / 0.1);
    border: 1px solid rgb(245 158 11 / 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.update-note p {
    color: var(--slate-600);
    margin-bottom: 0.5rem;
    /* font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif; */
}

.update-note strong {
    color: var(--slate-800);
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .four-column {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .page-header {
        margin: -1rem -1rem 2rem -1rem;
        padding: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .language-selector {
        position: static;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .four-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .reference-grid, .references-grid {
        grid-template-columns: 1fr;
    }
    
    .css-reference-section, .references-section {
        padding: 1.5rem;
    }
}

/* 性能優化 */
.text-block {
    will-change: transform;
}

.tech-item {
    will-change: transform;
}

.reference-card, .reference-source {
    will-change: transform;
}

/* 字體拉伸控制 */
.font-stretch-ultra-condensed {
    font-stretch: ultra-condensed;
}

.font-stretch-extra-condensed {
    font-stretch: extra-condensed;
}

.font-stretch-condensed {
    font-stretch: condensed;
}

.font-stretch-semi-condensed {
    font-stretch: semi-condensed;
}

.font-stretch-normal {
    font-stretch: normal;
}

.font-stretch-semi-expanded {
    font-stretch: semi-expanded;
}

.font-stretch-expanded {
    font-stretch: expanded;
}

.font-stretch-extra-expanded {
    font-stretch: extra-expanded;
}

.font-stretch-ultra-expanded {
    font-stretch: ultra-expanded;
}

/* 字體變體數字 */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.oldstyle-nums {
    font-variant-numeric: oldstyle-nums;
}

.slashed-zero {
    font-variant-numeric: slashed-zero;
}

.proportional-nums {
    font-variant-numeric: proportional-nums;
}

.lining-nums {
    font-variant-numeric: lining-nums;
}

/* 字體變體大寫 */
.small-caps {
    font-variant-caps: small-caps;
}

.all-small-caps {
    font-variant-caps: all-small-caps;
}

.petite-caps {
    font-variant-caps: petite-caps;
}

.all-petite-caps {
    font-variant-caps: all-petite-caps;
}

.unicase {
    font-variant-caps: unicase;
}

.titling-caps {
    font-variant-caps: titling-caps;
}

/* 字體變體位置 */
.superscript-variant {
    font-variant-position: super;
}

.subscript-variant {
    font-variant-position: sub;
}

.superscript-variant span {
    font-variant-position: super;
}

.subscript-variant span {
    font-variant-position: sub;
}

/* 字體拉伸示例 */
.text-block.font-stretch-demo,
.text-block.font-stretch-demo .demo-text,
.text-block.font-stretch-demo .number-demo {
    font-family: 'Inter', sans-serif !important;
    font-stretch: expanded;
}

/* 字體變體數字示例 */
.text-block.font-variant-numeric-demo,
.text-block.font-variant-numeric-demo .demo-text,
.text-block.font-variant-numeric-demo .number-demo {
    font-family: 'Inter', sans-serif !important;
}

/* 字體變體位置示例 */
.text-block.font-variant-position-demo,
.text-block.font-variant-position-demo .demo-text,
.text-block.font-variant-position-demo .number-demo {
    font-family: 'Inter', sans-serif !important;
}

/* 字體變體大寫示例 */
.text-block.font-variant-caps-demo,
.text-block.font-variant-caps-demo .demo-text,
.text-block.font-variant-caps-demo .number-demo {
    font-family: 'Crimson Pro', serif !important;
}

/* 字體語言示例 */
.text-block.font-language-demo,
.text-block.font-language-demo .demo-text,
.text-block.font-language-demo .number-demo {
    font-family: 'Noto Sans TC', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif !important;
}

/* 打印樣式 */
@media print {
    .language-selector,
    .controls-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .text-block {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 