/* Safari 兼容性处理：确保所有 backdrop-filter 都有对应的 -webkit-backdrop-filter */
/* Gecko/Firefox 性能优化：减少复杂渲染，增强硬件加速 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
    /* 主背景大面积模糊用静态图 */
    background: url('bg-blur.webp') center/cover no-repeat fixed, url('bg.webp') center/cover no-repeat fixed;
    /* 兼容性降级：优先用模糊图，加载完后再叠加动态背景 */
}

.marquee-outer {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    position: relative;
    max-width: 100%;
    overflow: hidden;
    height: 1.2em;
    -webkit-user-select: none;
    user-select: none;
}

.marquee-inner {
    display: inline-block;
    white-space: nowrap;
    transition: font-size 0.2s;
    will-change: transform;
    -webkit-user-select: none;
    user-select: none;
}

.marquee-inner.marquee {
    animation: marquee-x 6s linear infinite;
}

@keyframes marquee-x {

    0%,
    10% {
        transform: translateX(0);
    }

    90%,
    100% {
        transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
    }
}

@media (max-width:700px) {
    .marquee-outer {
        height: 1.1em;
    }

    .marquee-inner.marquee {
        animation: marquee-x-m 7s linear infinite;
    }

    @keyframes marquee-x-m {

        0%,
        10% {
            transform: translateX(0);
        }

        90%,
        100% {
            transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
        }
    }
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 2.2rem;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-item {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    cursor: pointer;
    transition: opacity 0.55s cubic-bezier(.68, -0.55, .27, 1.55), transform 0.55s cubic-bezier(.68, -0.55, .27, 1.55);
    transform: translateX(0) scale(1);
    -webkit-user-select: none;
    user-select: none;
}

.carousel-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.carousel-item.slide-in-right {
    animation: carousel-slide-in-right 0.55s cubic-bezier(.68, -0.55, .27, 1.55);
}

.carousel-item.slide-in-left {
    animation: carousel-slide-in-left 0.55s cubic-bezier(.68, -0.55, .27, 1.55);
}

@keyframes carousel-slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(40px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes carousel-slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-40px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    transition: box-shadow 0.4s cubic-bezier(.68, -0.55, .27, 1.55);
    -webkit-user-select: none;
    user-select: none;
}

.carousel-caption {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 0 0 18px 18px;
    padding: 1.1rem 2.2rem 1.2rem;
    width: 100%;
    color: #222;
    box-sizing: border-box;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #333;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.12);
    letter-spacing: 0.02em;
    line-height: 1.2;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-desc {
    font-size: 1.02rem;
    color: #444;
    opacity: 0.86;
    line-height: 1.35;
    max-width: 95%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-indicators {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    z-index: 20;
    gap: 8px;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    display: inline-block;
    transition: background 0.2s;
    cursor: pointer;
    opacity: 0.6;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-dot.active {
    background: #00eaff;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 234, 255, 0.23);
}

@media (max-width: 700px) {
    .carousel {
        max-width: 100%; /* 从100vw改为100%，防止出现横向滚动条 */
        height: 52vw;
        min-height: 120px;
        margin-bottom: 1.2rem;
    }

    .carousel-caption {
        padding: 0.8rem 1.2rem 0.9rem;
    }

    .carousel-title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .carousel-desc {
        font-size: 0.85rem;
    }
}

.main-title {
    font-family: 'Inter', 'Poppins', Arial, sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    letter-spacing: 0.23em;
    text-transform: uppercase;
    background: linear-gradient(100deg, #00eaff 10%, #3a8fff 40%, #a259ff 70%, #f7b731 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
    text-align: center;
    margin: 2.5rem 0;
    line-height: 1.09;
    text-shadow: 0 2px 16px rgba(58, 143, 255, 0.28), 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0.5px #fff;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.main-title::after {
    content: "";
    display: block;
    width: 60%;
    height: 6px;
    margin: 0.7em auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #00eaff 0%, #f7b731 100%);
    opacity: 0.16;
    filter: blur(1.5px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
    width: 100%;
    justify-items: center;
    align-items: start;
    -webkit-user-select: none;
    user-select: none;
}

/* 确保所有卡片的一致样式和效果 */
.card, .theme-card {
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 0.7rem 0.7rem 1rem 0.7rem;
    width: 180px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    transition:
        box-shadow 0.32s cubic-bezier(.77, 0, .18, 1.01),
        transform 0.48s cubic-bezier(.68, -0.55, .27, 1.55);
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

.card::before, .theme-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at 70% 30%, rgba(120, 180, 255, 0.18) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(.77, 0, .18, 1.01);
    z-index: 0;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.card:hover, .theme-card:hover, .card.featured-theme:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 12px 40px 0 rgba(80, 180, 255, 0.24), 0 1.5px 8px rgba(0, 0, 0, 0.12);
}

.card:hover::before, .theme-card:hover::before {
    opacity: 1;
}

.card .thumb-wrap, .theme-card .thumb-wrap, .theme-thumb {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #222;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
  position: relative;
}

/* 确保所有卡片缩略图一致的样式和悬停效果 */
.card img.thumb, .theme-card img.thumb, .theme-thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 12px;
    background: #222;
    transition: box-shadow 0.4s cubic-bezier(.68, -0.55, .27, 1.55);
    display: block;
    -webkit-user-select: none;
    user-select: none;
}

.card:hover img.thumb, .theme-card:hover img.thumb, .theme-card:hover .theme-thumb img {
    box-shadow: 0 6px 24px rgba(80, 180, 255, 0.16);
}

.card .title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #222;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.12);
    min-height: 1.7em;
    line-height: 1.18;
    word-break: break-all;
    overflow: hidden;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.card .title .marquee-outer {
    display: block;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    height: 1.2em;
    -webkit-user-select: none;
    user-select: none;
}

.card .title .marquee-inner {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.98rem;
    font-weight: 600;
    color: #225;
    letter-spacing: 0.02em;
    user-select: none;
    transition: font-size 0.2s;
    vertical-align: top;
    will-change: transform;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
    -webkit-user-select: none;
    user-select: none;
}

.card .title .marquee-inner.marquee {
    animation: author-marquee 6s linear infinite;
    font-size: 0.98rem;
    color: #225;
}

@media (max-width: 700px) {
    .card .title .marquee-outer {
        height: 1.1em;
    }
    .card .title .marquee-inner {
        font-size: 0.85rem;
    }
    .card .title .marquee-inner.marquee {
        font-size: 0.85rem;
        animation: author-marquee-m 7s linear infinite;
    }
}

.card .desc {
    font-size: 0.88rem;
    opacity: 0.8;
    margin-bottom: 0.7rem;
    color: #444;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.7em;
    min-height: 2.7em;
    word-break: break-all;
    -webkit-user-select: none;
    user-select: none;
}

.author-info-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: auto;
    cursor: pointer;
    padding-top: 0.4rem;
    padding-bottom: 0.2rem;
    user-select: none;
    transition: background 0.3s cubic-bezier(.77, 0, .18, 1.01);
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

.author-avatar-card {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    transition: box-shadow 0.3s cubic-bezier(.77, 0, .18, 1.01);
    -webkit-user-select: none;
    user-select: none;
}

.author-info-card:hover .author-avatar-card {
    box-shadow: 0 4px 16px rgba(120, 180, 255, 0.14);
}

.author-name-outer {
    display: block;
    position: relative;
    max-width: 72px;
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
    height: 1.2em;
    -webkit-user-select: none;
    user-select: none;
}

.author-name-inner {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: #336;
    letter-spacing: 0.02em;
    user-select: none;
    transition: font-size 0.2s;
    vertical-align: top;
    will-change: transform;
    -webkit-user-select: none;
    user-select: none;
}

.author-name-inner.marquee {
    animation: author-marquee 6s linear infinite;
    font-size: 0.98rem;
    color: #225;
}

@keyframes author-marquee {
    0% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(0);
    }

    90% {
        transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
    }

    100% {
        transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
    }
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.36rem;
        justify-items: center;
        align-items: start;
        justify-content: center;
        place-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0; /* 确保没有额外的padding */
    }

    #themeGrid, #authorThemes, #myThemes, #reviewedThemes, #removedThemes {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.36rem;
        justify-items: center;
        align-items: start;
        justify-content: center;
        place-items: center;
        margin: 0 auto;
        padding: 0;
    }

    .card {
        width: 95%;
        min-width: 0;
        padding: 0.5rem 0.5rem 0.7rem 0.5rem;
        box-sizing: border-box;
    }
    
    .card .desc {
        display: none !important;
    }

    .tag-glass,
    .download-link {
        font-size: 0.74rem !important;
        padding: 0.18em 0.7em !important;
        border-radius: 1em !important;
    }

    .author-name-outer {
        max-width: 48px;
    }

    .author-name-inner {
        font-size: 0.78rem;
    }

    .author-name-inner.marquee {
        font-size: 0.85rem;
        animation: author-marquee-m 7s linear infinite;
    }

    @keyframes author-marquee-m {
        0% {
            transform: translateX(0);
        }

        10% {
            transform: translateX(0);
        }

        90% {
            transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
        }

        100% {
            transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
        }
    }
    
    /* 适配更小屏幕 */
    @media (max-width: 420px) {
        .grid, #themeGrid, #authorThemes, #myThemes, #reviewedThemes, #removedThemes {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    /* 非常小的屏幕 */
    @media (max-width: 350px) {
        .grid, #themeGrid, #authorThemes, #myThemes, #reviewedThemes, #removedThemes {
            grid-template-columns: 1fr;
        }
    }
}

#modal-backdrop {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.77, 0, .18, 1.01);
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

#modal {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.92);
    pointer-events: none;
    transition:
        opacity 0.5s cubic-bezier(.77, 0, .18, 1.01),
        transform 0.55s cubic-bezier(.68, -0.55, .27, 1.55);
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1001;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #222;
    padding: 2rem;
    max-width: 800px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    visibility: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    user-select: none;
}

#modal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    visibility: visible;
}

