/**********************  全局基础  *********************************/
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
}

/**********************  home1 背景图  *********************************/
.home1 {
    position: relative;
    margin-top: 12vh;
    overflow: hidden;
    color: #00c1a4;
    width: 100%;
}


.unique-header-image {
    max-width: 100%;
    height: auto;
    margin-top: 160px; 
    margin-bottom: 160px; 
    border: none; 
    background: none; 
    box-shadow: none;
}

/**********************  初始项目简介  *********************************/
.project-intro {
    font-family: "Georgia", "Times New Roman", serif;
    padding: 40px;
    background: linear-gradient(to bottom, #fdfdfd, #f3f3f3);
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 960px;
    margin: 40px auto;
    line-height: 1.8;
    color: #333;
}

.project-intro h1 {
    font-size: 2.5em;
    text-align: center;
    color: #2E7D32;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 900;
    margin-bottom: 30px;
}

.project-intro h2 {
    font-size: 1.8em;
    color: #1565C0;
    margin-top: 30px;
    font-weight: 700;
    border-left: 6px solid #2196F3;
    padding-left: 12px;
    background-color: #e3f2fd;
    padding: 10px 15px;
    border-radius: 6px;
}

.project-intro h3 {
    font-size: 1.4em;
    color: #EF6C00;
    margin-top: 25px;
    font-weight: 600;
    border-bottom: 2px dashed #FFB74D;
    padding-bottom: 6px;
}

.project-intro p {
    font-size: 1.05em;
    margin-bottom: 18px;
    text-indent: 2em;
    transition: color 0.3s ease;
}

.project-intro p:hover {
    color: #000;
}

.project-intro p sup {
    font-size: 0.8em;
    vertical-align: super;
    color: #D84315;
    font-style: italic;
    margin-left: 2px;
}

.project-intro .references {
    margin-top: 30px;
    padding-left: 2em;
}

.project-intro .references p {
    font-size: 0.95em;
    margin-bottom: 10px;
    text-indent: -1.8em;
    padding-left: 2em;
    line-height: 1.6;
    color: #555;
}



/**********************  home3 内容卡片  *********************************/
.home3-text {
    width: 80%;
    position: relative;
    top: 25%;
    left: 10%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    gap: 5%;
    perspective: 1000px;
}

.card {
    width: 30%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
    margin-bottom: 50px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card .photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover .photo img {
    transform: scale(1.05);
}

.card-description {
    background: linear-gradient(to bottom, rgba(0, 197, 164, 0.6), #00c1a4);
    border-radius: 0 0 20px 20px;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    transition: all 0.5s ease-in-out;
    position: absolute;
    bottom: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.card:hover .card-description {
    opacity: 1;
    transform: translateY(0);
}

.card-text {
    margin: 0;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-in-out 0.2s, transform 0.5s ease-in-out 0.2s;
}

.card:hover .card-text {
    opacity: 1;
    transform: translateY(0);
}


/**********************  动态按钮样式  *********************************/
.fancy-button-container {
    display: flex;
    justify-content: center;
    margin: 20px auto;
}

.fancy-button {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.fancy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.fancy-button:hover::before {
    transform: scaleX(1);
}

.fancy-button:hover {
    background-color: #0056b3;
}

/**********************  滑动展示部分样式  *********************************/
.slide-section, .simple-slide-section, .split-content-section, .solar2chem-section {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
    background-color: #f8f9fa;
    overflow-x: hidden;
    margin: 10px 0; /* 统一设置section之间的间距为10px */
}

.slide-section {
    min-height: 100vh;
    flex-direction: column;
    padding: 10px 0;
}

.simple-slide-section, .split-content-section, .solar2chem-section {
    height: auto;
    min-height: auto;
    padding: 20px 0;
}

.slide-section.show, .simple-slide-section.show, .split-content-section.show, .solar2chem-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* 彩色下箭头容器 - 单独成行 */
.color-down-arrow-container {
    width: 100%;
    text-align: center;
    margin: 10px 0; 
    padding: 0;
}

.color-down-arrow {
    font-size: 80px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorBounce 2s infinite ease-in-out;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: inline-block;
}

@keyframes colorBounce {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(15px) scale(1.1);
    }
}

/* 内容容器样式 */
.main-content {
    display: flex;
    width: 90%;
    max-width: 1400px;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.main-content.second-part {
    margin-top: 30px;
    padding-top: 0;
    justify-content: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 左右图文块容器 */
.slide-block {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 600px;
}

.left-block {
    flex-direction: row;
}

.left-block .text-container {
    flex: 1.5;
}

.right-block {
    flex-direction: row-reverse;
}

.full-width {
    width: auto;
    justify-content: center;
    flex: 1;
    min-width: 800px;
}

/* 图片容器样式 */
.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    object-fit: cover;
}

.main-content.second-part .image-container {
    justify-content: flex-start;
    width: 350px;
    margin-right: 20px;
    margin-left: 200px;
}

.main-content.second-part .image-container img {
    width: 350px;
    max-width: 350px;
    box-shadow: none;
}

/* 文字容器样式 */
.text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.text-container p {
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
    padding: 0 15px;
    color: #333;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    height: auto;
    min-height: 300px;
    text-align: left;
    word-wrap: break-word;
    /* hyphens: auto; */
}

.main-content.second-part .text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    max-width: none;
    word-wrap: normal;
    /*hyphens: none; */
    white-space: nowrap;
}

.text-container p strong {
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 10px;
}

/* 箭头样式 */
.middle-arrow {
    font-size: 150px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff5722, #2196f3, #4caf50, #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bounce 1.5s infinite;
    margin: 0 20px;
    line-height: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(20px); }
}

/**********************  简单滑动部分样式  *********************************/
.simple-content-container {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    gap: 30px;
    margin: 0 auto;
}

.simple-image-wrapper {
    flex: 0 0 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.simple-section-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 6px;
}

.simple-text-wrapper {
    flex: 1;
}

.simple-text-content {
    font-size: 1.5em;
    line-height: 1.7;
    color: #333;
}

.simple-text-content p {
    text-align: left;
    margin: 0;
}

/**********************  左右分栏内容样式  *********************************/
.split-content-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0;
    gap: 40px;
}

/* 左侧内容 */
.left-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 0;
}

.left-image-wrapper {
    flex: 0 0 15%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.split-section-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 4px;
}

.left-text-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.left-text-content {
    font-size: 1.3em;
    line-height: 1.6;
    color: #333;
    width: 100%;
}

.left-text-content p {
    margin: 0;
    text-align: left;
}

/* 向右箭头 */
.right-arrow {
    font-size: 80px;
    font-weight: bold;
    color: #00c1a4;
    margin: 0 20px;
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 右侧内容 */
.right-content {
    flex: 1;
    padding-right: 20px;
}

.right-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.point-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background-color: #e8f5e8;
    border-radius: 6px;
}

.point-number {
    font-weight: bold;
    color: #2e7d32;
    flex-shrink: 0;
}

.point-text {
    font-size: 1.2em;
    line-height: 1.5;
    color: #333;
    flex: 1;
}

/**********************  Solar2Chem 内容样式  *********************************/
.solar2chem-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0;
    gap: 40px;
    align-items: center;
}

