/* 作品集新布局 - 瀑布流 + 增强视觉 */

/* ========== 页面头部 V2 ========== */
.page-header-v2 {
    position: relative;
    padding: 8rem 0 3rem;
    background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
    overflow: hidden;
}

.page-header-v2 .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.header-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

/* 左侧标题区 */
.header-left {
    position: relative;
}

.page-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-hand);
    font-size: 1.3rem;
    color: var(--orange);
    margin-bottom: 1rem;
    transform: rotate(-2deg);
}

.label-icon {
    font-size: 1.5rem;
    animation: iconWiggle 2s ease-in-out infinite;
}

@keyframes iconWiggle {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-line.highlight {
    position: relative;
    display: inline-block;
    color: var(--purple);
}

.title-underline {
    position: absolute;
    bottom: -5px;
    left: -10px;
    right: -10px;
    width: calc(100% + 20px);
    height: 20px;
    z-index: -1;
}

.page-desc {
    font-family: var(--font-hand);
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 右侧统计卡片 */
.header-right {
    display: flex;
    justify-content: flex-end;
}

.stats-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 6px 6px 0 var(--black);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: cardPopIn 0.6s ease-out backwards;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
    margin-left: 2rem;
}

@keyframes cardPopIn {
    0% {
        opacity: 0;
        transform: translateX(50px) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

.stat-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0 var(--black);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--purple);
    line-height: 1;
}

.stat-label {
    font-weight: 700;
    color: var(--text-secondary);
}

.stat-icon {
    font-size: 2rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* ========== 筛选区 ========== */
.filter-section {
    position: relative;
    padding-top: 2rem;
    border-top: 2px dashed var(--purple-light);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.filter-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-light), transparent);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.filter-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--purple);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: 0;
}

.filter-tag:hover {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: 4px 4px 0 var(--black);
}

.filter-tag.active {
    background: var(--purple);
    color: var(--white);
    box-shadow: 4px 4px 0 var(--black);
}

.filter-tag.active::before {
    transform: scaleX(1);
}

.filter-tag span {
    position: relative;
    z-index: 1;
}

