/* 基础样式 */
:root {
    --primary: #0f2b5c;
    --secondary: #d4af37;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --positive: #28a745;
    --negative: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin:  auto;
    padding: 5px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #0a1f44;
    color: white;
}

/* 头部样式 */
header {
    background: var(--primary);
    color: white;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.logo i {
    color: var(--secondary);
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav ul li.active a,
nav ul li a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.search-box {
    display: flex;
    margin-left: 20px;
}

.search-box input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 200px;
}

.search-box button {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 实时行情栏 */
.ticker-wrap {
    background: #0a1f44;
    overflow: hidden;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ticker {
    display: flex;
    animation: ticker 30s linear infinite;
}

.ticker__item {
    padding: 0 30px;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
}

.ticker__item .positive {
    color: var(--positive);
}

.ticker__item .negative {
    color: var(--negative);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 主内容区 */
main {
    padding: 30px 0;
}

/* 首页特色文章 */
.featured-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.featured-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.featured-article .article-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-article:hover .article-image img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.featured-article .article-content {
    padding: 25px;
}

.featured-article h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.featured-article p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.secondary-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.article-card .category-tag {
    top: 10px;
    left: 10px;
}

.article-card h3 {
    font-size: 1.2rem;
    margin: 15px 15px 10px;
    line-height: 1.4;
}

.article-card p {
    padding: 0 15px ;
    color: #666;
    font-size: 0.95rem;
}

.article-card .article-meta {
    padding: 0 15px 15px;
    margin: 0;
    font-size: 0.85rem;
}

/* 最新文章 */
.latest-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Box4 新闻板块 */
.box4-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.box4-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.box4-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.box4-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.box4-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.box4-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.box4-card .box4-content {
    padding: 15px;
}

.box4-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.box4-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.box4-card .box4-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray);
}

.box4-card .box4-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 页脚 */
footer {
    background: var(--dark);
    color: white;
    padding: 10px 0;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: white;
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.subscribe-form button {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.copyright a {
    color: white;
}
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
}

/* 分类页面样式 */
.category-nav {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.category-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.category-nav li a {
    padding: 8px 15px;
    border-radius: 4px;
    color: var(--dark);
}

.category-nav li.active a,
.category-nav li a:hover {
    background: var(--primary);
    color: white;
}

.category-header {
    margin-bottom: 10px;
}

.category-header h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.category-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.sidebar-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: 5px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.tag-cloud li a {
    background: var(--light-gray);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark);
}

.tag-cloud li a:hover {
    background: var(--primary);
    color: white;
}

.market-summary .market-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.market-summary .market-item:last-child {
    border-bottom: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a {
    padding: 8px 15px;
    background: white;
    border-radius: 4px;
    color: var(--dark);
}

.pagination a.active,
.pagination a:hover {
    background: var(--primary);
    color: white;
}

/* 详情页样式 */
.article-detail {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.article-header {
    margin-bottom: 30px;
}

.article-header .article-category {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 15px;
}

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--gray);
    font-size: 0.95rem;
    align-items: center;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.share-buttons a {
    color: var(--gray);
    font-size: 1.2rem;
}

.article-featured-image {
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    border-radius: 8px;
}

.image-caption {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    margin-top: 10px;
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary);
    padding: 15px 20px;
    margin: 25px 0;
    background: var(--light);
    font-style: italic;
}

.article-content blockquote cite {
    display: block;
    margin-top: 10px;
    text-align: right;
    font-style: normal;
    font-weight: bold;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.article-tags span {
    font-weight: bold;
    margin-right: 10px;
}

.article-tags a {
    display: inline-block;
    background: var(--light-gray);
    padding: 5px 12px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 0.9rem;
    color: var(--dark);
}

.article-tags a:hover {
    background: var(--primary);
    color: white;
}

.related-articles h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 隐私政策和使用条款页面样式 */
.privacy-section,
.terms-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.privacy-section h2,
.terms-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
}

.policy-content,
.terms-content {
    line-height: 1.8;
}

.policy-content h3,
.terms-content h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary);
}

.policy-content ul,
.terms-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content li,
.terms-content li {
    margin-bottom: 10px;
}



.footer-links a {
    margin: 0 10px;
    color: #ccc;
}

.footer-links a:hover {
    color: white;
}

/* 汉堡菜单样式 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .featured-section {
        grid-template-columns: 1fr;
    }

    .category-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    nav ul.active {
        transform: translateY(0);
    }

    nav ul li {
        margin: 10px 0;
    }

    .search-box input {
        width: 150px;
    }

    .featured-article .article-image {
        height: 250px;
    }

    .footer-cols {
        grid-template-columns: 1fr;
    }

    .copyright {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }

    .box4-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .box4-card img {
        height: 140px;
    }

    .box4-card h3 {
        font-size: 1rem;
    }

    .box4-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .ticker__item {
        padding: 0 15px;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .share-buttons {
        margin-left: 0;
        margin-top: 10px;
    }
}
.anchor-link{
display: none;
}