/* 基础样式 */
:root {
    --primary-color: #e0e0e0;
    --secondary-color: rgba(238, 236, 236, 0.4);
    --tertiary-color: rgba(248, 248, 248, 0.3);
    --background-color: rgba(0, 0, 0, 0.7);
    --blur-radius: 10px;
    --transition-duration: 0.3s;
    --font-family: Arial, sans-serif;
    --header-height: 60px;
    --logo-width: 100px;
    --section-padding: 20px;
    --section-max-width: 1024px;
    --section-width: 95%;
    --section-height: 300px;
    --footer-height: 300px;
    --footer-color: aliceblue;
    --footer-background: rgba(0, 0, 0, 0.8);
    --menu-background: #fff;
    --menu-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --menu-hover-color: purple;
    --slider-height: 2px;
    --slider-color: purple;
    --carousel-max-width: 1024px;
    --carousel-max-height: 400px;
    --carousel-blur: 10px;
    --carousel-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    --carousel-control-padding: 10px;
    --carousel-control-hover-scale: 1.2;
    --company-name-font-size: 32px;
    --company-name-color: rgb(42, 42, 58);
    --company-name-background: rgba(253, 252, 251, 0.7);
    --company-name-font-family: '隶书', LiShu, cursive;
    --company-name-font-size-responsive: 2.2vw;
    --top-banner-background: rgba(252, 252, 252, 0.7);
    --top-banner-height: 59px;
    --top-banner-left-width: 30%;
    --top-banner-right-width: 50%;
    --top-banner-logo-right: 20px;
    --top-banner-logo-top: 50%;
    --top-banner-logo-transform: translateY(-50%);
    --top-banner-transition: all var(--transition-duration);
    --common-section-width: 90%;
    --common-section-max-width: 1024px;
    --common-section-padding: 20px;
    --common-section-background: rgba(0, 0, 0, 0.7);
    --common-section-blur: 10px;
    --common-section-transition: all var(--transition-duration);
    --common-section-height: 300px;
    --common-section-background-color: rgba(118, 91, 119, 0.2);
    --common-section-background-color-2: rgba(111, 135, 187, 0.2);
    --common-section-background-color-3: rgba(144, 132, 185, 0.2);
    --common-section-background-color-4: rgba(197, 188, 145, 0.2);
    --common-section-width-2: 300px;
    --common-section-height-2: 300px;
    --common-section-float: left;
    --common-section-height-3: 400px;
    --common-section-height-4: 100px;
    --common-section-height-5: 130px;
}

body {
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 25px,
            var(--secondary-color) 25px,
            var(--tertiary-color) 40px),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><text x="10" y="50" fill="#e0e0e0" font-size="12" transform="rotate(45 10 50)">——chuanghualin ——</text></svg>');
    background-attachment: fixed;
    margin: 0;
    font-family: var(--font-family);
}

/* 通用类 */
.common-section {
    position: relative;
    width: var(--common-section-width);
    max-width: var(--common-section-max-width);
    margin: 0 auto;
    padding: var(--common-section-padding);
    overflow: hidden;
    backdrop-filter: blur(var(--common-section-blur));
    transition: var(--common-section-transition);
}

/* 顶部横幅 */
#topbenner {
    position: relative;
    width: 100%;
    height: var(--header-height);
    margin: 0 auto;
    overflow: hidden;
    line-height: var(--header-height);
    backdrop-filter: blur(var(--common-section-blur));
    transition: var(--top-banner-transition);
}

#topbenner-left,
#topbenner-right {
    position: relative;
    height: var(--top-banner-height);
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--top-banner-background);
    backdrop-filter: blur(var(--blur-radius));
    float: left;
}

#topbenner-left {
    width: var(--top-banner-left-width);
}

#topbenner-right {
    width: var(--top-banner-right-width);
    text-align: left;
}

.logo {
    position: absolute;
    top: var(--top-banner-logo-top);
    right: var(--top-banner-logo-right);
    transform: var(--top-banner-logo-transform);
    width: var(--logo-width);
    height: auto;
}

#gongsiming {
    width: 100%;
    background-color: var(--company-name-background);
    font-family: var(--company-name-font-family);
    font-size: var(--company-name-font-size);
    color: var(--company-name-color);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--company-name-font-size-responsive);
}

/* 轮播图 */
#carouse {
    backdrop-filter: blur(var(--blur-radius));
    background-color: rgba(242, 241, 243, 0.3);
}

