@charset "utf-8";

/*小于1400px时*/
@media (max-width: 1400px) {}

/*小于1200px时*/
@media (max-width: 1200px) {

    /*总布局*/
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 1000px !important;
    }

    .weekday {
        display: none;
    }

    /*音乐播放器*/
    .music-text {
        max-width: 170px !important;
    }
}

/*小于992px时*/
@media (max-width: 992px) {

    /*总布局*/
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 900px !important;
    }

    .col.left {
        margin-right: 0.75rem;
    }

    .col.right {
        margin-left: 0.75rem;
    }

    /*一言*/
    .col.hitokotos {
        display: none;
    }

    /*时间卡片*/
    .col.times {
        margin-left: 0rem;
    }

    /*日期显示*/
    .weekday {
        display: inline;
    }

    /*标题文字*/
    .main-img img {
        width: 110px;
    }

    span.img-title {
        font-size: 4.75rem;
    }

    span.img-text {
        font-size: 1.75rem;
    }

    /*链接卡片文字*/
    span.link-name {
        display: none !important;
    }

    .link-card i {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
}

/*小于840px时*/
@media (max-width: 840px) {


    /*社交链接*/
    .social {
        max-width: 100%;
        justify-content: center;
    }

    #link-text {
        display: none !important;
    }

    .link i {
        margin: 0px 20px;
    }
}

/*小于789px时*/
@media (max-width: 789px) {

    /*标题文字*/
    span.img-text {
        display: none;
    }
}

/*小于768px时*/
@media (max-width: 768px) {

    /*标题文字*/
    .main-img img {
        width: 100px;
    }

    span.img-title {
        font-size: 4.5rem;
    }
}

/*小于720px时*/
@media (max-width: 720px) {

    /*左侧栏高度*/
    .main-left {
        transform: translateY(20px);
    }

    /*左侧栏边距*/
    .col.left {
        margin-right: 0rem;
    }

    /*右侧栏隐藏*/
    .col.right {
        display: none;
    }

    /*右侧栏边距*/
    .col.right {
        margin-left: 0rem;
    }

    /*标题文字*/
    span.img-text {
        display: inline;
    }

    /*简介*/
    .message {
        max-width: 100%;
        pointer-events: none;
    }

    /*
    .des {
        justify-content: space-between;
    }
    */

    /*链接卡片*/
    .link-card {
        height: 80px !important;
        align-items: center !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .link-card i {
        font-size: 1.25rem;
        margin: 4px 0px;
    }

    i.iconfont.icon-a-daohangzhiyindingwei-05,
    i.iconfont.icon-z_shangpinheji {
        font-size: 1.65rem;
    }

    span.link-name {
        display: block !important;
        font-size: 0.85rem;
    }

    .link-card:hover span.link-name {
        font-size: 0.95rem;
    }

    span.line-text,
    i.iconfont.icon-link {
        font-size: 1.05rem;
    }

    /*菜单栏按钮*/
    .menu {
        display: flex;
        justify-content: center;
        position: fixed;
        top: 84%;
    }

    .munu-button {
        padding: 5px 20px;
        background: rgb(0 0 0 / 20%);
        backdrop-filter: blur(10px);
        border-radius: 6px;
        font-size: 1.25rem;
        transition: 0.5s;
        width: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 40px;
    }

    /*页脚文字*/
    footer {
        font-size: 0.85rem;
    }

    /*一言*/
    .col.hitokotos {
        margin-right: 0rem;
    }

    .hitokoto-text,
    .hitokoto-from {
        font-size: 1.05rem;
    }

    /*音乐播放器*/
    .music-text {
        max-width: 100% !important;
    }

    #music-name {
        font-size: 1.05rem;
    }

    #music-open {
        display: none;
    }

    /*隐藏鼠标样式*/
    #cursor {
        background: transparent !important;
    }

}

/*小于512px时*/
@media (max-width: 512px) {
    #made {
        display: none;
    }
}

/*小于390px时*/
@media (max-width: 390px) {
    .main-img img {
        display: none;
    }

    #beian {
        display: none;
    }
}

/* 大于568px时 */
@media (min-width: 568px) {
    .iziToast {
        border-radius: 30px !important;
    }
}


/* 大于720px时 */
@media (min-width: 720px) {
    .menu {
        display: none !important;
    }
}

/* 大于992px时 */
@media (min-width: 992px) {

    /*时钟显示*/
    span#win_text,
    span#win_speed {
        display: none;
    }
}

