/* 5个盒子的Bento网格布局 - 3/5图片 2/5文本 - 优化版 */
.bento-section {
    padding: 100px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.bento-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
                rgba(157, 182, 140, 0.05) 0%, 
                transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: breathing 6s ease-in-out infinite;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, 
                transparent 0%, 
                var(--primary-color) 50%, 
                transparent 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.7;
}

/* 5个盒子的网格布局 - 优化 */
.bento-grid-five {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 35px;
    margin-bottom: 70px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 大型盒子 - 三分之二屏幕大小 - 优化 */
.bento-item-large {
    background: linear-gradient(135deg, 
                rgba(30, 30, 30, 0.85) 0%, 
                rgba(40, 40, 40, 0.7) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.bento-item-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(157, 182, 140, 0.1) 0%, 
                transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.bento-item-large:hover {
    transform: translateY(-15px) rotateX(2deg) rotateY(2deg);
    box-shadow: var(--shadow-xl);
    border-color: rgba(157, 182, 140, 0.3);
}

.bento-item-large:hover::before {
    opacity: 1;
}

/* 图片容器 - 占3/5 */
.bento-image-container {
    flex: 3;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}

/* 内容容器 - 占2/5 */
.bento-content-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* 图片占位区域 - 优化 */
.bento-image-placeholder {
    height: 100%;
    min-height: 380px;
    background: linear-gradient(135deg, 
                rgba(157, 182, 140, 0.95) 0%, 
                rgba(200, 186, 164, 0.75) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item-large:hover .bento-image-placeholder {
    transform: scale(1.08);
}

.bento-image-placeholder.small {
    min-height: 280px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(0, 0, 0, 0.15) 0%, 
                rgba(0, 0, 0, 0.45) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    color: white;
    z-index: 2;
}

.image-overlay h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.image-overlay p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 90%;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.image-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.bento-item-large:hover .image-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
}

/* 内容区域 - 优化 */
.bento-content {
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.bento-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
                rgba(157, 182, 140, 0.2) 0%, 
                rgba(157, 182, 140, 0.1) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    border: 1px solid rgba(157, 182, 140, 0.3);
    transition: var(--transition);
}

.bento-item-large:hover .bento-icon {
    transform: translateY(-5px);
    background: linear-gradient(135deg, 
                rgba(157, 182, 140, 0.3) 0%, 
                rgba(157, 182, 140, 0.2) 100%);
    box-shadow: 0 5px 15px rgba(157, 182, 140, 0.2);
}

.bento-item-large h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.bento-item-large h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    border-radius: 2px;
}

.bento-item-large p {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
    font-size: 1rem;
}

.bento-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    background: linear-gradient(135deg, 
                rgba(157, 182, 140, 0.15) 0%, 
                rgba(157, 182, 140, 0.08) 100%);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid rgba(157, 182, 140, 0.2);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, 
                rgba(157, 182, 140, 0.25) 0%, 
                rgba(157, 182, 140, 0.15) 100%);
    border-color: rgba(157, 182, 140, 0.4);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.bento-link {
    align-self: flex-start;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    position: relative;
    font-size: 1rem;
    transition: var(--transition);
}

/* Wiki内容链接样式 */
.wiki-box-link {
    align-self: flex-start;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    position: relative;
    font-size: 1rem;
    transition: var(--transition);
}

.wiki-box-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: var(--transition);
}

.wiki-box-link:hover {
    gap: 15px;
}

.wiki-box-link:hover::after {
    width: 100%;
}

.bento-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: var(--transition);
    border-radius: 2px;
}

.bento-link:hover {
    gap: 18px;
    transform: translateX(5px);
}

.bento-link:hover::after {
    width: 100%;
}

/* 小型盒子 - 三分之一屏幕大小 - 优化 */
.bento-item-small {
    background: linear-gradient(135deg, 
                rgba(30, 30, 30, 0.85) 0%, 
                rgba(40, 40, 40, 0.7) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.bento-item-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(157, 182, 140, 0.1) 0%, 
                transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.bento-item-small:hover {
    transform: translateY(-12px) rotateX(1deg) rotateY(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(157, 182, 140, 0.3);
}

.bento-item-small:hover::before {
    opacity: 1;
}

/* 小型盒子的图片容器 */
.bento-item-small .bento-image-container {
    flex: 3;
    overflow: hidden;
}

/* 小型盒子的内容容器 */
.bento-item-small .bento-content-container {
    flex: 2;
}

.bento-item-small .bento-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item-small h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.3;
    position: relative;
    padding-bottom: 12px;
}

.bento-item-small h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
}

.bento-item-small p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
}