#modal.hide {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.92);
    pointer-events: none;
    visibility: visible;
}

#modal h2,
#modal h3,
#modal p {
    color: #222;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.12);
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    gap: 0.8rem;
    width: 100%;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.author-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #336;
    letter-spacing: 0.02em;
}

.blur-btn {
    position: absolute;
    z-index: 10001;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #222;
    font-size: 1.45rem;
    cursor: pointer;
    opacity: 0.85;
    transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
    -webkit-user-select: none;
    user-select: none;
}

.blur-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    box-shadow: 0 4px 16px rgba(58, 143, 255, 0.18);
}

.blur-btn:active {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

#modal .close-btn {
    top: 18px;
    right: 18px;
    font-size: 1.3rem;
    color: #333;
}

#modal .close-btn::after {
    content: '×';
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    pointer-events: none;
}

#modal .slide-btn {
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #333;
    background: rgba(255, 255, 255, 0.22);
}

#modal .slide-btn.left {
    left: 0.5rem;
}

#modal .slide-btn.right {
    right: 0.5rem;
}

#modal .slide-btn[disabled] {
    opacity: 0.25;
    pointer-events: none;
}

@media (max-width: 700px) {

    #modal .close-btn,
    #modal .slide-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    #modal .close-btn {
        top: 8px;
        right: 8px;
    }

    #modal .slide-btn.left {
        left: 8px;
    }

    #modal .slide-btn.right {
        right: 8px;
    }
}

#modal .slide-btn:active,
#modal .slide-btn:focus,
#modal .slide-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #000;
}

.tag-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1rem 0;
    width: 100%;
}

.tag-glass {
    display: inline-block;
    padding: 0.27em 1.1em;
    font-size: 0.95em;
    color: #225;
    background: rgba(255, 255, 255, 0.20);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    border-radius: 1.2em;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 500;
    letter-spacing: 0.03em;
    user-select: none;
    transition:
        background 0.22s cubic-bezier(.68, -0.55, .27, 1.55),
        color 0.22s cubic-bezier(.68, -0.55, .27, 1.55),
        box-shadow 0.22s cubic-bezier(.68, -0.55, .27, 1.55),
        transform 0.22s cubic-bezier(.68, -0.55, .27, 1.55);
    margin-bottom: 2px;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}

.tag-glass:hover {
    background: rgba(120, 180, 255, 0.18);
    color: #003;
    box-shadow: 0 4px 16px rgba(58, 143, 255, 0.13);
    transform: scale(1.06);
}

.download-link {
    cursor: pointer;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    display: inline-block;
}

.download-link:hover {
    background: rgba(58, 143, 255, 0.18);
    color: #005f99;
    box-shadow: 0 4px 16px rgba(58, 143, 255, 0.13);
    transform: scale(1.06);
}

.modal-imgs-wrap {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    justify-content: center;
    overflow: visible;
}

.modal-imgs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    overflow-x: hidden;
    overflow-y: hidden;
    align-items: stretch;
}

.modal-imgs::-webkit-scrollbar {
    display: none;
}

.img-wrap {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 9 / 16;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    cursor: pointer;
    transition:
        box-shadow 0.3s cubic-bezier(.68, -0.55, .27, 1.55),
        transform 0.3s cubic-bezier(.68, -0.55, .27, 1.55);
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 12px;
    background: #222;
    display: block;
    transition:
        box-shadow 0.3s cubic-bezier(.68, -0.55, .27, 1.55),
        transform 0.3s cubic-bezier(.68, -0.55, .27, 1.55);
}

.img-wrap:hover img {
    box-shadow: 0 8px 24px rgba(80, 180, 255, 0.28);
    transform: scale(1.06);
}