/* 大于1400px时 */
@media (min-width: 1400px) {

    /*时钟显示*/
    span#win_text,
    span#win_speed {
        display: inline !important;
    }
}


/*
菜单按钮
*/
.menus .col.left {
    display: none;
}

.menus .col.right {
    display: block !important;
    transition: 0.5s;
    padding: 0rem 0.75rem;
}

/*功能区调整*/
.menus .col.hitokotos {
    display: block;
}

.menus .col.times {
    display: none;
}

/*边界布局*/
.menus .row {
    --bs-gutter-x: 0rem;
}

.menus .col.\32 {
    margin: 0 0.75rem;
}

.menus .logo {
    display: inline !important;
    text-align: center;
    position: fixed;
    top: 8%;
    font-size: 1.75rem;
}

/*第二屏logo*/
.logo-text {
    font-family: 'Pacifico-Regular' !important;
}

/*切换动画*/
/*
.hitokoto,
.time,
.link-card,
.message {
    animation: fade-in;
    -webkit-animation: fade-in 0.5s;
    -moz-animation: fade-in 0.5s;
    -o-animation: fade-in 0.5s;
    -ms-animation: fade-in 0.5s;
}
*/
.logo,
.line,
.main-img,
.social,
.close,
.hitokoto,
.time,
.link-card,
.message,
#link-text {
    animation: fade 0.5;
    -webkit-animation: fade 0.5s;
    -moz-animation: fade 0.5s;
    -o-animation: fade 0.5s;
    -ms-animation: fade 0.5s;
}

/*
移动端功能区切换
*/
.mobile .col.hitokotos {
    display: none;
}

.mobile .col.times {
    display: block;
}

/*
 * 移动端精修：保持原有深色毛玻璃风格，只优化小屏层级、间距和触控尺寸。
 */