.bento-item-small .bento-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.bento-item-small .bento-link {
    font-size: 0.95rem;
}

/* 网格布局定位 */
.item-large-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.item-small-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.item-small-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.item-small-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.item-large-5 {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
}

/* 特色区域 - 优化 */
.feature-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, 
                rgba(30, 30, 30, 0.9) 0%, 
                rgba(40, 40, 40, 0.8) 100%);
    border-radius: var(--border-radius);
    padding: 70px 60px;
    margin-top: 100px;
    box-shadow: var(--shadow-lg);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(157, 182, 140, 0.05) 0%, 
                transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.feature-section:hover::before {
    opacity: 1;
}

.feature-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.feature-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    border-radius: 2px;
}

.feature-text {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 45px;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.feature-actions {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.feature-button {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feature-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.feature-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.feature-button.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #171717;
    box-shadow: 0 10px 25px rgba(157, 182, 140, 0.3);
}

.feature-button.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(157, 182, 140, 0.5);
}

.feature-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.feature-button.secondary:hover {
    background: linear-gradient(135deg, 
                rgba(157, 182, 140, 0.15) 0%, 
                rgba(157, 182, 140, 0.05) 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* 响应式设计 - 5个盒子布局 - 优化 */
@media screen and (max-width: 1200px) {
    .bento-grid-five {
        gap: 30px;
    }
    
    .bento-content {
        padding: 30px;
    }
    
    .image-overlay {
        padding: 30px;
    }
    
    .bento-item-large h3 {
        font-size: 1.7rem;
    }
    
    .bento-item-small h3 {
        font-size: 1.4rem;
    }
    
    .feature-section {
        padding: 60px 50px;
    }
}

@media screen and (max-width: 992px) {
    .bento-grid-five {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, auto);
    }
    
    .item-large-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .item-small-2 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    
    .item-small-3 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .item-small-4 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .item-large-5 {
        grid-column: 1 / 3;
        grid-row: 4 / 5;
    }
    
    .bento-item-large {
        flex-direction: column;
    }
    
    .bento-image-placeholder {
        min-height: 320px;
    }
    
    .bento-image-placeholder.small {
        min-height: 240px;
    }
    
    .feature-section {
        flex-direction: column;
        text-align: center;
        padding: 50px 40px;
    }
    
    .feature-content {
        margin-bottom: 60px;
    }
    
    .feature-title {
        font-size: 2.5rem;
    }
    
    .feature-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-actions {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .bento-grid-five {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        gap: 25px;
    }
    
    .item-large-1,
    .item-small-2,
    .item-small-3,
    .item-small-4,
    .item-large-5 {
        grid-column: 1 / 2;
    }
    
    .item-large-1 { grid-row: 1 / 2; }
    .item-small-2 { grid-row: 2 / 3; }
    .item-small-3 { grid-row: 3 / 4; }
    .item-small-4 { grid-row: 4 / 5; }
    .item-large-5 { grid-row: 5 / 6; }
    
    .bento-item-small {
        flex-direction: column;
    }
    
    .bento-image-placeholder {
        min-height: 280px;
    }
    
    .bento-image-placeholder.small {
        min-height: 200px;
    }
    
    .image-overlay {
        padding: 25px;
    }
    
    .image-overlay h3 {
        font-size: 1.7rem;
    }
    
    .bento-content {
        padding: 30px;
    }
    
    .section-title {
        font-size: 2.6rem;
    }
    
    .image-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .feature-section {
        padding: 40px 30px;
    }
    
    .feature-title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 576px) {
    .bento-image-placeholder {
        min-height: 240px;
    }
    
    .bento-image-placeholder.small {
        min-height: 180px;
    }
    
    .image-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .bento-item-large h3,
    .bento-item-small h3 {
        font-size: 1.5rem;
    }
    
    .bento-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-item {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
    
    .feature-actions {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-button {
        width: 100%;
        text-align: center;
        padding: 14px 30px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 400px) {
    .bento-image-placeholder {
        min-height: 220px;
    }
    
    .bento-image-placeholder.small {
        min-height: 160px;
    }
    
    .image-overlay h3 {
        font-size: 1.5rem;
    }
    
    .bento-content {
        padding: 25px;
    }
    
    .bento-item-large h3,
    .bento-item-small h3 {
        font-size: 1.4rem;
    }
    
    .feature-section {
        padding: 30px 25px;
    }
    
    .feature-title {
        font-size: 1.9rem;
    }
}