.carousel {
    position: relative;
    width: var(--common-section-width);
    max-width: var(--carousel-max-width);
    max-height: var(--carousel-max-height);
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--background-color);
    backdrop-filter: blur(var(--carousel-blur));
    box-shadow: var(--carousel-box-shadow);
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel img {
    width: 100%;
    flex-shrink: 0;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: var(--carousel-control-padding);
    cursor: pointer;
    z-index: 10;
    transition: transform var(--transition-duration) ease-in-out;
    will-change: transform;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

.carousel-control:hover {
    transform: translateY(-50%) scale(var(--carousel-control-hover-scale));
}

/* 菜单栏 */
.menu {
    padding: 3px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #998f8f;
    clear: both;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin-right: 10px;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: #928e8e;
}

.menu-content {
    position: relative;
    width: var(--common-section-width);
    max-width: var(--common-section-max-width);
    margin: 0 auto;
    @extend .common-section;
    overflow: hidden;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    position: relative;
    width: 50%;
    max-width: var(--common-section-max-width);
    float: left;
}

.menu-item {
    position: relative;
    width: 25%;
    padding: 5px 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    z-index: 1;
}

.menu-item2 {
    position: relative;
    width: 70%;
    padding: 5px 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    z-index: 1;
}

.menu-item:hover {
    background-color: #dce6dc;
    /* 绿色 */
    color: #ffffff;
    /* 鼠标经过时文字变白 */
}

.menu-link {
    color: rgb(243, 241, 241);
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.menu-link:hover {
    background-color: #dce6dc;
    /* 绿色 */
    color: #5e4545;
    /* 鼠标经过时文字变白 */
}

.menu-list1 {
    position: relative;
    height: 40px;
    width: 15%;
    max-width: var(--common-section-max-width);
    margin: 0 auto;
    overflow: hidden;
    list-style: none;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: rgb(76, 81, 78);
    cursor: pointer;
    padding: 2px 4px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    align-content: center;
    background-color: rgba(195, 211, 207, 0.4);
}

.menu-list1 a {
    color: rgb(105, 112, 84);
}

.menu-list1:hover {
    color: rgb(238, 238, 238);
    background-color: #969f9b;
}

.menu-list1:active {
    background-color: #c0d411;
}

.menu-list1:disabled {
    background-color: #cf1b6f;
    cursor: not-allowed;
}

.menu-list2 {
    list-style: none;
    display: flex;
    position: relative;
    width: 130px;
    height: 60px;
    max-width: var(--common-section-max-width);
    float: left;
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
}

.webnav {
    list-style: none;
    position: relative;
    margin: 0 auto;
    width: var(--common-section-width);
    max-width: var(--common-section-max-width);
}

.menu-ul {
    position: relative;
    width: var(--common-section-width);
    max-width: var(--common-section-max-width);
    margin: 0 auto;
    overflow: hidden;
    list-style: none;
    display: flex;
    clear: both;
}

.slider {
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: #ffeb3b;
    /* 黄色 */
    transition: transform 0.3s;
    left: 0;
    width: 100%;
    /* 默认宽度为100% */
}

/* 公司简介 */
#gongsijianjie {
    position: relative;
    width: var(--common-section-width);
    max-width: var(--common-section-max-width);
    margin: 0 auto;
    overflow: hidden;
}

.gongsijianjie3 {
    position: relative;
    width: var(--common-section-width);
    max-width: var(--common-section-max-width);
    margin: 0 auto;
    overflow: hidden;
}

.gsfubiaoti {
    width: 70%;
    float: left;
}

.logobig {
    height: 160px;
    float: right;
    margin-top: 20px;
    max-width: 25%;
}

.section-height-3 {
    @extend .common-section;
    height: var(--common-section-height-3);
    background-color: var(--common-section-background-color);
}

.section-height-4 {
    @extend .common-section;
    height: var(--common-section-height-4);
}

.section-height-5 {
    @extend .common-section;
    height: var(--common-section-height-5);
}

/* 创新超越 */
.chaoyuechuangxin {
    @extend .common-section;
    height: var(--common-section-height);
    background-color: var(--common-section-background-color-2);
    overflow: hidden;
}

.chaoyuechuangxin img {
    float: left;
}

.chaoyuechuangxin>p {
    padding-top: 15px;
    font-size: clamp(0.8rem, 0.167rem + 2.67vw, 0.9rem);
}

.section-width-2 {
    @extend .common-section;
    width: var(--common-section-width-2);
    height: var(--common-section-height-2);
    float: var(--common-section-float);
}

/* 研发创新 */
.yanfayuchuangxin {
    @extend .common-section;
    height: var(--common-section-height);
    background-color: var(--common-section-background-color-3);
}

.yanfayuchuangxin img {
    float: left;
}

.yanfayuchuangxin>p {
    padding-top: 15px;
    font-size: clamp(0.8rem, 0.167rem + 2.67vw, 0.9rem);
}

/* 华为研发 */
.huaweiyanfa {
    @extend .common-section;
    height: var(--common-section-height);
    background-color: var(--common-section-background-color-4);
}

.huaweiyanfa img {
    float: left;
}

.huaweiyanfa>p {
    padding-top: 15px;
    font-size: clamp(0.8rem, 0.167rem + 2.67vw, 0.9rem);
}

/* 底部 */
#footer,
.contact-info {
    @extend .common-section;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--footer-background);
    color: var(--footer-color);
    text-align: center;
}

ul li {
    list-style: none;
}

.contact-info>ul {
    margin-top: 10px;
}


