/* styles\style-all.css */
/* 全局重置 - 清除所有元素的默认边距和内边距，设置盒模型和字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 元素宽度包含padding和border */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* 设置默认字体 */
}

/* 设置html和body高度为100%并隐藏溢出，确保全屏布局 */
html,
body {
    height: auto;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    /* 防止水平滚动 */
}

/* 添加动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加动画类 */
.animate-on-scroll {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 为不同层级的元素设置不同的延迟 */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* 激活动画的类 */
.animate-active {
    animation-name: fadeInUp;
}

/* 内容块容器 */
.content-blocks {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* 内容块通用样式 */
.content-block {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/*内容块标题样式*/
.block-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #9370DB;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.block-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 2px;
    background: #9370DB;
    border-radius: 2px;
}

.container {
    width: 100%;
}

/* Tabs栏样式 - 占据100%宽度 */
.tabs-container {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs {
    display: flex;
    width: 100%;
}

.tab-item {
    flex: 1;
    border: 0;
    min-width: 120px;
    text-align: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-item:hover {
    color: #495057;
    background: rgba(147, 112, 219, 0.05);
}

.tab-item.active {
    color: #9370DB;
    border-bottom: 3px solid #9370DB;
}

.tab-content {
    display: flex;
    width: 100%;
    margin: 0 auto;
    /* 居中 */
}

.content-item {
    display: none;
    scroll-margin-top: 600px;
    animation: fadeIn 0.5s ease forwards;
    width: 100%;
    /* 为元素设置内边距，上下为 80px */
    padding: 80px 0;
}

.content-item.active {
    display: flex;
    flex-wrap: wrap;
}

/*第一个内容块的背景*/
.banner {
    width: 100%;
    padding: 0 40px;
    min-height: 30vh;
    /* 设置容器高度 */
    background-image: url('../images/background.png');
    /* 背景图 */
    background-size: cover;
    /* 图片覆盖整个容器 */
    background-position: center;
    /* 居中对齐 */
    background-repeat: no-repeat;
    /* 不重复 */
    margin-top: 70px;
}

/* 第一个内容块的文字 */
.banner-title {
    position: relative;
    top: 50px;
    font-size: 2.3rem;
    font-weight: bold;
    animation: fadeInUp 1.2s ease-out forwards;
    /* 
    animation属性简写:
    - fadeInUp: 使用上面定义的动画
    - 1.2s: 动画持续时间为1.2秒
    - ease-out: 缓动函数，动画结束时减速
    - forwards: 动画完成后保持最后一帧的状态
  */
    opacity: 0;
    /* 初始状态设置为透明，防止动画开始前显示内容 */
}

.banner-des {
    position: relative;
    top: 130px;
    font-size: 1.4rem;
    font-weight: 300;
    color: rgb(125, 122, 125);
    animation: fadeInUp 1.8s ease-out forwards;
    opacity: 0;
    /* 初始状态设置为透明，防止动画开始前显示内容 */
}

/* ================================
   响应式设计 - 媒体查询
   ================================ */

/* 超大屏幕 (1920px以上) */
@media screen and (min-width: 1921px) {

    .container,
    .tab-content,
    .function-content {
        max-width: 1600px;
        margin: 0 auto;
    }

    .content-item {
        max-width: 1600px;
        margin: 0 auto;
    }

    .newsbox {
        width: 1400px;
    }
}

/* 中等屏幕 (平板横屏 1199px-992px) */
@media screen and (max-width: 1199px) {
    .banner-title {
        font-size: 2rem;
        top: 40px;
    }

    .banner-des {
        font-size: 1.2rem;
        top: 110px;
    }

    #brief,
    #briefimg {
        padding: 40px 80px;
    }

    .main-title {
        font-size: 3.2rem;
    }

    .main-subtitle {
        font-size: 1.3rem;
    }

    .newsbox {
        width: 90%;
        max-width: 900px;
    }

    .content-item li {
        padding: 20px 100px;
    }

    .tit {
        font-size: 17px;
        line-height: 1.4;
        text-align: left;
    }

    .news-excerpt {
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
    }

    .menu-content {
        max-width: 90%;
        padding: 0 15px;
    }

    .technical-imgbox {
        gap: 25px;
    }

    .technical-img {
        min-width: 250px;
        max-width: 300px;
    }

    .introduce-box {
        gap: 30px;
    }

    .introduce-img {
        max-width: 400px;
    }
}

/* 小屏幕 (平板竖屏 991px-768px) */
@media screen and (max-width: 991px) {
    .header {
        padding: 0 20px;
    }

    .logo {
        width: 250px;
    }

    .nav-links {
        gap: 20px;
    }

    .banner {
        padding: 0 30px;
        min-height: 25vh;
    }

    .banner-title {
        font-size: 1.8rem;
        top: 40px;
    }

    .banner-des {
        font-size: 1.1rem;
        top: 100px;
    }

    #brief,
    #briefimg {
        padding: 30px 40px;
    }

    .block-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .block-title::after {
        width: 120px;
    }

    .main-title {
        font-size: 2.8rem;
    }

    .main-subtitle {
        font-size: 1.2rem;
    }

    .content-item {
        padding: 60px 5%;
    }

    .text-content,
    .image-content {
        padding: 30px;
    }

    .content-title {
        font-size: 24px;
    }

    .introduce-box {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .introduce-content,
    .introduce-img {
        width: 100%;
        max-width: 100%;
    }

    .introduce-content p {
        text-align: center;
    }

    .technical-imgbox {
        gap: 20px;
    }

    .technical-img {
        min-width: 220px;
        max-width: 100%;
        padding: 25px 20px;
    }

    .code-box {
        flex-direction: column;
        gap: 25px;
    }

    .code1,
    .code2 {
        width: 100%;
    }

    .choose-box {
        gap: 20px;
        margin-bottom: 30px;
    }

    .choose-box a {
        padding: 8px 20px;
        font-size: 14px;
    }

    .content-item li {
        padding: 20px 60px;
    }

    .news-pic {
        width: 160px;
        height: 110px;
        margin-right: 15px;
    }

    .tit {
        font-size: 16px;
        line-height: 1.4;
        text-align: left;
        word-break: break-word;
        hyphens: auto;
    }

    .news-excerpt {
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
        word-break: break-word;
        -webkit-line-clamp: 3;
    }

    .menu-content {
        flex-direction: column;
        gap: 20px;
    }

    .menu-divider {
        width: 100%;
        height: 1px;
        margin: 10px 0;
    }

    .one-box {
        gap: 40px;
        justify-content: center;
    }

    .footerimg {
        position: relative;
        right: 0;
        top: 0;
        margin: 20px auto;
        display: block;
    }

    .awards-container {
        padding: 0 40px;
    }

    .award-item {
        width: 220px;
    }

    .tab-content {
        flex-direction: column;
        margin: 20px auto 0;
    }

    .text-content {
        padding: 30px 20px;
        min-width: 100%;
        order: 1;
    }

    .image-content {
        padding: 0 20px 30px;
        min-width: 100%;
        order: 2;
    }

    .content-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .content-title {
        font-size: 24px;
        text-align: center;
    }

    .content-text {
        font-size: 15px;
        text-align: justify;
    }

    /* 汉堡菜单按钮显示 */
    .hamburger {
        display: flex;
    }

    /* 移动端导航样式 */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 0;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 35;
        overflow-y: auto;
        display: flex !important;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        width: 90%;
        text-align: center;
        padding: 12px 15px;
        margin: 3px 0;
        border-radius: 8px;
        font-size: 16px;
    }

    /* 移动端下拉菜单样式 */
    .dropdown-menu {
        position: static;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        display: none;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: 8px;
        margin: 10px 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .menu-content {
        flex-direction: column;
        max-width: 100%;
        padding: 15px 0;
    }

    .menu-column {
        padding: 0 15px;
        min-width: auto;
        margin-bottom: 10px;
    }

    .menu-divider {
        width: 90%;
        height: 1px;
        margin: 10px auto;
        background: rgba(255, 255, 255, 0.15);
    }

    .menu-title {
        text-align: center;
        margin-bottom: 12px;
        font-size: 16px;
        color: #9370db;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-item {
        display: block;
        padding: 10px 15px;
        text-align: left;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 14px;
        margin: 2px 0;
        border-radius: 5px;
    }

    .menu-item:hover {
        padding-left: 15px;
        border-left: none;
        border-bottom-color: #9370db;
        background: rgba(147, 112, 219, 0.1);
    }

    /* 下拉菜单指示器 */
    .dropdown-toggle {
        position: relative;
    }

    .dropdown-toggle::after {
        content: "▶";
        font-size: 0.7rem;
        margin-left: 8px;
        transition: transform 0.3s;
    }

    .dropdown.active .dropdown-toggle::after {
        transform: rotate(90deg);
    }

    /* 汉堡菜单动画 */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* 滚动条样式 */
    .dropdown-menu::-webkit-scrollbar {
        width: 4px;
    }

    .dropdown-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }

    .dropdown-menu::-webkit-scrollbar-thumb {
        background: #9370db;
        border-radius: 2px;
    }

    /* 导航项间距 */
    .nav-links>a:not(.dropdown-toggle) {
        margin: 5px 0;
    }

    .dropdown {
        width: 90%;
        margin: 5px 0;
    }
}

/* 超小屏幕 (手机 767px-576px) */
@media screen and (max-width: 767px) {
    .header {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        width: 200px;
        height: 60px;
    }

    .logo img {
        top: -5px;
    }

    .nav-links {
        display: none;
    }

    .banner {
        padding: 0 20px;
        min-height: 20vh;
        margin-top: 60px;
    }

    .banner-title {
        font-size: 1.5rem;
        top: 30px;
    }

    .banner-des {
        font-size: 1rem;
        top: 80px;
    }

    #brief,
    #briefimg {
        padding: 20px;
    }

    .brief-text {
        font-size: 14px;
        line-height: 1.8;
    }

    .block-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .block-title::after {
        width: 100px;
    }

    .main-title {
        font-size: 2rem;
        padding: 0 20px;
    }

    .main-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab-item {
        min-width: 100px;
        padding: 15px 10px;
        font-size: 14px;
    }

    .content-item {
        padding: 40px 15px;
    }

    .text-content,
    .image-content {
        padding: 20px;
        min-width: 100%;
    }

    .content-title {
        font-size: 22px;
        text-align: center;
    }

    .content-text {
        font-size: 14px;
        text-align: center;
    }

    .content-image {
        max-width: 100%;
    }

    .function-section {
        padding: 60px 0;
    }

    .technical-imgbox {
        gap: 15px;
    }

    .technical-img {
        min-width: 100%;
        padding: 20px;
        margin-bottom: 15px;
    }

    .technical-img img {
        width: 60px;
        height: 60px;
    }

    .technical-img h2 {
        font-size: 18px;
    }

    .choose-box {
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 25px;
    }

    .choose-box a {
        padding: 8px 18px;
        font-size: 13px;
    }

    .code1-img {
        height: 160px;
    }

    .code1-title {
        font-size: 16px;
    }

    .news-item a {
        flex-direction: column;
        text-align: center;
    }

    .code2-time {
        min-width: 60px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .code2-time p {
        font-size: 20px;
    }

    .content-item li {
        padding: 15px 20px;
    }

    .content-item li a {
        flex-direction: row;
        align-items: flex-start;
    }

    .news-pic {
        width: 120px;
        height: 90px;
        margin-right: 15px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .news-right {
        flex: 1;
        text-align: left;
        /* 保持左对齐 */
    }

    .tit {
        font-size: 15px;
        line-height: 1.4;
        text-align: left;
        margin-bottom: 6px;
        word-break: break-word;
        hyphens: auto;
        display: block;
        white-space: normal;
    }

    .news-excerpt {
        font-size: 13px;
        line-height: 1.5;
        text-align: left;
        margin-bottom: 6px;
        word-break: break-word;
        -webkit-line-clamp: 2;
        /* 确保摘要正常显示多行文字 */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-date {
        font-size: 12px;
        text-align: left;
    }

    .breadcrumb {
        padding: 15px 20px;
        margin-top: 60px;
    }

    .breadcrumb-content {
        font-size: 14px;
    }

    .breadcrumb-content i {
        margin: 0 8px;
    }

    .one-box {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .services {
        width: 100%;
    }

    .services-title,
    .code {
        font-size: 1.1rem;
    }

    .services-one,
    .service-one-copy {
        font-size: 0.9rem;
    }

    .two-box {
        flex-direction: column;
        height: auto;
        gap: 15px;
        text-align: center;
        padding: 20px 0;
    }

    .two-box-left {
        margin-right: 10px;
        font-size: 0.8rem;
    }

    .side-nav {
        display: none;
    }

    .awards-container {
        padding: 0 30px;
    }

    .award-item {
        width: 200px;
    }

    .award-image {
        height: 150px;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .yema a {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        margin: 0 3px;
    }

    .yema a:first-child,
    .yema a:last-child {
        min-width: 50px;
    }

    .news-title {
        font-size: 24px;
    }

    .news-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .tab-content {
        margin: 15px auto 0;
    }

    .text-content {
        padding: 25px 15px;
    }

    .image-content {
        padding: 0 15px 25px;
    }

    .content-image {
        max-width: 100%;
    }

    .content-title {
        font-size: 22px;
    }

    .content-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .function-section {
        padding: 60px 0;
        margin-top: 30px;
    }

    .function-content {
        padding: 0 15px;
    }

    .function-img img {
        border-radius: 6px;
    }

    /* 移动端导航优化 */
    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .nav-links a {
        width: 95%;
        padding: 10px 12px;
        font-size: 15px;
    }

    .menu-column {
        padding: 0 10px;
    }

    .menu-item {
        padding: 8px 12px;
        font-size: 13px;
    }

    .menu-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .dropdown-menu {
        max-height: 50vh;
    }
}

/* 超小屏幕 (小手机 575px以下) */
@media screen and (max-width: 575px) {
    .banner-title {
        font-size: 1.3rem;
        top: 20px;
    }

    .banner-des {
        font-size: 0.9rem;
        top: 60px;
    }

    .block-title {
        font-size: 22px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .main-subtitle {
        font-size: 1rem;
    }

    .tab-item {
        min-width: 90px;
        padding: 12px 8px;
        font-size: 13px;
    }

    .content-item {
        padding: 30px 10px;
    }

    .technical-img {
        padding: 15px;
    }

    .technical-img h2 {
        font-size: 16px;
    }

    .technical-img a {
        font-size: 14px;
        padding: 6px 12px;
    }

    .choose-box a {
        padding: 6px 15px;
        font-size: 12px;
    }

    .code1-img {
        height: 140px;
    }

    .code1-title {
        font-size: 15px;
    }

    .code2-title {
        font-size: 14px;
    }

    .content-item li {
        padding: 12px 15px;
    }

    .content-item li a {
        flex-direction: row;
        /* 保持横向布局 */
    }

    .news-pic {
        width: 100px;
        height: 75px;
        margin-right: 12px;
    }

    .tit {
        font-size: 14px;
        line-height: 1.4;
        text-align: left;
        word-break: break-word;
        hyphens: auto;
    }

    .news-excerpt {
        font-size: 12px;
        line-height: 1.4;
        text-align: left;
        word-break: break-word;
        -webkit-line-clamp: 2;
    }

    .news-date {
        font-size: 11px;
    }

    .award-item {
        width: 180px;
    }

    .award-image {
        height: 130px;
    }

    .award-title {
        font-size: 14px;
    }

    .yema a {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 8px;
    }

    .news-title {
        font-size: 20px;
    }

    .news-time {
        font-size: 13px;
        padding: 15px;
    }

    .news-text {
        font-size: 13px;
    }

    .text-content {
        padding: 20px 10px;
    }

    .image-content {
        padding: 0 10px 20px;
    }

    .content-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .content-text {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .function-section {
        padding: 40px 0;
        margin-top: 20px;
    }

    .block-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

/* 横屏手机特殊处理 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .main-screen {
        padding-top: 60px;
    }

    .main-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .main-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .banner {
        min-height: 40vh;
    }

    .header {
        height: 60px;
    }

    .logo {
        height: 60px;
    }

    .banner {
        margin-top: 60px;
    }

    .tab-content {
        flex-direction: row;
        gap: 20px;
    }

    .text-content,
    .image-content {
        min-width: 50%;
        padding: 15px;
    }

    .text-content {
        order: 1;
    }

    .content-item li {
        padding: 12px 20px;
    }

    .news-pic {
        width: 100px;
        height: 70px;
    }

    .tit {
        font-size: 14px;
    }

    .news-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .image-content {
        order: 2;
    }

    .content-title {
        font-size: 18px;
    }

    .content-text {
        font-size: 13px;
    }

    /* 横屏导航优化 */
    .nav-links {
        height: calc(100vh - 60px);
    }

    .dropdown-menu {
        max-height: 40vh;
    }
}

/* 打印样式 */
@media print {

    .header,
    .side-nav,
    .footerimg,
    .nav-btn,
    .choose-box,
    #news>a,
    .tabs-container,
    .breadcrumb {
        display: none !important;
    }

    .content-item {
        padding: 20px 0 !important;
        break-inside: avoid;
    }

    body {
        color: #000 !important;
        background: #fff !important;
        font-size: 12pt !important;
    }

    .banner {
        background: none !important;
        color: #000 !important;
    }

    .banner-title,
    .banner-des {
        color: #000 !important;
        position: static !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .block-title::after {
        height: 1.5px;
    }

    .tit {
        font-weight: 600;
    }

    .line {
        height: 0.5px;
    }

    .tab-item.active {
        border-bottom-width: 2.5px;
    }
}

/* 减少动画偏好设置 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .content-item li {
        transition: none;
    }

    .content-item li:hover .news-pic img {
        transform: none;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .content-block:not(.banner) {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .brief-text,
    .content-text {
        color: #e0e0e0;
    }
}