/* 灯光设计页面样式 */

/* Banner样式 */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: auto;
}

.banner-slide {
    position: absolute; /* 绝对定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 指示器样式 */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 30px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    z-index: 20;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.banner-indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* 设置首张幻灯片显示，确保banner有高度 */
.banner-slide:first-child {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.designer-intro,
.designer-honors,
.designer-cases {
    margin-bottom: 40px;
    padding: 20px;
}

.designer-intro h3,
.designer-honors h3,
.designer-cases h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

/* 为H3添加下划线 */
.designer-intro h3::after,
.designer-honors h3::after,
.designer-cases h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 设计师介绍部分样式 */
.designer-intro {
    margin: 0 auto;
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.designer-intro-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    box-shadow: none; /* 移除阴影 */
    padding: 20px;
    background: transparent;
    overflow: hidden;
}

/* 添加介绍模块左下角的装饰元素 */
.designer-intro-wrapper::before {
    content: '';
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 30px;
    height: 2px;
    background: linear-gradient(to left, rgba(244, 164, 96, 0), var(--secondary-color)); /* 修改为从右到左渐变 */
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(244, 164, 96, 0.3);
    z-index: 5;
    transform-origin: left;
    display: block;
}

.designer-intro-wrapper::after {
    content: '';
    position: absolute;
    left: 20px; /* 调整位置，使其不被圆角遮挡 */
    bottom: 20px; /* 调整位置，使其不被圆角遮挡 */
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(244, 164, 96, 0), var(--secondary-color)); /* 调整渐变方向与右侧一致 */
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(244, 164, 96, 0.3);
    z-index: 5;
    transform-origin: bottom;
    display: block;
}

/* 更新动画选择器 */
.designer-intro-wrapper::before,
.designer-intro-wrapper::after,
.designer-right::before,
.designer-right::after {
    animation: corner-pulse 4s ease-in-out infinite;
}

.designer-intro-wrapper::after,
.designer-right::after {
    animation-delay: 1s;
}

/* 中间分隔线设置 */
.designer-intro-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 130px;
    align-items: start;
    position: relative;
}

/* 中间的分隔线元素 */
.designer-intro-content::after {
    content: '';
    position: absolute;
    left: calc(380px + 100px);
    top: 5%;
    bottom: 5%;
    width: 1px;
    background: linear-gradient(to bottom, 
                               transparent, 
                               rgba(244, 164, 96, 0.15) 20%, 
                               rgba(244, 164, 96, 0.15) 80%, 
                               transparent);
    z-index: 1;
}

/* 给元素添加微妙的动画 */
@keyframes corner-pulse {
    0% {
        opacity: 0.7;
        box-shadow: 0 0 5px rgba(244, 164, 96, 0.2);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(244, 164, 96, 0.4);
    }
    100% {
        opacity: 0.7;
        box-shadow: 0 0 5px rgba(244, 164, 96, 0.2);
    }
}

/* 左侧部分 - 照片和数据统计 */
.designer-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.designer-photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* 改回方形边角，移除椭圆形状 */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    background: #fff;
    padding: 10px;
    animation: gentle-float 6s ease-in-out infinite;
    transition: all 0.5s ease;
}

@keyframes gentle-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.designer-img {
    width: 100%;
    display: block;
    border-radius: 4px; /* 改回方形边角，移除椭圆形状 */
    transition: all 0.4s ease;
    aspect-ratio: 3 / 4; /* 保持纵横比 */
    object-fit: cover;
}

.designer-photo-frame:hover .designer-img {
    transform: scale(1.03);
}

.designer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.stat-item {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border-radius: 12px;
    padding: 15px 5px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(244, 164, 96, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(244, 164, 96, 0.15);
    border-color: rgba(244, 164, 96, 0.3);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 164, 96, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    display: block;
    position: relative;
    z-index: 1;
}

/* 右侧部分 - 文本内容 */
.designer-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-left: 150px;
    position: relative;
}

.designer-header {
    margin-bottom: 5px;
}

.designer-name {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.designer-name::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.4s ease;
}

.designer-right:hover .designer-name::after {
    width: 100%;
}

.designer-title {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
    font-weight: 500;
}

