/* =========================================
   呆呆小店 引导页 - 新增板块样式
   (基于 Dimension 主题之上)
   ========================================= */
:root {
    --accent: #ff9bc1;
    --glow: #0d0314;
}

/* Font Awesome 5 兼容 fa-solid / fa-brands 前缀写法 */
.fa-solid, .fas {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
}
.fa-brands, .fab {
    font-family: "Font Awesome 5 Brands";
    font-style: normal;
}

html, body {
    background: var(--glow);
}

/* 页面整体背景增强（在樱花画布之上的光晕） */
#page-veil {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(255, 155, 193, 0.10), transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 85%, rgba(120, 140, 255, 0.08), transparent 70%),
        linear-gradient(180deg, rgba(10, 4, 16, 0.35), rgba(10, 4, 16, 0.75));
}

#wrapper.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 1.25rem;
    position: relative;
    z-index: 3;
    gap: 2rem;
}

.landing-inner {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ---------- 公告栏 ---------- */
.announce {
    width: 100%;
    max-width: 640px;
}

.announce-inner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    animation: announce-in 0.8s ease both;
}

.announce-icon {
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
    animation: bell-swing 2.4s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes bell-swing {
    0%, 100% { transform: rotate(0deg); }
    5% { transform: rotate(18deg); }
    10% { transform: rotate(-14deg); }
    15% { transform: rotate(8deg); }
    20% { transform: rotate(0deg); }
}

.announce-text {
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
}

/* ---------- 头像 / 标题横排 ---------- */
.hero {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    animation: fade-up 1s ease both;
}

.hero-avatar {
    position: relative;
    flex-shrink: 0;
    width: 6.6rem;
    height: 6.6rem;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 0deg, var(--accent), #a78bfa, #60a5fa, var(--accent));
    box-shadow: 0 0 34px rgba(255, 155, 193, 0.45);
    animation: avatar-in 0.9s ease both, ring-spin 8s linear infinite;
}

@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--glow);
    animation: avatar-in 0.9s ease both;
}

.hero-avatar .avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    border: 3px solid var(--glow);
    background: linear-gradient(135deg, rgba(255, 155, 193, 0.35), rgba(120, 100, 255, 0.35));
}