.img-wrap.placeholder {
    background: transparent;
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

.img-wrap.placeholder::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: none;
}

@media (max-width: 700px) {
    .modal-imgs {
        display: flex;
        overflow-x: auto;
        gap: 0.6rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0.2rem 0.6rem 0.5rem 0.6rem;
        grid-template-columns: none;
    }

    .img-wrap {
        min-width: calc((100vw - 3rem) / 3);
        max-width: calc((100vw - 3rem) / 3);
        width: calc((100vw - 3rem) / 3);
        aspect-ratio: 9 / 16;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .slide-btn {
        display: none !important;
    }
}

.downloads {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
    justify-content: center;
}

#imgModal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.77, 0, .18, 1.01);
}

#imgModal.show {
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn 0.25s;
}

#bigImg {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 14px;
    background: #222;
    box-shadow: 0 8px 32px #000a;
    transition: box-shadow 0.4s cubic-bezier(.68, -0.55, .27, 1.55);
}

#imgModal .close-btn {
    top: 18px;
    right: 32px;
    font-size: 1.3rem;
    color: #333;
}

#imgModal .close-btn::after {
    content: '×';
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    pointer-events: none;
}

#imgModal .slide-btn {
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #333;
    background: rgba(255, 255, 255, 0.22);
}

#imgModal .slide-btn.left {
    left: 32px;
}

#imgModal .slide-btn.right {
    right: 32px;
}

#imgModal .slide-btn[disabled] {
    opacity: 0.25;
    pointer-events: none;
}

@media (max-width: 700px) {

    #imgModal .close-btn,
    #imgModal .slide-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    #imgModal .close-btn {
        top: 8px;
        right: 8px;
    }

    #imgModal .slide-btn.left {
        left: 8px;
    }

    #imgModal .slide-btn.right {
        right: 8px;
    }
}

#imgModal .slide-btn:active,
#imgModal .slide-btn:focus,
#imgModal .slide-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.92);
    }

    to {
        transform: scale(1);
    }
}

body,
.main-title,
.card .title,
.card .desc,
.author-info-card,
.author-name-inner,
.marquee-inner,
.carousel-caption,
.carousel-title,
.carousel-desc {
    color: #fff !important;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.38);
}

.card .title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

.card .desc {
    opacity: 0.92;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.carousel-title,
.carousel-desc {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

.author-name-inner,
.marquee-inner {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

#modal,
#modal *,
#modal h2,
#modal h3,
#modal p,
#modal .author-name,
#modal .author-info,
#modal .tag-glass,
#modal .downloads,
#modal .download-link {
    color: #fff !important;
}

#modal h2,
#modal h3,
#modal p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

#modal .tag-glass,
#modal .download-link {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.33);
}

*:focus,
*:active,
*:focus-visible,
*:visited,
*:target {
    outline: none !important;
    box-shadow: none !important;
}

html,
body,
button,
a,
input,
textarea,
div {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}

button:focus:not(:focus-visible),
.blur-btn:focus:not(:focus-visible),
.blur-btn:active,
.blur-btn:focus,
.blur-btn:focus-visible,
.blur-btn:visited {
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 700px) {
    .author-info-card {
        gap: 0.3rem !important;
        padding-top: 0.1rem !important;
        padding-bottom: 0.1rem !important;
        margin-top: 0.2rem !important;
        align-items: flex-start;
    }

    .author-avatar-card {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        border-radius: 50% !important;
        border-width: 1px !important;
        box-shadow: none !important;
    }

    .author-name-outer {
        max-width: 48px !important;
        font-size: 0.68rem !important;
        line-height: 1.1 !important;
        margin-top: -3px;
    }

    .author-name-inner {
        font-size: 0.68rem !important;
        font-weight: 500 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 420px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.36rem;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 350px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 0.24rem;
    }
}

.header-bar {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    pointer-events: none;
}

.top-btn {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border: none;
    border-radius: 50%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease;
}

.top-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.left-btn {
    margin-right: auto;
}

.right-btn {
    margin-left: auto;
}

.search-bar {
    position: fixed;
    top: 4.5rem;
    right: 1.5rem;
    width: 80%;
    max-width: 480px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
}

#searchInput {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

.search-clear-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-clear-btn:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

.main-title {
    font-family: 'Inter', 'Poppins', Arial, sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    letter-spacing: 0.23em;
    text-transform: uppercase;
    background: linear-gradient(100deg, #00eaff 10%, #3a8fff 40%, #a259ff 70%, #f7b731 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.main-title::after {
    content: "";
    display: block;
    width: 60%;
    height: 6px;
    margin: 0.7em auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #00eaff 0%, #f7b731 100%);
    opacity: 0.16;
    filter: blur(1.5px);
}

@media (max-width: 700px) {
    .main-title {
        font-size: 2.2rem;
        letter-spacing: 0.12em;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#searchBar.animated-show {
    display: flex !important;
    animation: slideFadeIn 0.35s ease-out;
}

.header-bar,
#searchBar {
    z-index: 999;
}

@media (max-width: 700px) {
    .card {
        background: rgba(255, 255, 255, 0.10);
    }

    #modal .modal-content {
        max-width: 420px;
        width: 100%;
    }
}

#imgModal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(.68, -0.55, .27, 1.55);
}

#imgModal.show {
    opacity: 1;
    pointer-events: auto;
}

#imgModal #bigImg {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 14px;
    background: #eee;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.19);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.35s cubic-bezier(.68, -0.55, .27, 1.55), transform 0.35s cubic-bezier(.68, -0.55, .27, 1.55);
}

#imgModal.show #bigImg {
    opacity: 1;
    transform: scale(1);
}

#modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#modal .modal-content::-webkit-scrollbar {
    display: none;
}

.user-panel-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 2000;
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    backdrop-filter: blur(18px) saturate(120%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.38s cubic-bezier(.36, 1.01, .32, 1);
}

.user-panel-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.user-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 90vw;
    z-index: 2020;
    transform: translateX(-100%);
    transition: transform 0.48s cubic-bezier(.22, .68, .36, 1);
    padding: 2.2rem 1.2rem 1.2rem 1.2rem;
    background: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.11);
    overflow-y: auto;
    max-height: 100vh;
    scrollbar-width: none;
}

.user-panel.show {
    transform: translateX(0);
}

.user-panel .close-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    border-radius: 50%;
    padding: 0.1em 0.45em 0.1em 0.45em;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    transition: background 0.18s, color 0.18s;
}

.user-panel .close-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #333;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.user-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.13);
    background: #eee;
    object-fit: cover;
}

.user-nickname {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.4rem;
}

.user-bio {
    font-size: 0.97rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.4;
    max-width: 90%;
}

.user-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
}

