/* style/blog.css */
.page-blog {
    font-family: 'Arial', sans-serif;
    background-color: #0A0A0A;
    color: #FFF6D6;
}

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

.page-blog__container--flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.page-blog__hero-section {
    padding-top: 10px; /* Adhering to the 10px top padding rule */
    padding-bottom: 60px;
    text-align: center;
    background: #0A0A0A;
}

.page-blog__hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #FFD36B;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-blog__intro-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #FFF6D6;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-blog__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    border: 2px solid transparent;
}

.page-blog__btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog__btn--secondary {
    background-color: transparent;
    color: #FFD36B;
    border: 2px solid #FFD36B;
}

.page-blog__btn--secondary:hover {
    background-color: #FFD36B;
    color: #111111;
}

.page-blog__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #FFD36B;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-blog__articles-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

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

.page-blog__article-card {
    background-color: #111111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3A2A12;
}

.page-blog__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.page-blog__article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-blog__article-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-blog__article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__article-image-wrapper img {
    transform: scale(1.05);
}

.page-blog__article-content {
    padding: 20px;
}

.page-blog__article-meta {
    font-size: 0.9rem;
    color: #FFD36B;
    margin-bottom: 10px;
    opacity: 0.8;
}

.page-blog__article-title {
    font-size: 1.4rem;
    color: #FFF6D6;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.page-blog__article-excerpt {
    font-size: 1rem;
    color: #FFF6D6;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.page-blog__read-more {
    display: inline-block;
    color: #FFD36B;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #FFD86A;
}

.page-blog__view-all-button-wrapper {
    text-align: center;
}

.page-blog__btn--view-all {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-blog__btn--view-all:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog__about-blog-section,
.page-blog__why-choose-us-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

.page-blog__text-block {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #FFF6D6;
    opacity: 0.9;
}

.page-blog__text-block strong {
    color: #FFD36B;
}

.page-blog__text-block--center {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__image-with-text {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-blog__content-image {
    width: 680px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #3A2A12;
}

.page-blog__sub-section-title {
    font-size: 1.8rem;
    color: #FFD36B;
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: 600;
}

.page-blog__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-blog__list-item {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #FFF6D6;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-blog__list-item::before {
    content: '•';
    color: #FFD36B;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-blog__list-item strong {
    color: #FFD36B;
}

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

.page-blog__feature-item {
    background-color: #111111;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid #3A2A12;
}

.page-blog__feature-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #3A2A12;
}

.page-blog__feature-title {
    font-size: 1.5rem;
    color: #FFD36B;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-blog__feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #FFF6D6;
    opacity: 0.9;
}

.page-blog__cta-bottom-section {
    padding: 80px 0;
    background-color: #111111;
    border-top: 1px solid #3A2A12;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
    .page-blog__hero-content-wrapper {
        padding: 15px;
    }

    .page-blog__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-blog__intro-text {
        font-size: 1.05rem;
    }

    .page-blog__btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

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

    .page-blog__article-title {
        font-size: 1.3rem;
    }

    .page-blog__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .page-blog__image-with-text {
        flex-direction: column;
        align-items: center;
    }

    .page-blog__content-image {
        width: 100%;
        height: auto;
        max-width: 600px;
    }

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

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 1. 顶区标题 + 双 CTA */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Fixed top padding for mobile */
        padding-bottom: 40px;
    }

    .page-blog__hero-content-wrapper {
        padding: 15px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-blog__intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-blog__btn,
    .page-blog__btn--primary,
    .page-blog__btn--secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 1rem;
    }

    /* 2. 单栏长文容器 */
    .page-blog__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__articles-section,
    .page-blog__about-blog-section,
    .page-blog__why-choose-us-section,
    .page-blog__cta-bottom-section {
        padding: 40px 0;
    }

    .page-blog__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-blog__text-block {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .page-blog__image-with-text {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    /* 3. 通用图片与 figure */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-blog__content-image {
        width: 100% !important;
        height: auto !important;
    }

    .page-blog__article-image-wrapper {
        height: 180px;
    }

    .page-blog__feature-image {
        height: auto;
    }

    /* 4. 按钮与按钮容器 (already covered in cta-buttons) */
    .page-blog__view-all-button-wrapper {
        padding: 0 15px;
    }

    .page-blog__btn--view-all {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        font-size: 1rem;
    }

    /* 5. 注册教程与 FAQ 区块 (General text elements) */
    .page-blog__sub-section-title {
        font-size: 1.5rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-blog__list-item {
        font-size: 0.95rem;
        padding-left: 20px;
    }

    .page-blog__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .page-blog__feature-item {
        padding: 25px;
    }

    .page-blog__feature-title {
        font-size: 1.3rem;
    }

    .page-blog__feature-description {
        font-size: 0.9rem;
    }
}