:root {
    --primary-pink: #FF69B4;
    --secondary-pink: #FF1493;
    --bg-color: #FFF5F9;
    --card-bg: #FFE4E8;
    --text-color: #2D2D2D;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --timeline-dot-size: 32px;
    --timeline-dot-size-mobile: 24px;
    --timeline-spacing: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-image: url('');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

.home-sidebar {
    width: 260px;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    background: var(--card-bg);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 5px 0 15px rgba(255, 105, 180, 0.2);
    overflow-y: auto;
    z-index: 1001;
    transition: var(--transition);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--secondary-pink);
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    transition: var(--transition);
    cursor: pointer;
}

.avatar:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.2);
}

.sidebar-name {
    color: var(--secondary-pink);
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.sidebar-bio {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

.sidebar-links {
    width: 100%;
    margin: 1rem 0;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    margin: 0.3rem 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
}

.sidebar-links a.active {
    border-left-color: var(--primary-pink);
    background: rgba(255, 105, 180, 0.1);
    font-weight: 500;
}

.sidebar-links a:hover {
    background: rgba(255, 105, 180, 0.1);
    transform: translateX(5px);
}

.sidebar-links svg {
    width: 20px;
    height: 20px;
    margin-right: 0.8rem;
    fill: var(--primary-pink);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar-links a:hover svg {
    transform: translateX(3px);
}

.sidebar-footer {
    padding: 1rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 105, 180, 0.2);
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0.3rem 0;
}

.sidebar-footer-link:hover {
    background: rgba(255, 105, 180, 0.1);
    transform: translateX(5px);
}

.sidebar-footer-link svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-pink);
}

.home-container {
    max-width: 900px;
    width: calc(100% - 260px);
    padding: 1.5rem;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background: var(--bg-color);
    margin: 0 auto;
    padding: 2rem 3rem;
}

.home-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        #FFB6C1 0%,
        #FFE4E8 30%,
        #FFF5F9 60%,
        #FFFFFF 100%
    );
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
}

.glass-card {
    background: linear-gradient(
        145deg,
        rgba(255, 228, 232, 0.9) 0%,
        rgba(255, 245, 249, 0.95) 100%
    );
    background: var(--card-bg);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 16px;
    border: 2px solid var(--primary-pink);
    position: relative;
    overflow: hidden;
    box-shadow: 8px 8px 0 rgba(255, 105, 180, 0.2);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 0 rgba(255, 105, 180, 0.25);
}

.section-title {
    color: var(--secondary-pink);
    border-left: 4px solid var(--primary-pink);
    padding-left: 1rem;
    margin: 2rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 105, 180, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.section-title svg {
    width: 28px;
    height: 28px;
    fill: var(--secondary-pink);
}

.profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--secondary-pink);
    flex-shrink: 0;
    object-fit: cover;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.profile-title {
    color: var(--secondary-pink);
    font-size: 1.8rem;
    margin: 0;
}

.identity-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.identity-tag {
    background: #FFF5F9;
    border: 1px solid var(--primary-pink);
    color: var(--secondary-pink);
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.identity-tag svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: var(--secondary-pink);
    position: relative;
    z-index: 1;
}

.identity-tag:hover {
    background: var(--primary-pink);
    color: white;
    transform: scale(1.05);
}

.section-divider {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-pink),
        transparent
    );
    margin: 1.5rem 0;
    opacity: 0.5;
}

.profile-section {
    margin: 2rem 0;
    line-height: 1.8;
}

.profile-section h4 {
    color: var(--primary-pink);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section h4 svg {
    width: 24px;
    height: 24px;
    fill: var(--secondary-pink);
}

.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 45px;
    height: 45px;
    background: var(--primary-pink);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    transition: var(--transition);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 1.5s infinite alternate;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: white;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

@media (min-width: 769px) {
    .mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .home-sidebar {
        position: fixed;
        bottom: 0;
        width: 100%;
        height: auto;
        max-height: 60vh;
        background: linear-gradient(
            180deg,
            #FFC0CB 0%,
            #FFB6C1 100%
        );
        box-shadow: 5px 0 15px rgba(255, 105, 180, 0.3);
    }
    
    .home-container {
        width: 100%;
        margin: 60px 0 0;
        min-height: calc(100vh - 60px);
    }

    .home-container::before {
        left: 0;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .header-content {
        align-items: center;
    }

    .identity-tags {
        justify-content: center;
    }
}

.section-subtitle {
    color: var(--secondary-pink);
    font-size: 1.1rem;
    margin: 0.5rem 0 1.5rem 0;
    font-weight: 400;
    opacity: 0.8;
    position: relative;
    padding-left: 2.5rem;
    line-height: 1.4;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 1.8rem;
    height: 2px;
    background: var(--primary-pink);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .home-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        max-height: 60vh;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        box-shadow: 0 -5px 15px rgba(255, 105, 180, 0.3);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
    }
 
    .home-sidebar.active {
        transform: translateY(0);
    }
 
    .sidebar-header {
        margin: 0 1rem 0 0;
    }
 
    .avatar {
        width: 60px;
        height: 60px;
        margin: 0;
    }
 
    .sidebar-links {
        margin: 0;
        flex-grow: 1;
    }
 
    .sidebar-links a {
        padding: 0.6rem;
        margin: 0.2rem;
        font-size: 0.85rem;
    }
 
    .sidebar-footer {
        display: none;
    }
 
    .home-container {
        padding: 1rem;
        min-height: calc(100vh - 60px);
    }
 
    .home-container::before {
        display: none;
    }
 
    .glass-card {
        padding: 1rem;
        margin: 1rem 0;
        box-shadow: 4px 4px 0 rgba(255, 105, 180, 0.2);
    }
 
    .glass-card:hover {
        transform: none;
    }
 
    .section-title {
        padding: 0.3rem 0.8rem;
        margin: 1.5rem 0;
        gap: 0.5rem;
    }
 
    .section-title svg {
        width: 20px;
        height: 20px;
    }
 
    .profile-header {
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
 
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
 
    .profile-title {
        font-size: 1.5rem;
    }
 
    .identity-tags {
        justify-content: center;
        gap: 0.5rem;
    }
 
    .identity-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
 
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
        animation: none;
    }
 
    .mobile-toggle {
        position: fixed;
        bottom: 1rem;
        left: 1rem;
        z-index: 1003;
        background: var(--primary-pink);
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        cursor: pointer;
        box-shadow: 0 3px 10px rgba(255, 105, 180, 0.3);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: var(--transition);
    }
 
    .mobile-toggle:hover {
        transform: translateY(-2px);
        background: var(--secondary-pink);
    }
 
    .timeline-dot {
        width: var(--timeline-dot-size-mobile);
        height: var(--timeline-dot-size-mobile);
    }
 
    .sidebar-links a,
    .identity-tag,
    .back-to-top {
        min-height: 44px;
    }
}
 
@media (min-width: 769px) and (max-width: 1024px) {
    .home-container {
        width: calc(100% - 280px);
        max-width: 90%;
    }
 
    .glass-card {
        padding: 1.2rem;
    }
 
    .section-title {
        font-size: 1.1rem;
    }
}
