:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --spacing-unit: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px; /* 给底部按钮留出空间 */
}

/* === 新增：首屏巨幅轮播样式 === */
.hero-section {
    width: 100%;
    height: 100vh; /* 整个首屏占满显示器高度 */
    display: flex;
    flex-direction: column;
    background-color: #f8f8f8;
}

.hero-image-container {
    position: relative;
    width: 100%;
    flex: 1; /* 大图占满上面所有剩余空间 */
    overflow: hidden;
}

#hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证大图不变形，像海报一样充满 */
    object-position: center 20%; /* 重点展示人物面部（靠上位置） */
    transition: opacity 0.4s ease; /* 切换图片时的丝滑渐变 */
}

.hero-caption {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6); /* 保证字在浅色图片上也能看清 */
    pointer-events: none; /* 让鼠标穿透文字，点到背后的区域 */
    z-index: 20;
}

/* 隐形的左右点击按钮 */
.click-zone {
    position: absolute;
    top: 0;
    width: 50%; /* 一左一右各占 50% 屏幕 */
    height: 100%;
    z-index: 10;
}
.left-zone { left: 0; cursor: w-resize; } /* 鼠标变成向左的箭头 */
.right-zone { right: 0; cursor: e-resize; } /* 鼠标变成向右的箭头 */

/* 底部缩略图导航带 */
.hero-thumbnails {
    height: 130px;
    background-color: var(--bg-color);
    display: flex;
    gap: 20px;
    padding: 15px var(--spacing-unit);
    overflow-x: auto;
    align-items: center;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.hero-thumbnails::-webkit-scrollbar { display: none; }

.thumb-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    opacity: 0.4; /* 没被选中的缩略图是半透明的 */
    transition: opacity 0.3s ease;
}
.thumb-item.active, .thumb-item:hover {
    opacity: 1; /* 选中的变清晰 */
}

.thumb-num {
    font-size: 11px;
    font-weight: 900;
    color: var(--text-color);
}

.thumb-item img {
    width: 140px;
    height: 75px;
    object-fit: cover;
}

/* 导航栏 */
.site-header {
    display: flex; justify-content: space-between;
    padding: var(--spacing-unit); position: fixed; top: 0;
    width: 100%; z-index: 100; background-color: rgba(255, 255, 255, 0.95);
    font-weight: 800; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.site-header a { color: var(--text-color); text-decoration: none; }

/* === 新增：多行排版样式 === */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 60px; /* 每一大排（如2026和2025）之间的上下间距 */
    padding-top: 20px;
}

.category-row {
    width: 100%;
    /* 魔法代码 3：让浏览器"偷懒"，屏幕外的排版先不计算，极大地节省 CPU */
    content-visibility: auto; 
    contain-intrinsic-size: 400px;
}

/* 每一排的分类大标题 (如 2026, SUMMER) */
.row-title {
    font-size: 3vw;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    padding: 0 var(--spacing-unit);
    margin-bottom: 20px;
}

/* 每一排的横向画廊 */
.horizontal-gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 0 var(--spacing-unit);
    scroll-behavior: smooth;
    -ms-overflow-style: none;  
    scrollbar-width: none;
    
    /* 魔法代码 1：开启 GPU 硬件加速滑动 */
    -webkit-overflow-scrolling: touch; 
    will-change: transform;
}
.horizontal-gallery::-webkit-scrollbar { display: none; }

/* 单个图片盒子：改为固定高度，不限制宽度 */
.gallery-item {
    flex: 0 0 auto;
    /* 删除了原本的 width: 280px; */
    height: 380px; /* 【核心魔法】：设定统一高度，保证这一排上下对齐不乱 */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateZ(0); 
}

.gallery-item img {
    height: 100%; /* 高度必须 100% 填满盒子 */
    width: auto;  /* 【核心魔法】：宽度设定为 auto，横图自然宽，竖图自然窄 */
    display: block;
    /* 删除了原本的 object-fit: cover; */
    /* 删除了原本的 aspect-ratio: 3 / 4; */
    transition: filter 0.3s ease;
}

/* Hover 文字效果 */
.hover-info {
    position: absolute; bottom: -50px; left: 0; width: 100%;
    padding: 15px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white; font-size: 13px; font-weight: 700; text-transform: uppercase;
    transition: bottom 0.3s ease; pointer-events: none;
}
.gallery-item:hover img { filter: brightness(0.8); }
.gallery-item:hover .hover-info { bottom: 0; }

/* 底部按钮 */
.filter-footer {
    position: fixed; bottom: 0; width: 100%; padding: var(--spacing-unit);
    background-color: var(--bg-color); display: flex; justify-content: center; z-index: 100;
}
.filter-group { display: flex; gap: 30px; }
.filter-btn {
    background: none; border: none; color: var(--text-color);
    font-family: var(--font-main); font-size: 13px; font-weight: 700;
    cursor: pointer; text-transform: uppercase; opacity: 0.4; transition: opacity 0.3s;
}
.filter-btn:hover, .filter-btn.active { opacity: 1; }

