/* 
 * 全局样式设置
 * 设置页面基本样式
 */
body {
    margin: 0;
    background-color: white;
}

/* 
 * 页面容器设置
 */
.container {
    margin: 0 10%;
}

.article-icon {
    height: 28px;
    width: 28px;
    object-fit: cover;
}

/* 
 * 主标题区域样式
 * 包含用户头像和个人信息展示区域
 */
.header-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 40px 10% 40px 10%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.header-section>* {
    position: relative;
    z-index: 1;
}

.header-section-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

/* 
 * 用户信息区域样式
 */
.profile-info {
    flex: 1;
    z-index: 1;
    position: relative;
}

/* 
 * 用户姓名区域样式
 */
.name-section .name {
    white-space: nowrap;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 
 * 认证图标样式
 */
.verified-icon {
    font-size: 1.2rem;
}

/* 
 * 勋章图标样式
 */
.medal-icon {
    font-size: 1.5rem;
}

/* 
 * 职位标题样式
 */
.title {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 
 * 描述文本样式
 */
.description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 
 * 社交媒体图标容器样式
 */
.social-icons {
    display: flex;
    gap: 15px;
}

/* 
 * 单个社交媒体图标样式
 */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* 
 * 社交媒体图标悬停效果
 */
.social-icon:hover {
    transform: translateY(-3px);
}

/* 
 * 不同社交媒体图标的背景色
 */
.social-icon.weibo {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.social-icon.wechat {
    background: linear-gradient(135deg, #00d2d3, #54a0ff);
}

.social-icon.other {
    background: linear-gradient(135deg, #5f27cd, #341f97);
}

/* 
 * 用户头像容器样式
 */
.profile-image {
    z-index: 1;
    position: relative;
    width: 200px;
    height: 300px;
}

/* 
 * 用户头像图片样式
 */
.profile-image img {
    width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
    object-position: top;
}

/* 
 * 内容区域样式
 * 包含个人简介、擅长菜系等区域
 */
.coc {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

/* 
 * 内容卡片样式
 */
.cont {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
}

/* 
 * 各种内容区域通用样式
 */
.intro-section,
.specialty-section,
.dishes-section,
.more-content-section {
    background: white;
    border-radius: 15px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
}

/* 
 * 区域标题样式
 */
.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    display: inline-block;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #d4373a;
}

/* 
 * 内容文本样式
 */
.intro-text,
.specialty-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
    white-space: pre-line;
    word-wrap: break-word;
}

/* 
 * 代表菜展示区域样式
 */
.dishes-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    background-color: #f8f9fa;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* 
 * 单个菜品项样式
 */
.dish-item {
    display: flex;
    flex-direction: column;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color:white;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

/* 
 * 菜品项悬停效果
 */
.dish-item:hover {
    transform: translateY(-5px);
}

/* 
 * 菜品图片样式
 */
.dish-item img {
    background-color: #f0f0f0;
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
}
/* 
 * 菜品标签样式
 */
.dish-label {
    flex: 1;
    background-color: white;
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 
 * 更多内容卡片样式
 */
.content-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-card {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
}

.content-card:last-child {
    border-bottom: none;
}

/* 
 * 内容图片样式
 */
.content-image img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 
 * 内容文本区域样式
 */
.content-text {
    flex: 1;
    color: #333;
    margin-bottom: 20px;
}

/* 
 * 内容标题样式
 */
.content-text h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 
 * 内容段落样式
 */
.content-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
    text-align: justify;
}

/* 
 * 侧边栏样式
 */
.sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

/* 
 * 侧边栏单项样式
 */
.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* 
 * 侧边栏单项悬停效果
 */
.sidebar-item:hover {
    transform: translateX(-5px);
}

/* 
 * 侧边栏图标样式
 */
.sidebar-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* 
 * 不同侧边栏图标的背景色
 */
.sidebar-icon.red {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.sidebar-icon.orange {
    background: linear-gradient(135deg, #ffa726, #ff7043);
}

.sidebar-icon.blue {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
}

.sidebar-icon.gray {
    background: linear-gradient(135deg, #90a4ae, #607d8b);
}

/* 
 * 侧边栏文字样式
 */
.sidebar-item span {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    white-space: nowrap;
}


/* 
 * 滚动条样式
 */
.dishes-gallery::-webkit-scrollbar {
    height: 8px;
}

.dishes-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dishes-gallery::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.dishes-gallery::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 
 * 响应式设计 - 移动端适配
 */
@media (min-width: 769px) {
    .MOBILE {
        display: none;
    }

    .profile-image {
        height: 350px;
        width: 350px;
    }

    .coc {
        transform: translateY(-120px);
    }

    .header-section {
        padding-bottom: 160px;
    }
}

@media (max-width: 768px) {

    .header-section,
    .coc {
        margin-bottom: 0;
    }

    .container {
        padding: 0;
        margin: 0;
    }

    .coc {
        flex-direction: column;
        gap: 0;
    }

    .cont {
        border-radius: 0;
    }


    section:not(.coc),
    .cont,
    .header-section {
        padding: 20px 8%;
        margin-bottom: 0;
        border-radius: 0;
    }

    .header-section {
        text-align: center;
    }

    .name-section .name {
        font-size: 2rem;
        flex-direction: column;
        align-items: self-start;
    }

    .title {
        font-size: 16px;
        text-align: left;
    }

    .content-card {
        flex-direction: column;
    }

    .social-icons {
        justify-content: left;
    }

    .content-image img {
        width: 100%;
        height: 200px;
    }

    .dishes-gallery {
        justify-content: center;
    }

    .sidebar {
        display: none;
    }

    .section-title {
        font-size: 20px;
    }

    .header-section-content {
        gap: 20px;
    }

    .PC {
        display: none;
    }

    .description {
        text-align: left;
    }
}