* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.phone-frame {
    position: relative;
    width: 100%;
    max-width: 375px;
    height: 100vh;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
}

.phone-notch {
    display: none;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nav-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    padding-top: 40px;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.nav-item:active {
    background: #f0f0f0;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-text {
    flex: 1;
}

.item-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.item-button {
    padding: 8px 16px;
    background: #4098FC;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.item-button:active {
    transform: scale(0.95);
}

.phone-home {
    display: none;
}

/* 滚动条样式 */
.nav-container::-webkit-scrollbar {
    width: 4px;
}

.nav-container::-webkit-scrollbar-track {
    background: transparent;
}

.nav-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.nav-container::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* 分割线样式 */
.nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #bbb, transparent);
    margin: 0;
    flex-shrink: 0;
    align-self: stretch;
}

/* PC端显示手机边框 */
@media (min-width: 769px) {
    body {
        align-items: center;
        padding-top: 20px;
    }
    
    .phone-frame {
        width: 375px;
        height: 812px;
        background: #000;
        border-radius: 50px;
        padding: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        overflow: hidden;
    }
    
    .phone-notch {
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 28px;
        background: #000;
        border-radius: 0 0 40px 40px;
        z-index: 10;
    }
    
    .phone-screen {
        border-radius: 45px;
        height: 100%;
    }
    
    .phone-home {
        display: block;
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 4px;
        background: #000;
        border-radius: 2px;
    }
}
