body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* 内容板块基础样式 */
.content-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.content-section.alt {
    background-color: #ffffff;
}

.content-section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.content-section-header h2 {
    font-size: 2.5rem;
    margin: 0;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.content-section-header h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 3px;
}

.content-section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 15px auto 0;
}

/* 卡片容器样式 - 保持原有Grid布局 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    align-items: stretch;
}

/* =========================================
   沉浸式卡片样式 - 全图覆盖设计
   ========================================= */

.card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #2c2c2c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    min-height: 400px; /* 确保卡片有足够高度 */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* 卡片内的链接包裹整个卡片 */
.card > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* 背景图片层 - 全覆盖 */
.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

/* 分类标签 - 眉题形式 */
/* 分类标签 - 眉题形式（标题上方） */
.card-badge,
.card-badge-artwork,
.card-badge-other {
    display: block;  /* 🔥 改为block确保显示 */
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.8);
    /* 清除可能的旧样式 */
    position: relative;
    top: auto;
    right: auto;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.card-badge {
    color: #a688fa;  /* 淡紫色 - 设定集 */
}

.card-badge-artwork {
    color: #ff9f7f;  /* 淡橙色 - 画集 */
}

.card-badge-other {
    color: #39C5BB;  /* 青绿 - 其他 */
}

/* 底部渐变遮罩与内容区 */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.85) 30%,
        rgba(0, 0, 0, 0.6) 60%, 
        rgba(0, 0, 0, 0) 100%);
    padding: 100px 20px 20px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.4s ease;
}

/* hover时扩展渐变遮罩范围 */
.card:hover .card-content {
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.9) 40%,
        rgba(0, 0, 0, 0.7) 70%, 
        rgba(0, 0, 0, 0.1) 100%);
}

