/* ==================== 全宽横幅包装器 =========

=========== */
.banner-full {
    width: 100%;
    background: linear-gradient(to right, #fff5e6, #e8f4ff);
    border-bottom: 1px solid #eee;
}

.banner-full .banner {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 0;
    border: none;
    margin-bottom: 0;
    background: none;
}

/* ==================== 导航交互状态 ==================== */
/* 当前激活页（HOME）高亮 */
nav a.active {
    background-color: #e3edf8;
    color: #225ea8;
}

/* 普通悬停效果 */
nav a:hover {
    background-color: #f0f5fb;
}

/* ==================== 顶部横幅（Banner） ==================== */
/* 渐变背景，圆角大卡片，内部垂直居中 */
.banner {
    background: linear-gradient(to right, #fff5e6, #e8f4ff);
    border-radius: 12px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* 横幅文字（标题 + 按钮）居中、加粗 */
.banner-content {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

/* “开始探索”按钮 */
.banner-btn {
    background-color: #ffcc80;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 15px;
    cursor: pointer;
}

/* ==================== 卡片通用样式 ==================== */
/* 白色背景、圆角、内边距、边框，适用于所有功能卡片 */
.card {
    background-color: #fff;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;

    transition: all 0.3s ease;
}
/* 卡片悬浮效果 */
.card:hover:not(.social-card) {
    transform: translateY(-10px) scale(1.02);
    border: 2px solid transparent;
    box-shadow: 0 0 15px rgb(126 109 100);
}
.social-links a {
    transition: all 0.3s ease;
}
.social-card .card-body .social-links a:hover {
    transform: translateY(-10px) scale(1.02);
    border: 2px solid transparent;
    box-shadow: 0 0 5px rgb(126 109 100);
}

/* 卡片背景图片——你只需在 img 的 src 填入图片路径 */
.card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 卡片内容层——浮在背景之上 */
.card-body {
    position: relative;
    z-index: 1;
}

/* 卡片标题 */
.card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

/* 卡片描述文字 */
.card p {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.8;
}

/* 通用卡片按钮（淡黄色） */
.card-btn {
    background-color: #ffd070;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}

/* ==================== 第一行功能模块（三列） ==================== */
/* 使用 CSS Grid 等宽三栏 */
.row-1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* ---- 各卡片专属背景色 ---- */
/* BBS 卡片（暖灰） */
.bbs-card {
    background-color: #f9f3e9;
    aspect-ratio: 2640 / 1537;
}

/* 影院卡片（深灰，文字白色） */
.cinema-card {
    background-color: #7e6d64;
    color: white;
    aspect-ratio: 2640 / 1537;
    /*边框*/
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.cinema-card:hover {
    border: 2px solid #af9d91;

    border-color: rgba(100, 130, 255, 0.4);

    /*!*隐藏文字效果*!*/
    /*.card-body{*/
    /*    opacity: 0;*/

    /*    card-text{*/
    /*        opacity: 1;*/
    /*        transition-duration: 0.3s;*/
    /*    }*/
    /*}*/
}

/* 游戏卡片（浅蓝） */
.game-card {
    background-color: #e3f2fd;
    aspect-ratio: 2640 / 1537;
}

/* 游戏状态容器：两个状态框水平排列 */
.game-status {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* 状态框（白色背景，圆角） */
.status-box {
    background-color: #fff;
    color: #333;
    padding: 13px 12px;
    border-radius: 6px;
    font-size: 13px;
}

/* ==================== 第二行功能模块（两列） ==================== */
/* 两栏 Grid 布局 */
.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

/* 店长主页卡片（浅橙） */
.manager-card {
    background-color: #fcecdb;
    aspect-ratio: 2640 / 1537;
}

/* 社交基地卡片（纯白） */
.social-card {
    background-color: #fff;
    aspect-ratio: 2640 / 1537;
}

/* 社交按钮容器（三个按钮水平排列） */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 社交按钮基础样式：等宽、圆角、无边框、居中文字 */
.social-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    color: white;
    font-size: 14px;
    text-align: center;
}

/* ---- 各社交按钮专属颜色 ---- */
/* QQ 按钮（黄色） */
.qq-btn {
    background-color: #ffd966;
    color: #333;
}

/* Telegram 按钮（浅蓝） */
.tg-btn {
    background-color: #b3e5fc;
    color: #333;
}

/* Discord 按钮（浅紫） */
.dc-btn {
    background-color: #e1bee7;
    color: #333;
}

/* ==================== 女仆聊天框 ==================== */
/* 触发按钮（固定在右下） */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffb6c1;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.2s;
}
.chat-toggle:hover {
    transform: scale(1.1);
}

/* 聊天框主体（固定在右下，初始隐藏） */
.chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transition:
        opacity 0.3s,
        transform 0.3s;
}
.chat-box.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* 头部 */
.chat-header {
    background: linear-gradient(135deg, #ffb6c1, #ffa07a);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}
.chat-title {
    font-size: 16px;
}
.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* 消息列表（可滚动） */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 14px;
}
.message.user {
    align-self: flex-end;
    background: #d4edda;
    border-bottom-right-radius: 4px;
}
.message.maid {
    align-self: flex-start;
    background: #fff3cd;
    border-bottom-left-radius: 4px;
}

/* 输入区域 */
.chat-input-area {
    display: flex;
    border-top: 1px solid #eee;
    padding: 8px;
    background: white;
}
.chat-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    outline: none;
    font-size: 14px;
}
.chat-input-area button {
    background: #ffb6c1;
    border: none;
    border-radius: 20px;
    color: white;
    padding: 8px 18px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 14px;
}
.chat-input-area button:hover {
    background: #ff99aa;
}

/* ==================== 响应式设计 ==================== */

/* 平板设备 (< 1024px) */
@media (max-width: 1024px) {
    .banner {
        height: 130px;
        margin-bottom: 15px;
    }

    .banner-content {
        font-size: 26px;
    }

    .row-1 {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }

    .row-2 {
        gap: 12px;
    }

    .card h3 {
        font-size: 18px;
    }

    .social-links {
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .social-btn {
        min-width: 100px;
    }

    .status-box {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* 手机设备 (< 768px) */
@media (max-width: 768px) {
    body {
        background: linear-gradient(
            180deg,
            #fef8f0 0%,
            #f0f4ff 50%,
            #f5f0ff 100%
        );
        background-attachment: fixed;
    }

    .banner-full {
        background: linear-gradient(to right, #fff5e6, #e8f4ff);
    }

    .banner {
        height: 110px;
        border-radius: 0 !important;
    }

    .banner-content {
        font-size: 20px;
        padding: 0 10px;
    }

    .banner .card-bg {
        display: none;
    }

    .card {
        border-radius: 14px !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
        transition:
            transform 0.25s ease,
            box-shadow 0.25s ease;
    }

    .card:hover:not(.social-card) {
        transform: translateY(-4px) scale(1.01);
    }

    .social-btn {
        border-radius: 10px !important;
    }

    .status-box {
        border-radius: 8px !important;
        background-color: rgba(255, 255, 255, 0.85) !important;
    }

    .row-1 {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .row-2 {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    /* 移除移动端的固定宽高比，让内容决定高度 */
    .bbs-card,
    .cinema-card,
    .game-card,
    .manager-card,
    .social-card {
        aspect-ratio: auto;
        min-height: 150px;
    }

    .card {
        padding: 14px;
    }

    .card h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .card p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .game-status {
        gap: 8px;
        margin-top: 8px;
    }

    .status-box {
        font-size: 12px;
        padding: 10px;
    }

    .social-links {
        margin-top: 15px;
        flex-direction: column;
        gap: 8px;
    }

    .social-btn {
        padding: 10px;
        font-size: 13px;
    }

    /* 聊天框全宽 */
    .chat-box {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 85px;
        max-height: 450px;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .game-status {
        display: flex;
    }
}

/* 小屏手机 (< 480px) */
@media (max-width: 480px) {
    .banner {
        height: 90px;
        margin-bottom: 10px;
    }

    .banner-content {
        font-size: 16px;
    }

    .banner-btn {
        font-size: 14px;
        padding: 6px 14px;
        margin-top: 10px;
    }

    .row-1 {
        gap: 10px;
    }

    .row-2 {
        gap: 10px;
    }

    .card {
        padding: 12px;
        min-height: 120px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p {
        font-size: 12px;
    }

    .status-box {
        font-size: 11px;
        padding: 8px;
    }

    .social-btn {
        font-size: 12px;
        padding: 8px;
    }

    .chat-box {
        width: calc(100% - 10px);
        right: 5px;
        bottom: 75px;
        max-height: 400px;
    }

    .chat-toggle {
        width: 44px;
        height: 44px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}
