/* 基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #333; background: #f5f5f5; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: #fff; border-bottom: 1px solid #eee; padding: 1rem 2rem; position: sticky; top: 0; z-index: 100; }
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 1.5rem; font-weight: bold; color: #333; }
.nav-links a { margin-left: 2rem; }
main { max-width: 1200px; margin: 0 auto; padding: 2rem; }
footer { text-align: center; padding: 2rem; color: #666; border-top: 1px solid #eee; margin-top: 2rem; }
.hero { text-align: center; padding: 4rem 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; margin: -2rem -2rem 2rem -2rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.tagline { font-size: 1.2rem; opacity: 0.9; }
.products { margin: 3rem 0; }
.products h2 { margin-bottom: 1.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.product-card { background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.product-card h3 { margin-bottom: 0.5rem; }
.product-card ul { margin-top: 1rem; padding-left: 1.5rem; }
.post-list { display: grid; gap: 1rem; }
.post-item { background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.post-item h3 { margin-bottom: 0.5rem; }
.post-item time { color: #666; font-size: 0.9rem; }
.post { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.post h1 { margin-bottom: 0.5rem; }
.post .meta { color: #666; margin-bottom: 2rem; }
.post .content { line-height: 1.8; }
.post h2 { margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; }
.post h3 { margin: 1.5rem 0 0.5rem; }
.post ul { margin: 1rem 0; padding-left: 2rem; }
.post li { margin: 0.5rem 0; }
.article-img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.img-caption { font-size: 0.9rem; color: #666; text-align: center; margin-top: 0.5rem; margin-bottom: 1.5rem; }
@media (max-width: 768px) {
    .nav-links a { margin-left: 1rem; }
    main { padding: 1rem; }
    .hero { padding: 2rem 1rem; }
    .hero h1 { font-size: 1.8rem; }
}

/* Downloads Page */
.download-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.download-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-left: 4px solid #667eea; transition: transform 0.2s; }
.download-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.download-card h3 { margin-bottom: 0.75rem; color: #333; }
.download-desc { font-size: 0.9rem; color: #555; line-height: 1.6; margin-bottom: 1rem; }
.download-meta { display: flex; gap: 1.5rem; font-size: 0.85rem; color: #888; margin-bottom: 1rem; }
.download-btn { display: inline-block; background: #667eea; color: #fff !important; padding: 0.6rem 1.5rem; border-radius: 6px; font-weight: 600; text-align: center; margin-right: 0.75rem; }
.download-btn:hover { background: #764ba2; text-decoration: none !important; }
.related-link { color: #0066cc; font-size: 0.9rem; }

.lang-switch {
    margin-left: auto;
    padding: 0 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}
.lang-switch a {
    color: #333;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
}
.lang-switch a:hover {
    background: #f0f0f0;
}
.lang-switch .lang-en { color: #0066cc; }
.lang-switch .lang-zh { color: #cc0000; }
@media (max-width: 768px) {
    .lang-switch { margin-left: 0; padding: 0.5rem 0; }
    nav { flex-wrap: wrap; }
}