/* 基础样式 */
:root {
    --primary-color: #6e8efb;
    --secondary-color: #a777e3;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --windows-blue: #00adef;
    --android-green: #3ddc84;
    --tool-color: #6c757d;
    --tool-btn-color: #5a67d8;
}
a {
  text-decoration: none;
}
/* 确保HTML和Body元素占据整个视口高度 */
html, body {
    height: 100%; /* 确保HTML和Body高度为100% */
    margin: 0; /* 移除默认外边距 */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #f5f7fa;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 20px rgba(110, 142, 251, 0.3);
}

/* 下载卡片 */
.download-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon img {
    width: 50px;
    height: 50px;
}

/* 下载按钮 */
.download-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* 默认背景 */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(110, 142, 251, 0.3);
}

.download-btn:hover {
    /* 移除背景颜色变化，仅保留阴影和位移效果 */
    box-shadow: 0 6px 15px rgba(110, 142, 251, 0.4);
    color: white;
    transform: translateY(-2px);
}

/* 运行环境下载区域 */
.tools-section {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-card {
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 运行环境标题加粗 */
.bold-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--tool-color);
}

.tool-card p {
    font-size: 0.9rem;
    color: #6c757d;
    flex-grow: 1;
}

/* 重新设计的运行环境下载按钮 */
.tool-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--tool-btn-color); /* 默认背景 */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(90, 103, 216, 0.2);
}

.tool-download-btn:hover {
    /* 移除背景颜色变化，仅保留阴影和位移效果 */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(90, 103, 216, 0.3);
}

.tool-btn-text {
    font-weight: 500;
}

/* 二维码悬浮层 - 居中显示 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.qr-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.qr-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

/* 美化关闭按钮 */
.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
}

.close-btn:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

/* --- UPDATED WECHAT TIP STYLES --- */
/* 提示遮罩层的基本样式 */
.wechat-tip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* 保持顶部对齐和左右内边距 */
    justify-content: flex-start;
    padding-top: 2vh;
    padding-left: 20px;
    padding-right: 20px;
}

/* 电脑端样式 */
.wechat-tip.desktop-tip {
    align-items: flex-end; /* 右对齐 */
}

.wechat-tip.desktop-tip .arrow-container {
    height: auto;
    margin-bottom: 20px; /* 增加下边距，防止与文字重叠 */
    display: flex; /* 使内部元素可以 flex 布局 */
    justify-content: flex-end; /* 将箭头靠右对齐 */
}

.wechat-tip.desktop-tip .arrow-svg {
    width: 89px; /* 保持这个尺寸 */
    height: auto;
	margin-right: 105px;
    transform: rotate(-20deg); /* 调整旋转角度，指向右上角 */
    transform-origin: center;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.wechat-tip.desktop-tip .wechat-tip-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: auto;
    max-width: 600px; /* 允许文字更宽 */
    box-shadow: none;
    text-align: center; /* 文字内容居中对齐 */
}

/* 手机端样式 */
.wechat-tip.mobile-tip {
    align-items: flex-end; /* 将整个内容区域靠右对齐，以使箭头接近右上角 */
}

.wechat-tip.mobile-tip .arrow-container {
    height: auto;
    margin-bottom: 20px; /* 箭头和文字之间的间距 */
}

.wechat-tip.mobile-tip .arrow-svg {
    width: 80px; /* 保持这个尺寸 */
    height: auto;
	margin-right:10px;
    transform: rotate(-20deg); /* 微调旋转角度，使其更准确地指向右上角的三个点 */
    transform-origin: top right;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.wechat-tip.mobile-tip .wechat-tip-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: auto;
    max-width: 90%; /* 限制文字内容最大宽度 */
    box-shadow: none;
    text-align: center; /* 文字内容居中对齐 */
}

/* 共同的提示文字和图标样式 */
.tip-text p {
    font-size: 1.1rem;
    color: white;
    line-height: 1.6;
    font-weight: 500;
    white-space: normal;
}

.earth-icon {
    width: 22px;
    height: 22px;
    vertical-align: -4px;
    margin: 0 2px 0 5px;
    fill: white !important; /* 强制填充白色 */
}

.browser-icon {
    width: 22px;
    height: 22px;
    vertical-align: -4px;
    margin: 0 2px 0 5px;
    fill: #217cc7 !important; /* 强制填充白色 */
}

/* 移除不再需要的或冲突的样式 */
.close-tip-btn {
    display: none; /* 确保此按钮不显示 */
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .download-section {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .download-btn, .show-qr-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .bold-title {
        font-size: 1rem;
    }
    
    .tool-download-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .qr-modal-content {
        padding: 20px;
    }
    
    .qr-image {
        width: 180px;
        height: 180px;
    }
}