/* 响应式设计 */
@media (max-width: 768px) {

    .menu-list {
        flex-direction: column;
        align-items: center;
    }

    .menu-item {
        margin: 10px 0;
    }

    .slider {
        height: 2px;
        bottom: 5px;
    }

    .common-section {
        width: 100%;
        padding: 10px;
    }

    #topbenner {
        height: 50px;
        line-height: 50px;
    }

    #topbenner-left,
    #topbenner-right {
        height: 49px;
    }

    #topbenner-left {
        width: 25%;
    }

    #topbenner-right {
        width: 35%;
    }

    .logo {
        width: 80px;
    }

    #gongsiming {
        font-size: 20px;
    }

    .carousel {
        max-width: 100%;
        max-height: 300px;
    }

    .carousel-control {
        padding: 5px;
    }

    .gongsijianjie1,
    .chaoyuechuangxin1,
    .yanfayuchuangxin1,
    .huaweiyanfa1 {
        width: 100%;
        float: none;
        overflow: hidden;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #d8b4fe;
    }

    .menu-item {
        width: 100%;
        text-align: center;
    }

    .menu-list.active {
        display: flex;
    }

    div.chaoyuechuangxin,
    div.yanfayuchuangxin,
    div.huaweiyanfa {
        font-size: clamp(0.8rem, 0.167rem + 2.67vw, 0.9rem);
        height: 400px;
    }
}

@media (max-width: 680px) {

    .menu-list {
        flex-direction: column;
        align-items: center;
    }

    .menu-item {
        margin: 10px 0;
    }

    .slider {
        height: 2px;
        bottom: 5px;
    }

    .common-section {
        width: 100%;
        padding: 10px;
    }

    #topbenner {
        height: 50px;
        line-height: 50px;
    }

    #topbenner-left,
    #topbenner-right {
        height: 49px;
    }

    #topbenner-left {
        width: 25%;
    }

    #topbenner-right {
        width: 50%;
    }

    .logo {
        width: 80px;
    }

    #gongsiming {
        font-size: 20px;
    }

    .carousel {
        max-width: 100%;
        max-height: 300px;
    }

    .carousel-control {
        padding: 5px;
    }

    .gongsijianjie1,
    .chaoyuechuangxin1,
    .yanfayuchuangxin1,
    .huaweiyanfa1 {
        width: 100%;
        float: none;
        font-size: clamp(0.8rem, 0.167rem + 2.67vw, 0.9rem);
        overflow: hidden;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #d8b4fe;
    }

    .menu-item {
        width: 100%;
        text-align: center;
    }

    .menu-list.active {
        display: flex;
    }

    div.chaoyuechuangxin,
    div.yanfayuchuangxin,
    div.huaweiyanfa {
        height: 450px;
        overflow: hidden;
    }
}

@media (max-width: 460px) {
    .common-section {
        padding: 5px;
    }

    .logobig {
        display: none;
    }

    #topbenner {
        height: 40px;
        line-height: 40px;
    }

    #topbenner-left,
    #topbenner-right {
        height: 39px;
    }

    #topbenner-left {
        width: 30%;
    }

    #topbenner-right {
        width: 50%;
    }

    .logo {
        width: 60px;
    }

    #gongsiming {
        font-size: 16px;
    }

    .carousel {
        max-width: 100%;
        max-height: 200px;
    }

    .carousel-control {
        padding: 3px;
    }

    .gongsijianjie1,
    .chaoyuechuangxin1,
    .yanfayuchuangxin1,
    .huaweiyanfa1 {
        height: 450px;
        overflow: hidden;
    }

    div.chaoyuechuangxin,
    div.yanfayuchuangxin,
    div.huaweiyanfa {
        height: 430px;
        overflow: hidden;
    }

    .chaoyuechuangxin img,
    .huaweiyanfa img,
    .yanfayuchuangxin img {
        display: none;
    }

    .menu-list1 {
        width: 19%;
        font-size: 13px;
    }
}

@media (max-width: 326px) {
    .common-section {
        padding: 5px;
    }

    .logobig {
        display: none;
    }

    #topbenner {
        height: 40px;
        line-height: 40px;
    }

    #topbenner-left,
    #topbenner-right {
        height: 39px;
    }

    #topbenner-left {
        width: 30%;
    }

    #topbenner-right {
        width: 50%;
    }

    .logo {
        width: 60px;
    }

    #gongsiming {
        font-size: 16px;
    }

    .carousel {
        max-width: 100%;
        max-height: 200px;
    }

    .carousel-control {
        padding: 3px;
    }

    .gongsijianjie1,
    .chaoyuechuangxin1,
    .yanfayuchuangxin1,
    .huaweiyanfa1 {
        height: 450px;
        overflow: hidden;
    }

    div.chaoyuechuangxin,
    div.yanfayuchuangxin,
    div.huaweiyanfa {
        height: 430px;
        overflow: hidden;
    }

    .chaoyuechuangxin img,
    .huaweiyanfa img,
    .yanfayuchuangxin img {
        display: none;
    }

    .menu-list1 {
        width: 19%;
        font-size: 12px;
    }
}