/* Lightbox 样式保持不变 */
.lightbox-overlay { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
#lightbox-img { max-width: 100%; max-height: 85vh; object-fit: contain; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.lightbox-caption { color: white; margin-top: 15px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.close-btn { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-btn:hover { color: #888; }


/* === 新增：妆前妆后 (Before & After) 对比控件样式 === */
.ba-container {
    position: relative;
    display: inline-block; /* 紧贴图片大小 */
    max-width: 100%;
    max-height: 85vh;
    overflow: hidden;
    user-select: none; /* 防止拖拽时误选图片 */
}

.ba-after {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.ba-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* 默认显示一半 */
    height: 100%;
    overflow: hidden;
}

.ba-before {
    display: block;
    height: 100%;
    /* 宽度由 JS 动态计算赋予，保证和底图一模一样大 */
    object-fit: cover;
    object-position: left center;
}

.ba-slider {
    position: absolute;
    top: 0;
    left: 50%; /* 默认在正中间 */
    height: 100%;
    width: 40px; /* 滑块的感应区宽度 */
    margin-left: -20px; /* 让滑块完美居中于线条 */
    cursor: ew-resize; /* 鼠标变成左右拖拽图标 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.ba-slider-line {
    width: 2px;
    height: 100%;
    background-color: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.ba-slider-button {
    position: absolute;
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-size: 12px;
    letter-spacing: -1px;
}

/* === 新增：关于我 (About) 侧滑抽屉 === */
.about-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1000;
    opacity: 0; visibility: hidden; transition: 0.3s ease;
    backdrop-filter: blur(5px); /* 背景微微模糊的高级感 */
}
.about-overlay.active { opacity: 1; visibility: visible; }

.about-sidebar {
    position: fixed; top: 0; right: -450px; /* 默认隐藏在屏幕右侧外 */
    width: 450px; max-width: 100%; height: 100vh;
    background: var(--bg-color); color: var(--text-color);
    z-index: 1001; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1); /* 极其丝滑的贝塞尔曲线动画 */
    overflow-y: auto; padding: 80px 40px 40px;
}
.about-sidebar.active { right: 0; /* 激活时滑入屏幕 */ }

/* js/about.js */
.about-sidebar .about-content {
    padding: 40px 20px !important; /* 给抽屉留出足够的呼吸空间 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 确保所有内容居中 */
}

/* 1. 精修头像：从正方形变成优雅的圆形，并往下移 */
.about-content img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%; 
    margin-top: 10px !important;    /* 从 40px 缩小到 10px，缩减顶部留白 */
    margin-bottom: 20px !important; /* 缩小与名字的距离 */
    border: 3px solid rgba(255,255,255,0.8); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
}

/* 2. 精修名字：大气、粗体、增加字间距 */
.about-name {
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: 4px !important; /* 增加高级的字间距 */
    text-transform: uppercase;     /* 强制大写，更有力量感 */
    color: #111;
    margin-bottom: 8px !important;
}

/* 3. 精修头衔：把字号缩小，换成淡淡的灰色 */
.about-role {
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    color: #777;                     /* 淡淡的灰色，形成层次 */
    margin-bottom: 35px !important;  /* 与简介拉开距离 */
}

/* 4. 精修简介：把字号缩小，增加行距，识别换行 */
.about-bio {
    font-size: 13px !important;
    line-height: 2.0 !important;     
    color: #444;                     
    text-align: left;                
    white-space: pre-wrap !important;
    max-width: 100% !important;      /* 从 90% 改成 100%，让文字占满，减少左右留白 */
    margin-bottom: 35px !important;  /* 从 50px 缩小到 35px，缩减底部的巨大留白 */
}

/* 5. 精修底部联系方式 */
.about-contact {
    width: 100%;
    border-top: 1px solid #eee; /* 在底部加一条精致的分割线 */
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;                  /* 联系方式之间保持间距 */
}