/* 文字内容包裹 */
.card-text {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.card:hover .card-text {
    transform: translateY(-10px);
}

/* 标题样式 */
.card-title {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* 🔥 改为1行 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 描述/副标题样式 */
.card-description {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    /* 🔥 改为1行 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 详情描述 - 默认隐藏，hover时滑入 */
.card-detail {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
    height: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(12px);
    transition: height 0.4s ease, max-height 0.4s ease, opacity 0.35s ease, transform 0.4s ease, margin 0.4s ease;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* hover时详情描述滑入显现 */
.card:hover .card-detail {
    height: 11em;
    max-height: 11em;
    opacity: 1;
    transform: translateY(0);
    margin: 8px 0 12px 0;
}

/* 底部元数据区域 */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    /* 移除原有的绝对定位和白色背景 */
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto;
    background-color: transparent;
}

/* 评分样式 */
.card-rating {
    color: #f1c40f;
    font-size: 1rem;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.card-rating span {
    margin-left: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* 暂无评分样式 */
.card-rating .no-rating,
.no-rating {
    color: rgba(255, 255, 255, 0.5);
}

/* 浏览量样式 */
.card-views {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 查看更多按钮 */
.view-more-container {
    text-align: center;
    margin-top: 50px;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.view-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.view-more-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s ease;
}

.view-more-btn:active::after {
    transform: scale(2);
    opacity: 0;
    transition: 0s;
}

/* 去除链接下划线 */
a {
    text-decoration: none;
    color: inherit;
}

/* ===== 3D角色卡片效果 ===== */
.char3d-section {
    position: relative;
    perspective: 1500px;
    padding-bottom: 40px;
}

.char3d-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

:root {
    --transition-3d: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    --text-shadow-3d: 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

.char3d-card-wrapper {
    position: relative;
    width: 300px;
    height: 450px;
    transition: var(--transition-3d);
    cursor: pointer;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.char3d-card {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: var(--transition-3d);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    will-change: transform;
}

.char3d-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-position: center;
    background-size: cover;
    border-radius: 15px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: var(--transition-3d);
}

.char3d-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    transition: var(--transition-3d);
}

.char3d-content {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
    z-index: 10; 
    color: #fff;
    text-align: center;
    transition: var(--transition-3d);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(0);
}

.char3d-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: var(--text-shadow-3d);
    color: #f5d742;
    transition: var(--transition-3d);
    white-space: nowrap;
    z-index: 4;
    transform: scale(1) translateX(0);
    width: 100%;
    text-align: center;
}

.char3d-author {
    font-size: 18px;
    color: #fff;
    margin: 0 0 10px 0;
    opacity: 0.9;
    transition: var(--transition-3d);
    text-shadow: var(--text-shadow-3d);
    z-index: 4;
    transform: scale(1) translateX(0);
    width: 100%;
    text-align: center;
}

.char3d-character {
    position: absolute;
    height: 110%;
    transform: translateZ(50px) translateX(-50%);
    left: 50%;
    bottom: -20px;
    opacity: 0;
    transition: var(--transition-3d);
    z-index: 3;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    transform-style: preserve-3d;
}

.char3d-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
                              rgba(255, 255, 255, 0.2) 0%, 
                              rgba(0, 0, 0, 0) 70%);
    opacity: 0;
    transition: var(--transition-3d);
    pointer-events: none;
    z-index: 2;
}

/* 3D卡片悬停效果 */
.char3d-card-wrapper:hover .char3d-card {
    transform: rotateX(25deg) translateZ(0);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.char3d-card-wrapper:hover .char3d-front::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%);
}

.char3d-card-wrapper:hover .char3d-character {
    opacity: 1;
    transform: translateZ(100px) translateX(-50%);
}

.char3d-card-wrapper:hover .char3d-content {
    bottom: 50%;
    transform: translateY(50%) translateZ(120px) translateX(0);
}

.char3d-card-wrapper:hover .char3d-title {
    transform: scale(1.3) translateX(0);
    opacity: 1;
}

.char3d-card-wrapper:hover .char3d-author {
    transform: scale(1.15) translateX(0);
    opacity: 1;
    margin-top: 5px;
}

.char3d-card-wrapper:hover .char3d-glow {
    opacity: 1;
}

/* ===== 设定合集更多按钮样式 ===== */
.char3d-more-container {
    text-align: center;
    margin: 25px 0 0 0;
    position: relative;
}

.char3d-more-btn {
    display: inline-block;
    padding: 14px 35px;
    background: #333333;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1.2px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.char3d-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.char3d-more-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: #222222;
}

.char3d-more-btn:hover::before {
    left: 100%;
}

.char3d-more-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.1s ease;
}

/* ========================================
   响应式布局 - 移动端双列优化版
   ======================================== */

/* 平板端优化 (768px - 991px) */
@media (max-width: 991px) {
    .content-section {
        padding: 60px 0;
    }
    
    .content-section-header h2 {
        font-size: 2.2rem;
    }
    
    /* 平板端保持原有布局 */
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
        padding: 0 25px;
    }
    
    /* 沉浸式卡片平板端调整 */
    .card {
        min-height: 360px;
    }
    
    .card-content {
        padding: 80px 18px 18px 18px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
    
    .card-badge,
    .card-badge-artwork,
    .card-badge-other {
        font-size: 11px;
    }
    
    .view-more-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
    
    /* 3D卡片平板端调整 */
    .char3d-container {
        gap: 40px;
    }
    
    .char3d-more-container {
        margin: 20px 0 15px 0;
    }
    
    .char3d-more-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* 小平板/大手机 (480px - 767px) */
@media (max-width: 767px) {
    .content-section {
        padding: 50px 0;
    }
    
    .content-section-header h2 {
        font-size: 2rem;
    }
    
    /* 🔥 关键修改：改为2列布局 */
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    /* 沉浸式卡片小平板调整 */
    .card {
        min-height: 300px;
        border-radius: 12px;
    }

    /* 移动端不显示详情描述 */
    .card-detail {
        display: none !important;
    }

    /* 移动端取消卡片 hover 效果 */
    .card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    .card:hover .card-image img {
        transform: none;
    }
    .card:hover .card-content {
        background: linear-gradient(to top, 
            rgba(0, 0, 0, 0.95) 0%, 
            rgba(0, 0, 0, 0.85) 30%,
            rgba(0, 0, 0, 0.6) 60%, 
            rgba(0, 0, 0, 0) 100%);
    }
    .card:hover .card-text {
        transform: translateY(0);
    }
    
    .card-content {
        padding: 60px 14px 14px 14px;
    }
    
    .card-title {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }
    
    .card-description {
        font-size: 0.8rem;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }
    
    .card-meta {
        padding-top: 10px;
        font-size: 11px;
    }
    
    .card-rating {
        font-size: 0.9rem;
    }
    
    .card-rating span {
        font-size: 0.75rem;
    }
    
    .card-views {
        font-size: 0.75rem;
    }
    
    .card-badge,
    .card-badge-artwork,
    .card-badge-other {
        font-size: 10px;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }
    
    .view-more-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
    
    /* 3D卡片调整 */
    .char3d-container {
        gap: 20px;
        padding: 30px 15px;
    }
    
    .char3d-card-wrapper {
        width: 250px;
        height: 375px;
    }
    
    .char3d-title {
        font-size: 22px;
    }
    
    .char3d-author {
        font-size: 16px;
    }
    
    .char3d-more-container {
        margin: 20px 0 15px 0;
    }
    
    .char3d-more-btn {
        padding: 11px 28px;
        font-size: 0.85rem;
        border-radius: 6px;
    }
}

/* 手机端优化 (最大480px) */
@media (max-width: 480px) {
    .content-section {
        padding: 40px 0;
    }
    
    .content-section-header {
        margin-bottom: 30px;
    }
    
    .content-section-header h2 {
        font-size: 1.8rem;
        padding-bottom: 10px;
    }
    
    .content-section-header h2::after {
        width: 60px;
        height: 2px;
    }
    
    /* 🔥 关键修改：手机端也是2列 */
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }
    
    /* 沉浸式卡片手机端调整 */
    .card {
        min-height: 260px;
        border-radius: 10px;
    }
    
    .card-content {
        padding: 50px 12px 12px 12px;
    }
    
    .card-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
        -webkit-line-clamp: 2;
    }
    
    .card-description {
        font-size: 0.75rem;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
        line-height: 1.4;
    }
    
    .card-meta {
        padding-top: 8px;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .card-rating {
        font-size: 0.85rem;
    }
    
    .card-rating span {
        font-size: 0.7rem;
    }
    
    .card-views {
        font-size: 0.7rem;
    }
    
    .card-badge,
    .card-badge-artwork,
    .card-badge-other {
        font-size: 9px;
        letter-spacing: 0.5px;
        margin-bottom: 5px;
    }
    
    .view-more-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
        width: 90%;
        max-width: 250px;
    }
    
    .view-more-container {
        margin-top: 30px;
    }
    
    /* 🔥 3D卡片手机端优化 */
    .char3d-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 20px 12px;
    }
    
    .char3d-card-wrapper {
        width: 100% !important;
        height: 240px;
    }
    
    .char3d-title {
        font-size: 16px;
        white-space: normal;
        line-height: 1.2;
    }
    
    .char3d-author {
        font-size: 13px;
    }
    
    .char3d-character {
        height: 100%;
    }
    
    .char3d-more-container {
        margin: 15px 0 10px 0;
    }
    
    .char3d-more-btn {
        padding: 10px 25px;
        font-size: 0.8rem;
        width: 85%;
        max-width: 200px;
    }
}

/* 🔥 超小屏幕（320px - 360px）额外优化 */
@media (max-width: 360px) {
    .content-section {
        padding: 35px 0;
    }
    
    .content-section-header h2 {
        font-size: 1.6rem;
    }
    
    .card-container {
        gap: 10px;
        padding: 0 10px;
    }
    
    /* 沉浸式卡片超小屏幕调整 */
    .card {
        min-height: 220px;
        border-radius: 8px;
    }
    
    .card-content {
        padding: 40px 10px 10px 10px;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    .card-description {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    
    .card-meta {
        padding-top: 6px;
    }
    
    .card-badge,
    .card-badge-artwork,
    .card-badge-other {
        font-size: 8px;
    }
    
    .view-more-btn {
        width: 95%;
    }
    
    /* 3D卡片超小屏幕调整 */
    .char3d-card-wrapper {
        width: 100% !important;
        height: 220px;
    }
    
    .char3d-title {
        font-size: 14px;
    }
    
    .char3d-author {
        font-size: 12px;
    }
}