@media (max-width: 720px) {
    section {
        min-height: 0;
    }

    main {
        min-height: 100vh;
        min-height: 100dvh;
    }

    #container {
        max-width: none !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    #row {
        height: 100%;
        margin: 0;
    }

    .col.left,
    .menus .col.right {
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 18px;
    }

    .main-left {
        width: min(100%, 420px);
        margin: 0 auto;
        transform: translateY(-8px);
    }

    .main-img {
        justify-content: center;
    }

    .main-img img {
        display: block;
        width: 88px;
        flex: 0 0 88px;
        box-shadow: 0 12px 36px rgb(0 0 0 / 18%);
    }

    .img-title {
        width: auto;
        margin-left: 14px;
        transform: none;
    }

    .img-title-big {
        font-size: 2.75rem;
    }

    span.img-text {
        display: inline;
        font-size: 1.35rem;
    }

    .message {
        max-width: none;
        margin-top: 28px;
        padding: 16px 18px;
        border: 1px solid rgb(255 255 255 / 9%);
        border-radius: 14px;
        background: rgb(0 0 0 / 28%);
        box-shadow: 0 16px 40px rgb(0 0 0 / 12%);
    }

    .des {
        min-height: 72px;
        align-items: flex-start;
    }

    .des-title {
        margin: 0.45rem 0.75rem;
        line-height: 1.7rem;
    }

    .des > i {
        opacity: 0.85;
    }

    .social {
        width: max-content;
        max-width: 100%;
        height: 48px;
        margin: 16px auto 0;
        padding: 0 8px;
        gap: 2px;
        border: 1px solid rgb(255 255 255 / 7%);
        border-radius: 999px;
        background: rgb(0 0 0 / 18%);
        backdrop-filter: blur(10px);
    }

    .social .link {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border-radius: 50%;
    }

    .social .link:active {
        background: rgb(255 255 255 / 12%);
    }

    .link i,
    .social .link i {
        margin: 0;
    }

    .search-btn {
        top: calc(env(safe-area-inset-top, 0px) + 46px);
        width: 54px;
        height: 54px;
        line-height: 54px;
        box-shadow: 0 10px 28px rgb(0 0 0 / 22%);
    }

    .search-btn span {
        line-height: 54px;
    }

    .search-data {
        top: calc(env(safe-area-inset-top, 0px) + 48px);
        width: calc(100% - 48px);
        max-width: 420px;
    }

    .close-btn {
        top: calc(env(safe-area-inset-top, 0px) + 20px);
        right: 18px;
    }

    .menu {
        display: flex !important;
        top: auto;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 62px);
        left: 50%;
        z-index: 120;
        transform: translateX(-50%);
    }

    .munu-button {
        width: 56px;
        height: 44px;
        padding: 0;
        border: 1px solid rgb(255 255 255 / 10%);
        border-radius: 999px;
        background: rgb(0 0 0 / 32%);
        box-shadow: 0 12px 28px rgb(0 0 0 / 18%);
    }

    footer {
        height: calc(38px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        font-size: 0.7rem;
        background: linear-gradient(to top, rgb(0 0 0 / 42%), rgb(0 0 0 / 18%));
    }

    footer .power {
        width: 100%;
        padding: 0 16px;
        overflow: hidden;
        line-height: 38px;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 移动端第二屏 */
    .menus .col.right {
        display: flex !important;
        align-items: center;
    }

    .menus .main-right {
        width: min(100%, 420px);
        margin: 0 auto;
        transform: translateY(-10px);
    }

    .menus .logo {
        top: calc(env(safe-area-inset-top, 0px) + 18px);
        left: 20px;
        width: auto;
        font-size: 1.15rem;
        text-align: left;
        opacity: 0.9;
    }

    .menus .row.rightone {
        margin: 0;
    }

    .menus .col.hitokotos,
    .menus .col.times {
        margin: 0;
        padding: 0;
    }

    .hitokoto,
    .time,
    .music {
        height: 132px;
        padding: 18px;
        border: 1px solid rgb(255 255 255 / 8%);
        border-radius: 14px;
        background: rgb(0 0 0 / 28%);
        box-shadow: 0 16px 40px rgb(0 0 0 / 12%);
    }

    .hitokoto-text,
    .hitokoto-from {
        font-size: 0.95rem;
    }

    .main-right > .line {
        margin: 17px 4px 11px;
    }

    .main-right > .link > .row {
        flex-wrap: nowrap;
        gap: 10px;
        margin: 10px 0 0 !important;
    }

    .main-right > .link > .row:first-child {
        margin-top: 0 !important;
    }

    .main-right > .link > .row > .col,
    .main-right > .link > .row > .col.\32 {
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .link-card {
        height: 72px !important;
        gap: 5px;
        border: 1px solid rgb(255 255 255 / 7%);
        border-radius: 12px;
        background: rgb(0 0 0 / 26%);
        box-shadow: 0 10px 28px rgb(0 0 0 / 10%);
    }

    .link-card i {
        margin: 0 !important;
        font-size: 1.25rem;
    }

    span.link-name,
    .link-card:hover span.link-name {
        display: block !important;
        max-width: 100%;
        overflow: hidden;
        font-size: 0.76rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .col.left,
    .menus .col.right {
        padding-right: 14px;
        padding-left: 14px;
    }

    .main-img img {
        display: block;
        width: 74px;
        flex-basis: 74px;
    }

    .img-title-big {
        font-size: 2.35rem;
    }

    span.img-text {
        font-size: 1.15rem;
    }

    .message {
        margin-top: 22px;
    }

    .main-right > .link > .row {
        gap: 7px;
    }

    span.link-name,
    .link-card:hover span.link-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 720px) and (max-height: 700px) {
    .main-left {
        transform: translateY(-20px);
    }

    .message {
        margin-top: 18px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .social {
        margin-top: 10px;
    }

    .menus .main-right {
        transform: translateY(-20px);
    }

    .hitokoto,
    .time,
    .music {
        height: 108px;
    }

    .link-card {
        height: 60px !important;
    }

    footer {
        display: none;
    }

    .menu {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    }
}

/* 移动端质感增强：克制的高光、描边与紫色强调。 */
@media (max-width: 720px) {
    main::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background:
            radial-gradient(circle at 50% 12%, rgb(139 92 246 / 14%), transparent 32%),
            linear-gradient(to bottom, rgb(0 0 0 / 3%), rgb(0 0 0 / 12%));
    }

    #container {
        position: relative;
        z-index: 1;
    }

    .main-img img {
        padding: 3px;
        border: 1px solid rgb(255 255 255 / 42%);
        background: linear-gradient(145deg, rgb(255 255 255 / 28%), rgb(139 92 246 / 30%));
        box-shadow:
            0 0 0 5px rgb(139 92 246 / 10%),
            0 16px 42px rgb(0 0 0 / 24%);
    }

    .img-title-big,
    span.img-text {
        text-shadow: 0 4px 18px rgb(0 0 0 / 28%);
    }

    .img-title::after {
        content: "";
        display: block;
        width: 44px;
        height: 2px;
        margin-top: 6px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgb(196 181 253 / 92%), rgb(196 181 253 / 0%));
        box-shadow: 0 0 12px rgb(139 92 246 / 45%);
    }

    .message,
    .hitokoto,
    .time,
    .music {
        position: relative;
        overflow: hidden;
        border-color: rgb(255 255 255 / 13%);
        background:
            linear-gradient(145deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 2%) 42%, rgb(0 0 0 / 28%)),
            rgb(0 0 0 / 22%);
        backdrop-filter: blur(16px) saturate(115%);
        box-shadow:
            inset 0 1px 0 rgb(255 255 255 / 10%),
            0 18px 46px rgb(0 0 0 / 16%);
    }

    .message::before,
    .hitokoto::before,
    .time::before,
    .music::before {
        content: "";
        position: absolute;
        top: 0;
        left: 18px;
        width: 54px;
        height: 1px;
        background: linear-gradient(90deg, rgb(216 205 255 / 85%), transparent);
    }

    .message::after {
        content: "";
        position: absolute;
        top: 15px;
        right: 16px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: rgb(196 181 253 / 90%);
        box-shadow: 0 0 12px rgb(139 92 246 / 75%);
    }

    .des-title {
        flex: 1;
    }

    .social {
        border-color: rgb(255 255 255 / 12%);
        background: linear-gradient(145deg, rgb(255 255 255 / 9%), rgb(0 0 0 / 24%));
        box-shadow:
            inset 0 1px 0 rgb(255 255 255 / 9%),
            0 12px 32px rgb(0 0 0 / 14%);
    }

    .social .link {
        background: rgb(255 255 255 / 3%);
    }

    .social .link + .link {
        margin-left: 2px;
    }

    .social .link i {
        text-shadow: 0 3px 12px rgb(0 0 0 / 30%);
    }

    .search-btn {
        border: 1px solid rgb(255 255 255 / 28%);
        box-shadow:
            0 0 0 6px rgb(139 92 246 / 10%),
            0 14px 34px rgb(0 0 0 / 28%),
            inset 0 1px 0 rgb(255 255 255 / 24%);
    }

    .munu-button {
        background: linear-gradient(145deg, rgb(255 255 255 / 12%), rgb(0 0 0 / 35%));
        box-shadow:
            0 0 0 1px rgb(139 92 246 / 16%),
            inset 0 1px 0 rgb(255 255 255 / 12%),
            0 14px 30px rgb(0 0 0 / 22%);
    }

    .munu-button i {
        text-shadow: 0 0 14px rgb(196 181 253 / 38%);
    }

    .hitokoto::after,
    .time::after,
    .music::after {
        content: "";
        position: absolute;
        top: 22px;
        bottom: 22px;
        left: 0;
        width: 2px;
        border-radius: 0 999px 999px 0;
        background: linear-gradient(to bottom, rgb(196 181 253 / 95%), rgb(139 92 246 / 14%));
        box-shadow: 0 0 14px rgb(139 92 246 / 45%);
    }

    .main-right > .line::after {
        content: "";
        flex: 1;
        height: 1px;
        margin-left: 10px;
        background: linear-gradient(90deg, rgb(255 255 255 / 24%), transparent);
    }

    .link-card {
        position: relative;
        overflow: hidden;
        border-color: rgb(255 255 255 / 11%);
        background:
            linear-gradient(145deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 2%) 46%, rgb(0 0 0 / 25%)),
            rgb(0 0 0 / 22%);
        backdrop-filter: blur(14px) saturate(110%);
        box-shadow:
            inset 0 1px 0 rgb(255 255 255 / 9%),
            0 12px 30px rgb(0 0 0 / 13%);
    }

    .link-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 12px;
        width: 34px;
        height: 1px;
        background: linear-gradient(90deg, rgb(216 205 255 / 70%), transparent);
    }

    .link-card::after {
        content: "";
        position: absolute;
        top: 9px;
        right: 9px;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: rgb(196 181 253 / 72%);
        box-shadow: 0 0 9px rgb(139 92 246 / 65%);
    }

    .link-card i {
        display: grid;
        width: 31px;
        height: 31px;
        place-items: center;
        border: 1px solid rgb(255 255 255 / 8%);
        border-radius: 9px;
        background: linear-gradient(145deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 3%));
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
    }

    .link-card:active {
        transform: translateY(1px) scale(0.98);
    }
}
