/*
Theme Name: Hwamda Precision News Ultimate
Version: 3.0
Description: 工业级响应式主题：包含SEO关键词矩阵，PC端4列网格，移动端自适应。
*/

/* 基础重置 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; background-color: #f1f5f9; color: #1b2735; line-height: 1.5; }

/* 顶部导航 */
header { background: #1b2735; padding: 18px 0; border-bottom: 3px solid #55aaff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.header-container { max-width: 1300px; margin: 0 auto; display: flex; align-items: center; padding: 0 24px; }
.header-container img.logo { height: 45px; margin-right: 18px; }
.header-container h1 { color: #ffffff; font-size: 24px; margin: 0; font-weight: 800; letter-spacing: -0.5px; }

/* 首页新闻网格 */
.news-grid { max-width: 1300px; margin: 50px auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; padding: 0 24px; }
@media (max-width: 1200px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; margin: 25px auto; padding: 0 20px; } }

.news-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 30px; display: flex; flex-direction: column; text-decoration: none; transition: all 0.4s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.news-card:hover { transform: translateY(-8px); border-color: #cc0000; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.news-card h3 { font-size: 19px; margin: 10px 0; color: #1b2735; font-weight: 800; }
.news-excerpt { font-size: 14px; color: #64748b; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { font-size: 12px; font-weight: 900; color: #cc0000; text-transform: uppercase; margin-top: auto; }

/* SEO 页脚样式 - 匹配截图 */
footer { background: #1b2735; color: #ffffff; padding: 60px 24px 40px; border-top: 4px solid #cc0000; margin-top: 80px; }
.footer-container { max-width: 1300px; margin: 0 auto; }
.seo-matrix { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; margin-bottom: 40px; }
.seo-matrix h4 { color: #55aaff; font-size: 16px; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.keyword-links { display: flex; flex-wrap: wrap; gap: 12px; }
.keyword-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: 4px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); }
.keyword-links a:hover { background: #cc0000; color: #ffffff; border-color: #cc0000; transform: translateY(-2px); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.4); }
@media (max-width: 768px) { .footer-bottom { flex-direction: column; gap: 15px; text-align: center; } }

/* 阅读页图片 */
.article-header { background: #fff; padding: 60px 24px; text-align: center; border-bottom: 1px solid #e2e8f0; }
.article-body { max-width: 900px; margin: 40px auto; padding: 0 24px; font-size: 18px; }
.article-body img { width: 100% !important; height: auto !important; border-radius: 12px; margin: 30px 0; }