
* { margin: 0; padding: 0; box-sizing: border-box; }

.anime-detail-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-main);
}

/* 粒子背景 */
/* 雪花飘落效果 */
.anime-detail-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(3px 3px at 10px 20px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 30px 60px, rgba(255,255,255,0.6), transparent),
        radial-gradient(4px 4px at 60px 10px, rgba(255,255,255,0.5), transparent),
        radial-gradient(3px 3px at 80px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(4px 4px at 120px 40px, rgba(255,255,255,0.6), transparent);
    background-size: 150px 150px;
    background-position: 0 0, 40px 60px, 80px 20px, 120px 40px, 10px 100px;
    background-repeat: repeat;
    animation: snow 14s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes snow {
    0% { background-position: 0 0, 40px 60px, 80px 20px, 120px 40px, 10px 100px; }
    100% { background-position: 0 150px, 40px 210px, 80px 170px, 120px 190px, 10px 250px; }
}

/* 顶部导航 */
.anime-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 15px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(13, 13, 26, 0) 0%, rgba(13, 13, 26, 0) 100%) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur, 14px));
    backdrop-filter: blur(var(--glass-blur, 14px));
    border-bottom: 1px solid rgba(255,107,157,0.1);
}

/* 导航内容容器 - 限制最大宽度并居中 */
.anime-topbar-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 超大屏幕优化 */
@media (min-width: 1600px) {
    .anime-topbar { padding: 15px 80px; }
}

.anime-topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.anime-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid rgba(255,107,157,0.3);
    border-radius: 25px;
    color: var(--neon-pink);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.anime-back-btn:hover {
    background: rgba(255,107,157,0.1);
    box-shadow: 0 0 20px rgba(255,107,157,0.3);
}
.anime-topbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.anime-topbar-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
}
.anime-topbar-logo-text {
    display: flex;
    flex-direction: column;
}
.anime-topbar-logo-name {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.anime-topbar-logo-desc {
    font-size: 11px;
    color: var(--text-sub);
    opacity: 0.8;
}
.anime-topbar-right {
    display: flex;
    gap: 10px;
}
.anime-topbar-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: none;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}
.anime-topbar-btn:hover {
    box-shadow: 0 5px 25px rgba(255,107,157,0.5);
    transform: translateY(-2px);
}

/* 主内容 */
.anime-detail-main {
    position: relative;
    z-index: 1;
    padding: 100px 30px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 商品布局 - 左右分栏 */
.anime-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

/* 左侧 - 商品图片 */
.anime-detail-left {
    position: sticky;
    top: 100px;
    align-self: start;
    min-width: 0;
}
.anime-cover-box {
    position: relative;
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(255,107,157,0.2);
}
.anime-cover-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.anime-cover-box img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.anime-cover-box::before {
    pointer-events: none;
}
.anime-cover-img {
    cursor: pointer;
}
.anime-cover-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(13,13,26,0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.25s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
}
.anime-cover-box:hover .anime-cover-arrow { opacity: 1; }
.anime-cover-arrow:hover {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    box-shadow: 0 0 18px rgba(255,107,157,0.45);
}
.anime-cover-arrow.prev {
    left: 16px;
}
.anime-cover-arrow.next {
    right: 16px;
}
.anime-gallery-single .anime-cover-arrow {
    display: none;
}
.anime-gallery-counter {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    padding: 5px 12px;
    border-radius: 14px;
    background: rgba(13,13,26,0.55);
    color: #fff;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.25s;
}
.anime-cover-box:hover .anime-gallery-counter { opacity: 1; }
.anime-thumbs-wrap {
    position: relative;
    margin-top: 14px;
    padding: 0 38px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.anime-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.anime-thumbs::-webkit-scrollbar {
    display: none;
}
.anime-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.14);
    background: var(--card-bg);
    transition: all 0.25s;
}
.anime-thumb.active {
    border-color: var(--neon-pink);
    box-shadow: 0 0 18px rgba(255,107,157,0.35);
}
.anime-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.anime-thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(13,13,26,0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}
.anime-thumb-arrow.prev {
    left: 0;
}
.anime-thumb-arrow.next {
    right: 0;
}
.anime-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.88);
    display: none;
    align-items: center;
    justify-content: center;
}
.anime-gallery-lightbox.show {
    display: flex;
}
.anime-gallery-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.55);
    user-select: none;
}
.anime-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
    line-height: 1;
    opacity: .86;
}
.anime-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}
.anime-lightbox-arrow.prev {
    left: 18px;
}
.anime-lightbox-arrow.next {
    right: 18px;
}
.anime-lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    background: rgba(0,0,0,0.45);
    padding: 5px 14px;
    border-radius: 14px;
}
.anime-cover-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 5px 20px rgba(255,107,107,0.4);
    z-index: 3;
}

/* 发货类型徽章 */
.anime-delivery-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}
.anime-delivery-badge.auto {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    box-shadow: 0 0 20px rgba(0,212,255,0.6), 0 0 40px rgba(0,212,255,0.3);
    animation: detailAutoPulse 1.5s ease-in-out infinite;
}
@keyframes detailAutoPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 20px rgba(0,212,255,0.6), 0 0 40px rgba(0,212,255,0.3);
    }
    50% { 
        transform: scale(1.08); 
        box-shadow: 0 0 30px rgba(0,212,255,1), 0 0 60px rgba(0,212,255,0.6), 0 0 100px rgba(0,212,255,0.3);
    }
}
.anime-delivery-badge.manual {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: 0 0 20px rgba(255,152,0,0.6), 0 0 40px rgba(255,152,0,0.3);
    animation: detailManualPulse 2s ease-in-out infinite;
}
@keyframes detailManualPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        box-shadow: 0 0 20px rgba(255,152,0,0.6), 0 0 40px rgba(255,152,0,0.3);
    }
    25% { transform: scale(1.05) rotate(-3deg); }
    50% { 
        transform: scale(1.1) rotate(0deg); 
        box-shadow: 0 0 30px rgba(255,152,0,1), 0 0 60px rgba(255,152,0,0.6), 0 0 100px rgba(255,152,0,0.3);
    }
    75% { transform: scale(1.05) rotate(3deg); }
}


