/*6个格子内容框*/
/* 家人区块：半透明背景 + 标题优化 */
.family-wrapper{
  max-width:1200px;
  margin:120px auto;
  padding:40px 30px;
  background:rgba(255,255,255,.08);
  border-radius:20px;
  box-shadow:0 8px 32px rgba(0,0,0,.1);
  backdrop-filter:blur(10px);
}

.family-title{
  text-align:center;
  margin-bottom:30px;
  font-size:2.2rem;
  font-weight:600;
  letter-spacing:1px;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.25);
  font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;
}

/* 5个格子的特殊布局 - 优化版 */
.category-grid.five-cards-layout {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6列网格，更容易控制居中 */
    gap: 1.5rem;
}

/* 所有卡片基础样式 */
.category-grid.five-cards-layout .category-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* 第一行3个卡片 - 各占2列 */
.category-grid.five-cards-layout > .category-card:nth-child(1),
.category-grid.five-cards-layout > .category-card:nth-child(2),
.category-grid.five-cards-layout > .category-card:nth-child(3) {
    grid-column: span 2;
}

/* 第二行2个卡片 - 居中显示 */
.category-grid.five-cards-layout > .category-card:nth-child(4) {
    grid-column: 2 / span 2; /* 从第2列开始，占2列 */
}

.category-grid.five-cards-layout > .category-card:nth-child(5) {
    grid-column: 4 / span 2; /* 从第4列开始，占2列 */
}

/* 卡片标题样式 */
.card-title {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--title-color);
    text-align: left;
    position: relative;
    z-index: 2;
}

/* 中央大字样式 */
.card-center {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-size: 72px;
    font-weight: bold;
    text-align: center;
    margin: auto 0;
    color: var(--center-color);
    position: relative;
    z-index: 2;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* 底部统计信息 */
.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: auto;
    padding: 0.8rem 0 0;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* 卡片背景装饰 */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg-pattern);
    opacity: 0.05;
    z-index: 1;
}

/* 悬浮效果 */
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 各个卡片的具体样式保持不变 */
.card-style-1 {
    /* 1. 背景：CRT 扫描线效果 */
    background:
        linear-gradient(
            135deg,
            #000000 0%,   /* 纯黑 */
            #0a0a0a 25%,  /* 深灰 */
            #1a1a1a 50%,  /* 中灰 */
            #0a0a0a 75%,  /* 回深 */
            #000000 100%  /* 纯黑 */
        ),
        repeating-linear-gradient(
            0deg,
            rgba(0, 200, 255, 0.05) 0px,  /* 蓝色扫描线 */
            rgba(0, 200, 255, 0.05) 1px,
            transparent 1px,
            transparent 3px
        ); /* 扫描线 */

    background-blend-mode: overlay;

    /* 2. 边框：CRT 荧光蓝边框 */
    border: solid 2px transparent;
    border-image: linear-gradient(
        45deg,
        #00a8ff,   /* 亮蓝色 */
        #0097e6,   /* 中蓝色 */
        #00d2ff    /* 青色 */
    ) 1;
    box-shadow:
        0 0 15px rgba(0, 168, 255, 0.5),
        inset 0 0 15px rgba(0, 168, 255, 0.3);

    /* 3. 文字色变量 - 蓝色系 */
    --text-color: #00a8ff;      /* CRT 蓝 */
    --title-color: #00d2ff;     /* 亮青色 */
    --center-color: #ffffff;    /* 扫描线白 */

    /* 4. 悬浮效果 - CRT 蓝色闪烁 */
    transition: transform .25s cubic-bezier(.25,.8,.25,1),
                filter .25s,
                box-shadow .25s;
    will-change: transform, filter, box-shadow;
}
.card-style-1:hover {
    transform: translateY(-4px);
    filter: brightness(1.3);
    box-shadow:
        0 0 25px rgba(0, 168, 255, 0.8),
        inset 0 0 20px rgba(0, 168, 255, 0.5);
}


/*张景贺*/
.card-style-2{
    background: linear-gradient(135deg, #0a0a0f 0%, #0c1b3a 33%, #1e0045 66%, #55001e 100%);
    border: solid 2px transparent;
    border-image: linear-gradient(45deg, #ff0000,#c961ff, #0772ff) 1;
    --text-color:#ff073a;
    --title-color:#c961ff;
    --center-color:#00eeff;
    transition: transform .25s cubic-bezier(.25,.8,.25,1), filter .25s;
    will-change: transform, filter;
}
.card-style-2:hover{
    transform: translateY(-4px);
    filter: brightness(1.2);
}

/*栗鹏*/
.card-style-3{
    background: linear-gradient(90deg, #c96f37 0%, #3e444c 50%, #102a43 75%, #0c0c0c 100%);
    border: solid 2px transparent;
    border-image: linear-gradient(90deg, #ffd400, #3e444c, #102a43) 1;
    --text-color:#ffd400;
    --title-color: #102a43;
    --center-color:#ffd400;
    transition:filter .3s;
}
.card-style-3:hover{
    filter:contrast(1.15) brightness(1.1);
}



/*张盈盈*/
.card-style-4 {
    background: linear-gradient(135deg, #ff85a2 0%, #ffb7c5 30%, #c79fff 65%, #a7d7ff 100%);
    border: solid 3px transparent;
    border-image: linear-gradient(45deg, #ff85a2, #c79fff, #a7d7ff) 1;
    --text-color: #ff698b;
    --title-color: #0059ff;
    --center-color: #a7d7ff;
    transition: all .3s;
}
.card-style-4:hover{
    transform: translateY(-3px);
    filter: brightness(1.15) drop-shadow(0 0 8px #ff85a2aa);
}

/*假面骑士限定*/
.card-style-6 {
    background: linear-gradient(135deg, #0a0a0a 0%, #e60012 45%, #ffffff 100%);
    border: solid 3px transparent;
    border-image: linear-gradient(45deg, #0a0a0a, #e60012, #ffffff) 1;
    --text-color: #ffffff;
    --title-color: #e60012;
    --center-color: #fcec02;
    transition: all .3s;
}
.card-style-6:hover {
    transform: translateY(-3px);
    filter: brightness(1.15) drop-shadow(0 0 8px #e60012aa);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .category-grid.five-cards-layout {
        grid-template-columns: repeat(4, 1fr); /* 改为4列 */
    }

    .category-grid.five-cards-layout > .category-card:nth-child(1),
    .category-grid.five-cards-layout > .category-card:nth-child(2) {
        grid-column: span 2;
    }

    .category-grid.five-cards-layout > .category-card:nth-child(3) {
        grid-column: 1 / span 2; /* 第三卡片移到第二行左边 */
    }

    .category-grid.five-cards-layout > .category-card:nth-child(4) {
        grid-column: 3 / span 2; /* 第四卡片移到第二行右边 */
    }

    .category-grid.five-cards-layout > .category-card:nth-child(5) {
        grid-column: 2 / span 2; /* 第五卡片单独一行居中 */
    }
}

@media (max-width: 768px) {
    .family-wrapper {
        margin: 80px auto;
        padding: 30px 20px;
    }

    .category-grid.five-cards-layout {
        grid-template-columns: 1fr; /* 移动设备显示1列 */
        gap: 1rem;
    }

    .category-grid.five-cards-layout > .category-card {
        grid-column: 1 !important; /* 所有卡片占满整行 */
        height: 200px;
    }

    .card-center {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .family-wrapper {
        margin: 60px auto;
        padding: 20px 15px;
    }

    .category-card {
        height: 180px;
        padding: 1.2rem;
    }

    .card-center {
        font-size: 50px;
    }
}


