:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --bg-color: #f9f9f9;
    --text-color: #333;
    --border-color: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    position: relative;
}

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

.lang-switcher button {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

.lang-switcher button:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

header .contact-info {
    font-size: 1em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

header .links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 5px;
}

header .links a:hover {
    text-decoration: underline;
}

/* 通用区块样式 */
section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 1.5em;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    margin-bottom: 20px;
}

/* 技能网格 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-category h3 {
    font-size: 1.1em;
    margin: 0 0 8px 0;
    color: var(--secondary-color);
}

.skill-category p {
    margin: 0;
    font-size: 0.95em;
}

/* 工作经历 */
.job {
    margin-bottom: 25px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.job-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--secondary-color);
}

.job-header .date {
    font-size: 0.9em;
    color: #777;
}

.project {
    margin-bottom: 15px;
}

.project h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: var(--text-color);
}

.project ul {
    margin: 0;
    padding-left: 20px;
}

.project li {
    font-size: 0.95em;
    margin-bottom: 4px;
}

/* 教育与证书 */
.edu-item {
    margin-bottom: 15px;
}

.edu-item h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: var(--secondary-color);
}

.edu-item p {
    margin: 0;
    font-size: 0.95em;
}

.cert-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.cert-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.cert-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 响应式适配 */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .job-header {
        flex-direction: column;
    }
    
    .lang-switcher {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
        margin-bottom: 20px;
    }
}

/* 访客计数器样式 */
.visitor-counter {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1.5px dashed var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #777;
}

.visitor-counter .counter-label {
    letter-spacing: 0.5px;
}

#counter-value {
    font-weight: bold;
    color: var(--accent-color);
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.15);
    padding: 2px 10px;
    border-radius: 20px;
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
    font-size: 1.05em;
    min-width: 25px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}