/*
    首页专用样式
    这个文件包含首页的所有样式
    修改这些样式来自定义您的首页外观和感觉
*/

/* ===== 签名样式 ===== */
/*
    左上角的花式签名
    自定义方法：
    - 更改 font-family 使用不同的手写字体
    - 调整 font-size 使其更大或更小
    - 修改 color 以匹配您的品牌颜色
*/
.signature-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.signature-text:hover {
    color: #666;
    transform: scale(1.05);
}

/* 移动端响应式签名 */
@media (max-width: 768px) {
    .signature-text {
        font-size: 1.8rem;
    }
}

/* ===== 主内容布局 ===== */
/*
    主内容区域占据整个视窗
    如果您更改导航栏高度，请调整 padding-top
*/
.main-content {
    padding-top: 100px; /* 为固定导航栏留出空间 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #fefefe 0%, #f8f8f8 100%);
}

/* ===== 作品轮播区域 ===== */
/*
    这是首页的主要核心部分
    所有轮播相关的样式都包含在这里
*/
.artwork-carousel {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

/* 整个轮播的容器 */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px; /* 为导航箭头留出空间 */
}

/* ===== 导航箭头 ===== */
/*
    用于导航的左右箭头按钮
    自定义方法：
    - 更改背景颜色
    - 通过修改 width/height 调整大小
    - 通过 font-size 更改图标大小
*/
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.1);
    color: #1a1a1a;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(26, 26, 26, 0.2);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(26, 26, 26, 0.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* 左箭头位置 */
.carousel-btn-left {
    left: 20px;
}

/* 右箭头位置 */
.carousel-btn-right {
    right: 20px;
}

/* ===== 作品展示 ===== */
/*
    显示作品图片的主要区域
    修改 max-width 和 max-height 来更改作品大小
*/
.artwork-display {
    width: 100%;
    max-width: 800px;
    position: relative;
    text-align: center;
    transition: min-height 0.3s ease;
}

/* 单个作品项目样式 */
.artwork-item {
    opacity: 0;
    transition: opacity 0.6s ease;
    position: absolute;
    inset: 0;
    width: 100%;
    pointer-events: none;
    will-change: opacity;
}

/* 活动状态的作品是可见的 */
.artwork-item.active {
    opacity: 1;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.artwork-item.entering {
    z-index: 2;
}

.artwork-item.entering.is-visible {
    opacity: 1;
}

.artwork-item.exiting {
    opacity: 0;
    position: relative;
    z-index: 1;
}

/* ===== 作品图片样式 ===== */
/*
    实际作品图片的样式
    自定义方法：
    - 更改 max-height 使图片更大或更小
    - 添加 border-radius 获得圆角
    - 修改 box-shadow 获得不同的阴影效果
*/
.artwork-image {
    width: 100%;
    height: auto;
    max-height: 70vh; /* 调整此值来更改图片大小 */
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.6s ease;
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
}

.artwork-image:hover {
    transform: scale(1.02);
    box-shadow: none;
    filter: none !important;
    -webkit-filter: none !important;
}

.artwork-carousel img,
.artwork-display img,
.artwork-item img,
.artwork-image,
img.artwork-image,
.main-content img {
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ===== 作品信息 ===== */
/*
    每个作品下方显示的标题、尺寸和日期
    在这里自定义字体、颜色和间距
*/
.artwork-info {
    margin-top: 30px;
    text-align: center;
}

/* 作品标题样式 */
.artwork-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

/* 作品详情（尺寸和日期） */
.artwork-details {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #666;
    font-weight: 300;
    margin: 0 0 1rem;
    letter-spacing: 0.5px;
}

.artwork-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #4d4d4d;
    font-weight: 300;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 38rem;
}

/* 尺寸和日期之间的分隔符 */
.artwork-separator {
    margin: 0 15px;
    opacity: 0.5;
}

/* ===== 轮播指示器 ===== */
/*
    作品下方的小圆点显示位置
    用户可以点击这些圆点跳转到特定作品
*/
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px !important;
    padding-top: 5px !important;
    gap: 12px;
    clear: both;
    position: relative;
    z-index: 10;
}

.carousel-indicators-inline {
    margin-top: 24px;
}

/* 单个指示器圆点 */
.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

/* 活动状态的指示器圆点 */
.indicator-dot.active {
    background: #1a1a1a;
    transform: scale(1.2);
}

/* 指示器圆点的悬停效果 */
.indicator-dot:hover {
    background: rgba(26, 26, 26, 0.6);
    transform: scale(1.1);
}

/* ===== 介绍区域（可选） ===== */
/*
    如果您想在首页添加介绍文字，取消注释并自定义
*/
.intro-section {
    padding: 40px 0;
    background: rgba(248, 248, 248, 0.5);
}

.intro-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
    line-height: 1.8;
    font-style: italic;
}

/* ===== 响应式设计 ===== */
/*
    移动端和平板适配
    为不同设备修改这些断点和样式
*/

/* 平板样式 */
@media (max-width: 992px) {
    .carousel-container {
        padding: 0 60px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .artwork-image {
        max-height: 60vh;
    }

    .artwork-title {
        font-size: 1.6rem;
    }
}

/* 移动端样式 */
@media (max-width: 768px) {
    .main-content {
        padding-top: 80px;
    }

    .artwork-carousel {
        padding: 40px 0;
    }

    .carousel-container {
        padding: 0 40px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-btn-left {
        left: 10px;
    }

    .carousel-btn-right {
        right: 10px;
    }

    .artwork-image {
        max-height: 50vh;
        border-radius: 4px;
    }

    .artwork-title {
        font-size: 1.4rem;
    }

    .artwork-details {
        font-size: 0.9rem;
    }

    .artwork-separator {
        margin: 0 10px;
    }

    .carousel-indicators {
        margin-top: 50px;
        padding-top: 15px;
        gap: 10px;
    }

    .carousel-indicators-inline {
        margin-top: 20px;
    }

    .indicator-dot {
        width: 8px;
        height: 8px;
    }
}

/* 小尺寸移动端样式 */
@media (max-width: 480px) {
    .carousel-container {
        padding: 0 30px;
    }

    .artwork-image {
        max-height: 40vh;
    }

    .artwork-info {
        margin-top: 20px;
    }

    .artwork-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
}

/* ===== 动画类 ===== */
/*
    用于平滑过渡的额外动画类
    这些由JavaScript用于轮播动画
*/
.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*
    自定义技巧：

    1. 更改颜色：
       - 搜索颜色值如 #1a1a1a、#666 等，替换为您的品牌色

    2. 更改字体：
       - 修改 font-family 值使用不同字体
       - 如果更改字体，请更新HTML中的Google Fonts链接

    3. 更改布局：
       - 调整 max-width 值来更改容器大小
       - 修改 padding 和 margin 值调整间距

    4. 更改动画：
       - 调整过渡持续时间值（如 0.3s、0.6s）
       - 修改 transform 值获得不同效果

    5. 添加新作品：
       - 在JavaScript文件（home.js）中添加新的作品数据
       - 图片应放在 images/ 文件夹中
*/
