/* About Page Styles */

.about_page {
    width: 100%;
    /* overflow-x: hidden; */
}

/* 英雄区域 */
.hero_section {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    min-height: 100px;
    height: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 100px;
    padding-top: 180px;
    position: relative;
}

.hero_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(76, 175, 80, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero_content {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.hero_title {
    /* font-size: clamp(2rem, 4vw, 3.5rem); */
    /* font-weight: 600; */
    color: #2c3e50;
    margin-bottom: 40px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fixed-text {
    display: block;
    text-align: center;
    color: var(--suncell-black);
}

.changing-text {
    display: flex;
    position: relative;
    min-height: 1.5em;
    min-width: 8em; /* 确保有足够的宽度显示文本 */
    overflow: visible; /* 确保文本不被裁剪 */
    text-align: center;
    margin-top: 0; /* 与上面的文字保持一定距离 */
    width: 100%;
    justify-content: center;
    align-items: center;
}

.text-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    width: max-content; /* 让宽度适应内容 */
    white-space: nowrap; /* 防止文本换行 */
    text-decoration: none; /* remove unsupported offset */
    transition: opacity 0.1s ease; /* 只有透明度变化，实现闪烁效果 */
    
    font-weight: 700; /* 加粗显示 */
    color: var(--suncell-black);
    display: inline-block;
    border-bottom: var(--underline-thickness, 2px) solid currentColor;
    padding-bottom: var(--underline-offset, 4px); /* offset control */
}

.text-item.active {
    opacity: 1;
}

.hero_btn {
    background: transparent;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.hero_btn:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.2);
}

/* 说明文字区域 */
.description_section {
    padding:  60px 60px;
    background-image: url('../assets/images/about/intro_bg.webp');
    
    text-align: center;
    min-height:100px;
    height:max-content;
    
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.description_text {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #2c3e50;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.6;
    font-weight: 500;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.brand_intro {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #555;
    text-align: center;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.brand_name {
    color: var(--suncell-green-dark);
    font-weight: 700;
    font-size: 1.1em;
}

/* 特色区块 */
.features_section {
    padding: 80px 20px;
    background: white;
    height: 50vh;
    min-height:400px;
}

.features_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 100px;
    /* Longhand gaps for older engines */
    grid-column-gap: 100px;
    grid-row-gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
}

/* Grid column overrides for older Grid implementations */
@supports (display: grid) {
  @media (min-width: 1024px) {
    .features_grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  }
  @media (min-width: 768px) and (max-width: 1023px) {
    .features_grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  }
  @media (max-width: 767px) {
    .features_grid { grid-template-columns: 1fr; }
  }
}

/* Fallback: browsers without CSS Grid */
@supports not (display: grid) {
    .features_grid {
        display: -ms-flexbox; /* IE10/11 */
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        width: 100%;
        max-width: none;
        margin: 20px auto 0;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .features_grid > * {
        min-width: 120px;
        /* horizontal gutters 40px (20 + 20) */
        padding-left: 20px;
        padding-right: 20px;
        /* vertical gap */
        margin-bottom: 60px;
        /* IE flex-basis hacks */
        -ms-flex: 0 0 calc(33.333% - 40px);
        flex: 0 0 calc(33.333% - 40px);
    }
    /* 2 columns on tablets */
    @media (min-width: 768px) and (max-width: 1023px) {
        .features_grid > * {
            -ms-flex: 0 0 calc(50% - 40px);
            flex: 0 0 calc(50% - 40px);
        }
    }
    /* 1 column on small screens */
    @media (max-width: 767px) {
        .features_grid > * {
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
        }
    }
}

.feature_item {
    text-align: center;
    padding: 20px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}



.feature_item h3 {
    display: inline-block;
    border-bottom: var(--underline-thickness, 2px) solid transparent;
    padding-bottom: var(--underline-offset, 4px);
}

.feature_item.active h3{
    color: var(--suncell-green);
    text-decoration: none;
    border-bottom-color: currentColor;
}

.feature_icon {

    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 80px; */

    min-width:160px;


}

.feature_icon img {
    width: 64px; 
    object-fit: contain;
}

.feature_icon_hex {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.hexagon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    position: relative;
    border-radius: 10px;
    transform: rotate(30deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon::before,
.hexagon::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: #4CAF50;
    border-radius: 10px;
}

.hexagon::before {
    transform: rotate(60deg);
}

.hexagon::after {
    transform: rotate(-60deg);
}

.hexagon svg {
    position: relative;
    z-index: 2;
    transform: rotate(-30deg);
}

.feature_title {

    margin: 0;
    margin-top:10px;
    color: inherit;
}

.feature_item:not(.active) .feature_title {
    color: #2c3e50;
}

/* 图片展示区域 */
.article_section {
    padding: 40px 20px;
    padding-bottom: 100px;
    background: #f8f9fa;
    min-height:calc(100vw*0.5)
}



/* 响应式设计 */
@media(max-width:1280px) {

    .article_section {
        min-height: 700px;
    }
    .description_section
    {
         min-height: 600px;
    }
}
@media (max-width: 768px) {
    .hero_section {
        min-height: 50vh;
        padding: 40px 20px;
    }
    
    .description_section {
        padding: 60px 10px;
        min-height:100px;
    }

    .feature_item {

    padding: 20px 10px;

}

    .feature_icon {
        width: 80px;
    }

    .feature_icon img {
        width: 48px;
    }
    
    .features_section {
        padding: 60px 20px;
    }
    
    .features_grid {
        display:flex;
        gap: 10px;
        max-width: 100%;
        
    }
    html.no-flexbox-gap .features_grid {
        margin: 0 -5px;
    }
    html.no-flexbox-gap .features_grid > * {
        margin: 0 5px;
    }
    
    .article_section {
        padding: 30px 10px;
        height:max-content;
    }
    

}

@media (max-width: 480px) {

    
    .hero_section {
        min-height: 300px;
        height: max-content;
        padding: 60px 10px;
    }
    
    .container {
        padding: 0 15px;
    }
    .hero_title
    {
        margin-bottom: 0px;
    }

    .changing-text
    {
        font-size: 1.5rem;
    }
    .fixed-text
    {
        font-size: 1.8rem;
    }
    .feature_title
    {
        font-size:1rem;
    }

    .feature_item{
        padding: 20px 0;
    }
    .feature_icon{
        min-width:100px;

    }


}

@media (max-width: 420px) {
    .changing-text
    {
        font-size: 1.2rem;
    }

}
/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero_content,
.description_text,
.brand_intro,
.feature_item,
.gallery_item {
    animation: fadeInUp 0.6s ease-out;
}

.feature_item:nth-child(2) {
    animation-delay: 0.1s;
}

.feature_item:nth-child(3) {
    animation-delay: 0.2s;
}

.gallery_item:nth-child(2) {
    animation-delay: 0.1s;
}

.gallery_item:nth-child(3) {
    animation-delay: 0.2s;
}