/* 基础样式 */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6b8cae;
    --accent-color: #ff7e5f;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--dark-color);
    line-height: 1.6;
}

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

/* 顶部标题和计时器 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.timer {
    font-size: 1rem;
    color: var(--secondary-color);
    background-color: rgba(74, 111, 165, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
}

/* 卡片通用样式 */
.card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

/* 个人信息卡片 */
.profile {
    display: flex;
    flex-direction: column;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.profile-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--primary-color);
}

.info-value {
    flex-grow: 1;
}

.editable {
    padding: 5px 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.editable:focus {
    background-color: rgba(74, 111, 165, 0.1);
    outline: none;
}

/* 技能卡片 */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* 项目卡片 */
.project-list {
    margin-top: 20px;
}

.project-item {
    background-color: rgba(74, 111, 165, 0.05);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.project-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* 社交媒体按钮样式 */
.social-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.social-btn .icon {
    font-style: normal;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.kuaishou {
    background-color: #FF5000;
    color: white;
}

.qq {
    background-color: #12B7F5;
    color: white;
}

/* 可编辑内容 */
.editable-content {
    padding: 10px;
    border-radius: var(--border-radius);
    min-height: 100px;
    border: 1px dashed transparent;
    transition: border-color 0.3s;
}

.editable-content:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .timer {
        margin-top: 15px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}
