/* 
 * 专业字体配置 - 适合医疗/专业网站
 * 使用本地字体文件：Inter（英文）和 Noto Sans SC（中文）
 * 提供优雅、现代、专业的视觉体验
 */

/* Inter 字体 - 英文字体 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Inter-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter-Bold.ttf') format('truetype');
}

/* Noto Sans SC 字体 - 中文字体（思源黑体） */
@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/NotoSansSC-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/NotoSansSC-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/NotoSansSC-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/NotoSansSC-Bold.ttf') format('truetype');
}

/* 全局字体设置 */
* {
    font-family: "Inter", "Noto Sans SC", 
                 -apple-system, BlinkMacSystemFont, 
                 "Segoe UI", Roboto, 
                 "Helvetica Neue", Arial,
                 "PingFang SC", "Microsoft YaHei", "微软雅黑",
                 "Source Han Sans SC", "思源黑体",
                 sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    scroll-behavior: smooth;
    /* 优化字体渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 基础字体设置 */
html {
    font-size: 16px; /* 基础字体大小 */
}

body {
    font-size: 1rem; /* 16px */
    line-height: 1.75; /* 28px - 适合中文阅读的行高 */
    letter-spacing: 0.01em; /* 轻微字间距，提升可读性 */
    color: #6B6B6B; /* 莫兰迪深灰褐色，柔和优雅 */
}

/* 标题字体优化 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3; /* 标题行高更紧凑 */
    letter-spacing: -0.02em; /* 标题字间距稍紧 */
    color: #5A5A5A; /* 莫兰迪深灰褐色，柔和优雅 */
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* 响应式：最小2rem，最大3.5rem */
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.25;
    margin-bottom: 0.875rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    line-height: 1.35;
    margin-bottom: 0.625rem;
}

/* 段落和正文优化 */
p {
    font-size: 1rem;
    line-height: 1.8; /* 中文段落推荐行高 1.6-1.8 */
    letter-spacing: 0.015em;
    margin-bottom: 1rem;
    color: #6B6B6B; /* 莫兰迪深灰褐色，柔和优雅 */
}

/* 大段落文本（如描述性文字） */
.text-lg {
    font-size: 1.125rem; /* 18px */
    line-height: 1.85;
    letter-spacing: 0.01em;
}

.text-xl {
    font-size: 1.25rem; /* 20px */
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.text-2xl {
    font-size: 1.5rem; /* 24px */
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* 小文本优化 */
.text-sm {
    font-size: 0.875rem; /* 14px */
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.text-xs {
    font-size: 0.75rem; /* 12px */
    line-height: 1.6;
    letter-spacing: 0.025em;
}

/* 导航栏字体 */
nav a {
    font-size: 0.9375rem; /* 15px */
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

/* 按钮字体 */
button, .btn {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* 链接字体 */
a {
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

/* 卡片内容优化 */
.feature-card p,
.disease-card span {
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* 推荐语/引用文本 */
.testimonial-item p {
    font-size: 1.125rem; /* 18px */
    line-height: 1.9; /* 更宽松的行高，适合引用文本 */
    letter-spacing: 0.015em;
    font-style: normal;
}

/* 列表优化 */
ul, ol {
    line-height: 1.8;
    letter-spacing: 0.01em;
}

li {
    margin-bottom: 0.5rem;
}

/* 响应式字体调整 */
@media (max-width: 768px) {
    html {
        font-size: 15px; /* 移动端稍小 */
    }
    
    body {
        line-height: 1.7; /* 移动端行高稍紧 */
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.35;
    }
    
    p {
        font-size: 0.9375rem; /* 15px */
        line-height: 1.75;
    }
    
    .text-lg {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .text-xl {
        font-size: 1.125rem;
        line-height: 1.75;
    }
}

/* 打印样式优化 */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
}

