/* style/blog.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing for desktop */
}

.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #FFF6D6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
    background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Primary and auxiliary color gradient */
    padding: 60px 0 40px; /* Reduced top padding as body handles header offset, keeping 10px for content */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px; /* Ensure hero section has a decent height */
    overflow: hidden; /* Ensure no image overflow */
}

.page-blog__hero-container {
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    text-align: center;
    max-width: 1200px;
    width: 100%; /* Ensure full width on desktop for flex item */
    padding: 0 20px;
}

.page-blog__hero-image-wrapper {
    margin-bottom: 30px;
    width: 100%;
    max-width: 1200px; /* Match img width */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-blog__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-blog__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #0A0A0A; /* Dark text on light background */
    margin-bottom: 20px;
    font-size: clamp(2em, 4vw, 3.5em);
}

.page-blog__intro-description {
    font-size: 1.2em;
    color: #333333; /* Dark text on light background */
    margin-bottom: 30px;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #0A0A0A; /* Dark text on light button */
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-blog__btn-secondary {
    background: #111111; /* Card BG */
    color: #F2C14E; /* Primary color for text */
    border: 2px solid #F2C14E; /* Primary color for border */
}

.page-blog__btn-secondary:hover {
    background: #F2C14E;
    color: #0A0A0A;
    border-color: #FFD36B;
}

.page-blog__read-more-btn {
    background: transparent;
    border: 1px solid #F2C14E;
    color: #F2C14E;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-blog__read-more-btn:hover {
    background: #F2C14E;
    color: #0A0A0A;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-blog__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__blog-card {
    background: #111111; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3A2A12; /* Border */
}

.page-blog__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 211, 107, 0.5);
}

.page-blog__blog-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__blog-card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__blog-card-title a {
    color: #F2C14E; /* Primary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__blog-card-title a:hover {
    color: #FFD36B; /* Auxiliary color on hover */
}

.page-blog__blog-card-meta {
    font-size: 0.9em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 15px;
}

.page-blog__blog-card-excerpt {
    font-size: 1em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__view-all-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Categories Section */
.page-blog__categories-section {
    padding: 60px 0;
    background-color: #111111; /* Card BG */
}

.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
}

.page-blog__category-card {
    background: #0A0A0A; /* Background */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #FFF6D6; /* Text Main */
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    background: #1a1a1a;
    border-color: #F2C14E;
}

.page-blog__category-icon {
    width: 30px; /* Allowed small size */
    height: 30px; /* Allowed small size */
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
}

.page-blog__category-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #F2C14E;
}

/* Guides & Tutorials Section */
.page-blog__guides-tutorials-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-blog__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-blog__guide-card {
    background: #111111; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #3A2A12; /* Border */
    display: flex;
    flex-direction: column;
}

.page-blog__guide-title {
    font-size: 1.3em;
    color: #F2C14E;
    margin-bottom: 15px;
}

.page-blog__guide-text {
    font-size: 1em;
    color: #FFF6D6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Why Choose Section */
.page-blog__why-choose-section {
    padding: 60px 0;
    background-color: #111111; /* Card BG */
}

.page-blog__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__feature-item {
    background: #0A0A0A; /* Background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #3A2A12; /* Border */
}

.page-blog__feature-title {
    font-size: 1.3em;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-blog__feature-text {
    font-size: 1em;
    color: #FFF6D6; /* Text Main */
}

.page-blog__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-blog__faq-list {
    max-width: 800px;
    margin: 0 auto;
}