:root {
    --primary-color-20: rgba(223, 121, 61, 0.2);
    --primary-color: #df793d;

    --nav-width: 116px;
    --nav-padding: 40px;

    --transition-duration: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

/* 基础响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 响应式容器 */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* 页面加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-color-20);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body {
    font-family: Barlow, sans-serif;
    line-height: 1.6;
    color: #333;
}


/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #DF793D;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
    transform: translateY(-1px) scale(1.05);
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}


/* Section Styles */
.main-container {
    margin-left: var(--nav-width);
    transition: margin-left var(--transition-duration) ease;
    opacity: 1;
    animation: fadeIn 1s ease-out;
    overflow: clip;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.banner-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
}


/* banner Section Styles */
.banner-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000;
    background-image: url('../image/banner_bg_new.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.1s ease-out;
    animation: bgShift 30s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        background-position: center;
    }

    100% {
        background-position: right bottom;
    }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(223, 121, 61, 0.3);
    animation: float 15s infinite linear;
    opacity: 0;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

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

.banner-title {
    font-size: 66px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    100% {
        text-shadow: 0 2px 20px rgba(223, 121, 61, 0.5);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(223, 121, 61, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(223, 121, 61, 0.5);
    }

    100% {
        box-shadow: 0 4px 15px rgba(223, 121, 61, 0.3);
    }
}

.typewriter-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}

.banner-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    overflow: hidden;
}

.banner-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #DF793D, transparent);
    transition: width 1s ease-in-out;
}

.banner-subtitle:hover::after {
    width: 100%;
}

.learn-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 225px;
    height: 55px;
    padding: 0 30px 0 45px;
    background-color: var(--primary-color);
    color: white;
    font-size: 18px;
    font-weight: 400;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(223, 121, 61, 0.3);
    animation: pulse 2s infinite;
}

.learn-more-button::after {
    content: "";
    display: block;
    width: 15px;
    height: 12px;
    background: url(../image/button-arrow-right.png) repeat-x left center / 7.5px 12px;
}

.learn-more-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.learn-more-button:hover::after {
    animation: moveArrow 1s ease-in-out forwards infinite;
}

@keyframes moveArrow {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}



/* Footer Section */
.footer-section {
    background-color: #fff;
    width: 100%;
    padding: 0 0 31px;
}

.footer-divider {
    background-color: var(--primary-color);
    width: 100%;
    height: 3px;
    margin-bottom: 53px;
}

.footer-content {
    width: 100%;
    max-width: 1401px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    /* Use justify-between to push left and right cols apart, or use gap */
    gap: 367px;
    /* Logo width (238) + Gap (367) = 605? No, Gap is between cols. Lanhu gap 367. */
    align-items: flex-start;
    margin-bottom: 65px;
}

.footer-left-col {
    display: flex;
    flex-direction: column;
    gap: 35px;
    /* Distance between Logo and Contact */
}

.footer-logo img {
    width: 238px;
    height: auto;
}

.footer-links {
    display: flex;
    gap: 90px;
    /* Reduced gap because columns are wider now */
    margin-top: 11px;
    /* Align text with logo text baseline? or just top offset */
}

.footer-link-column {
    display: flex;
    flex-direction: column;
    width: 200px;
    /* Ensure columns have width */
}

.footer-link-title {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    line-height: 20px;
    transition: color 0.3s ease;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.footer-link-title:hover {
    color: var(--primary-color);
}

.footer-sub-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-sub-link {
    font-size: 16px;
    font-weight: 400;
    color: #8F8F8F;
    text-decoration: none;
    line-height: 16px;
    transition: color 0.3s ease;
}

.footer-sub-link:hover {
    color: var(--primary-color);
}

.footer-link {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    line-height: 20px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact p {
    font-size: 18px;
    font-weight: 400;
    color: #000;
    line-height: 18px;
    margin: 0;
}

.footer-bottom {
    text-align: center;
}

.copyright {
    font-size: 16px;
    font-weight: 400;
    color: #3C3C3C;
    line-height: 16px;
    margin: 0;
}

/* ==================== 响应式适配 ==================== */

/* 大屏幕 (1400px 以下) */
@media screen and (max-width: 1400px) {
    .footer-content {
        gap: 100px;
        padding: 0 40px;
    }

    .footer-links {
        gap: 50px;
    }
}

/* 平板设备 (1024px 以下) */
@media screen and (max-width: 1024px) {
    :root {
        --nav-width: 0px;
    }

    .main-container {
        margin-left: 0;
    }

    .banner-wrap {
        height: auto;
        min-height: 500px;
    }

    .banner-section {
        height: auto;
        min-height: 500px;
        padding: 120px 0 80px;
    }

    .banner-title {
        font-size: 48px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .banner-content {
        padding: 0 30px;
    }

    .learn-more-button {
        width: 200px;
        height: 50px;
        font-size: 16px;
        padding: 0 25px 0 35px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 30px;
    }

    .footer-left-col {
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-link-column {
        width: auto;
        min-width: 150px;
        text-align: center;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 小平板/大手机 (768px 以下) */
@media screen and (max-width: 768px) {
    .banner-wrap {
        height: auto;
        min-height: 400px;
    }

    .banner-section {
        height: auto;
        min-height: 400px;
        padding: 100px 0 60px;
    }

    .banner-title {
        font-size: 36px;
    }

    .banner-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .banner-subtitle br {
        display: none;
    }

    .learn-more-button {
        width: 180px;
        height: 45px;
        font-size: 14px;
        padding: 0 20px 0 30px;
    }

    .footer-section {
        display: none;
    }
}

/* 手机设备 (480px 以下) */
@media screen and (max-width: 480px) {
    .banner-wrap {
        height: auto;
        min-height: 320px;
    }

    .banner-section {
        height: auto;
        min-height: 320px;
        padding: 80px 0 50px;
    }

    .banner-title {
        font-size: 28px;
        margin-bottom: 12.8px;
    }

    .banner-subtitle {
        font-size: 13px;
        line-height: 1.5;
    }

    .banner-content {
        padding: 0 20px;
    }

    .learn-more-button {
        width: 160px;
        height: 42px;
        font-size: 13px;
        padding: 0 18px 0 25px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }

    .arrow-up {
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid white;
    }
}