/* 左侧内容 */
.solar-left-content {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: 0;
}

.solar-image-wrapper {
    flex: 0 0 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.solar-section-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.solar-text-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    height: 180px;
}

.solar-text-content {
    font-size: 1.2em;
    line-height: 1.7;
    color: #333;
    width: 100%;
}

.solar-text-content p {
    margin: 0;
    text-align: left;
}

/* 向右箭头 */
.solar-right-arrow {
    font-size: 70px;
    font-weight: bold;
    color: #ff6b6b;
    margin: 0 20px;
    animation: arrowSlide 2s infinite;
}

@keyframes arrowSlide {
    0%, 100% { 
        transform: translateX(0);
        opacity: 1;
    }
    50% { 
        transform: translateX(10px);
        opacity: 0.7;
    }
}

/* 右侧标题 */
.solar-right-content {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
}

.solar-main-title {
    font-size: 2.1em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    text-align: center;
}

.solar-title-line1 {
    display: block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1em;
}

/**********************  响应式设计  *********************************/
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    
    .middle-arrow {
        transform: none;
        margin: 30px 0;
    }
    
    .slide-block {
        width: 100%;
        max-width: 600px;
    }
    
    .image-container img {
        max-width: 400px;
    }
}

@media (max-width: 1024px) {
    .simple-content-container, .split-content-container, .solar2chem-container {
        gap: 30px;
    }
    
    .left-content, .solar-left-content {
        gap: 15px;
    }
    
    .right-arrow {
        font-size: 35px;
        margin: 0 15px;
    }
    
    .solar-section-img {
        height: 160px;
        max-width: 200px;
    }
    
    .solar-text-wrapper {
        height: 160px;
    }
    
    .solar-right-arrow {
        font-size: 45px;
        margin: 0 15px;
    }
    
    .solar-main-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .project-intro {
        padding: 20px;
    }

    .project-intro h1 {
        font-size: 2em;
    }

    .project-intro h2 {
        font-size: 1.5em;
    }

    .project-intro h3 {
        font-size: 1.2em;
    }

    .project-intro p {
        font-size: 1em;
    }

    .slide-block, .right-block {
        flex-direction: column;
    }
    
    .image-container img {
        max-width: 320px;
    }
    
    .simple-slide-section, .split-content-section, .solar2chem-section {
        padding: 30px 15px;
    }
    
    .simple-content-container, .split-content-container, .solar2chem-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    
    .left-content, .solar-left-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .simple-image-wrapper, .left-image-wrapper, .solar-image-wrapper {
        flex: none;
        width: 50%;
        max-width: 160px;
    }
    
    .simple-text-content {
        font-size: 1em;
    }
    
    .right-arrow, .solar-right-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
        font-size: 35px;
    }
    
    .right-content, .solar-right-content {
        padding-right: 0;
        width: 100%;
    }
    
    .right-title {
        font-size: 1.1em;
        text-align: center;
    }
    
    .point-item {
        padding: 10px 12px;
    }
    
    .solar-section-img {
        height: 150px;
        max-width: 100%;
    }
    
    .solar-text-wrapper {
        height: auto;
        min-height: 120px;
    }
    
    .solar-main-title {
        font-size: 1.6em;
    }
    
    .color-down-arrow {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .simple-slide-section, .split-content-section, .solar2chem-section {
        padding: 25px 10px;
    }
    
    .simple-content-container, .split-content-container, .solar2chem-container {
        gap: 15px;
        padding: 0 10px;
    }
    
    .simple-image-wrapper, .left-image-wrapper, .solar-image-wrapper {
        width: 60%;
    }
    
    .right-arrow, .solar-right-arrow {
        font-size: 30px;
    }
    
    .point-item {
        flex-direction: column;
        gap: 5px;
        padding: 8px 10px;
    }
    
    .point-number {
        align-self: flex-start;
    }
    
    .solar-main-title {
        font-size: 1.4em;
    }
    
    .color-down-arrow {
        font-size: 50px;
    }
}