/* style.css */
:root {
    --primary-color: #2b63eb;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f4f7f9;
    --white: #fff;
    --border-color: #eee;
    --footer-bg: #1e293b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text-color); line-height: 1.6; background-color: var(--bg-light); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Nav */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary-color); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 16px; color: var(--text-color); transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-color); }
.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--text-color); }

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 999; transition: right 0.3s ease; padding: 20px; display: flex; flex-direction: column; }
.mobile-menu.active { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.close-menu { font-size: 24px; cursor: pointer; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-links a { font-size: 18px; display: block; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; display: none; }
.overlay.active { display: block; }

/* Hero Section (Index) */
.hero { background: var(--white); border-bottom: 1px solid var(--border-color); padding: 60px 0; }
.hero-inner { display: flex; align-items: center; } /* 新增了包裹类，替代行内样式 */
.hero-img { flex: 1; text-align: center; }
.hero-content { flex: 1; padding: 0 40px; }
.hero-content h1 { font-size: 36px; margin-bottom: 20px; }
.hero-content p { color: var(--text-light); margin-bottom: 30px; }
.btn-primary { background: var(--primary-color); color: var(--white); padding: 12px 24px; border-radius: 6px; display: inline-block; font-weight: bold; text-align: center; transition: background 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { background: #f1f5f9; color: var(--text-color); padding: 12px 24px; border-radius: 6px; display: inline-block; text-align: center; transition: background 0.3s; margin-left: 10px; }
.btn-outline:hover { background: #e2e8f0; }

/* Platform Cards (Index) */
.platforms { padding: 50px 0; }
.section-title { text-align: center; font-size: 28px; margin-bottom: 40px; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; }
.card i { font-size: 48px; color: var(--text-color); margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.card .btn-primary { width: 100%; margin: 0; }

/* News Section (Index) */
.news { padding: 50px 0; background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: transform 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-content { padding: 20px; }
.news-content h4 { font-size: 18px; margin-bottom: 10px; }
.news-content p { font-size: 14px; color: var(--text-light); }

/* Info Page Styles */
.breadcrumb { padding: 20px 0; font-size: 14px; color: var(--text-light); }
.article-container { background: var(--white); padding: 50px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 50px; max-width: 900px; margin-left: auto; margin-right: auto; }
.article-title { font-size: 32px; margin-bottom: 15px; }
.article-meta { color: var(--text-light); font-size: 14px; margin-bottom: 40px; display: flex; align-items: center; gap: 10px; }
.article-section { margin-bottom: 40px; }
.article-section h2 { font-size: 22px; color: var(--text-color); border-left: 4px solid var(--primary-color); padding-left: 15px; margin-bottom: 20px; }
.article-section p { color: var(--text-light); margin-bottom: 15px; }
.step-list { padding-left: 0; }
.step-item { background: #f8fafc; padding: 20px; border-radius: 8px; margin-bottom: 15px; border-left: 4px solid #cbd5e1; }
.step-item h3 { font-size: 18px; margin-bottom: 10px; }
.step-item p { margin-bottom: 0; }

/* Floating Share Widget */
.float-share-wrapper { 
    position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 900; 
    display: flex; flex-direction: column; gap: 10px; 
    align-items: flex-end; /* 修复了另外一个按钮跟着移动的问题 */
}
.share-item { display: flex; align-items: center; justify-content: flex-start; height: 50px; width: 50px; background: var(--primary-color); color: var(--white); border-radius: 8px 0 0 8px; cursor: pointer; overflow: hidden; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -2px 2px 10px rgba(0,0,0,0.1); }
.share-item i { min-width: 50px; text-align: center; font-size: 24px; line-height: 50px; }
.share-item span { white-space: nowrap; padding-right: 20px; font-weight: bold; opacity: 0; transition: opacity 0.2s; }
.share-item:hover { width: 180px; }
.share-item:hover span { opacity: 1; transition-delay: 0.1s; }
.share-tg { background: #3b82f6; } 
.share-yt { background: #ef4444; }

/* Footer */
footer { background: var(--footer-bg); color: #94a3b8; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-title { color: var(--white); font-size: 18px; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links i { margin-right: 10px; width: 16px; text-align: center; }
.copyright { text-align: center; border-top: 1px solid #334155; padding-top: 20px; font-size: 14px; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    
    /* 修复顶部排版，确保图片在上面 */
    .hero { padding: 30px 0; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-img { margin-bottom: 30px; order: -1; } /* 强制图片排在文本上方 */
    .hero-content { padding: 0 20px; }
    
    .btn-outline { margin-left: 0; margin-top: 10px; display: block; }
    .btn-primary { display: block; }
    .article-container { padding: 25px; margin: 15px; border-radius: 8px; }
    .float-share-wrapper { top: 70%; transform: scale(0.85); transform-origin: right center; }
}


/* QR Code Modal (二维码弹窗) */
.qr-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.qr-modal-overlay.active {
    opacity: 1; visibility: visible;
}
.qr-modal-content {
    background: var(--white); padding: 30px 40px; border-radius: 12px;
    text-align: center; position: relative;
    transform: translateY(-20px); transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.qr-modal-overlay.active .qr-modal-content {
    transform: translateY(0);
}
.qr-close-btn {
    position: absolute; top: 15px; right: 20px;
    font-size: 20px; color: var(--text-light); cursor: pointer;
    transition: color 0.3s;
}
.qr-close-btn:hover { color: var(--text-color); }
.qr-modal-content h3 { margin-bottom: 10px; font-size: 20px; color: var(--text-color); }
.qr-modal-content p { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }

/* 确保二维码居中显示 */
#qrcode-container {
    display: flex; justify-content: center; margin-top: 20px;
    background: var(--white); padding: 10px; border-radius: 8px; border: 1px solid var(--border-color);
}
#qrcode-container img { margin: 0 auto; }

