html,
body {
    font-size: 18px;
    color: #6c767d;
    background-color: #ebf1f5;
    background-image: none;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.64);
    --glass-bg-strong: rgba(255, 255, 255, 0.74);
    --glass-border: rgba(255, 255, 255, 0.52);
    --panel-shadow: 0 18px 45px rgba(20, 28, 40, 0.24);
    --text-main: #1f2a37;
    --text-sub: #4b5563;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.28), transparent 35%),
        radial-gradient(circle at 88% 86%, rgba(140, 185, 255, 0.22), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

#main {
    z-index: 1;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
    width: 5px;
    background-color: #F5F5F5;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #555;
}

#main .aplayer {
    margin: 14px 0 !important;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: 0 10px 28px rgba(21, 30, 43, 0.16);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

h1 {
    font-size: 36px;
    margin-bottom: .5em;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
    margin-top: 1em;
}

h4 {
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
}

p,
footer p {
    color: var(--text-sub);
}

/* 视频背景 */
.kz-video {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.kz-video video {
    min-width: 100%;
    min-height: 100%;
    background-size: cover;
    width: auto;
    height: auto;
}

.my-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--panel-shadow);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card {
    border: none;
    padding: 45px 34px 10px;
    border-radius: 0 20px 20px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.container {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

strike {
    color: red;
}

.btn {
    border-radius: 12px;
    margin: 5px 0;
    width: 100%;
    padding: 12px 40px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(8, 12, 28, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(30, 40, 70, 0.2);
    transition: all .28s ease;
    font-weight: 600;
    letter-spacing: .2px;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(64, 99, 195, 0.62), rgba(74, 74, 170, 0.56));
}

.btn-primary {
    background: linear-gradient(135deg, rgba(73, 125, 235, 0.64), rgba(95, 85, 220, 0.58));
}

.btn-success {
    background: linear-gradient(135deg, rgba(111, 96, 230, 0.62), rgba(162, 96, 214, 0.56));
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.58);
}

.btn-secondary:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 24px rgba(61, 88, 170, 0.34);
    background: linear-gradient(135deg, rgba(72, 112, 216, 0.72), rgba(83, 84, 186, 0.64));
}

.btn-primary:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 24px rgba(70, 103, 212, 0.36);
    background: linear-gradient(135deg, rgba(82, 141, 246, 0.74), rgba(112, 99, 232, 0.66));
}

.btn-success:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 24px rgba(123, 92, 198, 0.35);
    background: linear-gradient(135deg, rgba(126, 110, 236, 0.72), rgba(172, 106, 224, 0.64));
}

.social {
    padding-left: 0;
}

.social p {
    margin-bottom: 0;
}

.social li {
    list-style: none;
    float: left;
    margin-right: 15px;
}

.card-text {
    margin-bottom: 20px;
}

.social .fa {
    font-size: 24px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 15px rgba(22, 32, 45, 0.13);
    transition: all .2s ease;
}

.social .fa:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(22, 32, 45, 0.2);
}

.photo-bg {
    background-image: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px 0 0 20px;
}

footer p {
    font-size: 12px;
}

.site-footer {
    margin-top: 12px;
}

.site-motto {
    margin-bottom: 8px;
}

.beian-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    line-height: 1.4;
}

.beian-links a {
    color: #355b8a;
    text-decoration: none;
}

.beian-links a:hover {
    color: #1f4473;
    text-decoration: underline;
}

#kaygb-blog-a,
#kaygb-mail-a {
    display: none;
}

@media (max-width: 1199px) {
    body {
        min-height: 600px;
    }

    h1 {
        font-size: 24px;
    }

    h2,
    .social .fa {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    h4,
    p {
        font-size: 14px;
    }

    .card {
        padding: 50px 50px 0px;
        border-radius: 0 18px 18px 0;
    }
}

@media (max-width: 1199px) {
    .photo-bg {
        min-height: calc(100vh - 500px);
    }
}

@media(max-width:991px) {
    .photo-bg {
        background-position: top;
        min-height: calc(90vh - 440px);
    }
}

@media(max-width: 767px) {
    html,
    body {
        min-height: 100vh;
        min-height: 100svh;
        overscroll-behavior-y: none;
    }

    body {
        background-attachment: scroll;
        background-position: center center;
        overflow-x: hidden;
    }

    body::before {
        display: none;
    }

    .container {
        position: relative;
        top: 0;
        transform: translateY(0);
    }

    #main.container {
        max-width: 420px;
        margin: 0 auto;
    }

    .photo-bg {
        height: 180px;
        border-radius: 18px 18px 0 0;
    }

    .card {
        padding: 20px;
        border-radius: 0 0 18px 18px;
    }

    .my-card {
        border-radius: 18px;
    }

    .card {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .btn {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 11px 28px;
    }

    .social {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 10px;
    }

    .social li {
        float: none;
        margin-right: 12px;
    }

    .social .fa {
        width: 34px;
        height: 34px;
    }

    #aplayer-inner,
    #aplayer-fixed {
        display: none !important;
    }

    .site-footer {
        margin-top: 14px;
    }

    .beian-links {
        gap: 8px;
    }

    #kaygb-blog-a,
    #kaygb-mail-a {
        display: block;
    }

    #kaygb-blog,
    #kaygb-mail {
        display: none;
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    html {
        background: #9aafc6 url("./images/bg.jpg") center center / cover no-repeat fixed;
    }

    body {
        background-image: none !important;
        background-color: transparent;
    }

    #main.container {
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        padding-left: 12px;
        padding-right: 12px;
    }

    #main .my-card {
        width: 100%;
        margin: 0;
    }

    .photo-bg {
        height: clamp(132px, 20svh, 176px);
        background-position: center 18%;
    }

    .card {
        padding: 18px 18px 16px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 0.4em;
    }

    p,
    footer p {
        font-size: 13px;
        line-height: 1.55;
    }

    .site-footer {
        margin-top: 10px;
    }

    .site-motto {
        margin-bottom: 4px;
    }

    .beian-links {
        font-size: 11px;
        line-height: 1.35;
    }
}

#frame {
    width: 50%;
    height: 50vh;
    margin: 0;
    background: #fff;
    position: fixed;
    z-index: 999;
    top: 5%;
    left: 5%;
}

#aplayer {
    z-index: 20000000;
}