/* ---------- 标题 / 副标题 ---------- */
.hero-text {
    text-align: left;
    min-width: 0;
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: none;
    margin: 0;
    background: linear-gradient(120deg, #fff 30%, var(--accent) 60%, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    text-align: left;
    text-shadow: 0 0 40px rgba(255, 155, 193, 0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    text-align: left;
    margin-top: 0.55rem;
    line-height: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-divider {
    width: 5rem;
    height: 1px;
    margin-top: 0.9rem;
    margin-left: 0;
    margin-right: auto;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* ---------- 社交图标栏 ---------- */
.socials {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    animation: fade-up 1.2s ease both;
}

.socials a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    font-size: 1.25rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.socials a:hover {
    transform: translateY(-5px) scale(1.08);
    background: var(--sc, var(--accent));
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 20px var(--sc, var(--accent));
}

.socials a .soc-name {
    position: absolute;
    bottom: -1.6rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.socials a:hover .soc-name {
    opacity: 1;
}

/* ---------- 快捷链接（简洁药丸按钮） ---------- */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    animation: fade-up 1.2s ease both;
}

.ql-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.ql-item:hover {
    transform: translateY(-2px);
    border-color: var(--lc, var(--accent));
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), 0 0 18px rgba(255, 155, 193, 0.18);
}

.ql-icon {
    font-size: 1.05rem;
    color: var(--lc, var(--accent));
    transition: transform 0.22s ease;
}

.ql-item:hover .ql-icon {
    transform: scale(1.15);
}

.ql-name {
    white-space: nowrap;
}

/* ---------- 页脚 ---------- */
.landing-footer {
    width: 100%;
    text-align: center;
    animation: fade-up 1.5s ease both;
}

.landing-footer .copyright {
    letter-spacing: 0.2rem;
    font-size: 0.65rem;
    opacity: 0.75;
    margin: 0.35rem 0;
    text-transform: none;
}

.landing-footer .icp {
    font-size: 0.65rem;
    opacity: 0.6;
    letter-spacing: 0.1em;
}

.landing-footer .icp a {
    color: inherit;
    text-decoration: none;
}

.landing-footer .icp a:hover {
    color: var(--accent);
}

.landing-footer .admin-link {
    display: inline-block;
    margin-top: 0.9rem;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    opacity: 0.35;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.landing-footer .admin-link:hover {
    opacity: 1;
    color: var(--accent);
}

/* ---------- 音乐播放器（右下角悬浮唱片） ---------- */
.music-widget {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 50;
    display: flex;
    align-items: center;
}

.m-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 0;
    max-width: 320px;
    opacity: 0;
    overflow: hidden;
    transform: translateX(12px);
    transition: width 0.32s ease, opacity 0.32s ease, transform 0.32s ease, padding 0.32s ease;
    background: rgba(22, 12, 32, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
    margin-right: 0.9rem;
}

.music-widget.open .m-panel {
    width: 300px;
    opacity: 1;
    transform: none;
    padding: 0.85rem 1rem;
}

.m-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.m-name {
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-artist {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-progress {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.m-time {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    width: 2.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.m-bar {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    position: relative;
}

.m-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #c084fc);
    box-shadow: 0 0 8px rgba(255, 155, 193, 0.6);
}

.m-ctl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.m-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.m-btn:hover { background: rgba(255, 255, 255, 0.14); }
.m-btn:active { transform: scale(0.92); }

.m-btn.m-play {
    width: 2.7rem;
    height: 2.7rem;
    background: linear-gradient(135deg, var(--accent), #c084fc);
    border-color: transparent;
    color: #1c0f1c;
    box-shadow: 0 4px 18px rgba(255, 155, 193, 0.45);
}

.m-disc-wrap {
    position: relative;
    width: 4.6rem;
    height: 4.6rem;
    flex-shrink: 0;
}

.m-ring {
    position: absolute;
    inset: -0.55rem;
    width: calc(100% + 1.1rem);
    height: calc(100% + 1.1rem);
    pointer-events: none;
}

.m-disc {
    position: relative;
    z-index: 2;
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-radial-gradient(circle at center, #251733 0 2px, #160d1f 2px 4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.14), inset 0 0 0 6px rgba(0, 0, 0, 0.25);
    animation: m-spin 6s linear infinite;
    animation-play-state: paused;
    transition: box-shadow 0.25s ease;
}

.music-widget.is-playing .m-disc {
    animation-play-state: running;
}

.m-disc:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 155, 193, 0.5), inset 0 0 0 6px rgba(0, 0, 0, 0.25);
}

.m-disc-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #c084fc);
    box-shadow: 0 0 14px rgba(255, 155, 193, 0.7);
}

@keyframes m-spin {
    to { transform: rotate(360deg); }
}

/* ---------- 动画 ---------- */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes announce-in {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes avatar-in {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

/* 入场总开关：preload 时不播放 */
body.is-preload #wrapper.landing * {
    animation: none !important;
    transition: none !important;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 736px) {
    #wrapper.landing {
        padding: 2.5rem 1rem;
        gap: 1.6rem;
    }
    .hero {
        flex-direction: column;
        gap: 1.1rem;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-title {
        font-size: 1.7rem;
        letter-spacing: 0.1em;
        text-align: center;
        white-space: normal;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.12em;
        text-align: center;
    }
    .hero-divider {
        margin: 0.8rem auto 0;
    }
    .hero-avatar {
        width: 5.6rem;
        height: 5.6rem;
    }
    .quick-links {
        gap: 0.7rem;
    }
    .ql-item {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
        letter-spacing: 0.08em;
    }
    .announce-inner {
        padding: 0.7rem 1rem;
    }
    .announce-text {
        font-size: 0.85rem;
    }
    .music-widget {
        right: 0.8rem;
        bottom: 0.8rem;
    }
    .music-widget.open .m-panel {
        width: 244px;
    }
    .m-disc-wrap, .m-disc {
        width: 4rem;
        height: 4rem;
    }
    .m-disc-icon {
        width: 1.6rem;
        height: 1.6rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.45rem;
    }
}
