/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 导航栏 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3498db;
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-switcher::before {
    content: '|';
    color: #ddd;
    margin-right: 0.5rem;
}

.lang-link {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-link.active-lang {
    background: #3498db;
    color: #fff !important;
}

.lang-link:hover {
    background: #ecf0f1;
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* 首页样式 */
.hero {
    background: #fff;
    border-radius: 8px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #3498db;
}

.profile h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.profile .title {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

.profile .institution {
    font-size: 1rem;
    color: #95a5a6;
}

.intro {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* 亮点部分 */
.highlights {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.highlights h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.highlight-item {
    margin-bottom: 1.5rem;
}

.highlight-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.highlight-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.highlight-item h3 a:hover {
    color: #3498db;
}

.view-all {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.view-all:hover {
    color: #2980b9;
}

/* 内容页面 */
.content {
    background: #fff;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #34495e;
}

.content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #34495e;
}

.meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tags {
    margin: 1rem 0;
}

.tag {
    display: inline-block;
    background: #ecf0f1;
    color: #555;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.article-content {
    margin-top: 2rem;
    font-size: 1.05rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: #3498db;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: #2c3e50;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.article-content pre code {
    background: none;
    color: #fff;
    padding: 0;
}

/* 文章列表 */
.article-list {
    margin-top: 2rem;
}

.article-item {
    border-bottom: 1px solid #ecf0f1;
    padding: 1.5rem 0;
}

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

.article-item h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-item h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.article-item h2 a:hover {
    color: #3498db;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 跑步数据可视化样式 */
.map-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.asia-map {
    position: relative;
    width: 100%;
    height: 500px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500"><rect fill="%23f0f8ff" width="800" height="500"/><text x="400" y="250" font-size="24" text-anchor="middle" fill="%23999">亚洲地图 / Asia Map</text></svg>') center/contain no-repeat;
    border-radius: 8px;
}

.race-marker {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s;
}

.race-marker:hover {
    transform: scale(1.2);
    z-index: 10;
}

.marker-wuxi {
    left: 65%;
    top: 35%;
}

.marker-shaoxing {
    left: 68%;
    top: 38%;
}

.marker-hiroshima {
    left: 72%;
    top: 40%;
}

.marker-pin {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.marker-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-top: 0.5rem;
    z-index: 100;
}

.race-marker:hover .marker-label {
    opacity: 1;
}

.time-highlight {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2em;
}

.race-type {
    color: #666;
    font-size: 0.9em;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.stat-detail {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* 表格样式增强 */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.content th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.content td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.content tr:last-child td {
    border-bottom: none;
}

.content tr:hover {
    background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .avatar {
        width: 200px;
        height: 200px;
    }

    .content {
        padding: 2rem 1rem;
    }
    
    .map-container {
        padding: 1.5rem;
    }
    
    .asia-map {
        height: 350px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .marker-label {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

