/* 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面主体样式 */
body {
    color: #ffffff;
    background-color: #06091a;
    min-height: 100vh;
    font-family: "Microsoft YaHei", sans-serif;
}

/* 主内容区域 */
.main-content {
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
/*#footer-info {
     text-align: center;
     color: #000;
     font-weight: bold;
     font-size: 14px;
     line-height: 1.8;
     white-space: normal;
}*/

/* 底部备案栏样式 */
/*footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}*/

#footer-info, footer, #record-info {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    /* 强制黑色加粗，覆盖任何白字样式 */
    color: #000000 !important;
    font-weight: bold !important;

    /* 强制白底衬托，保证黑字可见 */
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding: 8px 0 !important;

    /* 强制固定在最底部，不被遮挡 */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

/* 给页面底部留出空间，避免卡片和备案栏重叠 */
body {
    padding-bottom: 70px !important;
    -webkit-overflow-scrolling: touch !important; /* 苹果端滚动更丝滑 */
    scroll-behavior: smooth !important; /* PC端滚动平滑 */
}

/* 海外经典页面 - 手机端图片超小适配（≤768px） */
@media (max-width: 768px) {
    /* 图片宽度仅占屏幕70%，更小更精致 */
    .foreign-img-wrapper {
        max-width: 70% !important; 
        margin: 15px auto !important; /* 上下留白更多 */
        border-radius: 12px !important;
        overflow: hidden !important;
        border: 2px solid rgba(84, 212, 255, 0.4) !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
    }

    .foreign-img-wrapper img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* 文字也缩小，和图片匹配 */
    .foreign-img-desc {
        text-align: center !important;
        color: #eee !important;
        font-size: 13px !important;
        padding: 8px 0 !important;
        margin: 0 10px !important;
    }
}

/* ========== PC端（>768px）完全不变 - 保留原有样式 ========== */

/* PC端（>1024px）优化 */
@media (min-width: 1024px) {
    .content-wrapper {
        max-width: 1200px !important; /* PC端内容不无限宽，居中更整洁 */
        padding: 20px !important;
    }
    #live2d-widget {
        width: 550px !important;  /* PC端黑猫恢复原尺寸 */
        height: 720px !important;
    }
     
    .content-card-wrapper, .nav-card, .text-card, .img-card, .title-card {
        all: unset !important;
    
}
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    img {
        image-rendering: -webkit-optimize-contrast !important; /* 图片抗模糊 */
    }
    #live2d-widget {
        transform: translateZ(0); /* 开启硬件加速，解决黑猫渲染卡顿 */
    }
}

/* 低分辨率安卓机适配 */
@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 1dppx) {
    body {
        font-size: 13px !important; /* 低分辨率机字体稍小，避免挤 */
    }
}


/* 微信/QQ浏览器适配 */
-webkit-touch-callout: none;
-webkit-user-select: none;
-webkit-tap-highlight-color: transparent; /* 去掉点击高亮，避免渲染异常 */

/* 解决Safari的滚动回弹问题 */

@media (max-width: 768px) {
    /* 1. 海外经典页面图片容器：缩小+居中+留白 */
    .foreign-img-wrapper {
        max-width: 85% !important; /* 图片宽度只占屏幕85%，不撑满 */
        margin: 20px auto !important; /* 上下留白，左右居中 */
        border-radius: 12px !important;
        overflow: hidden !important;
        border: 2px solid rgba(84, 212, 255, 0.4) !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
    }

    /* 2. 图片本身：自适应容器，不拉伸 */
    .foreign-img-wrapper img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* 3. 图片下方文字：居中+留白，不挤图片 */
    .foreign-img-desc {
        text-align: center !important;
        color: #eee !important;
        font-size: 14px !important;
        padding: 10px 0 !important;
        margin: 0 10px !important;
    }
}