/**
 * JJC Inner Page Common Styles
 * 內頁共用模組樣式
 *
 * 目錄：
 * 1. Page Hero - 內頁橫幅區塊
 * 2. Section Containers - 區塊容器
 * 3. CTA Section - 行動呼籲區塊
 * 4. Partners Section - 合作夥伴區塊
 * 5. Common Components - 共用元件
 */

/* ==================== 1. Page Hero ==================== */
.page-hero {
    position: relative;
    padding: 10rem 0 5rem;
    text-align: center;
    overflow: hidden;
    background-color: #1a1a25;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

/* Mobile: 關閉視差滾動 */
@media (max-width: 1024px) {
    .page-hero {
        background-attachment: scroll;
    }
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;
    letter-spacing: 0.125rem;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-primary, #84cc16);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.1875rem;
    text-transform: uppercase;
}

/* Page Hero with Breadcrumb */
.page-hero-breadcrumb {
    margin-top: 1.25rem;
}

.page-hero-breadcrumb a,
.page-hero-breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.page-hero-breadcrumb a:hover {
    color: var(--color-primary, #84cc16);
}

.page-hero-breadcrumb .separator {
    margin: 0 0.625rem;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 8.75rem 0 3.75rem;
    }

    .page-hero-title {
        font-size: 2.5rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }
}

/* ==================== 2. Section Containers ==================== */
.page-section {
    padding: 3rem 0;
    background: var(--color-bg-light, #ffffff);
}

.page-section-alt {
    padding: 6.25rem 0;
    background: var(--color-bg-alt, #f8f9fa);
}

.page-section-header {
    text-align: center;
    margin-bottom: 3.75rem;
}

.page-section-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--color-primary-light, #65a30d);
    display: inline-block;
    padding-bottom: 0.75rem;
    border-bottom: 0.1875rem solid var(--color-primary-light, #65a30d);
    margin-bottom: 1rem;
}

.page-section-subtitle {
    font-size: 2.5rem;
    color: var(--color-text-secondary, #4b5563);
    max-width: 43.75rem;
    margin: 1.25rem auto 0;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .page-section,
    .page-section-alt {
        padding: 3.75rem 0;
    }

    .page-section-title {
        font-size: 1.75rem;
    }
}

/* ==================== 3. CTA Section ==================== */
.page-cta {
    position: relative;
    padding: 9.375rem 0;
    background-color: #1a1a25;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-align: center;
}

.page-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
}

.page-cta > .uk-container {
    position: relative;
    z-index: 1;
}

.page-cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2.5rem;
    text-shadow: 0 0.125rem 1.25rem rgba(0, 0, 0, 0.3);
}

.page-cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 37.5rem;
    margin-left: auto;
    margin-right: auto;
}

.page-cta-btn {
    background: var(--color-primary, #84cc16);
    color: #ffffff;
    padding: 1.125rem 2.5rem;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.page-cta-btn:hover {
    background: var(--color-primary-light, #65a30d);
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.75rem 1.875rem rgba(132, 204, 22, 0.4);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .page-cta {
        background-attachment: scroll;
    }
}

@media (max-width: 640px) {
    .page-cta-title {
        font-size: 2rem;
    }
}

/* ==================== 4. Partners Section ==================== */
.page-partners {
    padding: 3.75rem 0;
    background: var(--color-bg-light, #ffffff);
}

.page-partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.page-partner-item {
    flex: 0 0 calc(20% - 1rem);
    max-width: calc(20% - 1rem);
    padding: 0.9375rem 1.25rem;
    background: transparent;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.page-partner-item:hover {
    transform: translateY(-0.1875rem);
}

.page-partner-item img {
    max-height: 2.5rem;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.page-partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .page-partners-grid {
        flex-wrap: wrap;
        gap: 0.9375rem;
    }

    .page-partner-item {
        flex: 0 0 calc(33.333% - 0.625rem);
        max-width: calc(33.333% - 0.625rem);
        padding: 0.625rem 0.9375rem;
    }

    .page-partner-item img {
        max-height: 1.875rem;
    }
}

/* ==================== 5. Common Components ==================== */

/* Content Wrapper */
.page-content-wrapper {
    max-width: 68.75rem;
    margin: 0 auto;
}

/* Text Blocks */
.page-intro-text {
    text-align: left;
}

.page-intro-text p {
    font-size: 1.25rem;
    line-height: 2;
    color: var(--color-text-secondary, #4b5563);
    margin-bottom: 2rem;
}

.page-intro-text p:last-child {
    margin-bottom: 0;
}

/* Card Grid */
.page-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
}

.page-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem 1.875rem;
    text-align: center;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.page-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.1);
}

.page-card-icon {
    width: 4.375rem;
    height: 4.375rem;
    background: linear-gradient(135deg, var(--color-primary, #84cc16) 0%, var(--color-primary-light, #65a30d) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.page-card-icon .material-icons {
    font-size: 2rem;
    color: #ffffff;
}

.page-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary, #111827);
    margin: 0 0 0.75rem;
}

.page-card p {
    font-size: 1rem;
    color: var(--color-text-secondary, #4b5563);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 1024px) {
    .page-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .page-card-grid {
        grid-template-columns: 1fr;
    }

    .page-intro-text p {
        font-size: 1.125rem;
        line-height: 1.9;
    }
}

/* Feature List */
.page-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 56.25rem;
    margin: 0 auto;
}

.page-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.page-feature-item:hover {
    transform: translateX(0.625rem);
    box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.1);
}

.page-feature-icon {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(135deg, var(--color-primary, #84cc16) 0%, var(--color-primary-light, #65a30d) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-feature-icon .material-icons {
    font-size: 2.25rem;
    color: #ffffff;
}

.page-feature-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary, #111827);
    margin: 0 0 1rem;
}

.page-feature-content p {
    font-size: 1.25rem;
    color: var(--color-text-secondary, #4b5563);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 640px) {
    .page-feature-item {
        flex-direction: column;
        text-align: center;
    }

    .page-feature-icon {
        margin: 0 auto;
    }
}

/* Parallax Background Section */
.page-parallax-section {
    position: relative;
    padding: 6.25rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.page-parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

.page-parallax-section > .uk-container {
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .page-parallax-section {
        background-attachment: scroll;
    }
}

/* Dark Section */
.page-dark-section {
    background: linear-gradient(135deg, #1a1a25 0%, #2d2d3a 100%);
    padding: 6.25rem 0;
    position: relative;
    overflow: hidden;
}

.page-dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(132, 204, 22, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(132, 204, 22, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.page-dark-section > .uk-container {
    position: relative;
    z-index: 1;
}

.page-dark-section h2 {
    color: #ffffff;
}

.page-dark-section h3 {
    color: var(--color-primary, #84cc16);
}

.page-dark-section p {
    color: rgba(255, 255, 255, 0.85);
}

/* ABCD Strategy Row */
.page-abcd-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3.75rem;
}

.page-abcd-item {
    flex: 1;
    text-align: center;
    padding: 2.5rem 1.875rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 1rem;
    background: var(--color-bg-light, #ffffff);
    transition: all 0.3s ease;
}

.page-abcd-item:hover {
    border-color: var(--color-primary, #84cc16);
    box-shadow: 0 0.625rem 2.5rem rgba(132, 204, 22, 0.1);
    transform: translateY(-0.3125rem);
}

.page-abcd-letter {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-primary, #84cc16);
    margin-bottom: 1.25rem;
    font-family: 'Poppins', sans-serif;
}

.page-abcd-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary, #111827);
    margin: 0 0 0.75rem 0;
    letter-spacing: 0.03125rem;
}

.page-abcd-text p {
    font-size: 1.25rem;
    color: var(--color-text-secondary, #4b5563);
    margin: 0;
}

@media (max-width: 768px) {
    .page-abcd-row {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .page-abcd-item {
        flex: 0 0 calc(50% - 0.5rem);
        padding: 1.875rem 1.25rem;
    }

    .page-abcd-letter {
        font-size: 3rem;
    }

    .page-abcd-text h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-abcd-item {
        flex: 0 0 100%;
    }
}
