/* 基于你提供的变量进行扩展 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: var(--border-line-width) solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.item-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: var(--border-line-width) solid var(--border-color);
    background-color: var(--script-icon-bg);
}

.item-info {
    padding: 20px;
    flex-grow: 1;
}

.item-info h3 {
    margin: 12px 0 8px 0;
    font-size: var(--fs-listing-h2);
    color: var(--text-main);
    font-family: "TsangerMinghei", sans-serif;
}

.item-info p {
    font-size: var(--fs-card-meta);
    color: var(--text-light);
    line-height: 1.6;
}

/* 继承你的 Hover 动画逻辑 */
@media (hover: hover) {
    .portfolio-card:hover {
        transform: var(--btn-xy-move);
        box-shadow: var(--btn-xy-shadow);
    }
}

/* 分类过滤按钮样式 */
.portfolio-filter {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 18px;
    border: var(--border-line-width) solid var(--border-color);
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-light);
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--md-cyan);
    color: white;
    border-color: var(--md-cyan);
    box-shadow: 2px 2px 0 0 var(--border-color);
}

/* ==================== 创意首页排版 (Creative Landing) ==================== */
body.creative-landing {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff; /* 纯白底色 */
    overflow: hidden; /* 隐藏滚动条，呈现画框感 */
    display: flex;
    align-items: center;
}

/* 顶部黑色横幅：固定定位 */
.fixed-top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    padding: 12px 0;
    text-align: center;
    white-space: nowrap;
    z-index: 9999; /* 保证在最顶层 */
}

/* 右侧卡通人物：固定定位 */
.fixed-character-img {
    position: fixed;
    right: -80px;
    bottom: 0;
    height: 45vh; /* 高度占据屏幕80%，按比例自适应 */
    object-fit: contain;
    z-index: 1;
    pointer-events: none; /* 鼠标事件穿透，避免遮挡右侧可能的点击 */
}

/* 左侧内容区布局 */
.landing-content {
    position: relative;
    z-index: 20;
    margin-left: 8vw; /* 左侧留白 */
    margin-top: 40px; /* 避开顶部的黑色横幅 */
}

/* 超大标题名 */
.huge-title {
    font-family: 'ChillDINGothic', sans-serif; /* 使用你引入的粗黑体 */
    font-size: 12vw; /* 字体大小随屏幕宽度动态变化 */
    font-weight: 900;
    color: #222222;
    margin: 0 0 40px 0;
    line-height: 1;
    letter-spacing: 0.05em;
}
.index-toc {
    position: fixed;
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: flex-start;
    width: 1024px;
    flex-wrap: wrap;
}
/* 电话邮箱色块 */
.contact-bar-1 {
   font-family: sans-serif, system-ui;
    font-size: 30px;
    font-weight: 700;
    width: fit-content;
    border: 2px solid #000; 
    box-shadow: 4px 4px 0 0 rgba(0,0,0,1);
    background-color: #fce146; /* 图片中的明黄色 */
    color: #000000;
    margin-top: 24px;
    padding: 12px 24px;
    letter-spacing: 1px;
}
.contact-bar-2 {
    display: flex;
   font-family: sans-serif, system-ui;
    font-size: 30px;
    font-weight: 700;
    width: fit-content;
    border: 2px solid #000; 
    box-shadow: 4px 4px 0 0 rgba(0,0,0,1);
    margin-top:24px;
    margin-left:20vh;
}
.contact-bar-3 {
    display: flex;
   font-family: sans-serif, system-ui;
    font-size: 30px;
    font-weight: 700;
    width: fit-content;
    border: 2px solid #000; 
    box-shadow: 4px 4px 0 0 rgba(0,0,0,1);
    margin-top:24px;
    margin-left: 30vh;
}
.contact-tel {
    background-color: #000000;
    color: #ffffff;
    padding: 12px 24px;
    letter-spacing: 1px;
}

.contact-email {
    background-color: #fce146; /* 图片中的明黄色 */
    color: #000000;
    margin-left: 20px;
    padding: 12px 24px;
    letter-spacing: 1px;
}

/* === 移动端适配 === */
@media (max-width: 768px) {
    .huge-title {
        font-size: 22vw;
    }
    
    .contact-bar {
        flex-direction: column; /* 手机上改为上下排列 */
        font-size: 16px;
    }
    
    .fixed-character-img {
        height: 50vh; /* 手机上缩小图片 */
        right: -30px;
        bottom: -20px;
        opacity: 0.85; /* 稍微降低透明度以免过于抢夺视觉重点 */
    }
    
    .fixed-top-banner {
        font-size: 12px;
        letter-spacing: 1px;
    }
}