.user-link {
    background: rgba(255, 255, 255, 0.22);
    color: #2b5a9e;
    font-weight: 600;
    border-radius: 2em;
    padding: 0.7em 1.6em;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    backdrop-filter: blur(8px) saturate(130%);
    border: 1.2px solid rgba(255, 255, 255, 0.23);
    transition: background 0.18s, box-shadow 0.18s;
}

.user-link:hover {
    background: rgba(255, 255, 255, 0.33);
    color: #333;
    box-shadow: 0 4px 18px rgba(80, 180, 255, 0.15);
}

.user-link:hover {
    background: linear-gradient(90deg, #a259ff 0%, #00eaff 100%);
    box-shadow: 0 4px 16px rgba(58, 143, 255, 0.18);
}

@media (max-width: 600px) {
    .user-panel {
        width: 92vw;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
}

.user-panel {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.11);
    color: #fff;
}

.user-panel .user-nickname,
.user-panel .user-bio,
.user-panel .user-links,
.user-panel .user-links .user-link {
    color: #fff;
}

.user-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    backdrop-filter: blur(8px) saturate(130%);
    border: 1.2px solid rgba(255, 255, 255, 0.23);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    transition: background 0.18s, box-shadow 0.18s;
}

.user-link:hover {
    background: rgba(255, 255, 255, 0.30);
    color: #fff;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3);
}

.user-panel .close-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    backdrop-filter: blur(6px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    border-radius: 50%;
    transition: background 0.18s, color 0.18s;
}

.user-panel .close-btn:hover {
    background: rgba(255, 255, 255, 0.45);
    color: #fff;
}

@media (max-width: 700px) {

    .user-panel,
    .user-panel-backdrop,
    #imgModal,
    #imgModal #bigImg {
        transition-duration: 0.7s !important;
    }
}

/*
@media screen and (min-width: 700px) {
    .carousel {
        display: none;
    }
}
*/

.site-stats {
    margin-top: 1.5em;
    padding: 1em;
    font-size: 14px;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #ccc;
}

.search-count {
    text-align: center;
    color: #fff;
    margin-top: 0.5em;
    font-size: 0.95em;
}

.recommend-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4em;
    padding: 0.5em;
}

.recommend-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 0.3em 0.8em;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
}

.recommend-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.site-stats {
    color: #ccc;
    text-align: center;
    margin: 1em 0;
    font-size: 0.9em;
}

.search-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.search-wrapper.show {
    max-height: 800px;
    opacity: 1;
    margin: 1rem auto 1.5rem;
    pointer-events: auto;
}

.search-bar {
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    background: rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    width: 100%;
    font-size: 1rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 20px;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
}

.search-info {
    margin-top: 1rem;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    color: #fff;
}

.background-video {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    background: #000;
}

.main-author {
    font-size: 0.85rem;
    color: #ff4500;
    font-weight: bold;
    margin-left: 0.3rem;
}

.donation-qr-glass {
    display: block;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    padding: 10px;
    transition: box-shadow 0.2s;
}

.donation-qr-glass:hover {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
}

/* 分隔线样式 */
.user-link-separator {
    width: 90%;
    min-width: 40px;
    max-width: 400px;
    height: 1.5px;
    min-height: 1px;
    margin: 1.1em auto 0.7em auto;
    background: linear-gradient(90deg, rgba(120,180,255,0.13) 0%, rgba(255,255,255,0.32) 100%);
    border-radius: 2px;
    box-shadow: 0 1px 6px rgba(80,180,255,0.08);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none;
    z-index: 1;
}

/* 侧边栏滚动与隐藏滚动条 */
.user-panel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

@media (max-width: 700px) {
  .user-link-separator {
    width: 70vw;
    min-width: 40px;
    max-width: 300px;
    height: 1.2px;
    min-height: 1px;
    margin: 1em auto 0.6em auto;
    display: block !important;
    background: linear-gradient(90deg, rgba(120,180,255,0.18) 0%, rgba(255,255,255,0.38) 100%);
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1;
  }
}

.user-panel-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.2em;
}

/* 统一所有侧边栏按钮样式 */
.user-panel .user-link,
.user-panel-actions .user-link,
.user-panel-actions button.user-link,
.user-panel-actions a.user-link,
.user-links .user-link,
.user-panel .donate-link,
.user-panel .apply-link {
    display: inline-block;
    width: auto;
    min-width: 120px;
    max-width: 180px;
    text-align: center;
    white-space: nowrap;
    padding: 0.7em 1.6em;
    font-size: 0.95rem;
}

/* 捐赠和申请入驻按钮的额外样式 */
.user-panel .donate-link,
.user-panel .apply-link {
    margin-top: 0.5em;
    margin-bottom: 0.2em;
}

.user-info a {
    display: block;
    line-height: 0;
    border-radius: 50%;
    width: 82px;
    height: 82px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.user-info a:hover {
    transform: scale(1.05);
}

.user-info a:hover .user-avatar {
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.3);
}

.user-info a::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px; 
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-info a:hover::after {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 12px 3px rgba(0, 234, 255, 0.3);
}

/* 申请入驻内容样式 */
.apply-content {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-radius: 18px;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
    text-align: left;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.apply-content h2 {
    text-align: center;
    margin-bottom: 1em;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.apply-content p {
    line-height: 1.6;
    margin-bottom: 0.8em;
}

.apply-content .apply-steps {
    margin-bottom: 1em;
}

.apply-content ul {
    list-style-type: disc;
    margin-left: 2em;
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

.apply-content li {
    margin-bottom: 0.5em;
}

.apply-content a {
    color: #00eaff;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .apply-content {
        padding: 1.2rem 0.5rem;
        width: 96vw;
        max-width: 99vw;
        max-height: 90vh;
        min-width: 0;
        min-height: 0;
        overflow-y: auto;
        box-sizing: border-box;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

.apply-content::-webkit-scrollbar {
    display: none;
}

/* 优化开屏动画和头像加载体验 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(16, 23, 38, 0.85), rgba(26, 39, 64, 0.9), rgba(15, 28, 48, 0.85));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    /* 确保平滑渲染 */
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.25);
}

.splash-screen.hide {
    opacity: 0;
    pointer-events: none;
    filter: blur(24px) brightness(1.2);
    transform: scale(1.08);
    transition: opacity 1.5s cubic-bezier(.77,0,.18,1), filter 1.5s, transform 1.5s;
}

.splash-logo {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 40px 8px #fff8, 0 0 80px 16px #a0c8ff44;
    background: rgba(255,255,255,0.10);
    overflow: visible;
}
.splash-logo::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 180%; height: 180%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, #3a8fff 0%, #5f3cff 40%, #a259ff 80%, #3a8fff 100%);
  filter: blur(36px) brightness(1.1) saturate(1.5);
  animation: rotateGlow 3.5s linear infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes rotateGlow {
  100% { transform: translate(-50%,-50%) rotate(360deg); }
}
.splash-logo-img {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 32px #fff, 0 0 64px #a0c8ff;
  animation: fadeInLogoGorgeous 1.2s cubic-bezier(.77,0,.18,1);
}
.splash-text {
  color: #fff;
  text-shadow: 0 2px 8px #000, 0 0 12px #a0c8ff;
  background: none;
}
.splash-screen.hide {
  opacity: 0;
  pointer-events: none;
  filter: blur(24px) brightness(1.2);
  transform: scale(1.08);
  transition: opacity 1.5s cubic-bezier(.77,0,.18,1), filter 1.5s, transform 1.5s;
}

/* Avatar Particle Styles */
.avatar-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #00eaff;
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: none; /* Particles should not be interactive */
    z-index: 1; /* Below avatar image but above logo background effects */
    filter: blur(1px);
}

/* Head avatar display animation - more gorgeous */
@keyframes fadeInLogoGorgeous {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-20deg) translateZ(0);
        box-shadow: 0 0 0px rgba(0, 234, 255, 0);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15) rotate(10deg) translateZ(0);
        box-shadow: 0 0 50px 15px rgba(0, 234, 255, 0.6);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateZ(0);
        box-shadow: 0 0 30px 8px rgba(0, 234, 255, 0.35);
    }
}