.about-contact a {
    font-size: 13px !important;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-contact a:hover {
    color: #111; /* 鼠标放上去时变黑 */
}



.close-about-btn {
    position: absolute; top: 20px; right: 30px;
    background: none; border: none; font-size: 40px; font-weight: 300;
    cursor: pointer; color: var(--text-color); transition: opacity 0.3s;
}
.close-about-btn:hover { opacity: 0.5; }

/* 抽屉内部文字排版 */
.about-content { display: flex; flex-direction: column; gap: 20px; }
.about-content img { width: 100%; aspect-ratio: 3/4; object-fit: cover; margin-bottom: 10px; }
.about-name { font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.about-role { font-size: 13px; font-weight: 700; opacity: 0.5; text-transform: uppercase; margin-top: -15px; }
.about-bio { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.about-contact a { display: block; color: var(--text-color); text-decoration: none; font-weight: 700; font-size: 13px; margin-bottom: 15px; text-transform: uppercase;}
.about-contact a:hover { text-decoration: underline; }
.about-bio {
    white-space: pre-wrap; /* 允许识别 \n 换行符 */
    line-height: 1.6;      /* 让文字间距更舒服 */
    font-size: 14px;
    color: #666;
}

/* === 新增：视频弹窗与播放图标样式 === */
#lightbox-video {
    max-width: 100%;
    max-height: 85vh;
    outline: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: black;
}

/* 画廊里的播放小图标 */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    pointer-events: none; /* 让鼠标点击能穿透图标点到图片上 */
    opacity: 0.8;
}
.gallery-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    transition: all 0.3s ease;
}


/* === 专辑模式：弹窗底部缩略图轨道 === */
.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    max-width: 90%;
    overflow-x: auto;
    padding: 10px;
    z-index: 100;
}
/* 隐藏滚动条让视觉更干净 */
.lightbox-thumbnails::-webkit-scrollbar { display: none; }

.lightbox-thumbnails img {
    height: 60px; /* 小图高度 */
    width: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
}
.lightbox-thumbnails img:hover { opacity: 0.8; }
.lightbox-thumbnails img.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.8);
}

/* 为了给底部轨道留出空间，稍微限制一下大图的最大高度 */
#lightbox-img, #lightbox-video, .ba-container {
    max-height: 75vh !important; 
}


/* === 修复首屏大图被裁切（强制完整显示所有边缘） === */
#hero-main-img, 
#hero-main-video {
    object-fit: contain !important; /* 核心：强制完整缩放，绝对不裁切 */
    width: 100% !important;
    height: 100% !important;
    background-color: transparent !important; /* 确保边缘留白处是透明的，融入网页底色 */
}

/* 确保父容器背景干净，不干扰图片显示 */
.hero-image-container {
    background-color: #ffffff; /* 如果你的网页底色是稍微带灰的，可以改成对应的颜色比如 #f9f9f9 */
}

/* === 修复顶部导航栏悬浮遮挡首屏大图的问题 === */
#hero-carousel {
    margin-top: 80px !important; /* 在电脑端把大图往下推 80px，给导航栏留出空间 */
}

/* 配合我们上一轮写的手机端优化，做一下微调 */
@media (max-width: 768px) {
    #hero-carousel {
        margin-top: 60px !important; /* 手机端导航栏通常比较窄，往下推 60px 即可 */
        height: calc(60vh - 60px) !important; /* 确保扣除顶端空间后，高度比例依然舒服 */
    }
}

/* === 高级版 ABOUT 页面全方位精修 === */

/* 1. 确保整个 About 抽屉有足够的呼吸空间，所有内容居中 */
.about-sidebar .about-content {
    padding: 60px 40px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 2. 精修头像：变成优雅的圆形，并加上精致的边框和阴影 */
.about-content img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%; /* 变成圆形 */
    margin-top: 40px;    /* 往下推，给顶部留白 */
    margin-bottom: 25px; /* 与名字保持距离 */
    border: 3px solid rgba(255,255,255,0.8); /* 加一个白边 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* 加一个柔和的阴影 */
}

/* 3. 精修名字：大气、粗体、增加字间距 */
.about-name {
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: 4px !important; /* 增加高级的字间距 */
    text-transform: uppercase;     /* 强制大写，更有力量感 */
    color: #111;
    margin-bottom: 8px !important;
}

/* 4. 精修头衔：把字号缩小，换成淡淡的灰色小字 */
.about-role {
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    color: #999;                     /* 淡淡的灰色，形成层次 */
    margin-bottom: 35px !important;  /* 与简介拉开距离 */
}

/* 5. 精修简介：把字号缩小，增加行距，识别换行，靠左对齐 */
.about-bio {
    font-size: 13px !important;
    line-height: 2.0 !important;     /* 极大的行间距，非常有杂志感 */
    color: #444;                     /* 优雅的深灰 */
    text-align: left;                /* 靠左对齐，方便阅读列表 */
    white-space: pre-wrap !important;/* 核心：识别您加在 JSON 里的 \n 换行符 */
    max-width: 90%;
    margin-bottom: 50px !important;  /* 与底部的联系方式拉开距离 */
}

/* 6. 精修底部联系方式区域：加一条精致的分割线 */
.about-contact {
    width: 100%;
    border-top: 1px solid #eee; 
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;                  /* 联系方式之间保持间距 */
}

