/* Dynamic News - Style Two CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #e63946;
}

a:hover {
    color: #d00000;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
    color: #2b2d42;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 0px;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background-color: #2b2d42;
    color: #fff;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.social-icons a {
    color: #fff;
    margin-left: 15px;
    font-size: 1.1rem;
}

.social-icons a:hover {
    color: #e63946;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
}

.logo h1 span {
    color: #e63946;
}

/* 汉堡菜单样式 */
.hamburger-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2b2d42;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 10px 15px;
    border: 2px solid #e63946;
    border-radius: 30px 0 0 30px;
    outline: none;
    width: 250px;
}

.search-box button {
    background-color: #e63946;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #d00000;
}

.main-nav {
    background-color: #e63946;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-nav a.active,
.main-nav a:hover {
    background-color: #d00000;
}

/* 响应式设计 - 汉堡菜单 */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
    }
    
    .main-nav.show {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        width: 100%;
        text-align: center;
    }
    
    .main-nav a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #e63946;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Breaking News */
.breaking-news {
    background-color: #ffd166;
    padding: 10px 0;
    margin-bottom: 30px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.breaking-label {
    background-color: #ef476f;
    color: #fff;
    padding: 5px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-right: 20px;
}

.breaking-content {
    flex: 1;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.hero-main {
    flex: 2;
}

.hero-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-article,
.side-article {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #fff;
}

.article-img {
    position: relative;
}

.article-img img {
    width: 100%;
    height: auto;
    display: block;
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #e63946;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.article-content {
    padding: 20px;
}

.hero-article .article-content {
    padding: 25px;
}

.hero-article h2 a,
.side-article h3 a {
    color: #2b2d42;
    transition: color 0.3s ease;
}

.hero-article h2 a:hover,
.side-article h3 a:hover {
    color: #e63946;
}

.excerpt {
    color: #555;
    margin: 15px 0;
    font-size: 1.1rem;
}

.meta {
    display: flex;
    font-size: 0.9rem;
    color: #777;
}

.meta span {
    margin-right: 15px;
}

.meta .author {
    font-weight: 600;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    gap: 30px;
}

/* Latest News */
.latest-news {
    flex: 2;
}

.section-title {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.section-title span {
    position: relative;
    padding: 0 15px;
}

.section-title span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 3px;
    background-color: #e63946;
    z-index: -1;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-card .article-img img {
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 a {
    color: #2b2d42;
    transition: color 0.3s ease;
}

.card-content h3 a:hover {
    color: #e63946;
}

.card-content p {
    color: #555;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Sidebar */
.sidebar {
    min-width: 300px;
    flex: 1;
}

.widget {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.widget-title {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title span {
    position: relative;
    padding: 0 10px;
}

.widget-title span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 3px;
    background-color: #e63946;
    z-index: -1;
}

/* Trending Posts */
.trending-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-item {
    display: flex;
    gap: 15px;
}

.item-number {
    background-color: #e63946;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.item-content h4 {
    margin-bottom: 8px;
}

.item-content h4 a {
    color: #2b2d42;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.item-content h4 a:hover {
    color: #e63946;
}

.item-content .meta {
    font-size: 0.8rem;
}

.item-content .category {
    background-color: #2b2d42;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    margin-right: 10px;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-item {
    display: flex;
    gap: 15px;
}

.item-img {
    flex-shrink: 0;
}

.item-img img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.item-content h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.item-content h4 a {
    color: #2b2d42;
    transition: color 0.3s ease;
}

.item-content h4 a:hover {
    color: #e63946;
}

/* Newsletter Widget */
.newsletter-widget p {
    margin-bottom: 15px;
    color: #555;
}

.newsletter-widget form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-widget input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.newsletter-widget input:focus {
    border-color: #e63946;
}

.newsletter-widget button {
    background-color: #e63946;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-widget button:hover {
    background-color: #d00000;
}

/* Categories */
.categories {
    list-style: none;
}

.categories li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.categories li:last-child {
    border-bottom: none;
}

.categories a {
    display: flex;
    justify-content: space-between;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.categories a:hover {
    color: #e63946;
}

.categories a.active {
    color: #e63946;
    font-weight: 700;
}

.categories span {
    color: #888;
    font-size: 0.9rem;
}

/* Category Page */
.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.category-header h1 {
    color: #e63946;
    margin-bottom: 15px;
}

.category-header p {
    color: #555;
    font-size: 1.1rem;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.filter-options,
.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-options select,
.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.filter-options select:focus,
.sort-options select:focus {
    border-color: #e63946;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.current {
    background-color: #e63946;
    color: #fff;
    border-color: #e63946;
}

/* Article Content */
.article-title {
    margin-bottom: 20px;
    color: #2b2d42;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.meta-primary,
.meta-secondary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.meta-primary .category {
    background-color: #e63946;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 600;
}

.meta-secondary .read-time {
    font-weight: 500;
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 50%;
    color: #555;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background-color: #e63946;
    color: #fff;
}

.featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.article-body {
    margin-bottom: 40px;
}

.article-body h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2b2d42;
    padding-bottom: 10px;
    border-bottom: 2px solid #e63946;
}

.article-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2b2d42;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-list ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.article-list li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.article-list li strong {
    color: #2b2d42;
}

blockquote {
    border-left: 5px solid #e63946;
    padding: 25px;
    margin: 30px 0;
    background-color: #fff8f8;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

blockquote p {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #2b2d42;
}

.article-img-inline {
    margin: 30px 0;
    text-align: center;
}

.article-img-inline img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-img-inline .caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.article-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.article-tags h3 {
    margin-bottom: 15px;
    color: #2b2d42;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-container a {
    display: inline-block;
    background-color: #e63946;
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tags-container a:hover {
    background-color: #d00000;
    transform: translateY(-2px);
}

/* Page Content */
.page-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.page-title {
    margin-bottom: 20px;
    color: #e63946;
}

.policy-meta {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.policy-list ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.policy-list li {
    margin-bottom: 10px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: #2b2d42;
    color: #fff;
    padding: 10px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-logo h2 span {
    color: #e63946;
}

.footer-logo p {
    color: #ccc;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.link-column h4 {
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e63946;
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 10px;
}

.link-column a {
    color: #ccc;
    transition: color 0.3s ease;
}

.link-column a:hover {
    color: #e63946;
}

.footer-bottom {
    text-align: center;
    /* padding-top: 20px; */
    /* border-top: 1px solid #444; */
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-main {
        flex-direction: row;
        gap: 10px;
        text-align: center;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        flex: 1 0 auto;
    }
    
    .main-nav a {
        padding: 12px 10px;
        font-size: 0.8rem;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
        width: auto;
    }
    
    .tags-container {
        flex-direction: column;
    }
    
    .tags-container a {
        width: 100%;
        text-align: center;
    }
}