/* =========================================
   Multi-tenant Official Website Styles
   简洁企业站风格
   ========================================= */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333; line-height: 1.6; background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff; border-bottom: 1px solid #eee; padding: 15px 0;
    position: sticky; top: 0; z-index: 100;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
    display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: #1a1a1a;
}
.site-logo img { height: 36px; width: auto; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { font-size: 15px; color: #555; transition: color .2s; }
.site-nav a:hover { color: #1a6fff; }

/* Footer */
.site-footer {
    background: #f7f8fa; border-top: 1px solid #eee;
    padding: 30px 0 20px; 
    /* margin-top: 60px;  */
    text-align: center;
}
.footer-info p { font-size: 14px; color: #666; margin: 4px 0; }
.footer-copyright { font-size: 13px; color: #999; margin-top: 12px; }

/* Main */
.site-main { min-height: 60vh; }

/* Error Page */
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-size: 72px; color: #ddd; }
.error-page p { font-size: 18px; color: #999; margin-top: 16px; }

/* Homepage Default */
.homepage-default .hero {
    background: linear-gradient(135deg, #1a6fff 0%, #4e9fff 100%);
    color: #fff; padding: 80px 0; text-align: center;
}
.homepage-default .hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero-subtitle { font-size: 18px; opacity: .9; }
.hero-phone { font-size: 22px; margin-top: 24px; font-weight: 600; }
.homepage-default .about-section { padding: 60px 0; }
.homepage-default .about-section h2 { font-size: 24px; margin-bottom: 16px; text-align: center; }
.homepage-default .about-section p { color: #666; text-align: center; }
.articles-section { padding: 40px 0; }
.articles-section h2 { font-size: 24px; margin-bottom: 24px; text-align: center; }
.view-all { display: inline-block; margin-top: 20px; padding: 10px 24px;
    background: #1a6fff; color: #fff; border-radius: 4px; font-size: 14px; }
.view-all:hover { background: #1560e6; }
.no-articles { text-align: center; color: #999; padding: 40px 0; }

/* Article List */
.article-list-page { padding: 40px 0; }
.page-title { font-size: 26px; margin-bottom: 30px; text-align: center; }

.article-list .article-item {
    border-bottom: 1px solid #f0f0f0; padding: 20px 0;
}
.article-list .article-item:last-child { border-bottom: none; }
.article-list .article-item a {
    display: flex; gap: 20px; align-items: flex-start;
}
.article-item-image { flex-shrink: 0; width: 180px; height: 120px; overflow: hidden; border-radius: 6px; }
.article-item-image img { width: 100%; height: 100%; object-fit: cover; }
.article-item-content { flex: 1; }
.article-item-content h3 {
    font-size: 17px; font-weight: 500; color: #1a1a1a;
    margin-bottom: 8px; line-height: 1.5;
}
.article-summary { font-size: 14px; color: #888; line-height: 1.6; margin-bottom: 6px; }
.article-date { font-size: 13px; color: #bbb; }

.article-list .article-item:hover h3 { color: #1a6fff; }

/* Pagination */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin-top: 30px;
}
.pagination a {
    padding: 6px 16px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 14px; color: #555;
}
.pagination a:hover { border-color: #1a6fff; color: #1a6fff; }
.page-info { font-size: 14px; color: #999; }

/* Article Detail */
.site-article { padding: 40px 0; max-width: 800px; margin: 0 auto; }
.article-header h1 { font-size: 26px; line-height: 1.4; margin-bottom: 16px; }
.article-meta { display: flex; gap: 16px; color: #999; font-size: 14px; margin-bottom: 30px; }
.article-content { font-size: 16px; line-height: 1.8; color: #333; }
.article-content img { max-width: 100%; border-radius: 4px; margin: 16px 0; }
.article-content p { margin-bottom: 16px; }
.article-content h2, .article-content h3 { margin: 24px 0 12px; }
.article-back { max-width: 800px; margin: 0 auto 40px; }
.article-back a { color: #1a6fff; font-size: 15px; }
.article-back a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 640px) {
    .site-header .container { flex-direction: column; gap: 10px; }
    .site-nav { gap: 16px; }
    .homepage-default .hero { padding: 50px 0; }
    .homepage-default .hero h1 { font-size: 26px; }
    .hero-phone { font-size: 18px; }
    .article-list .article-item a { flex-direction: column; }
    .article-item-image { width: 100%; height: 180px; }
    .site-article { padding: 20px 0; }
    .article-header h1 { font-size: 22px; }
}