/* Particle animation */
@keyframes avatarParticleBurst {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5) /* Further spread */;
        opacity: 0;
    }
}

/* 优化开屏动画标题和文字样式与动画 */
.splash-title {
  font-family: 'Poppins', 'Inter', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #3a8fff 10%, #5f3cff 40%, #a259ff 70%, #3a8fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInSplashTitle 1.2s cubic-bezier(.77,0,.18,1) 0.2s forwards;
  text-shadow: 0 2px 16px #fff, 0 0 32px #3a8fff;
}
@keyframes fadeInSplashTitle {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.splash-text {
  font-family: 'Poppins', 'Inter', 'Arial', sans-serif;
  font-size: 1.15rem;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.5s forwards;
  text-shadow: 0 2px 8px #fff, 0 0 12px #a0c8ff;
  letter-spacing: 0.04em;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
        background: rgba(255, 255, 255, 0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        background: rgba(0, 234, 255, 0.9);
        box-shadow: 0 0 15px rgba(0, 234, 255, 0.5);
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    20% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50vh) translateX(50px) rotate(180deg) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg) scale(0.4);
        opacity: 0;
    }
}

/* Añadir una segunda variante para más diversidad de movimiento */
.splash-particle:nth-child(even) {
    animation-name: floatParticleAlt;
}

@keyframes floatParticleAlt {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    30% {
        opacity: 0.6;
        transform: translateY(-30vh) translateX(-30px) rotate(-120deg) scale(0.9);
    }
    70% {
        opacity: 0.4;
        transform: translateY(-70vh) translateX(20px) rotate(-240deg) scale(0.7);
    }
    100% {
        transform: translateY(-100vh) translateX(-50px) rotate(-360deg) scale(0.3);
        opacity: 0;
    }
}

/* Variación adicional para cada tercera partícula */
.splash-particle:nth-child(3n) {
    animation-name: floatParticleWavy;
}

@keyframes floatParticleWavy {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-25vh) translateX(25px) rotate(90deg) scale(0.9);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-50vh) translateX(-25px) rotate(180deg) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-75vh) translateX(40px) rotate(270deg) scale(0.6);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(0) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

/* Modificar la animación de pulsación de puntos para hacerla más suave */
@keyframes dotPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
        background: rgba(255, 255, 255, 0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        background: rgba(0, 234, 255, 0.9);
        box-shadow: 0 0 15px rgba(0, 234, 255, 0.5);
    }
}

@keyframes fadeInLogo {
    0% {
        opacity: 0;
        transform: scale(0.9) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

/* 头像一镜到底动画优化 */
.avatar-transition {
    position: fixed;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.6);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    pointer-events: none;
    /* 确保图片过渡平滑 */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, width, height, top, left;
}

.avatar-transition.fade-halo {
    box-shadow: none;
}

.avatar-transition img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1);
}

.avatar-transition.fade-halo img {
    opacity: 0.7;
}

/* 移动端优化过渡动画 */
@media (max-width: 700px) {
    .avatar-transition {
        /* 优化移动端动画性能 */
        transition: all 0.8s ease-out, box-shadow 0.6s ease-out;
    }
}

/* iPadOS/iOS 布局错位修复 */
@supports (-webkit-touch-callout: none) {
  /* 只在 iOS/iPadOS 设备上生效 */
  .grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.1rem;
    justify-content: center !important;
    width: 100%;
  }
  
  .card {
    width: 180px !important;
    flex: 0 0 auto !important;
    margin: 0.5rem;
    transform: none !important;
  }
  
  /* 减少过渡动画复杂度，避免渲染问题 */
  .card:hover {
    transform: scale(1.02) !important;
  }

  /* 修复可能导致层叠上下文问题的属性 */
  .card::before {
    content: none;
  }
  
  /* 确保模态框正常工作 */
  #modal {
    position: fixed !important;
    -webkit-transform: translate(-50%, -50%) !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* 专门针对 iPad 的媒体查询 */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .grid {
    display: flex !important;
    flex-wrap: wrap !important; 
    justify-content: center !important;
  }
  
  .card {
    width: 180px !important;
    flex: 0 0 auto !important;
    margin: 0.8rem;
  }
  
  /* 确保搜索栏正确显示 */
  .search-bar {
    position: fixed !important;
    width: 80% !important;
    max-width: 480px !important;
    right: 1.5rem !important;
  }
  
  /* 修复头像过渡动画 */
  .avatar-transition {
    position: fixed !important;
    z-index: 9999 !important;
  }
}

/* 添加认证作者标识 */
.verified-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.verified-badge:before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* 确保用户头像容器支持绝对定位的徽章 */
.user-avatar-container {
  position: relative;
  display: inline-block;
}

/* 模态框里的认证徽章特殊样式 */
.author-details {
  display: flex;
  flex-direction: column;
}

.author-details .verified-badge {
  position: relative;
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  width: auto;
  height: auto;
  padding: 2px 6px 2px 20px;
  font-size: 11px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, rgba(123, 78, 203, 0.7), rgba(60, 0, 180, 0.8));
}

.author-details .verified-badge:before {
  content: "✓";
  position: absolute;
  left: 6px;
  top: 2px;
  font-weight: bold;
  font-size: 12px;
  transform: none;
}

.author-details .verified-badge:after {
  content: "认证作者";
}

/* Download button in modals */
.download-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #0078FF, #0050FF);
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  margin: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
  background: linear-gradient(135deg, #0082FF, #0060FF);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.download-btn .download-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z'/%3E%3Cpath d='M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.extract-code-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  margin-left: 5px;
}

/* 添加作者徽章样式 */
.author-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
  vertical-align: middle;
  font-weight: normal;
}