/* 7. 精修每一个联系项目 (Email, Instagram, Xiaohongshu) */
.about-contact-item {
    display: flex;
    justify-content: flex-start; /* 靠左对齐 */
    align-items: baseline;       /* 确保标签和账号的底部对齐 */
    gap: 15px;                   /* 标签和账号之间保持间距 */
}

/* “品牌标签”样式：淡淡的、大写、增加间距 */
.about-contact-item .label {
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    color: #999;                 /* 淡淡的灰色 */
    width: 100px;                /* 给标签一个固定宽度，让右侧账号对齐 */
    text-align: right;           /* 标签本身靠右对齐 */
}

/* “账号/链接”样式：标准大小、深黑、不土 */
.about-contact-item .value {
    font-size: 13px !important;
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word; /* 保证手机上如果账号太长，能安全换行 */
}

/* 只有 a 标签才是可链接的 */
.about-contact-item .value.a:hover {
    color: #000;
    text-decoration: underline; /* 鼠标放上去时有下划线 */
}

/* 小红书的 value 是 span，不是链接，所以鼠标放上去不应有变色或手型 */
.about-contact-item .value.span {
    cursor: default;
}


/* === 新增：响应式设计 (针对手机和平板) === */
/* 当屏幕宽度小于 768px 时，自动执行下面大括号里的规则 */
@media (max-width: 768px) {
    
    /* 1. 顶部导航栏缩小 */
    .site-header {
        padding: 15px;
        font-size: 12px;
    }

    /* 2. 首屏缩略图缩小，省出屏幕空间 */
    .hero-thumbnails {
        height: 100px;
        padding: 10px 15px;
    }
    .thumb-item img {
        width: 100px;
        height: 60px;
    }

    /* 3. 字体调整 (手机上放弃 vw 相对单位，改用固定大小保证清晰) */
    .row-title {
        font-size: 24px; 
    }

    /* 4. 画廊图片缩小 (核心技巧)
       将 280px 缩小到 220px，这样在手机屏幕右侧会“刚好露出下一张图片的一小半”，
       这在 UX（用户体验）设计中是极佳的暗示，告诉用户：“这里可以向左滑动” */
    .gallery-item {
        /* width: 220px; */
        height: 250px; /* 手机屏幕小，统一高度调小到 250px */
    }

    /* 5. 解决手机没有 Hover 的问题 (核心！)
       让图片默认稍微变暗一点点，并且让文字永远显示在底部 */
    .gallery-item img {
        filter: brightness(0.85); 
    }
    .hover-info {
        bottom: 0; /* 文字层升起并固定 */
        padding: 10px;
        font-size: 11px;
    }

    /* 6. 底部筛选按钮优化
       手机屏幕太窄，按钮多了会挤在一起换行。我们将它变成可以横向滑动的按钮带 */
    .filter-footer {
        padding: 10px;
        justify-content: flex-start; /* 改为靠左对齐 */
    }
    .filter-group {
        gap: 20px;
        width: 100%;
        overflow-x: auto; /* 允许按钮组横向滑动 */
        padding-bottom: 5px; 
        /* 隐藏滚动条 */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .filter-group::-webkit-scrollbar { display: none; }
    
    .filter-btn {
        font-size: 11px;
        white-space: nowrap; /* 强制按钮文字绝对不换行 */
    }

    /* 7. 全屏查看器 (Lightbox) 控件缩小，防止遮挡图片 */
    .nav-btn {
        font-size: 30px;
        padding: 10px;
    }
    .close-btn {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
    /* (放在原来手机端 CSS 的大括号里) */
    .about-sidebar { width: 100%; right: -100%; padding: 60px 20px; }
    .about-name { font-size: 24px; }
    /* 修复手机端弹窗的左右切换按钮位置 */
    .prev-btn { left: 10px !important; }
    .next-btn { right: 10px !important; }
    .nav-btn { font-size: 30px; padding: 15px; background-color: rgba(0,0,0,0.3); border-radius: 5px; } 
    /* 加了一点半透明背景，防止图片太白导致看不见白色箭头 */

    /* === 手机端专属优化：修复横图在竖屏的巨大白边 === */
@media (max-width: 768px) {
    /* 1. 缩短首屏在手机上的整体高度，消灭多余的空白区 */
    #hero-carousel {
        height: 60vh !important; /* 把原本满屏的高度缩减到 60% */
        min-height: 400px;
    }

    /* 2. 确保图片在容器内绝对垂直居中，形成高级的“画框留白” */
    #hero-main-img, 
    #hero-main-video {
        object-position: center !important;
    }

    /* 3. 修正文字在白底上的可见度 */
    #hero-caption {
        color: #111111 !important; /* 在白底上把文字改为深黑色 */
        text-shadow: none !important; /* 去掉以前为了黑底加的阴影 */
        bottom: 95px !important; /* 稍微上移，确保不被底部的小图挡住 */
    }
}
}