/* wechat.css - 信息交流赞助平台微信公众号样式 */

/* 1. 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. 容器布局 */
.wechat-container {
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* 3. 头部样式 */
.wechat-header {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #07c160 0%, #09b85a 100%);
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    position: relative;
    overflow: hidden;
}

.wechat-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.wx-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.wx-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.wechat-header h1 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wx-desc {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 4. 主要内容区域 */
.wechat-content {
    flex: 1;
    padding: 20px 15px;
}

/* 5. 二维码区域 */
.wx-qrcode {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.wx-qrcode h3 {
    font-size: 18px;
    color: #07c160;
    margin-bottom: 15px;
    font-weight: 500;
}

.wx-qrcode img {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 5px;
    background-color: white;
    transition: transform 0.3s ease;
}

.wx-qrcode img:hover {
    transform: scale(1.02);
}

.wx-qrcode p {
    font-size: 14px;
    color: #666;
}

/* 6. 功能服务区域 */
.wx-features {
    margin-bottom: 30px;
}

.wx-features h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}

.wx-features h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #07c160;
    border-radius: 2px;
}

.wx-features ul {
    list-style: none;
}

.wx-features li {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #07c160;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.wx-features li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background-color: #f0f9f4;
}

.feature-icon {
    font-size: 28px;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(7, 193, 96, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.feature-content p {
    font-size: 14px;
    color: #666;
}

/* 7. 操作按钮区域 */
.wx-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.wx-btn {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    padding: 14px 20px;
    background-color: #07c160;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(7, 193, 96, 0.3);
    position: relative;
    overflow: hidden;
}

.wx-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.wx-btn:focus {
    outline: none;
}

.wx-btn:active::after {
    animation: ripple 0.6s ease-out;
}

.wx-btn:hover {
    background-color: #06ad56;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(7, 193, 96, 0.4);
}

.wx-btn:active {
    transform: translateY(1px);
}

/* 按钮点击效果 */
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* 8. 底部样式 */
.wechat-footer {
    text-align: center;
    padding: 20px 15px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 13px;
    border-top: 1px solid #eaeaea;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.wechat-footer p {
    margin-bottom: 5px;
}

.wechat-footer p:last-child {
    margin-bottom: 0;
}

/* 9. 响应式设计 */
@media (max-width: 480px) {
    .wechat-header {
        padding: 15px 10px;
    }
    
    .wx-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }
    
    .wechat-header h1 {
        font-size: 20px;
    }
    
    .wx-desc {
        font-size: 13px;
    }
    
    .wechat-content {
        padding: 15px 10px;
    }
    
    .wx-qrcode {
        padding: 15px;
    }
    
    .wx-qrcode img {
        width: 180px;
        height: 180px;
    }
    
    .wx-features li {
        padding: 12px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 24px;
        margin-right: 12px;
    }
    
    .wx-btn {
        min-width: 100%;
        max-width: 100%;
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .wx-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* 10. 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
    }
    
    .wechat-container {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
    
    .wx-qrcode {
        background-color: #2d2d2d;
        border-color: #3d3d3d;
    }
    
    .wx-features li {
        background-color: #2d2d2d;
        border-left-color: #07c160;
    }
    
    .wx-features li:hover {
        background-color: #333333;
    }
    
    .feature-content h4 {
        color: #e0e0e0;
    }
    
    .feature-content p {
        color: #aaa;
    }
    
    .wx-qrcode p {
        color: #aaa;
    }
    
    .wechat-footer {
        background-color: #252525;
        border-top-color: #333;
        color: #aaa;
    }
}

/* 11. 打印样式 */
/* @media print {
    .wx-btn {
        display: none;
    }
    
    .wechat-header {
        background: #07c160 !important;
        -webkit-print-color-adjust: exact;
    }
} */