.tag-icon {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-tag:hover .tag-icon {
    transform: scale(1.3) rotate(-10deg);
}

.filter-tag.active .tag-icon {
    transform: scale(1.1);
}

/* 筛选按钮入场动画 */
@keyframes filterAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.filter-appear {
    animation: filterAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

/* ========== 装饰角色 V2 ========== */
.header-characters-v2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.header-characters-v2 .header-character {
    position: absolute;
    transform: scale(0.6);
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.header-characters-v2 .header-character.character-purple {
    left: 2%;
    top: 15%;
    animation: gentleFloat 6s ease-in-out infinite;
}

.header-characters-v2 .header-character.character-orange {
    right: 8%;
    top: 25%;
    animation: gentleFloat 7s ease-in-out infinite 0.5s;
}

.header-characters-v2 .header-character.character-black {
    right: 3%;
    bottom: 20%;
    animation: gentleFloat 5s ease-in-out infinite 1s;
}

@keyframes gentleFloat {
    0%, 100% { transform: scale(0.6) translate(0, 0) rotate(0deg); }
    25% { transform: scale(0.6) translate(10px, -15px) rotate(2deg); }
    50% { transform: scale(0.6) translate(-5px, -25px) rotate(-1deg); }
    75% { transform: scale(0.6) translate(-15px, -10px) rotate(1deg); }
}

/* ========== 瀑布流作品区 ========== */
.portfolio-masonry {
    padding: 4rem 0 6rem;
    position: relative;
}

.masonry-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* 不同高度的卡片，营造瀑布流效果 - 柔和风格 */
.work-card-v2 {
    background: var(--white);
    border: none;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, box-shadow;
    box-shadow:
        0 4px 20px rgba(139, 92, 246, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.work-card-v2.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-card-v2.visible:nth-child(3n+1) {
    transform: translateY(0) rotate(-0.5deg);
}

.work-card-v2.visible:nth-child(3n+2) {
    transform: translateY(15px) rotate(0.5deg);
}

.work-card-v2.visible:nth-child(3n) {
    transform: translateY(8px) rotate(-0.3deg);
}

.work-card-v2:hover {
    transform: translateY(-8px) rotate(0deg) scale(1.02) !important;
    box-shadow:
        0 20px 40px rgba(139, 92, 246, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

/* 卡片柔和渐变边框效果 */
.work-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.15) 0%,
        rgba(249, 115, 22, 0.1) 50%,
        rgba(250, 204, 21, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.work-card-v2:hover::before {
    opacity: 1;
}

/* 卡片内部柔和光晕效果 */
.work-card-v2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.6) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 28px;
    z-index: 1;
}

.work-card-v2:hover::after {
    opacity: 1;
}

/* 卡片装饰 - 柔和风格 */
.card-decoration-v2 {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card-v2:hover .card-decoration-v2 {
    transform: scale(1.1) !important;
}

.deco-circle-v2 {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.8) 0%, rgba(251, 191, 36, 0.6) 100%);
    border: none;
    border-radius: 50%;
    top: 16px;
    right: 16px;
    animation: decorationPulse 4s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
    backdrop-filter: blur(4px);
}

.work-card-v2:hover .deco-circle-v2 {
    animation: decorationPulseFast 2s ease-in-out infinite;
    transform: scale(1.2) translateY(-4px);
}

.deco-triangle-v2 {
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 32px solid rgba(244, 114, 182, 0.6);
    bottom: 100px;
    left: 16px;
    animation: decorationWiggle 5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(244, 114, 182, 0.2));
}

.deco-zigzag-v2 {
    width: 36px;
    height: 10px;
    background: repeating-linear-gradient(
        45deg,
        rgba(34, 211, 238, 0.5),
        rgba(34, 211, 238, 0.5) 4px,
        transparent 4px,
        transparent 8px
    );
    top: 50%;
    right: 16px;
    animation: decorationFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(34, 211, 238, 0.15));
}

@keyframes decorationPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes decorationPulseFast {
    0%, 100% { transform: scale(1.1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes decorationWiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes decorationFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* 悬停时装饰更活跃 */
.work-card-v2:hover .deco-triangle-v2 {
    animation-duration: 3s;
    transform: translateX(5px);
}

.work-card-v2:hover .deco-zigzag-v2 {
    animation-duration: 3s;
}

/* 图片区域 - 柔和风格 */
.work-image-wrapper-v2 {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(254, 249, 231, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 28px 28px 0 0;
}

.work-card-v2:nth-child(2n) .work-image-wrapper-v2 {
    aspect-ratio: 4/3;
}

.work-card-v2:nth-child(3n) .work-image-wrapper-v2 {
    aspect-ratio: 3/2;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card-v2:hover .work-image {
    transform: scale(1.08);
}

/* 图片覆盖层 - 柔和渐变效果 */
.work-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(139, 92, 246, 0) 0%,
        rgba(139, 92, 246, 0.3) 50%,
        rgba(139, 92, 246, 0.6) 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.work-card-v2:hover .work-image-overlay {
    opacity: 1;
}

.view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--purple);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.work-card-v2:hover .view-project-btn {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.view-project-btn:hover {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.4);
}

/* 图片占位 - 增强版 */
.work-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--orange-light) 50%, var(--yellow) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.work-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.15) 20px,
        rgba(255, 255, 255, 0.15) 40px
    );
    animation: placeholderMove 15s linear infinite;
}

.work-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

@keyframes placeholderMove {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.placeholder-icon {
    font-size: 4.5rem;
    z-index: 1;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* 内容区域 - 柔和风格 */
.work-content-v2 {
    padding: 1.5rem;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 249, 231, 0.4) 100%);
    z-index: 2;
}

.work-card-v2:hover .work-content-v2 {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(254, 249, 231, 0.6) 100%);
}

.work-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.work-category-v2 {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.875rem;
    background: linear-gradient(135deg, rgba(217, 249, 157, 0.8) 0%, rgba(190, 242, 100, 0.6) 100%);
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--black);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(190, 242, 100, 0.3);
}

.work-card-v2:hover .work-category-v2 {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(190, 242, 100, 0.4);
}

.work-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding-left: 0.75rem;
}

.work-date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, var(--purple-light), var(--orange-light));
    border-radius: 50%;
}

.work-title-v2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.work-card-v2:hover .work-title-v2 {
    color: var(--purple);
}

.work-description-v2 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.work-card-v2:hover .work-description-v2 {
    color: var(--text-primary);
}

/* 卡片底部 - 柔和样式 */
.work-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    transition: border-color 0.3s ease;
}

.work-card-v2:hover .work-footer {
    border-top-color: rgba(139, 92, 246, 0.2);
}

