*{
    font-family: "苹方", -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: #f5f7fa;
    padding-top: 80px;
}
.home{
    max-width: 1400px; /* 增加最大宽度 */
    min-height:300px;
    display: block;
    margin:0 auto;
    padding: 0 15px;
    width: 100%; /* 确保容器占满可用宽度 */
}
.kui{
    padding: 15px 25px;
    border-radius: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #3e4449;
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
a {
    text-decoration: none; /* 去除默认的下划线 */
    outline: none;	/* 去除旧版浏览器的点击后的外虚线框 */
    color: #20a53a;	/* 去除默认的颜色和点击后变化的颜色 */
}
.title{
    font-size: 20px;
    margin-top: 10px;
    font-weight: 500;
    color: #6c757d;
}
.app{
    display: inline-block;
    width: 25%;
    margin-bottom: 10px;
}
.app-title{
    text-align: center;
    margin: 8px auto;
    color: black;
    font-size: 14px;
    font-weight: 500;
}
.app-img{
    width: 80%;
    max-width: 100px;
    border: 1px solid #FFFFFFFF;
    border-radius: 10px;
    clear: both;
    display: block;
    margin: auto;
}
.m-img{
    width: 95%;
    max-width: 330px;
    max-height: 330px
}
.button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #45a049;
}

.content-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 12px;
}

.app-lists {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC端固定4列 */
    gap: 15px; /* 减小间距 */
    margin: 20px 0;
    width: 100%; /* 确保列表占满容器宽度 */
}

.app-item {
    height: auto;
    min-height: 90px;
    display: flex;
    padding: 12px;
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* 移除卡片悬停效果，只保留按钮交互 */
.app-item {
    cursor: default;
}

/* 显示下载按钮 */
.app-item .app-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.app-item .app-button:hover {
    background-color: #45a049;
}

/* 卡片内容样式 */
.app-item .pic {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border: 1px solid #E4E3E3;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 6px;
}

.app-item .pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.app-item .app-name-desc {
    flex: 1;
    margin: 0 6px;
    text-align: left;
    min-width: 0;
}

.app-item .app-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2c3e50; /* 深色标题，更清晰 */
}

/* 应用名称中下划线后面的部分显示为红色 */
.app-item .app-name .red-suffix {
    color: #f81900;
}

.app-item .app-desc {
    font-size: 13px;
    color: #e74c3c; /* 更鲜艳的红色，更清晰 */
    font-weight: bold;
    line-height: 1.2;
}

.title {
    text-align: center;
    color: red;
}

a:link {
    text-decoration: none;
}

.app-item .app-name .tip-icon {
    padding: 0px 2px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.15);
    font-size: 9px;
    color: #FFF;
    text-align: center;
    margin-left: 4px;
    margin-bottom: 4px;
}

.app-name {
    font-size: 20px;
    font-weight: bold;
}

/* 固定顶部栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 5px 0;
}

.header .kui {
    margin: 0 auto;
    padding: 5px 25px;
    width: 60%;
    background-color: #fff;
    box-shadow: none;
}

.header h1 {
    color: #000;
    margin: 0;
    font-size: 24px;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}

/* 图片和文字布局 */
.image-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 10px 0; /* 减小上下边距 */
}

.image-container {
    text-align: center;
}

.image-container h3 {
    margin: 0 0 10px 0; /* 减小标题下方边距 */
}

.image-container img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 0; /* 移除图片底部边距 */
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .app-lists {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .app-lists {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px; /* 减小移动端顶部padding */
    }
    
    .header .kui {
        width: 100%; /* 移动端标题栏全宽 */
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .button {
        width: 100%;
        max-width: 300px;
    }
    
    .image-section {
        margin: 5px 0; /* 移动端更小的边距 */
        gap: 15px; /* 移动端更小的间距 */
    }
    
    .image-container h3 {
        margin: 0 0 8px 0; /* 移动端更小的标题边距 */
    }
    
    .app-lists {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .app-item {
        min-height: 85px; /* 移动端更小的高度 */
        padding: 8px; /* 移动端更小的内边距 */
    }
    
    .app-item .pic {
        width: 40px; /* 移动端更小的图标 */
        height: 40px;
    }
}

/* 在移动端隐藏二维码 */
@media screen and (max-width: 768px) {
    .wechat-qrcode {
        display: none;
    }
}
/* 在PC端显示二维码 */
@media screen and (min-width: 769px) {
    .wechat-qrcode {
        display: block;
    }
}
/* 图片放大遮罩层 */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-overlay img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
}

/* 自定义弹窗样式 */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 85%;
    width: 340px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-message {
    margin-bottom: 30px;
}

.modal-message h3 {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.modal-message p {
    margin: 0;
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

.modal-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    color: white;
    padding: 14px 35px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    letter-spacing: 1px;
}

.modal-button:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.modal-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}