/* 全局重置与极简风格基础配置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "微软雅黑", sans-serif;
}

body {
    background-color: #f8fafb;
    /* 清新浅灰底，替代纯白更柔和 */
    color: #34495e;
    /* 低饱和深灰文字，不刺眼 */
    padding: 6rem 2rem 4rem;
    /* 上调顶部内边距，给导航栏留出空间 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* 导航栏基础样式（PC端） */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 2rem;
    z-index: 999;
    transition: padding 0.3s ease;
    /* 适配过渡动画 */
}

.navbar-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    /* 预留最小内边距，避免内容贴边 */
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
    /* 防止被挤压 */
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
    /* 禁止logo缩小 */
}

.navbar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 文字溢出省略 */
}

/* PC端导航链接 */
.navbar-right {
    display: flex;
    gap: 1.8rem;
}

.nav-link {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    /* 链接不换行 */
}

.nav-link:hover {
    color: #3498db;
}

/* 汉堡菜单按钮（默认隐藏） */
.hamburger-btn {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #2c3e50;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* 移动端导航菜单（默认隐藏） */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #ffffff;
    border-left: 1px solid #e9ecef;
    padding: 6rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 998;
}

.mobile-nav.active {
    transform: translateX(0);
}

/* 遮罩层 */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 997;
    display: none;
}

.nav-overlay.active {
    display: block;
}

/* ========== 媒体查询适配 ========== */
/* 平板/大屏手机（768px以下） */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .navbar-right {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    /* 汉堡按钮动画 */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* 移动端链接样式 */
    .mobile-nav .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f4f8;
    }
}

/* 普通手机（480px以下） */
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.8rem;
        /* 进一步缩小上下内边距 */
    }

    .navbar-title {
        font-size: 1rem;
        /* 缩小标题字号 */
        max-width: 120px;
        /* 限制标题宽度，避免挤压 */
    }

    .logo {
        width: 28px;
        height: 28px;
        /* 缩小logo */
        font-size: 0.9rem;
    }

    .navbar-left {
        gap: 0.6rem;
        /* 缩小logo和标题间距 */
    }

    .mobile-nav {
        width: 90%;
        /* 占更多屏幕宽度 */
        padding: 5rem 1rem 2rem;
        /* 减少左右内边距，增加点击区域 */
        gap: 1.2rem;
        /* 缩小链接间距 */
    }

    .mobile-nav .nav-link {
        font-size: 0.95rem;
        /* 微调链接字号 */
        padding: 0.4rem 0;
        /* 减少链接上下padding */
    }

    .hamburger-btn {
        width: 30px;
        height: 30px;
        /* 缩小汉堡按钮 */
        gap: 3px;
        /* 缩小线条间距 */
    }
}

/* 超小屏手机（360px以下，覆盖旧款安卓/小屏机） */
@media (max-width: 360px) {
    .navbar {
        padding: 0.5rem 0.6rem;
        /* 最小化内边距 */
    }

    .navbar-title {
        font-size: 0.9rem;
        /* 超小屏标题字号 */
        max-width: 100px;
        /* 进一步限制标题宽度 */
    }

    .logo {
        width: 26px;
        height: 26px;
        /* 最小logo尺寸 */
        font-size: 0.8rem;
    }

    .navbar-left {
        gap: 0.4rem;
        /* 最小间距 */
    }

    .mobile-nav {
        width: 95%;
        /* 几乎占满屏幕，方便点击 */
        padding: 4.5rem 0.8rem 2rem;
        /* 最小内边距 */
        gap: 1rem;
    }

    .mobile-nav .nav-link {
        font-size: 0.9rem;
        /* 超小屏链接字号 */
        padding: 0.35rem 0;
    }

    .hamburger-btn {
        width: 28px;
        height: 28px;
        /* 最小汉堡按钮 */
    }

    .hamburger-line {
        height: 1.8px;
        /* 缩小线条高度，适配小按钮 */
    }

    /* 汉堡按钮动画微调（适配小尺寸） */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
}

/* 页面容器（控制宽度，保证留白） */
.container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

/* 标题样式 */
.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

/* Windows程序展示框（核心区域） */
.program-showcase {
    background-color: #ffffff;
    border-radius: 12px;
    /* 圆润边角，小清新质感 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* 轻微阴影，增加层次感不浮夸 */
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 程序窗口模拟（你可替换为实际程序截图） */
.program-window {
    width: 100%;
    max-width: 600px;
    height: 400px;
    background-color: #f0f4f8;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 模拟Windows窗口标题栏 */
.program-titlebar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.titlebar-buttons {
    display: flex;
    gap: 8px;
}

.titlebar-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.button-close {
    background-color: #ff6b6b;
}

.button-min {
    background-color: #feca57;
}

.button-max {
    background-color: #48dbfb;
}

.program-window-content {
    margin-top: 36px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.message {
    width: 280px;
    height: 70px;
    /* scale: 0.1; */
    /* opacity: 0.1; */
    background: rgba(255, 255, 255, 0.75);
    border: 2px solid white;
    border-radius: 18px;
    transition: 0.3s;

    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.message>img {
    height: 50px;
    width: 50px;
    scale: 0.9;
    margin: 10px;
}

.message>.m {
    height: 50px;
    width: calc(280px - 50px - 30px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.message .message_title {
    height: 29px;
    width: 100%;
    display: inline-block;
    /* 垂直对齐 */
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    /* 核心属性 */
    white-space: nowrap;
    /* 单行不换行 */
    overflow: hidden;
    /* 超出隐藏 */
    text-overflow: ellipsis;
    /* 超出显示省略号 */
}

.message .message_content {
    height: 29px;
    width: 100%;
    display: inline-block;
    vertical-align: bottom;
    /* 垂直对齐 */
    font-size: 14px;
    display: flex;
    justify-content: flex-start;
    align-items: center;

    /* 核心属性 */
    white-space: nowrap;
    /* 单行不换行 */
    overflow: hidden;
    /* 超出隐藏 */
    text-overflow: ellipsis;
    /* 超出显示省略号 */
}

/* 程序介绍文字 */
.program-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* 极简按钮样式 */
.action-button {
    background-color: #5dade2;
    /* 清新浅蓝，小清新核心色 */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #3498db;
    /* hover略深，保持柔和 */
}

/* 新增：XiaoPush3.0 详细说明样式（贴合极简小清新风格） */
.program-detail {
    background-color: #ffffff;
    border-radius: 12px;
    /* 与program-showcase一致的圆角 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* 与program-showcase一致的轻微阴影 */
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.detail-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    /* 极浅分隔线，保持清新 */
}

/* 最后一个区块去掉分隔线和外间距 */
.detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    /* 与原有标题同色 */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 标题左侧小色块装饰（主色） */
.detail-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background-color: #5dade2;
    /* 沿用核心浅蓝 */
    border-radius: 2px;
}

.detail-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: #34495e;
    /* 中灰，层级区分 */
    margin: 0.8rem 0 0.5rem;
}

.detail-text {
    font-size: 1.05rem;
    line-height: 1.8;
    /* 与原有program-desc行高一致 */
    color: #34495e;
    margin-bottom: 1rem;
}

.detail-list {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.detail-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 0.5rem;
    position: relative;
}

/* 列表圆点装饰（主色） */
.detail-list li::before {
    content: "•";
    color: #5dade2;
    font-weight: bold;
    position: absolute;
    left: -1rem;
    top: 0;
}

.detail-list li:last-child {
    margin-bottom: 0;
}

/* 底部版权（极简留白） */
.footer {
    margin-top: 4rem;
    font-size: 0.85rem;
    color: #bdc3c7;
}