/* 网格布局样式 - 用于internal-content中的加法器展示 */
.grid-layout-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    /* padding: 1rem 3rem 1rem 3rem; */
    height: auto;
    min-height: 600px;
    align-items: stretch;
    transform: scale(0.75);
    transform-origin: center center;
}

.grid-layout-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0.5rem 0 0 0;
    font-style: italic;
    width: 100%;
}

.grid-layout-item {
    height: auto;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: gridItemFadeIn 0.8s ease-out forwards;
}

.grid-layout-item.full-height {
    grid-row: span 2;
    justify-content: stretch;
}

.grid-layout-item.full-width {
    grid-column: span 2;
    align-items: stretch;
}

.grid-layout-item img {
    z-index: 1;
}

.grid-layout-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px;
    box-sizing: border-box;
    background-color: var(--primary-medium);
}

.grid-layout-image img {
    width: 100%;
    height: auto;
    flex: 1;
    object-fit: contain;
}

.grid-layout-caption {
    text-align: center;
    font-size: 1rem;
    color: #ffffff;
    margin-top: 1rem;
    font-style: italic;
}

.grid-layout-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.grid-layout-image-2 {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px;
    box-sizing: border-box;
}

.grid-layout-image-2:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.grid-layout-text {
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-layout-text:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.grid-layout-text h3 {
    font-size: 1.5rem;
    color: #4a3a52;
    margin-bottom: 1rem;
    font-weight: 700;
}

.grid-layout-text p {
    color: #6a5a72;
    line-height: 1.6;
    font-size: 1rem;
    text-shadow: none;
}

.grid-layout-item:nth-child(1) {
    animation-delay: 0.1s;
}

.grid-layout-item:nth-child(2) {
    animation-delay: 0.2s;
}

.grid-layout-item:nth-child(3) {
    animation-delay: 0.3s;
}

.grid-layout-item:nth-child(4) {
    animation-delay: 0.4s;
}

.grid-layout-item:nth-child(5) {
    animation-delay: 0.5s;
}

.grid-layout-item:nth-child(6) {
    animation-delay: 0.6s;
}

.grid-layout-item:nth-child(7) {
    animation-delay: 0.7s;
}

.grid-layout-item:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes gridItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}