/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8; /* 增加行高 */
    color: #1f2937;
    background-color: #f8fafc;
    font-size: 16px; /* 基础字体大小 */
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #1e3a8a;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.logo::before {
    content: "💰";
    margin-right: 0.5rem;
}

/* 导航样式 */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e3a8a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: rgba(255,255,255,0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

main {
    min-height: calc(100vh - 140px);
    padding: 0;
    margin-top: 0;
}

h1 {
    font-size: 2.5rem; /* 调整标题大小 */
    margin-bottom: 1.5rem; /* 增加标题下间距 */
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1.2rem; /* 增加段落间距 */
}

ul li {
    margin-bottom: 0.6rem; /* 列表项间距 */
}

/* Hero区域样式 */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero .article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.hero .article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

tr:hover {
    background-color: #f9fafb;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #f59e0b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #d97706;
}

.btn-primary {
    background-color: #1e3a8a;
}

.btn-primary:hover {
    background-color: #1e40af;
}

/* 特色框 */
.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.highlight-box h3 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

/* 优缺点列表 */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros, .cons {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pros {
    border-left: 4px solid #10b981;
}

.cons {
    border-left: 4px solid #ef4444;
}

.pros h3 {
    color: #10b981;
    margin-bottom: 1rem;
}

.cons h3 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.pros ul li::before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
}

.cons ul li::before {
    content: "✗ ";
    color: #ef4444;
    font-weight: bold;
}

.pros ul, .cons ul {
    list-style: none;
}

.pros ul li, .cons ul li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

/* 底部样式 */
footer {
    background-color: #374151;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    padding-top: 1rem;
    color: #9ca3af;
}

/* 文章页面特定样式 */
.article-header {
    background-color: #1e3a8a;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.9rem;
    color: white;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta span::before {
    margin-right: 0.5rem;
}

.article-meta .date::before {
    content: "📅";
}

.article-meta .read-time::before {
    content: "⏱️";
}

.article-meta .tags::before {
    content: "🏷️";
}

.article-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.article-content h2 {
    color: #1e3a8a;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.article-content h3 {
    color: #f59e0b;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content ol {
    list-style: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content blockquote {
    border-left: 4px solid #f59e0b;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

.article-summary {
    background-color: #fffbe6;
    border-left: 5px solid #f59e0b;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.article-summary h3 {
    color: #92400e;
    margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-content {
        padding: 1.5rem;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        max-width: none;
        width: 100%;
    }
    
    .hero .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }
}



/* Article Page Specific Styles */
.article-page-content {
    margin: 2rem auto;
    padding: 2rem;
}

.article-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 1.5rem;
    border-radius: 0;
}

.article-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.article-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta span::before {
    margin-right: 0.5rem;
}

.article-meta .date::before {
    content: "📅";
}

.article-meta .read-time::before {
    content: "⏱️";
}

.article-meta .tags::before {
    content: "🏷️";
}

.article-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.article-content h2 {
    color: #1e3a8a;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.article-content h3 {
    color: #f59e0b;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content ol {
    list-style: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content blockquote {
    border-left: 4px solid #f59e0b;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

.article-summary {
    background-color: #fffbe6;
    border-left: 5px solid #f59e0b;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.article-summary h3 {
    color: #92400e;
    margin-top: 0;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.article-tags {
    margin-bottom: 1rem;
}

.article-tags .tag {
    background: #1e3a8a;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-navigation .btn {
    text-decoration: none;
}

.article-navigation .btn-primary {
    background-color: #1e3a8a;
}

.article-navigation .btn-primary:hover {
    background-color: #1e40af;
}

.related-articles .card h3 a {
    text-decoration: none;
    color: #1e3a8a;
}

.related-articles .card h3 a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-page-content {
        margin: 1rem auto;
        padding: 1rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}



/* 导航栏下拉菜单 hover 效果 */
.dropdown:hover .dropdown-content {
    display: block;
}



/* Dropdown hover effect */
.dropdown:hover .dropdown-content {
    display: block;
}


/* 相关文章推荐样式 */
.related-articles {
    background: #f8fafc;
    padding: 3rem 0;
    margin-top: 2rem;
}

.related-articles h2 {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.related-articles .card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-articles .card:hover {
    transform: translateY(-5px);
}

.related-articles .card h3 {
    margin-bottom: 1rem;
}

.related-articles .card h3 a {
    text-decoration: none;
    color: #1e3a8a;
}

.related-articles .card h3 a:hover {
    color: #3b82f6;
}

.related-articles .card p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}



/* 文章列表页面样式 */
.articles-grid {
    margin: 2rem 0;
}

.featured-article {
    grid-column: span 2;
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.placeholder-image {
    font-size: 3rem;
    color: white;
}

/* 文章列表页面的元信息 - 深色文字 */
.articles-grid .article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.articles-grid .article-meta .date::before {
    content: "📅 ";
}

.articles-grid .article-meta .reading-time::before {
    content: "⏱️ ";
}

.articles-grid .card h2 {
    margin-bottom: 1rem;
}

.articles-grid .card h2 a {
    text-decoration: none;
    color: #1e3a8a;
}

.articles-grid .card h2 a:hover {
    color: #3b82f6;
}

.articles-grid .card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 文章分类样式 */
.article-categories {
    margin: 4rem 0 2rem;
}

.article-categories h2 {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.category-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-count {
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 文章导航区域样式 */
.article-navigation-section {
    background: #4a5568;
    padding: 2rem 0;
    margin: 3rem 0 0 0;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: #f59e0b;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    flex: 1;
    text-align: center;
    max-width: 250px;
}

.nav-btn:hover {
    background: #d97706;
}

.nav-btn.home {
    background: #3b82f6;
    flex: 0 0 auto;
}

.nav-btn.home:hover {
    background: #2563eb;
}

/* 相关文章推荐区域样式 */
.related-articles {
    background: #f8fafc;
    padding: 3rem 0;
    margin: 0;
}

.related-articles h2 {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.related-articles .card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-articles .card:hover {
    transform: translateY(-5px);
}

.related-articles .card h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.related-articles .card h3 a {
    text-decoration: none;
    color: inherit;
}

.related-articles .card h3 a:hover {
    color: #3b82f6;
}

.related-articles .card p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        max-width: none;
        width: 100%;
    }
    
    .hero .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* 文章分类响应式布局 */
    .article-categories .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .article-categories .category-card {
        padding: 1.5rem;
    }
}

/* 分页组件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    gap: 0.5rem;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-item:not(.ellipsis):hover {
    background-color: #e0f2fe;
    transform: translateY(-2px);
}

.pagination-item.active {
    background-color: #1e3a8a;
    color: white;
}

.pagination-item.prev-next {
    background-color: #f59e0b;
    color: white;
    width: auto;
    padding: 0 1rem;
}

.pagination-item.prev-next:hover {
    background-color: #d97706;
}

.pagination-item.ellipsis {
    color: #6b7280;
    cursor: default;
}

/* 分页响应式设计 */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .pagination-item {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .pagination-item.prev-next {
        padding: 0 0.8rem;
        font-size: 0.9rem;
    }
    
    .pagination-hide-on-mobile {
        display: none;
    }
}

/* 交易页面表格响应式设计 */
@media (max-width: 768px) {
    .table-container {
        margin: 1rem 0;
        overflow-x: visible;
    }
    
    table {
        border: 0;
        font-size: 0.9rem;
    }
    
    table thead {
        display: none;
    }
    
    table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    table td {
        display: block;
        text-align: right;
        padding: 0.75rem 1rem;
        position: relative;
        border-bottom: 1px solid #f3f4f6;
    }
    
    table td:last-child {
        border-bottom: 0;
    }
    
    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        font-weight: bold;
        color: #374151;
    }
    
    /* 为移动设备优化表格布局 */
    @media (max-width: 640px) {
        .table-container {
            margin: 1rem -1rem;
            width: calc(100% + 2rem);
        }
        
        table {
            font-size: 0.85rem;
        }
        
        table td {
            padding: 0.6rem 0.8rem;
        }
        
        table td::before {
            left: 0.8rem;
            font-size: 0.8rem;
        }
    }
}

