
:root {
    --color-primary: #FF6B00;
    --color-secondary: #36CFC9;
    --color-success: #52C41A;
    --color-warning: #FAAD14;
    --color-danger: #F5222D;
    --color-info: #8C8C8C;
    --color-dark-100: #333333;
    --color-dark-200: #2A2A2A;
    --color-dark-300: #1A1A1A;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.avatar {
    width: 36px; /* w-9 (9*4px) */
    height: 36px; /* h-9 (9*4px) */
    border-radius: 9999px; /* rounded-full */
    border: 2px solid rgba(255, 107, 0, 0.3); /* border-2 border-primary/30 */
    transition: all 300ms; /* transition-all duration-300 */
}

.avatar:hover {
    transform: scale(1.05); /* hover:scale-105 */
    border-color: var(--color-primary); /* hover:border-primary */
}
/* 用户信息样式 */
.profile-info {
    margin: 0 1rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--color-dark-100);
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.profile-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label {
    color: var(--color-info);
    font-size: 0.85rem;
}

.info-value {
    font-weight: 500;
    font-size: 0.9rem;
}

.vip-status.vip {
    color: var(--color-primary);
    font-weight: bold;
}

.vip-status.non-vip {
    color: var(--color-info);
}
/* 自定义工具类 */
.content-auto {
    content-visibility: auto;
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s;
}
.card-hover:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s;
    cursor: pointer; /* 添加指针光标 */
}
.btn-primary:hover {
    background-color: rgba(255, 107, 0, 0.9);
}
.btn-primary:focus {
    ring: 2px solid rgba(255, 107, 0, 0.5);
    outline: none;
}

.btn-secondary {
    background-color: var(--color-dark-100);
    color: white;
    border: 1px solid #4B5563;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s;
    cursor: pointer; /* 添加指针光标 */
}
.btn-secondary:hover {
    background-color: rgba(51, 51, 51, 0.8);
}

/* 页面布局样式 */
.header {
    background-color: var(--color-dark-200);
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.menu-button {
    display: none;
    background-color: var(--color-dark-100);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: var(--color-dark-100);
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

.section {
    background-color: var(--color-dark-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

.section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edit-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit-button:hover {
    background-color: rgba(255, 107, 0, 0.9);
}

.project-card {
    background-color: var(--color-dark-100);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.project-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    /* 菜单按钮样式 */
    .menu-button {
        display: block;
        z-index: 1010; /* 确保按钮在菜单上方 */
    }

    /* 导航菜单容器样式 */
    .nav-links {
        position: fixed;
        top: 0; 
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: var(--color-dark-200);
        display: flex;
        flex-direction: column;
        padding: 4rem 1rem 1rem;
        gap: 0.5rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        box-sizing: border-box;
        overflow-y: auto; 
        overflow-x: hidden;
        visibility: hidden;
        opacity: 0;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
    }

    /* 菜单显示状态 */
    .nav-links.show {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    /* 防止页面内容在菜单打开时滚动 */
    body.menu-open {
        overflow: hidden;
    }

    /* 确保主内容区域隐藏溢出 */
    main {
        overflow-x: hidden;
    }

    /* 菜单项容器样式 */
    .menu-item {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease-out;
    }

    /* 菜单项动画延迟 */
    .nav-links.show .menu-item {
        opacity: 1;
        transform: translateX(0);
    }
    .nav-links.show .menu-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.show .menu-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.show .menu-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.show .menu-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.show .menu-item:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.show .menu-item:nth-child(6) { transition-delay: 0.35s; }
    .nav-links.show .menu-item:nth-child(7) { transition-delay: 0.4s; }
    .nav-links.show .menu-item:nth-child(8) { transition-delay: 0.45s; }
    .nav-links.show .menu-item:nth-child(9) { transition-delay: 0.5s; }
    .nav-links.show .menu-item:nth-child(10) { transition-delay: 0.55s; }

    /* 菜单项交互样式 */
    .menu-item:hover {
        background-color: var(--color-dark-100);
    }
    .menu-item a {
        display: block;
        width: 100%;
        height: 100%;
    }

    /* 滚动条样式优化 */
    .nav-links::-webkit-scrollbar {
        width: 4px;
    }
    .nav-links::-webkit-scrollbar-track {
        background: var(--color-dark-200);
    }
    .nav-links::-webkit-scrollbar-thumb {
        background: var(--color-primary);
        border-radius: 2px;
    }
}    