/* 部落格首頁樣式 */
.blog-homepage {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-main-title {
    font-size: 42px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 15px;
    color: #fff;
}

.blog-description {
    text-align: center;
    font-size: 18px;
    color: #aaa;
    margin-bottom: 40px;
}

/* 分類按鈕 */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    background-color: #111;
    color: #888;
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background-color: #222;
    color: #fff;
    border-color: #555;
}

.category-btn.active {
    background-color: #333;
    color: #fff;
    border-color: #666;
}

/* 文章卡片 */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.blog-card {
    background-color: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.blog-category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-category-tag.tools {
    background-color: #2a1a3a;
    color: #be4bdb;
}

.blog-category-tag.tutorial {
    background-color: #1a2a3a;
    color: #4dabf7;
}

.blog-category-tag.news {
    background-color: #2a1a1a;
    color: #ff8787;
}

.blog-category-tag.knowledge {
    background-color: #1a2a1a;
    color: #51cf66;
}

.blog-category-tag.tips {
    background-color: #2a2a1a;
    color: #ffd43b;
}

.blog-date {
    font-size: 13px;
    color: #666;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 15px;
}

.blog-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #4dabf7;
}

.blog-card-excerpt {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    color: #4dabf7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    color: #74c0fc;
    transform: translateX(3px);
}

.reading-time {
    font-size: 13px;
    color: #666;
}

/* 分頁 */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination-btn {
    background-color: #111;
    color: #888;
    border: 1px solid #333;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: #222;
    color: #fff;
}

.pagination-btn.active {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

.pagination-dots {
    color: #666;
    padding: 0 10px;
}

/* 部落格文章頁面樣式 */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-article {
    background: transparent;
    border: none;
    padding: 0;
}

/* 返回連結樣式 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 30px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #4dabf7;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* 文章標題區域 */
.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.article-meta .category {
    background: rgba(77, 171, 247, 0.1);
    color: #4dabf7;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.article-meta .publish-date {
    color: #888;
}

.article-title {
    font-size: 36px;
    font-weight: 300;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.article-subtitle {
    font-size: 18px;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

.blog-article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 麵包屑導航 */
.breadcrumb-nav {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.breadcrumb-nav a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: #4dabf7;
}

.breadcrumb-nav .separator {
    margin: 0 10px;
    color: #444;
}

.breadcrumb-nav .current {
    color: #bbb;
}

/* 文章標題區 */
.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.article-page-title {
    font-size: 36px;
    font-weight: 300;
    color: #fff;
    margin: 15px 0 20px 0;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
    flex-wrap: wrap;
}

/* 文章內容 */
.article-content-wrapper {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
}

.article-intro {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #111;
    border-radius: 8px;
    border-left: 4px solid #4dabf7;
}

.article-section {
    margin-bottom: 50px;
}

.article-section h2 {
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 25px;
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.article-section h3 {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-section p {
    margin-bottom: 20px;
}

.article-section ul,
.article-section ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.article-section li {
    margin-bottom: 12px;
}

/* 警告和提示框 */
.warning-box {
    background-color: #2a1a1a;
    border-left: 4px solid #ff6b6b;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.warning-box p {
    margin: 0;
    color: #ffaaaa;
}

.highlight-box {
    background-color: #1a2a1a;
    border-left: 4px solid #4dabf7;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.highlight-box p {
    margin: 0;
    color: #aaccff;
    font-weight: 500;
}

/* 重要區塊 */
.important-section {
    background-color: #1a1a2a;
    padding: 30px;
    border-radius: 8px;
    margin-top: 50px;
}

/* 文章底部 */
.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.article-tags {
    margin-bottom: 30px;
}

.tag-label {
    color: #888;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    background-color: #222;
    color: #aaa;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.nav-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    border: 1px solid #333;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nav-btn:hover {
    background-color: #222;
    border-color: #555;
    color: #4dabf7;
}

.nav-btn.prev {
    margin-right: auto;
}

.nav-btn.next {
    margin-left: auto;
}

/* 保留原有的樣式 */
.blog-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-title {
    font-size: 36px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.blog-intro {
    text-align: center;
    font-size: 18px;
    color: #aaa;
    margin-bottom: 50px;
    line-height: 1.6;
}

.blog-section {
    margin-top: 40px;
}

.blog-article {
    background-color: #111;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #222;
    transition: border-color 0.3s ease;
}

.blog-article:hover {
    border-color: #333;
}

.article-title {
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.article-content {
    color: #ddd;
    line-height: 1.8;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-top: 25px;
    margin-bottom: 15px;
}

.article-content h4:first-child {
    margin-top: 0;
}

.article-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

.article-content .warning {
    background-color: #2a1a1a;
    border-left: 4px solid #ff6b6b;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    color: #ffaaaa;
}

.article-content .highlight {
    background-color: #1a2a1a;
    border-left: 4px solid #4dabf7;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    color: #aaccff;
    font-weight: 500;
}

/* 重要文章樣式 */
.blog-article.important {
    background-color: #1a1a2a;
    border-color: #4dabf7;
}

/* 比較表格樣式 */
.comparison-table {
    margin: 25px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    background-color: #111;
    border: 1px solid #333;
}

.comparison-table th {
    background-color: #1a1a1a;
    padding: 12px;
    text-align: left;
    color: #fff;
    font-weight: 500;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #222;
    color: #ddd;
}

/* 比較點樣式 */
.comparison-points {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.comparison-points h4 {
    color: #4dabf7;
    margin-bottom: 15px;
}

.do-list, .dont-list {
    background-color: #111;
    padding: 20px;
    border-radius: 8px;
}

.do-list {
    border-left: 4px solid #51cf66;
}

.dont-list {
    border-left: 4px solid #ff6b6b;
}

.blog-article.important .article-title {
    color: #4dabf7;
}

/* 強調文字 */
.article-content strong {
    color: #fff;
    font-weight: 500;
}

/* 蒙地卡羅模擬器文章頁面樣式 */
.highlight-box {
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.1), rgba(51, 154, 240, 0.1));
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.highlight-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cta-button {
    margin-top: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #339af0);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #339af0, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(77, 171, 247, 0.3);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.strategy-list {
    margin: 20px 0;
}

.strategy-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px;
}

.strategy-icon {
    font-size: 2rem;
    margin-right: 20px;
    min-width: 60px;
}

.strategy-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.report-example {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.report-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-section:last-child {
    border-bottom: none;
}

.report-section h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.case-study {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.case-study h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.result-highlight {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffd43b;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.recommendation {
    background: rgba(77, 171, 247, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-style: italic;
}

.warning-box {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.cta-section {
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.1), rgba(51, 154, 240, 0.05));
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.cta-buttons {
    margin-top: 20px;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    margin: 0 10px;
}

.social-share {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
}

.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.article-card h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-card h4 a:hover {
    color: #339af0;
}

.blog-category-tag.lifestyle {
    background-color: #2a1a2a;
    color: #ffa8cc;
}

/* 行動裝置優化 */
@media (max-width: 768px) {
    .blog-content {
        padding: 20px 15px;
    }
    
    .blog-title {
        font-size: 28px;
    }
    
    .blog-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .blog-article {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-content h4 {
        font-size: 16px;
    }
    
    .article-content p,
    .article-content li {
        font-size: 14px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .strategy-item {
        flex-direction: column;
        text-align: center;
    }

    .strategy-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        display: block;
        margin: 10px 0;
    }
}