/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; line-height: 1.6; color: #333; background: #f4f4f4; }
a { text-decoration: none; color: #333; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* 容器 */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* 顶部栏 */
.top-bar { background: #222; color: #fff; padding: 8px 0; font-size: 14px; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-bar a { color: #ccc; margin: 0 5px; }

/* 头部 */
header { background: #fff; padding: 20px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo h1 a { font-size: 28px; color: #007bff; font-weight: bold; }
.main-nav ul { display: flex; }
.main-nav li { margin-left: 25px; }
.main-nav a { font-size: 16px; font-weight: 500; }
.main-nav a:hover, .main-nav .active a { color: #007bff; }

/* 面包屑 */
.breadcrumb { background: #e9ecef; padding: 10px 0; font-size: 14px; color: #666; margin-bottom: 20px; }

/* Hero区域 */
.hero { background: linear-gradient(135deg, #007bff, #0056b3); color: #fff; padding: 60px 0; text-align: center; }
.hero h2 { font-size: 36px; margin-bottom: 15px; }
.btn { display: inline-block; background: #fff; color: #007bff; padding: 10px 25px; border-radius: 5px; font-weight: bold; margin-top: 20px; }

/* 轮播图 */
.carousel-box { margin: 20px 0; background: #000; height: 300px; position: relative; overflow: hidden; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-title { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; padding: 10px; text-align: center; }

/* 主体内容 */
.main-content { display: flex; gap: 30px; margin-top: 30px; margin-bottom: 40px; }
.content-left { flex: 2; background: #fff; padding: 20px; border-radius: 5px; }
.content-right { flex: 1; }

/* 文章列表 */
.section-title { border-left: 5px solid #007bff; padding-left: 10px; margin-bottom: 20px; font-size: 20px; }
.news-item { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
.news-item h4 { font-size: 18px; margin-bottom: 10px; }
.news-item h4 a:hover { color: #007bff; }
.meta { color: #999; font-size: 12px; margin-bottom: 10px; }
.read-more { color: #007bff; font-size: 14px; font-weight: bold; }

/* 侧边栏 */
.widget { background: #fff; padding: 15px; margin-bottom: 20px; border-radius: 5px; }
.widget h3 { font-size: 16px; border-bottom: 2px solid #f4f4f4; padding-bottom: 10px; margin-bottom: 10px; }
.widget ul li { border-bottom: 1px dashed #eee; padding: 8px 0; }
.widget ul li a:hover { color: #007bff; }
.tags a { display: inline-block; background: #eee; padding: 5px 10px; margin: 5px 5px 0 0; font-size: 12px; border-radius: 3px; }

/* 关于我们页 */
.about-content { background: #fff; padding: 30px; }
.about-content h1 { margin-bottom: 20px; }
.about-content h2 { margin-top: 30px; margin-bottom: 15px; font-size: 20px; color: #007bff; }

/* Footer */
footer { background: #222; color: #ccc; padding-top: 40px; font-size: 14px; }
.footer-content { display: flex; justify-content: space-between; padding-bottom: 30px; }
.footer-column h3 { color: #fff; margin-bottom: 15px; }
.footer-column ul li { margin-bottom: 8px; }
.footer-column a { color: #ccc; }
.footer-column a:hover { color: #fff; }

.copyright { background: #111; padding: 15px 0; text-align: center; font-size: 12px; border-top: 1px solid #333; }
.auto-update { color: #ff9800; margin-top: 5px; font-weight: bold; }

/* 移动端适配 */
@media (max-width: 768px) {
    .main-content { flex-direction: column; }
    .header-inner { flex-direction: column; }
    .main-nav ul { margin-top: 15px; }
    .footer-content { flex-direction: column; gap: 20px; }
} 