/* ========== 基础重置 ========== */
html { font-size: 125%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body, html {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    background: #123;
    color: #fff;
    font-family: 'Noto Sans SC', sans-serif;
    overflow: hidden;
}
:root {
    --accent: #52bbb1;   /* hover 青绿色 */
}
body {
    max-width: 1100px;
    margin: 0 auto;
}
/* ========== 桌面主区 ========== */
.home-div {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-div {
    height: min(84vh, 75vw);
    width: min(112vh, 100vw);
    position: relative;
    font-size: min(1.8vh, 2.5vw);
}
.hero-div a { text-decoration: none; }
.hero-div > a > img {
    position: absolute;
    transition: transform .3s, filter .3s;
}
.hero-div > a > span {
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.8);
}
.hero-div > a:hover > img {
    filter: brightness(1.15) saturate(1.1) drop-shadow(0 0 .5rem rgba(255,255,255,.2));
    transform: scale(1.03);
}
.hero-div > a:hover > span { color: var(--accent); }

/* ========== 头部 ========== */
.my-header {
    padding: 30px 20px 0 40px;
    background: #123;
    font-size: 36px;
    font-weight: bold;
}

.site-brand__tld { /*xyz这个后缀需要特别的样式*/
    position: relative;
    top: -16px;
}

/* ========== 中间文字区 ========== */
.heading-div {
    position: absolute;
    left: 50%; top: 82%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
    gap: 6px;
}

/* 联系信息(PC + 移动端共用) */
.contact { text-align: center; line-height: 1.5; }
.heading-div .contact { width: 100%; }

.footer-text {
    font-size: clamp(.7rem, 1.1vw, .8rem);
    color: #e8e8e8;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,.8);
}

/* 副标题(PC + 移动端共用) */
.subtitle {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,.8);
}
.heading-div .subtitle { margin: 80px 0 30px 0; }

/* ========== 移动端卡片区(桌面隐藏) ========== */
.mobile-cards { display: none; }

@media (max-width: 600px) {
    html, body {
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .home-div { display: none; }                   /* 整块桌面主区关掉 */
    .mobile-cards { display: block; padding: 16px 16px 28px; }
    .mobile-cards .subtitle { margin: 0 0 18px; display: block; }
    .mobile-cards .contact {margin: 24px auto 0;text-align: center; }

    .m-card-list { display: flex; flex-direction: column; gap: 12px; }

    .m-card {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 14px;
        text-decoration: none;
        color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,.35);
        -webkit-tap-highlight-color: transparent;
        transition: background-color .15s, border-color .15s, transform .15s;
    }
    .m-card:active {
        background: rgba(255,255,255,.06);
        border-color: rgba(186,228,224,.45);
        transform: scale(.985);
    }

    .m-card-img {
        flex: 0 0 58px;
        width: 58px; height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .m-card-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
    }

    .m-card-text { flex: 1; min-width: 0; }
    .m-card-text h3 { margin: 0 0 3px; font-size: 16px; font-weight: 600; }
    .m-card-text p  { margin: 0; font-size: 12.5px; line-height: 1.45; color: #9a9a9a; word-break: break-word; }
}