/* 下载弹窗区域容器 */
.download-area {
    margin: 20px 0;
    display: none;
    /* 默认隐藏，有链接时才显示 */
    flex-direction: column;
    gap: 12px;
    /* 每个下载项之间的间距 */
}

/* 单个下载项（图标+按钮） */
.download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    /* 元素间间距 */
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    /* 新增：浅灰色边框（可调整颜色和粗细） */
    transition: border-color 0.2s;
    /* 可选： hover时边框变色，优化交互 */
}

/* 下载链接文本样式 */
.download-link-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    /* 占据中间剩余空间 */
    white-space: nowrap;
    /* 不换行 */
    overflow: hidden;
    /* 超出隐藏 */
    text-overflow: ellipsis;
    /* 过长显示省略号 */
    font-size: 14px;
    color: #666;
    margin: 0 8px;
    /* 与图标和按钮保持距离 */
}

/* 下载类型图标 */
/* 类型图标：圆形边框 + 固定大小 */
.download-icon {
    width: 40px; /* 固定宽度 */
    height: 40px; /* 固定高度 */
    object-fit: contain; /* 保持图标比例，不拉伸 */
    border: 1px solid #8d8d8d; /* 浅灰色圆形边框 */
    border-radius: 50%; /* 关键：变成圆形 */
    padding: 0px; /* 图标与边框的内边距，避免贴边 */
    background-color: white; /* 白色背景，让图标更清晰 */
    flex-shrink: 0; /* 禁止图标被压缩 */
}
/* 下载按钮（靠右居中） */
.download-btn {
    margin-left: auto;
    flex-shrink: 0;
    /* 推到右侧 */
    padding: 8px 20px;
    background-color: #4285F4;
    /* 蓝色按钮 */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    text-decoration: none;
    /* 核心：去掉链接默认下划线 */
}

.download-btn:hover {
    background-color: #3367d6;
    /*  hover时加深 */
}

/* ============================================================================
   扩展包推广区（弹窗下方）
   和上面的 .download-item 保持同一套视觉语言：浅灰底 + 圆角 + 细边框。
   用左侧一条竖线把它和下载区区分开，避免看起来像"又一个下载项"。
   ============================================================================ */
.extpack {
    margin-top: 4px;
    padding: 12px 14px;
    background-color: #fafbfc;
    border: 1px solid #e8eaed;
    border-left: 4px solid #ffb02e;
    /* 橙色竖线：一眼看出这是推广区，不是下载项 */
    border-radius: 8px;
}

.extpack-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.extpack-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

/* 「可选」小标签 */
.extpack-tag {
    font-size: 11px;
    line-height: 1;
    padding: 3px 6px;
    color: #8a6d1f;
    background-color: #fff4dd;
    border: 1px solid #ffe0a3;
    border-radius: 4px;
}

.extpack-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #5f6368;
    margin: 0 0 4px;
}

.extpack-desc b {
    color: #333;
    font-weight: 600;
}

.extpack-btns {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* 两个按钮平分宽度，窄屏自动换行 */
.extpack-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 7px;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.extpack-btn:hover {
    background-color: #f1f3f4;
    border-color: #c4c7cb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.extpack-btn img {
    height: 1.15em;
    width: auto;
    flex-shrink: 0;
}

/* 窄屏：按钮竖排，避免文字被挤断 */
@media (max-width: 420px) {
    .extpack-btns {
        flex-direction: column;
    }
}