.author-badge.regular {
  background: rgba(150, 150, 150, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

.author-badge.verified {
  background: linear-gradient(135deg, rgba(123, 78, 203, 0.7), rgba(60, 0, 180, 0.8));
  color: white;
}

/* 添加加载中徽章样式 */
.loading-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
  vertical-align: middle;
  font-weight: normal;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.7);
  animation: pulseFade 1.5s infinite;
}

@keyframes pulseFade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* 添加作者名称后的认证标识 */
.author-verified-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
  vertical-align: middle;
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  color: white;
  font-weight: normal;
  position: relative;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.author-regular-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
  vertical-align: middle;
  background: rgba(150, 150, 150, 0.5);
  color: rgba(255, 255, 255, 0.9);
  font-weight: normal;
}

/* 修改作者信息卡片布局，确保标识与名称在同一行 */
.marquee-outer {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* 确保作者名称能正常显示 */
.marquee-inner {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  margin-right: 5px;
}

/* 模态框中的作者信息样式 */
.author-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  /* 移除这里的margin-left设置，使用lazyload.js中统一定义的margin-left */
}

.author-details .author-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  /* 确保不覆盖父元素的margin-left */
  margin-right: 5px;
}

.author-details .author-bio {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* 调整模态框中的徽章样式 */
.author-details .author-verified-badge,
.author-details .author-regular-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.multi-author-card .marquee-inner {
  max-width: 85%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.multi-author-card .author-verified-badge,
.multi-author-card .author-regular-badge {
  position: relative;
  top: -2px;
  margin-left: 5px;
  font-size: 0.7rem;
}

@media (max-width: 700px) {
  .multi-author-card .marquee-inner {
    max-width: 80%;
  }
  
  .multi-author-card .author-verified-badge,
  .multi-author-card .author-regular-badge {
    font-size: 0.65rem;
  }
}

.author-verified-badge {
  display: inline-block;
  padding: 0.15em 0.4em;
  background-color: rgba(22, 119, 255, 0.12);
  color: #1677ff;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1.4;
  margin-left: 5px;
  vertical-align: middle;
}

.author-regular-badge {
  display: inline-block;
  padding: 0.15em 0.4em;
  background-color: rgba(150, 150, 150, 0.12);
  color: #888;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 500;
  line-height: 1.4;
  margin-left: 5px;
  vertical-align: middle;
}

/* 弹窗内的作者名和认证标记样式 */
.modal-author .author-name {
  display: flex;
  align-items: center;
  font-size: 1em;
}

.modal-author .author-verified-badge {
  margin-left: 6px;
  font-size: 0.7em;
  padding: 0.15em 0.6em;
}

.author-details .author-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 0 !important;
  margin-right: 5px;
}

.author-details .author-verified-badge {
  margin-left: 6px;
  font-size: 0.7em;
  padding: 0.15em 0.6em;
}

/* 作者卡片强制对齐规则 */
#modal-authors .author-entry {
  display: flex !important;
  align-items: center !important;
}

#modal-authors .author-entry .author-avatar {
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0 !important;
}

#modal-authors .author-entry .author-details {
  margin-left: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

#modal-authors .author-entry.main-author .author-details,
#modal-authors .author-entry.co-author .author-details {
  margin-left: 10px !important;
}

/* 联合作者向右偏移 */
#modal-authors .author-entry.co-author {
  padding-left: 5px !important;
}

@media (max-width: 700px) {
  .modal-author .author-verified-badge,
  .author-details .author-verified-badge {
    font-size: 0.65em;
    padding: 0.1em 0.5em;
  }
}

/* 特权徽标和多作者徽标样式 - 统一所有场景 */
.featured-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(45deg, #8e2de2, #4a00e0);
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 8px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* 桌面端的网格和卡片样式 */
@media (min-width: 701px) {
    .grid, #themeGrid, #authorThemes, #myThemes, #reviewedThemes, #removedThemes {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.1rem;
        width: 100%;
        justify-items: center;
        align-items: start;
    }
    
    .card, .theme-card {
        width: 180px;
    }
}

/* Media query para splash-screen en móviles */
@media (max-width: 700px) {
    .splash-title {
        font-size: 2rem;
    }
    .splash-logo {
        width: 120px;
        height: 120px;
    }
    /* 降低光晕效果强度 */
    .splash-logo::before,
    .splash-logo::after {
        animation-duration: 2s;
    }
    /* 提前隐藏过渡内容，防止闪烁 */
    .author-profile {
        opacity: 0;
        animation: fadeIn 0.5s ease-out 0.3s forwards;
    }
}

@media (min-width: 701px) {
  .carousel {
    display: none !important;
  }
}

