/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f5f5f5;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 为固定导航栏留出空间 */
    /* padding-top: 60px; */
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 60px;
    /* display: flex; */
    display: none;
    align-items: center;
    justify-content: center;
}

.header-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.header-list li {
    margin: 0;
    padding: 0;
}

.header-list a {
    display: block;
    padding: 0 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 60px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.header-list a:hover {
    color: #333;
    background-color: #f8f8f8;
    border-bottom-color: #333;
}

.header-list a.active {
    color: #333;
    border-bottom-color: #333;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

h2 {
    font-size: 1.6rem;
    margin-top: 30px;
    color: #333;
}

h3 {
    font-size: 1.3rem;
    color: #444;
    text-align: center;
}

/* 段落样式 */
p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.7;
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 强调文本 */
strong {
    color: #333;
    font-weight: 600;
}

/* 链接样式 */
a {
    color: #555;
    text-decoration: underline;
    transition: color 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a:hover {
    color: #333;
    text-decoration: underline;
}

/* 列表样式 */
ol, ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

ol li, ul li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

ol li p, ul li p {
    margin-bottom: 5px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background-color: #f8f8f8;
}

/* 表格行样式 - 避免与导航栏header类冲突 */
tr.table-header {
    background-color: #f8f8f8;
}

tr.odd {
    background-color: #fff;
}

tr.even {
    background-color: #fafafa;
}

tr.odd:hover, tr.even:hover {
    background-color: #f0f0f0;
}

/* 引用块样式 */
blockquote {
    background-color: #f8f8f8;
    border-left: 3px solid #666;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

blockquote p {
    margin-bottom: 10px;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* 页脚样式 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
    .header-list {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .header-list a {
        padding: 0 15px;
        font-size: 13px;
    }
    
    .container {
        margin: 15px;
        padding: 25px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 50px; /* 调整移动端导航栏高度 */
    }
    
    .header {
        height: 50px;
    }
    
    .header-list {
        max-width: 100%;
        padding: 0 10px;
        justify-content: space-between;
    }
    
    .header-list a {
        padding: 0 8px;
        font-size: 12px;
        line-height: 50px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .container {
        margin: 10px;
        padding: 20px;
        border-radius: 4px;
        border: 1px solid #e0e0e0;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        line-height: 1.3;
        padding-bottom: 12px;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-top: 25px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    table {
        font-size: 14px;
        margin: 15px 0;
    }
    
    th, td {
        padding: 10px 12px;
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* 移动端表格优化 */
    tr.table-header th {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    tr.odd td, tr.even td {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    ol, ul {
        padding-left: 25px;
        margin-bottom: 15px;
    }
    
    ol li, ul li {
        margin-bottom: 8px;
        line-height: 1.5;
        font-size: 16px;
    }
    
    blockquote {
        padding: 12px 16px;
        margin: 15px 0;
    }
    
    blockquote p {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .footer {
        margin-top: 30px;
        padding-top: 15px;
        font-size: 14px;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
    body {
        font-size: 16px;
        padding-top: 45px;
    }
    
    .header {
        height: 45px;
    }
    
    .header-list {
        padding: 0 5px;
    }
    
    .header-list a {
        padding: 0 5px;
        font-size: 11px;
        line-height: 45px;
    }
    
    .container {
        margin: 8px;
        padding: 16px;
        border-radius: 3px;
    }
    
    h1 {
        font-size: 1.6rem;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-top: 22px;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    
    table {
        font-size: 13px;
        margin: 12px 0;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* 小屏设备表格优化 */
    tr.table-header th {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    tr.odd td, tr.even td {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    ol, ul {
        padding-left: 22px;
        margin-bottom: 12px;
    }
    
    ol li, ul li {
        margin-bottom: 6px;
        font-size: 16px;
    }
    
    blockquote {
        padding: 10px 14px;
        margin: 12px 0;
    }
    
    blockquote p {
        font-size: 15px;
    }
    
    .footer {
        margin-top: 25px;
        padding-top: 12px;
        font-size: 13px;
    }
}

/* 超小屏设备优化 */
@media (max-width: 360px) {
    body {
        padding-top: 40px;
    }
    
    .header {
        height: 40px;
    }
    
    .header-list a {
        font-size: 10px;
        line-height: 40px;
        padding: 0 3px;
    }
    
    .container {
        margin: 5px;
        padding: 12px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 15px;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    /* 超小屏设备表格优化 */
    tr.table-header th {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    tr.odd td, tr.even td {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    ol, ul {
        padding-left: 20px;
    }
    
    ol li, ul li {
        font-size: 15px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增加触摸目标大小 */
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-block;
        line-height: 44px;
        padding: 0 8px;
    }
    
    /* 导航栏触摸优化 */
    .header-list a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
    }
    
    /* 表格在触摸设备上的优化 */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 触摸设备表格行优化 */
    tr.table-header th {
        min-width: 80px;
    }
    
    tr.odd td, tr.even td {
        min-width: 80px;
    }
    
    /* 增加按钮和交互元素的触摸区域 */
    button, input, select, textarea {
        min-height: 44px;
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 500px) {
    .container {
        margin: 5px;
        padding: 10px;
    }
    
    h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    h2 {
        font-size: 1.2rem;
        margin-top: 15px;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    p {
        margin-bottom: 8px;
    }
    
    table {
        margin: 10px 0;
    }
    
    th, td {
        padding: 6px 8px;
    }
}

/* 打印样式 */
@media print {
    body {
        background-color: #fff;
        font-size: 12pt;
        padding-top: 0;
    }
    
    .header {
        display: none;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
        padding: 0;
        border: none;
    }
    
    h1 {
        font-size: 18pt;
        color: #000;
        border-bottom: 1px solid #000;
    }
    
    h2 {
        font-size: 16pt;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    table {
        font-size: 10pt;
    }
    
    th, td {
        padding: 6px 8px;
    }
} 