.designer-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.expertise-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f8c291 100%);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.expertise-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8c291 0%, var(--secondary-color) 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.expertise-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(244, 164, 96, 0.3);
}

.expertise-tag:hover::before {
    left: 0;
}

.designer-text {
    color: #444;
    line-height: 1.8;
}

.designer-text p {
    margin-bottom: 15px;
    font-size: 16px;
}

.designer-text p:last-child {
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 1100px) {
    .designer-intro-content {
        grid-template-columns: 320px 1fr;
        gap: 100px;
    }
    
    .designer-intro-content::after {
        left: calc(320px + 80px);
    }
    
    .content-divider {
        left: calc(320px + 80px);
    }
    
    .designer-right {
        padding-left: 50px;
    }
}

@media (max-width: 900px) {
    .designer-intro-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .designer-intro-content::after {
        display: none;
    }
    
    .content-divider {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        margin: 20px auto;
        justify-content: center;
        gap: 10px;
    }
    
    .designer-right {
        padding-left: 0;
        text-align: left;
    }
    
    /* 在小屏幕上添加水平分隔线替代垂直分隔线 */
    .designer-left::after {
        content: '';
        position: absolute;
        left: 20%;
        right: 20%;
        bottom: -25px;
        height: 1px;
        background: linear-gradient(to right, 
                                transparent, 
                                rgba(244, 164, 96, 0.3) 20%, 
                                rgba(244, 164, 96, 0.3) 80%, 
                                transparent);
    }
    
    .designer-left {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .designer-name {
        display: block;
        text-align: left;
    }
    
    .designer-name::after {
        left: 0;
        transform: none;
    }
    
    .designer-expertise {
        justify-content: flex-start;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .designer-intro {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 35px;
    }
    
    .designer-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .designer-name {
        font-size: 24px;
    }
    
    .designer-text p {
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .designer-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 10px 5px;
    }
    
    .expertise-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.designer-name-title {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.designer-title {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 1px;
}

.designer-content {
    /* 这里不设置内容，保持原有动态装载 */
}

.achievements-preview {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievement-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(244, 164, 96, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 16px;
}

.achievement-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式调整 */
@media (max-width: 968px) {
    .achievements-preview {
        flex-direction: column;
        gap: 15px;
    }
}

.honor-item,
.case-item {
    margin: 20px 0;
    text-align: center;
}

.honor-item img,
.case-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.honor-item p,
.case-item h4 {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

/* 移动端适配 */
@media screen and (max-width: 1055px) {
    
    .banner-slider {
        height: 100%;
    }
    
    .banner-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 1.5s ease, visibility 1.5s ease;
    }
    
    .banner-slide.active {
        opacity: 1;
        visibility: visible;
    }
    
    .banner-img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* 移动端指示器样式 */
    .banner-indicators {
        bottom: 20px;
        padding: 0 10px;
        height: 24px;
    }
    
    .banner-indicator {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    
}

/* 面包屑导航样式 */
.breadcrumb {
    padding: 20px 0;
    margin-top: 30px; /* 添加与Banner的间距 */
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee; /* 添加底部分隔线 */
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

/* 个人荣誉区块样式 */
.honors-section {
    background-color: #f8f8f8;
    width: 100%;
    padding: 50px 0;
    margin: 0;
    box-sizing: border-box;
}

.honors-section .container {
    margin: 0 auto;
}

/* 个人荣誉样式 */
.designer-honors {
    margin-bottom: 0;
    padding: 0 20px;
}

.designer-honors h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.designer-honor-list {
    display: flex;
    flex-wrap: wrap;
    transition: transform 0.3s ease-out;
}

.designer-honor-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    width: calc(33.33% - 20px);
    margin: 20px 10px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.designer-honor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.designer-honor-img {
    width: 100%;
    padding-bottom: 75%; /* 3:2比例 */
    position: relative;
    background: #fff;
    overflow: hidden;
}

.designer-honor-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}

.designer-honor-item:hover .designer-honor-img img {
    transform: scale(1.1);
}

.designer-honor-item p {
    padding: 15px;
    margin: 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    border-top: 1px solid #eee;
    position: relative;
    transition: color 0.3s;
}

.designer-honor-item:hover p {
    color: var(--secondary-color);
}

/* 下划线特效 */
.designer-honor-item p::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    margin: 5px auto 0;
    transition: width 0.3s;
}

.designer-honor-item:hover p::after {
    width: 50%;
}

/* 个人案例样式 */
.designer-cases {
    margin-bottom: 40px;
    padding: 20px;
}

.designer-cases h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.designer-case-list {
    display: flex;
    flex-wrap: wrap;
    transition: transform 0.3s ease-out;
}

.designer-case-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    width: calc(33.33% - 20px);
    margin: 20px 10px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.designer-case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.designer-case-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2; /* 保持3:2比例 */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.designer-case-item p {
    margin: 0;
    padding: 15px; /* 减小内边距与荣誉项匹配 */
    font-size: 16px; /* 减小字体大小与荣誉项匹配 */
    color: #333;
    text-align: center;
    height: auto; /* 自适应高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-top: 1px solid #eee;
    position: relative;
    transition: color 0.3s;
}

/* 为案例项添加下划线特效，与荣誉项保持一致 */
.designer-case-item p::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    margin: 5px auto 0;
    transition: width 0.3s;
}

.designer-case-item:hover p {
    color: var(--secondary-color);
}

.designer-case-item:hover p::after {
    width: 50%;
}

/* 分页控制样式 */
.designer-honor-pagination,
.designer-case-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.designer-honor-prev,
.designer-honor-next,
.designer-case-prev,
.designer-case-next {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    color: #666;
}

.designer-honor-prev:hover,
.designer-honor-next:hover,
.designer-case-prev:hover,
.designer-case-next:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* 响应式调整 */
@media screen and (max-width:1055px) {
    .designer-honor-list,
    .designer-case-list {
        display: flex;
        flex-wrap: nowrap;
        transition: transform 0.3s ease-out;
    }

    .designer-honor-item,
    .designer-case-item {
        flex: 0 0 100%;
        width: 100%;
        margin: 5px 0;
    }
}

/* 弹窗样式 */
.case-modal,
.honor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    display: none;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-img {
    width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
}

.modal-title {
    margin-top: 15px;
    font-size: 20px;
    color: #333;
    text-align: center;
}

/* 响应式弹窗 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    .modal-img {
        max-height: 60vh;
    }
}

/* 内容分隔器样式 */
.content-divider {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    left: calc(380px + 100px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.divider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.divider-dot:nth-child(2) {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

.divider-dot:nth-child(odd) {
    animation: pulse 3s infinite alternate;
}

.divider-dot:nth-child(even) {
    animation: pulse 3s infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

/* 响应式调整 */
@media (max-width: 1100px) {
    .designer-intro-content::after {
        left: calc(320px + 80px);
    }
    
    .content-divider {
        left: calc(320px + 80px);
    }
}

@media (max-width: 900px) {
    .content-divider {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        margin: 20px auto;
        justify-content: center;
        gap: 10px;
    }
    
    .divider-dot:nth-child(odd),
    .divider-dot:nth-child(even) {
        animation: none;
    }
    
    @keyframes horizontal-pulse {
        0% {
            transform: scale(1);
            opacity: 0.5;
        }
        100% {
            transform: scale(1.3);
            opacity: 0.8;
        }
    }
    
    .divider-dot:nth-child(1) {
        animation: horizontal-pulse 2s infinite alternate;
    }
    
    .divider-dot:nth-child(2) {
        animation: horizontal-pulse 2.5s infinite alternate;
    }
    
    .divider-dot:nth-child(3) {
        animation: horizontal-pulse 3s infinite alternate;
    }
}

/* 为内容区添加右下角装饰 - 改进设计并调整位置 */
.designer-right::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0; /* 将位置调整到底部 */
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, rgba(244, 164, 96, 0), var(--secondary-color));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(244, 164, 96, 0.3);
    z-index: 5;
    transform-origin: right;
}

.designer-right::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0; /* 将位置调整到底部 */
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(244, 164, 96, 0), var(--secondary-color));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(244, 164, 96, 0.3);
    z-index: 5;
    transform-origin: bottom;
}