/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.banner {
    background: url('banner.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 4rem 1rem;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    background: #ff6600;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.features {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.feature-item {
    text-align: center;
    flex: 1;
    margin: 0 1rem;
}

/* 文章元信息样式 */
.article-meta {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-time {
    color: #999;
    position: relative;
    padding-left: 22px;
}

.article-time:before {
    content: "📅";
    position: absolute;
    left: 0;
    top: 1px;
}

.article-author {
    color: #007bff;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    .article-author {
        border-left: none;
        padding-left: 0;
    }
}

.news {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.news ul {
    list-style: none;
    padding: 0;
}

.news li {
    margin: 0.5rem 0;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* 基础图片样式 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 特殊长图处理（如超长截图） */
.long-image {
  width: 100%;
  object-fit: contain;
}

/* 移动端特定适配 */
@media (max-width: 768px) {
  .mobile-optimized {
    max-height: 70vh; /* 限制最大高度 */
    object-fit: contain;
  }
  
  /* 针对特定比例图片的优化 */
  .vertical-image {
    width: auto;
    max-height: 80vh;
    margin: 0 auto;
  }
}
