/* 中文排版优化样式表 */
/* Chinese Typography Optimization Stylesheet */

/* 中文字体栈优化 */
:root {
    --chinese-font-primary: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'SimHei', sans-serif;
    --chinese-font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --chinese-line-height: 1.8;
    --chinese-letter-spacing: 0.02em;
    --chinese-paragraph-spacing: 1.2em;
}

/* 基础中文排版 */
body {
    font-family: var(--chinese-font-primary);
    line-height: var(--chinese-line-height);
    letter-spacing: var(--chinese-letter-spacing);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 中文标题优化 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--chinese-font-primary);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 1.2em;
    color: #1e3a8a;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5em;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.3em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.1em;
}

/* 中文段落优化 */
p {
    text-align: justify;
    text-justify: inter-ideograph;
    margin-bottom: var(--chinese-paragraph-spacing);
    font-size: 1.1rem;
    color: #374151;
    line-height: var(--chinese-line-height);
}

/* 中文列表优化 */
ul, ol {
    margin: 1.5em 0;
    padding-left: 2.5em;
}

li {
    margin-bottom: 0.8em;
    line-height: var(--chinese-line-height);
    font-size: 1.05rem;
    color: #4b5563;
}

/* 中文导航优化 */
.nav-menu a {
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.nav-menu a:hover {
    background-color: rgba(30, 58, 138, 0.1);
    color: #1e40af;
    transform: translateY(-1px);
}

/* 中文按钮优化 */
.btn {
    font-family: var(--chinese-font-primary);
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1b 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

/* 中文表单优化 */
.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5em;
    font-size: 1rem;
}

.form-control {
    font-family: var(--chinese-font-primary);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

/* 中文卡片优化 */
.card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* 中文警告框优化 */
.warning-box {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.75rem;
    margin: 2rem 0;
    position: relative;
}

.warning-box h4 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.warning-box p {
    color: #92400e;
    margin: 0;
    line-height: var(--chinese-line-height);
}

/* 中文统计数字优化 */
.stat-number {
    font-family: var(--chinese-font-secondary);
    font-size: 3rem;
    font-weight: 900;
    color: #dc2626;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* 中文电话栏优化 */
.phone-bar {
    font-family: var(--chinese-font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

/* 中文响应式优化 */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.7;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .nav-menu {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

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

/* 中文无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 中文高对比度模式 */
@media (prefers-contrast: high) {
    body {
        color: #000;
        background: #fff;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .warning-box {
        background: #fff;
        border: 3px solid #000;
        color: #000;
    }
}
