/* style.css */

@layer utilities {
    .text-shadow {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    .transition-smooth {
        transition: all 0.3s ease-in-out;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏滚动效果 */
.navbar-fixed {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* 技术流程图样式 */
.tech-flow-container {
    position: relative;
}
.tech-flow-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e5e7eb;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    }
.tech-flow-item {
    position: relative;
    margin-bottom: 2rem;
}
.tech-flow-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
}
    .tech-flow-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
}
.tech-flow-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3b82f6;
    top: 5px;
}
.tech-flow-item:nth-child(odd)::before {
    right: calc(50% - 6px);
}
.tech-flow-item:nth-child(even)::before {
    left: calc(50% - 6px);
}

/* 数据流程图样式 */
.data-flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.data-flow-item {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
}
.data-flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2rem;
    background-color: #e5e7eb;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
}

/* 时间轴样式 */
        .timeline-container {
            position: relative;
        }
        .timeline-container::after {
            content: '';
            position: absolute;
            width: 2px;
            background-color: #e5e7eb;
            top: 0;
            bottom: 0;
            left: 15px;
            margin-left: -1px;
        }
        .timeline-item {
            position: relative;
            padding-left: 45px;
            margin-bottom: 2rem;
        }
        .timeline-item::before {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #3b82f6;
            left: 10px;
            top: 5px;
            z-index: 1;
        }
/* --- 项目详情页特有样式 --- */

/* 成就卡片样式 */
.achievement-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 特色卡片样式 (用于 yi-embroidery.html 等详情页) */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 卡片深色遮罩层，确保文字在图片上清晰可见 */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    z-index: 1;
}

/* 确保卡片内容位于遮罩层之上 */
.feature-card > * {
    position: relative;
    z-index: 2;
}