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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 首页头部背景 */
header.home-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 分子人类学页面头部背景 */
header.molanthrop-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}



/* 党项语页面头部背景 */
header.tangut-header {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

/* 出版物页面头部背景 */
header.publications-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* 导航样式 */
nav {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* 首页导航链接颜色 */
.home-nav a {
    color: #667eea;
}

.home-nav a:hover {
    color: #764ba2;
}

/* 分子人类学导航链接颜色 */
.molanthrop-nav a {
    color: #4facfe;
}

.molanthrop-nav a:hover {
    color: #00f2fe;
}



/* 党项语导航链接颜色 */
.tangut-nav a {
    color: #a8edea;
}

.tangut-nav a:hover {
    color: #fed6e3;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* 内容区域样式 */
.content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* 首页标题颜色 */
.home-content h2 {
    color: #667eea;
}

/* 分子人类学标题颜色 */
.molanthrop-content h2 {
    color: #4facfe;
}



/* 党项语标题颜色 */
.tangut-content h2 {
    color: #a8edea;
}

h3 {
    font-size: 1.5rem;
    margin: 20px 0 15px 0;
    color: #333;
}

p {
    margin-bottom: 20px;
    color: #666;
}

/* 网格布局 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid;
}

/* 首页卡片边框颜色 */
.home-cards .feature-card {
    border-left-color: #667eea;
}

.home-cards .feature-card h4 {
    color: #667eea;
}

/* 分子人类学卡片边框颜色 */
.molanthrop-cards .feature-card {
    border-left-color: #4facfe;
}

.molanthrop-cards .feature-card h4 {
    color: #4facfe;
}



/* 党项语卡片边框颜色 */
.tangut-cards .feature-card {
    border-left-color: #a8edea;
}

.tangut-cards .feature-card h4 {
    color: #a8edea;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin-top: 20px;
}

/* 首页按钮 */
.home-btn {
    background: #667eea;
}

.home-btn:hover {
    background: #764ba2;
}

/* 分子人类学按钮 */
.molanthrop-btn {
    background: #4facfe;
}

.molanthrop-btn:hover {
    background: #00f2fe;
}



/* 党项语按钮 */
.tangut-btn {
    background: #a8edea;
    color: #333;
}

.tangut-btn:hover {
    background: #fed6e3;
}

/* 友情链接样式 */
.links-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.links-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #667eea;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.links-grid a {
    display: block;
    padding: 8px 15px;
    background: #f9f9f9;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.links-grid a:hover {
    background: #667eea;
    color: white;
}

/* 出版物页面样式 */
.publications-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* 我们的发表链接样式 */
.our-publications {
    text-align: center;
    margin-top: 40px;
}

.our-publications a {
    color: #667eea;
    text-decoration: none;
    font-size: 1.1rem;
}

.our-publications a:hover {
    text-decoration: underline;
}

.note {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #667eea;
    border-radius: 5px;
}

.note a {
    color: #667eea;
    text-decoration: none;
}

.note a:hover {
    text-decoration: underline;
}

.publication-list {
    list-style: none;
}

.publication-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-authors {
    font-size: 0.95rem;
    color: #555;
    font-weight: normal;
    margin-bottom: 3px;
    font-style: italic;
}

.publication-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: bold;
}

.publication-title .chinese-translation {
    color: #666;
    font-weight: normal;
}

.publication-meta {
    font-size: 0.85rem;
    color: #888;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
}

.pdf-link:hover {
    text-decoration: underline;
}

.pdf-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    fill: #667eea;
}

/* 返回主页链接 */
.back-home {
    display: inline-block;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.back-home:hover {
    text-decoration: underline;
}

/* 分子人类学返回链接 */
.molanthrop-back {
    color: #4facfe;
}



/* 党项语返回链接 */
.tangut-back {
    color: #a8edea;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    background: #333;
    color: white;
    border-radius: 10px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 备案信息样式 */
.beian {
    font-size: 0.8rem;
    margin-top: 10px;
    color: #aaa;
}

.beian a {
    color: #aaa;
}

/* 备案图标样式 */
.beian-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 3px;
}

/* 支持信息样式 */
.support-message {
    font-size: 0.9rem;
    margin: 10px 0;
    color: #ddd;
}

.coffee-link a {
    color: #f9ca24;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.coffee-link a:hover {
    color: #f093fb;
    text-decoration: underline;
}

/* 语言切换器 */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lang-select {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 党项语语言切换器 */
.tangut-lang .lang-select {
    color: #333;
}

.lang-select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-select option {
    background: #667eea;
    color: white;
}

/* 分子人类学选项背景 */
.molanthrop-lang option {
    background: #4facfe;
}



/* 党项语选项背景 */
.tangut-lang option {
    background: #a8edea;
    color: #333;
}

/* 支持页面样式 */
/* 支持页面头部背景 */
header.support-header {
    background: linear-gradient(135deg, #f9ca24 0%, #f093fb 100%);
}

/* 支持页面导航链接颜色 */
.support-nav a {
    color: #f9ca24;
}

.support-nav a:hover {
    color: #f093fb;
}

/* 支持页面标题颜色 */
.support-content h2 {
    color: #f9ca24;
}

/* 支持页面按钮 */
.support-btn {
    background: #f9ca24;
    color: #333;
}

.support-btn:hover {
    background: #f093fb;
}

/* 支持页面返回链接 */
.support-back {
    color: #f9ca24;
}

/* 支持页面选项背景 */
.support-lang option {
    background: #f9ca24;
}

/* 打赏码网格布局 */
.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.donation-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.donation-card h3 {
    color: #f9ca24;
    margin-bottom: 20px;
}

.qr-code {
    margin: 20px 0;
}

.qr-image {
    width: 200px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.donation-card p {
    margin-top: 20px;
    color: #666;
}

/* 网站网格 */
.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.site-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.site-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.site-card-content {
    padding: 20px;
}

.site-card h3 {
    margin-bottom: 10px;
    color: #667eea;
}

.site-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.site-card .btn {
    margin-top: 0;
}