:root {
    --primary-color: #007AFF;
    --text-color: #333333;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e5e8ed;
    --header-height: 360px;
    --transition-speed: 0.3s;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #0A84FF;
        --text-color: #ffffff;
        --bg-color: #000000;
        --card-bg: #1C1C1E;
        --border-color: #38383A;
    }
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

header {
    position: relative;
    width: 100%;
    height: var(--header-height);
    background: url(bg.png) no-repeat center;
    background-size: cover;
    overflow: hidden;
}

.face {
    width: 160px;
    height: 160px;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    transition: transform var(--transition-speed);
}

.face img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.face:hover {
    transform: translateX(-50%) scale(1.05);
}

.title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    position: absolute;
    width: 100%;
    top: 280px;
    color: #ffffff;
}

.info {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    position: absolute;
    width: 100%;
    top: 330px;
}

.list {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
    flex: 1;
}

.item {
    margin-bottom: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
}

.item:hover {
    transform: translateY(-4px);
}

.item-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.item-info i {
    color: var(--primary-color);
}

footer {
    background: var(--card-bg);
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
}

.url {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: #666;
    font-size: 12px;
    padding: 0 1rem;
}

.url a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    transition: color var(--transition-speed);
}

.url a:hover {
    color: var(--primary-color);
}

.url i {
    font-size: 1.1rem;
}

.beian-icon {
    width: 20px !important;
    height: 20px !important;
    vertical-align: middle;
    margin-right: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    :root {
        --header-height: 300px;
    }

    .face {
        width: 120px;
        height: 120px;
        top: 30px;
    }

    .title {
        font-size: 1.5rem;
        top: 230px;
    }

    .info {
        font-size: 1rem;
        top: 270px;
    }

    .item {
        padding: 1.5rem;
    }

    .item-title {
        font-size: 1.2rem;
    }

    .list {
        min-height: calc(100vh - var(--header-height) - 100px);
    }

    .url {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    main {
        padding-bottom: 100px;
    }

    .social-icons {
        gap: 15px;
        padding: 15px 0;
        bottom: 70px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .social-icon img.icon {
        width: 20px;
        height: 20px;
    }

    main {
        padding-bottom: 160px;
    }
}

main {
    padding-bottom: 140px;
}

/* 添加 GitHub 链接样式 */
.github-link {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.github-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.github-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.github-link i {
    font-size: 1.2rem;
}

/* 修改社交图标位置 */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: fixed;
    bottom: 60px;  /* 预留备案栏高度 */
    left: 0;
    width: 100%;
    z-index: 100;  /* 确保图标显示在最上层 */
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
    background: var(--primary-color);
}

.social-icon img.icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 微信二维码弹窗样式 */
#wechatModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#wechatModal .modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 300px;
}

#wechatModal img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 20px 0;
    border-radius: 10px;
}

/* 添加返回按钮样式 */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.back-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.back-btn a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-btn {
        top: 15px;
        left: 15px;
    }

    .back-btn a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}