/* 北京信息港样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans SC', sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 简约黄历 - 首页用 - 红金色主题 */
.calendar-simple { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); padding: 12px 0; cursor: pointer; transition: all 0.3s; }
.calendar-simple:hover { background: linear-gradient(135deg, #d63031 0%, #b71c1c 100%); }
.cal-simple-wrap { display: flex; align-items: center; justify-content: center; gap: 25px; color: #fff; flex-wrap: wrap; }
.cal-s-item { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 10px; border-radius: 8px; }
.cal-s-item:hover { background: rgba(255,255,255,0.15); }
.cal-s-label { font-size: 13px; background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 15px; }
.cal-s-value { font-size: 13px; font-weight: 500; }
.cal-s-value.yi-text { color: #ffd700; }
.cal-s-value.ji-text { color: #ffcccc; }
.cal-s-more { background: rgba(255,215,0,0.2); padding: 6px 15px; border-radius: 20px; font-size: 12px; color: #ffd700; }
.cal-s-more:hover { background: rgba(255,215,0,0.35); }

/* 天气 */
.cal-s-weather { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.15); padding: 6px 15px; border-radius: 20px; cursor: pointer; }
.cal-s-weather:hover { background: rgba(255,255,255,0.25); }
.weather-icon { font-size: 18px; }
.weather-temp { font-size: 14px; font-weight: 600; }
.weather-city { font-size: 12px; }
.weather-desc { font-size: 12px; }
.weather-more { font-size: 11px; opacity: 0.8; margin-left: 5px; }

/* 万年历 */
.calendar-full { background: rgba(255,255,255,0.1); border-radius: 16px; padding: 20px; max-width: 700px; }
.cal-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.cal-month { background: rgba(0,0,0,0.2); border-radius: 10px; padding: 10px; }
.cal-month-title { color: #ffd700; font-size: 14px; text-align: center; margin-bottom: 8px; font-weight: 500; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 11px; color: #999; margin-bottom: 5px; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day { text-align: center; padding: 4px 2px; font-size: 11px; position: relative; border-radius: 4px; }
.cal-day:hover { background: rgba(255,255,255,0.1); }
.cal-day b { display: block; font-size: 13px; }
.cal-day em { display: block; font-size: 9px; color: #aaa; font-style: normal; }
.cal-day i { display: block; font-size: 8px; color: #ff6b6b; font-style: normal; }
.cal-day.today { background: #e74c3c; }
.cal-day.today b, .cal-day.today em, .cal-day.today i { color: #fff; }
.cal-day.festival i { color: #ffd700; }
.cal-day .empty { display: block; }

/* 顶部导航 */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: 45px; height: 45px; border-radius: 50%; }
.logo .zh { font-size: 24px; font-weight: 700; color: #e74c3c; }
.logo:hover .zh { color: #c0392b; }
.nav { display: flex; gap: 12px; flex-wrap: nowrap; overflow-x: auto; justify-content: center; }
.nav a { padding: 6px 12px; border-radius: 15px; font-size: 14px; white-space: nowrap; transition: all 0.3s; }
.nav a:hover, .nav a.active { background: #e74c3c; color: #fff; }
.header-actions { display: flex; gap: 10px; }
.btn-login, .btn-register { padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 14px; border: none; }
.btn-login { background: #fff; border: 1px solid #e74c3c; color: #e74c3c; }
.btn-register { background: #e74c3c; color: #fff; }

/* 搜索栏 */
.search-bar { background: linear-gradient(135deg, #e74c3c, #c0392b); padding: 20px 0; }
.search-box { display: flex; max-width: 600px; margin: 0 auto; }
.search-box input { flex: 1; padding: 15px 20px; border: none; border-radius: 30px 0 0 30px; font-size: 16px; }
.search-box button { padding: 15px 30px; background: #c0392b; color: #fff; border: none; border-radius: 0 30px 30px 0; cursor: pointer; font-size: 16px; }
.search-box button:hover { background: #a93226; }

/* 横幅 */
.banner { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 60px 0; text-align: center; }
.banner-content h1 { font-size: 48px; margin-bottom: 15px; }
.banner-content p { font-size: 20px; margin-bottom: 25px; opacity: 0.9; }
.banner-tags { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.banner-tags span { background: rgba(255,255,255,0.2); padding: 8px 20px; border-radius: 20px; font-size: 14px; }

/* 主体区域 */
.main { padding: 40px 0; }
.section { margin-bottom: 40px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h2 { font-size: 24px; color: #333; }
.section-header a { color: #666; font-size: 14px; }
.section-header a:hover { color: #e74c3c; }

/* 资讯网格 */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.news-card img { width: 100%; height: 150px; object-fit: cover; }
.news-card-content { padding: 15px; }
.news-card h3 { font-size: 16px; margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .meta { font-size: 12px; color: #999; display: flex; justify-content: space-between; }
.news-card .tag { background: #e74c3c; color: #fff; padding: 3px 10px; border-radius: 10px; font-size: 12px; }

/* 分类区域 */
.category-section { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.category-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.category-card h3 { font-size: 18px; margin-bottom: 15px; color: #333; border-bottom: 2px solid #e74c3c; padding-bottom: 10px; }
.category-list li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.category-list li:hover { color: #e74c3c; }
.category-list li a { display: flex; justify-content: space-between; }
.category-list li .title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-list li .date { color: #999; font-size: 12px; }
.more-link { display: block; text-align: center; padding: 10px; color: #666; font-size: 14px; }
.more-link:hover { color: #e74c3c; }

/* 服务网格 */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.service-item { background: #fff; padding: 20px; border-radius: 12px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.3s; }
.service-item:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.service-item .icon { font-size: 32px; margin-bottom: 10px; }
.service-item h4 { font-size: 14px; color: #333; }
.service-item p { font-size: 12px; color: #999; margin-top: 5px; }

/* 论坛列表 */
.forum-list { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.forum-item { display: flex; align-items: center; padding: 20px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.3s; }
.forum-item:hover { background: #fafafa; }
.forum-item:last-child { border-bottom: none; }
.forum-item .avatar { width: 50px; height: 50px; border-radius: 50%; background: #e74c3c; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 15px; flex-shrink: 0; }
.forum-item .content { flex: 1; }
.forum-item h4 { font-size: 16px; margin-bottom: 5px; }
.forum-item .info { font-size: 12px; color: #999; }
.forum-item .reply { background: #f0f0f0; padding: 5px 15px; border-radius: 15px; font-size: 12px; color: #666; }

/* 悬浮发布按钮 */
.fab-post { 
    position: fixed; bottom: 30px; right: 30px; 
    width: auto; height: auto; 
    padding: 15px 25px;
    background: linear-gradient(135deg, #e74c3c, #c0392b); 
    color: #fff; border: none; border-radius: 30px; 
    font-size: 16px; font-weight: 600; cursor: pointer; 
    box-shadow: 0 4px 20px rgba(231,76,60,0.4); 
    transition: all 0.3s; z-index: 9999; 
    display: flex; align-items: center; gap: 8px;
}
.fab-post:hover { transform: scale(1.05); box-shadow: 0 6px 25px rgba(231,76,60,0.5); }
.fab-post::before { content: "+"; font-size: 20px; font-weight: 700; }

/* 底部 */
.footer { background: #c0392b; color: #fff; padding: 40px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-section h4 { font-size: 18px; margin-bottom: 15px; color: #ffd700; }
.footer-section p { font-size: 14px; opacity: 0.9; line-height: 1.8; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section a { opacity: 0.9; font-size: 14px; }
.footer-section a:hover { color: #ffd700; }
.footer-section a:hover { opacity: 1; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; opacity: 0.7; }

/* 空状态 */
.empty-state { text-align: center; padding: 40px; color: #999; }
.empty-state .icon { font-size: 48px; margin-bottom: 15px; }

/* 响应式 */
@media (max-width: 768px) {
    .header-main { flex-direction: column; gap: 15px; }
    .nav { gap: 10px; justify-content: center; }
    .nav a { padding: 6px 12px; font-size: 14px; }
    .banner-content h1 { font-size: 32px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .category-section { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; gap: 20px; }
    .fab-post { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; }
}

@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; }
    .header-actions { width: 100%; justify-content: center; }
}