/* 公告组件样式 */
.announcements-banner {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.announcement-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-content {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.announcement-icon {
  margin-right: 12px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.announcement-title {
  font-weight: bold;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement-actions {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.announcement-link {
  color: #4a9eff;
  text-decoration: none;
  margin-right: 15px;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(74, 158, 255, 0.1);
  transition: all 0.2s ease;
}

.announcement-link:hover {
  background: rgba(74, 158, 255, 0.2);
}

.announcement-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.announcement-dismiss:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

/* 公告类型样式 */
.announcements-banner.info .announcement-container {
  border-left: 4px solid #4a9eff;
}

.announcements-banner.important .announcement-container {
  border-left: 4px solid #ff9800;
}

.announcements-banner.warning .announcement-container {
  border-left: 4px solid #ff4a4a;
}

.announcements-banner.success .announcement-container {
  border-left: 4px solid #4caf50;
}

/* 公告图标样式 */
.announcements-banner.info .announcement-icon::before {
  content: "ℹ️";
}

.announcements-banner.important .announcement-icon::before {
  content: "⚠️";
}

.announcements-banner.warning .announcement-icon::before {
  content: "🚨";
}

.announcements-banner.success .announcement-icon::before {
  content: "🎉";
}

@media (max-width: 700px) {
  .announcements-banner {
    max-width: 95%;
  }
  
  .announcement-container {
    padding: 10px 12px;
  }
  
  .announcement-title {
    font-size: 14px;
  }
  
  .announcement-link {
    font-size: 12px;
    padding: 3px 8px;
    margin-right: 10px;
  }
  
  .announcement-dismiss {
    width: 20px;
    height: 20px;
    font-size: 16px;
  }
}

/* 华丽开屏动画增强 */
.splash-screen {
  position: fixed; z-index: 99999; left: 0; top: 0; width: 100vw; height: 100vh;
  background: radial-gradient(ellipse at 50% 40%, #e0e7ff 0%, #a0c8ff 60%, #3a8fff 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.8s cubic-bezier(.77,0,.18,1), filter 0.8s;
  will-change: opacity, filter;
  overflow: hidden;
}
.splash-screen.hide {
  opacity: 0; pointer-events: none; filter: blur(12px) brightness(1.2);
}
.splash-glow {
  position: absolute; left: 50%; top: 44%; width: 320px; height: 320px; transform: translate(-50%,-50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, #fff7 0%, #a0c8ff 30%, #ffb347 60%, #a777e3 100%);
  filter: blur(48px) brightness(1.2) saturate(1.5);
  animation: rotateGlow 3.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes rotateGlow {
  100% { transform: translate(-50%,-50%) rotate(360deg); }
}
.splash-logo {
  position: relative; z-index: 2; width: 120px; height: 120px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 40px 8px #fff8, 0 0 80px 16px #a0c8ff44;
  background: rgba(255,255,255,0.10);
  overflow: visible;
}
.splash-logo-img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 32px #fff, 0 0 64px #a0c8ff;
  animation: fadeInLogoGorgeous 1.2s cubic-bezier(.77,0,.18,1);
}
.splash-title {
  font-size: 2.6rem; color: #333; font-weight: bold; letter-spacing: 0.12em;
  text-shadow: 0 2px 16px #fff, 0 0 32px #a0c8ff;
  margin-bottom: 12px; z-index: 2;
  animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1);
}
.splash-loading.fancy {
  display: flex; gap: 10px; margin-bottom: 18px; z-index: 2;
  justify-content: center; align-items: center;
}
.splash-loading-dot {
  width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg,#a0c8ff,#ffb347,#a777e3);
  box-shadow: 0 0 12px #fff, 0 0 24px #a0c8ff88;
  animation: dotPulse 1.2s infinite cubic-bezier(.77,0,.18,1);
}
.splash-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.splash-loading-dot:nth-child(3) { animation-delay: 0.4s; }
.splash-loading-dot:nth-child(4) { animation-delay: 0.6s; }
@keyframes dotPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
.splash-text {
  font-size: 1.2rem; color: #444; text-shadow: 0 2px 8px #fff, 0 0 12px #a0c8ff;
  z-index: 2; margin-bottom: 8px;
  animation: fadeIn 1.2s cubic-bezier(.77,0,.18,1);
}
.splash-particles {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none;
}
.splash-particle {
  position: absolute; border-radius: 50%;
  will-change: transform, opacity;
  animation: floatParticle 16s linear infinite;
  mix-blend-mode: lighten;
}
.splash-particle:nth-child(even) {
  animation: floatParticleAlt 18s linear infinite;
}
.splash-particle:nth-child(3n) {
  animation: floatParticleWavy 20s linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-40px) scale(1.2); opacity: 0.7; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes floatParticleAlt {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(40px) scale(0.8); opacity: 0.5; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes floatParticleWavy {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  25% { transform: translate(20px,-20px) scale(1.1); opacity: 0.8; }
  50% { transform: translate(-20px,20px) scale(0.9); opacity: 0.6; }
  75% { transform: translate(10px,-10px) scale(1.05); opacity: 0.9; }
  100% { transform: translate(0,0) scale(1); opacity: 1; }
}
.avatar-particle {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none;
  z-index: 3; opacity: 0.85;
  animation: avatarParticleBurst 0.6s cubic-bezier(.77,0,.18,1) forwards;
}
@keyframes avatarParticleBurst {
  0% { transform: translate(-50%,-50%) scale(0.2); opacity: 0.2; }
  80% { opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.2); opacity: 0; }
}
@media (max-width: 700px) {
  .splash-logo { width: 80px; height: 80px; }
  .splash-glow { width: 180px; height: 180px; }
  .splash-title { font-size: 1.5rem; }
}

/* 防止头像/标题/文字提前消失，始终与开屏动画一起消失 */
.splash-screen:not(.hide) .splash-logo-img,
.splash-screen:not(.hide) .splash-title,
.splash-screen:not(.hide) .splash-text {
  opacity: 1 !important;
  display: block !important;
  pointer-events: auto !important;
}

/* 超级绚丽开场动画样式 */
.super-splash {
  position: fixed; z-index: 100000; left: 0; top: 0; width: 100vw; height: 100vh;
  background: linear-gradient(135deg, #0a1128 0%, #103067 40%, #1a4b8c 80%, #0c2450 100%);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 1.8s cubic-bezier(.22,.68,.36,1);
  overflow: hidden;
  animation: superSplashIn 1.2s;
  will-change: opacity;
}

.super-splash.hide {
  opacity: 0; pointer-events: none;
  filter: blur(24px) brightness(1.2);
  transform: scale(1.08);
  transition: opacity 2s cubic-bezier(.22,.68,.36,1), filter 2s, transform 2s;
}

.super-anim-stage {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; z-index: 2;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.super-title, .super-slogan, .super-author {
  opacity: 0;
  will-change: opacity, transform;
  text-align: center;
  pointer-events: none;
}

#superTitleMain {
  font-size: 3.6rem; font-weight: 900;
  background: linear-gradient(90deg, #00a5ff, #3a8fff, #62b5ff, #fff, #3a8fff);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 165, 255, 0.8), 0 0 60px rgba(58, 143, 255, 0.6);
  letter-spacing: 0.18em;
  animation: 
    superTitleMainIn 1.5s cubic-bezier(.22,.68,.36,1) 1.2s forwards,
    textGradientFlow 8s linear infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
  position: relative;
}

#superTitleMain::after {
  content: 'Glowee';
  position: absolute;
  left: 0; top: 0; right: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  z-index: -1;
  filter: blur(4px);
  transform: translateZ(-10px);
}

#superTitleSub {
  font-size: 2.2rem; font-weight: 700;
  color: rgba(160, 210, 255, 0.9);
  text-shadow: 
    0 0 10px rgba(0, 165, 255, 0.8),
    0 0 20px rgba(58, 143, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.3);
  margin-top: 0.6em;
  letter-spacing: 0.15em;
  animation: superTitleSubIn 1.4s cubic-bezier(.22,.68,.36,1) 2.2s forwards;
  transform-origin: center;
}

#superSlogan {
  font-size: 1.4rem; color: rgba(255, 255, 255, 0.9); margin-top: 1.4em;
  text-shadow: 
    0 0 10px rgba(0, 165, 255, 0.7),
    0 0 20px rgba(58, 143, 255, 0.5);
  letter-spacing: 0.08em;
  animation: superSloganIn 1.3s cubic-bezier(.22,.68,.36,1) 3.2s forwards;
  position: relative;
}

#superSlogan::before {
  content: '';
  position: absolute;
  left: -20px; right: -20px; top: -10px; bottom: -10px;
  background: radial-gradient(ellipse at center, rgba(0, 165, 255, 0.08) 0%, rgba(58, 143, 255, 0.05) 60%, transparent 100%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transform: scaleX(0.8);
  animation: sloganGlowIn 1.5s cubic-bezier(.22,.68,.36,1) 3.5s forwards;
}

#superAuthor {
  font-size: 1.2rem; color: rgba(160, 220, 255, 0.8); margin-top: 2em; 
  letter-spacing: 0.1em; font-weight: 500;
  text-shadow: 
    0 0 8px rgba(0, 165, 255, 0.6),
    0 0 16px rgba(58, 143, 255, 0.4);
  animation: superAuthorIn 1.2s cubic-bezier(.22,.68,.36,1) 4.2s forwards;
  position: relative;
}

.super-3d {
  transform: perspective(1200px) rotateX(20deg) rotateY(-15deg) scale(0.7);
}

.super-skip {
  position: absolute; right: 2vw; bottom: 2vh; z-index: 10;
  background: rgba(16, 48, 103, 0.4); color: #fff; border: none; border-radius: 20px;
  padding: 0.7em 1.8em; font-size: 0.9em; cursor: pointer; opacity: 0.5;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.super-skip:hover { 
  opacity: 1; 
  background: rgba(26, 75, 140, 0.6);
  box-shadow: 0 0 15px rgba(0, 165, 255, 0.5);
}

@keyframes superSplashIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

@keyframes textGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes superTitleMainIn {
  0% { 
    opacity: 0; 
    transform: perspective(1200px) rotateX(30deg) rotateY(-20deg) scale(0.6) translateZ(-100px);
    filter: blur(5px); 
  }
  35% { 
    opacity: 0.8; 
    transform: perspective(1200px) rotateX(-5deg) rotateY(8deg) scale(1.2) translateZ(50px);
    filter: blur(0px); 
  }
  70% {
    transform: perspective(1200px) rotateX(3deg) rotateY(-3deg) scale(1.05) translateZ(30px);
  }
  100% { 
    opacity: 1; 
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) scale(1) translateZ(0px);
    filter: blur(0px); 
  }
}

@keyframes superTitleSubIn {
  0% { 
    opacity: 0; 
    transform: perspective(1200px) rotateX(-30deg) rotateY(10deg) scale(0.6) translateZ(-80px);
    filter: blur(5px); 
  }
  50% { 
    opacity: 0.9; 
    transform: perspective(1200px) rotateX(5deg) rotateY(-5deg) scale(1.1) translateZ(40px);
    filter: blur(0px); 
  }
  100% { 
    opacity: 1; 
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) scale(1) translateZ(0px);
    filter: blur(0px); 
  }
}

@keyframes superSloganIn {
  0% { 
    opacity: 0; 
    transform: perspective(1200px) rotateX(20deg) rotateY(-10deg) scale(0.6) translateZ(-60px);
    filter: blur(3px); 
  }
  60% { 
    opacity: 0.9; 
    transform: perspective(1200px) rotateX(-3deg) rotateY(3deg) scale(1.08) translateZ(30px);
    filter: blur(0px); 
  }
  100% { 
    opacity: 1; 
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) scale(1) translateZ(0px);
    filter: blur(0px); 
  }
}

@keyframes superAuthorIn {
  0% { 
    opacity: 0; 
    transform: perspective(1200px) rotateX(-15deg) rotateY(15deg) scale(0.7) translateZ(-40px);
    filter: blur(3px); 
  }
  65% { 
    opacity: 0.85; 
    transform: perspective(1200px) rotateX(2deg) rotateY(-2deg) scale(1.05) translateZ(20px);
    filter: blur(0px); 
  }
  100% { 
    opacity: 1; 
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) scale(1) translateZ(0px);
    filter: blur(0px); 
  }
}

@keyframes sloganGlowIn {
  0% { opacity: 0; transform: scaleX(0.8); }
  100% { opacity: 1; transform: scaleX(1); }
}

/* 移动端适配 */
@media (max-width: 700px) {
  #superTitleMain {
    font-size: 2.2rem;
  }
  
  #superTitleSub {
    font-size: 1.3rem;
  }
  
  #superSlogan {
    font-size: 1rem;
  }
  
  #superAuthor {
    font-size: 0.9rem;
    margin-top: 1.5em;
  }
  
  .super-skip {
    font-size: 0.8em;
    padding: 0.5em 1.2em;
  }
}