.work-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.work-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 10px;
    color: var(--purple);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.work-tag:hover {
    background: var(--purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.work-arrow {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(45, 45, 68, 0.8) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.work-card-v2:hover .work-arrow {
    background: linear-gradient(135deg, var(--orange) 0%, rgba(251, 146, 60, 0.9) 100%);
    transform: translateX(4px) rotate(45deg);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

/* 角色探头 - 柔和版，不覆盖文字，在图片区域顶部 */
.character-peek-v2 {
    position: absolute;
    top: -25px;
    z-index: 15;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.work-card-v2:hover .character-peek-v2 {
    top: -15px;
}

.character-peek-v2 .character {
    transform: scale(0.35);
    margin: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card-v2:hover .character-peek-v2 .character {
    transform: scale(0.35) translateY(5px);
}

/* 每个角色不同的位置和动画 */
.peek-purple { right: 8px; transition-delay: 0s; }
.peek-orange { right: 45px; transition-delay: 0.05s; }
.peek-black { right: 82px; transition-delay: 0.1s; }
.peek-yellow { right: 118px; transition-delay: 0.15s; }

.work-card-v2:hover .peek-purple { transform: scale(0.35) translateY(5px) rotate(-5deg); }
.work-card-v2:hover .peek-orange { transform: scale(0.35) translateY(8px) rotate(3deg); }
.work-card-v2:hover .peek-black { transform: scale(0.35) translateY(4px) rotate(-2deg); }
.work-card-v2:hover .peek-yellow { transform: scale(0.35) translateY(10px) rotate(4deg); }

/* ========== 加载更多 ========== */
.load-more-section {
    text-align: center;
    padding: 4rem 0;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 249, 231, 0.8) 100%);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    cursor: pointer;
    box-shadow:
        0 4px 16px rgba(139, 92, 246, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-load-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    border-radius: 50%;
}

.btn-load-more:hover::before {
    width: 300px;
    height: 300px;
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.9) 0%, rgba(254, 240, 138, 0.8) 100%);
}

.btn-load-more:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.btn-load-more:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-icon {
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-load-more:hover .btn-icon {
    transform: translateY(3px) scale(1.1);
}

.btn-load-more .btn-icon.spinning {
    animation: iconSpin 1s linear infinite;
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== 空状态 ========== */
.empty-state-v2 {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 249, 231, 0.8) 100%);
    border: none;
    border-radius: 32px;
    position: relative;
    box-shadow:
        0 4px 20px rgba(139, 92, 246, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: emptyBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

@keyframes emptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state-v2 h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.empty-state-v2 p {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ========== 浮动装饰 ========== */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.float-shape {
    position: absolute;
    opacity: 0.1;
}

.float-shape.shape-1 {
    width: 100px;
    height: 100px;
    background: var(--purple);
    border-radius: 50%;
    left: 10%;
    top: 20%;
    animation: floatShape 20s ease-in-out infinite;
}

.float-shape.shape-2 {
    width: 60px;
    height: 60px;
    background: var(--orange);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    right: 15%;
    top: 40%;
    animation: floatShape 25s ease-in-out infinite 2s;
}

.float-shape.shape-3 {
    width: 80px;
    height: 80px;
    background: var(--yellow);
    border: 4px solid var(--black);
    left: 5%;
    bottom: 30%;
    animation: floatShape 22s ease-in-out infinite 1s;
}

.float-shape.shape-4 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--pink);
    right: 10%;
    bottom: 20%;
    animation: floatShape 18s ease-in-out infinite 3s;
}

.float-shape.shape-5 {
    width: 50px;
    height: 50px;
    background: var(--cyan);
    left: 50%;
    top: 60%;
    transform: rotate(45deg);
    animation: floatShapeRotate 15s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, -50px) rotate(180deg); }
    75% { transform: translate(-40px, -20px) rotate(270deg); }
}

@keyframes floatShapeRotate {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(0, -100px) rotate(225deg); }
}

/* ========== 页面加载动画 ========== */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-scene {
    text-align: center;
}

.loading-characters {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.loading-char {
    width: 50px;
    height: 70px;
    border: 3px solid var(--black);
    border-radius: 25px;
    animation: loadingBounce 0.6s ease-in-out infinite;
}

.loading-char-purple {
    background: var(--purple);
    height: 80px;
    animation-delay: 0s;
}

.loading-char-orange {
    background: var(--orange);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation-delay: 0.1s;
}

.loading-char-black {
    background: var(--black);
    animation-delay: 0.2s;
}

.loading-char-yellow {
    background: var(--yellow);
    border-radius: 40% 60% 50% 50%;
    animation-delay: 0.3s;
}

@keyframes loadingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.loading-text {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    color: var(--purple);
    font-weight: 700;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .header-right {
        justify-content: center;
    }

    .stats-cards {
        flex-direction: row;
    }

    .stat-card:nth-child(2) {
        margin-left: 0;
    }

    .masonry-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header-v2 {
        padding: 6rem 0 2rem;
    }

    .stats-cards {
        flex-direction: column;
    }

    .filter-tags {
        gap: 0.5rem;
    }

    .filter-tag {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
        border-width: 2px;
    }

    .masonry-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .work-card-v2 {
        border-radius: 24px;
    }

    .work-card-v2:hover {
        transform: translateY(-4px) !important;
    }

    .work-image-wrapper-v2 {
        border-radius: 24px 24px 0 0;
    }

    .character-peek-v2 {
        top: -20px;
    }

    .work-card-v2:hover .character-peek-v2 {
        top: -10px;
    }

    .character-peek-v2 .character {
        transform: scale(0.3);
    }

    .work-card-v2:hover .character-peek-v2 .character {
        transform: scale(0.3) translateY(3px);
    }

    .header-characters-v2 {
        display: none;
    }

    .btn-load-more {
        padding: 0.875rem 1.75rem;
    }
}

/* ========== 减少动画 ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
