/* 项目导航页面基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #4a85bd;
    --secondary-color: #e28aa6;
    --accent-color: #f2b3c3;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --glass-color: rgba(255, 255, 255, 0.88);
    --text-color: #2d3436;
    --text-light: #636e72;
    --card-bg: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --card-shadow: 0 1px 3px rgba(45, 52, 54, 0.04), 0 8px 24px rgba(74, 133, 189, 0.08);
    --card-border: rgba(74, 133, 189, 0.1);
    --brand-color: #a5d3f0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(1100px 520px at 8% -5%, rgba(165, 211, 240, 0.30), transparent 60%),
        radial-gradient(900px 480px at 95% 5%, rgba(242, 179, 195, 0.30), transparent 60%),
        linear-gradient(160deg, #f8fbff 0%, #eef6fc 50%, #fdf1f5 100%);
    background:
        -webkit-radial-gradient(1100px 520px at 8% -5%, rgba(165, 211, 240, 0.30), transparent 60%),
        -webkit-radial-gradient(900px 480px at 95% 5%, rgba(242, 179, 195, 0.30), transparent 60%),
        -webkit-linear-gradient(160deg, #f8fbff 0%, #eef6fc 50%, #fdf1f5 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #a5d3f0;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                #a5d3f0 border-box;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(74, 133, 189, 0.18);
    overflow: hidden;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #4a85bd;
}

h1 span {
    background: linear-gradient(135deg, #4a85bd 0%, #a5d3f0 55%, #e28aa6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #4a85bd;
}

.subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    color: #6b7b8c;
    letter-spacing: 0.5px;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #4a85bd;
    text-decoration: none;
    background: rgba(74, 133, 189, 0.06);
    padding: 9px 18px;
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid rgba(74, 133, 189, 0.3);
    font-weight: 500;
}

.github-link:hover {
    background: rgba(74, 133, 189, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 133, 189, 0.15);
    color: #3a6fa5;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.nav-item {
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e1e4e8;
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background: #4a85bd;
    color: white;
}

.nav-item.active {
    background: #4a85bd;
    color: white;
    border-color: #4a85bd;
    box-shadow: 0 8px 15px rgba(74, 133, 189, 0.3);
}

.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
    color: #5a6b7a;
    line-height: 1.9;
    font-weight: 400;
}

.btn {
    padding: 1rem 2.2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #b9dff7;
    color: #3b76b6;
    box-shadow: 0 4px 12px rgba(122, 162, 216, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #9ed2f2;
    color: #2d6098;
    box-shadow: 0 6px 18px rgba(122, 162, 216, 0.45);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid rgba(74, 133, 189, 0.1);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #a5d3f0;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(74, 133, 189, 0.15);
    border-color: rgba(74, 133, 189, 0.25);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #d9ecfb;
    color: #4a85bd;
    font-size: 1.5rem;
    margin: 0 auto 18px;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3436;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-card p {
    color: #5a6b7a;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.github-card-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.github-card {
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(74, 133, 189, 0.15);
    transition: var(--transition);
    max-width: 100%;
    height: auto;
}

.github-card:hover {
    transform: scale(1.02);
    box-shadow: 0 18px 42px rgba(74, 133, 189, 0.22);
}

.about-text {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(74, 133, 189, 0.1);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text h2 i {
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.approach-list {
    margin-top: 2rem;
}

.approach-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.approach-number {
    background: #d9ecfb;
    color: #4a85bd;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(122, 162, 216, 0.3);
}

.approach-item h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.approach-item p {
    margin-bottom: 0;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    background: #ffffff;
    border: 1px solid rgba(74, 133, 189, 0.1);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    min-width: 150px;
    text-align: center;
    transition: var(--transition);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 133, 189, 0.18);
    border-color: rgba(74, 133, 189, 0.25);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(74, 133, 189, 0.1);
}

.contact-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(74, 133, 189, 0.1);
}

.contact-info h2, .contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info h2 i, .contact-form h2 i {
    color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    padding: 1rem;
    background: rgba(74, 133, 189, 0.05);
    border-radius: 12px;
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(74, 133, 189, 0.1);
    transform: translateX(5px);
}

.info-icon {
    font-size: 1.8rem;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.info-item a:hover {
    color: #e28aa6;
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(74, 133, 189, 0.08);
    color: #3b76b6;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(74, 133, 189, 0.2);
}

.social-button:hover {
    background: #b9dff7;
    color: #2d6098;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(122, 162, 216, 0.45);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(74, 133, 189, 0.18);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 133, 189, 0.15);
    background: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    color: #7a8a99;
    border-top: 1px solid rgba(74, 133, 189, 0.12);
    font-size: 0.95rem;
}

footer p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .about-content, .contact-container {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    header {
        padding: 20px 15px;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .stat-item {
        width: 100%;
        max-width: 250px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .github-card {
        width: 100%;
    }
    
    .contact-container {
        gap: 2rem;
    }
    
    .repo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-item {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.8rem;
    }
    
    .about-header h1,
    .contact-header h1 {
        font-size: 2.5rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #a5d3f0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8ec0e8;
}