/* 提高在低端设备上的性能 */
@media (max-width: 480px), (max-height: 480px) {
  #superTitleMain::after {
    display: none;
  }
  
  .super-splash.hide {
    transition: opacity 1.5s cubic-bezier(.22,.68,.36,1);
    transform: none;
    filter: none;
  }
}

/* Lite模式下卡片美化，仅桌面端 */
body.lite-mode .card, body.lite-mode .theme-card {
  background: linear-gradient(135deg, rgba(224,231,255,0.82) 0%, rgba(160,200,255,0.78) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-radius: 18px;
  border: 1.5px solid rgba(120,180,255,0.18);
  box-shadow: 0 2px 12px rgba(80,180,255,0.10), 0 1.5px 8px rgba(0,0,0,0.06);
  padding: 0.7rem 0.7rem 1rem 0.7rem;
  transition: box-shadow 0.28s cubic-bezier(.77,0,.18,1.01), transform 0.38s cubic-bezier(.68,-0.55,.27,1.55), background 0.22s;
  color: #1a2a3a;
  position: relative;
  overflow: hidden;
}
body.lite-mode .card::before, body.lite-mode .theme-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(0,234,255,0.08) 0%, rgba(162,89,255,0.06) 100%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
body.lite-mode .card:hover, body.lite-mode .theme-card:hover {
  background: linear-gradient(135deg, rgba(160,210,255,0.92) 0%, rgba(58,143,255,0.88) 100%);
  box-shadow: 0 12px 40px 0 rgba(80,180,255,0.18), 0 1.5px 8px rgba(0,0,0,0.10);
  transform: scale(1.045) rotate(-0.5deg);
}
body.lite-mode .card .title, body.lite-mode .theme-card .title {
  color: #1a2a3a;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(255,255,255,0.10);
}
body.lite-mode .card .desc, body.lite-mode .theme-card .desc {
  color: #3a4a5a;
  opacity: 0.85;
}
body.lite-mode .card .thumb-wrap, body.lite-mode .theme-card .thumb-wrap {
  background: linear-gradient(135deg, #e0e7ff 0%, #a0c8ff 100%);
}
body.lite-mode .card img.thumb, body.lite-mode .theme-card img.thumb {
  box-shadow: 0 2px 8px rgba(80,180,255,0.10);
}
body.lite-mode .card .author-info-card, body.lite-mode .theme-card .author-info-card {
  background: rgba(255,255,255,0.13);
  border-radius: 10px;
  padding: 0.2em 0.5em;
  color: #225;
}
body.lite-mode .card .author-avatar-card, body.lite-mode .theme-card .author-avatar-card {
  border: 1px solid rgba(120,180,255,0.18);
  box-shadow: 0 1px 4px rgba(80,180,255,0.08);
}

/* 添加默认样式，确保所有加载动画均为水平排列 */
.splash-loading {
  display: flex; gap: 10px; margin-bottom: 18px; z-index: 2;
  justify-content: center; align-items: center;
}
