/* ====================
   响应式适配
   ==================== */

/* 展开箭头：桌面端隐藏，仅移动端显示（移动端用它展开下拉，父链接保留跳转） */
.nav-caret {
    display: none;
}

/* 平板与小型桌面 */
@media screen and (max-width: 1200px) {
    .hero-visual {
        width: 600px;
        right: -120px;
        opacity: 0.6;
    }

    .hero-content {
        max-width: 520px;
    }

    .hero-slogan {
        font-size: 56px;
    }

    .year-num {
        font-size: 90px;
    }

    .year-title span {
        font-size: 32px;
    }

    .projects-layout {
        gap: 40px;
    }

    .projects-gallery {
        flex: 1 1 auto;
        width: auto;
        grid-template-columns: 1fr 1.6fr 1fr;
        grid-template-rows: 200px 240px;
    }

    .gallery-main {
        grid-column: 2 / 4;
        grid-row: 1 / 2;
    }

    .gallery-sub {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        height: auto;
        align-self: stretch;
    }

    .gallery-card-blue {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        padding: 24px;
    }

    .gallery-right {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
        height: auto;
        align-self: stretch;
    }

    .gallery-card-blue h4 {
        font-size: 16px;
    }

    .gallery-card-blue li {
        font-size: 14px;
        padding: 12px 0;
    }
}

@media screen and (max-width: 992px) {
    .container {
        padding: 0 16px;
    }

    /* 导航 */
    .site-header {
        height: 64px;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .hero {
        padding-top: 64px;
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 48px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        padding: 24px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height:calc(100vh - 64px);
    }
    
    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        height: auto;
    }

    .main-nav > ul > li {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--border-light);
    }

    .main-nav > ul > li > a {
        width: 100%;
        padding: 18px 0;
        font-size: 18px;
        color: var(--text-nav);
        background: transparent;
    }

    .main-nav > ul > li:hover > a,
    .main-nav > ul > li.active > a {
        color: var(--primary);
        background: transparent;
    }

    .main-nav .dropdown {
        position: static;
        width: 100%;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f4f7fc;
        box-shadow: none;
        display: none;
        padding: 0;
        margin-bottom: 8px;
        border-radius: 6px;
        overflow: hidden;
    }

    .main-nav .dropdown li + li {
        border-top: 1px solid #e6ecf5;
    }

    .main-nav .dropdown a {
        color: var(--text-nav);
    }

    .main-nav .dropdown a:hover {
        color: var(--primary);
    }

    .main-nav > ul > li.has-dropdown.open .dropdown {
        display: block;
    }

    /* 移动端下拉容器改为静态，跟随侧滑菜单流布局 */
    .main-nav .dropdown-wrap {
        position: static;
        min-width: auto;
        z-index: auto;
    }
    .main-nav .dropdown-wrap .dropdown {
        background: transparent!important;
        border-radius:0;
        transform: translateY(0) !important;
    }

    .main-nav .dropdown li {
        padding: 0 16px;
    }

    .main-nav .dropdown a {
        padding: 14px 0;
        font-size: 16px;
    }

    /* 移动端展开箭头 */
    .main-nav > ul > li.has-dropdown {
        position: relative;
    }

    .nav-caret {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 56px;
        height: 60px;
        cursor: pointer;
        z-index: 2;
    }

    .nav-caret::after {
        content: '';
        position: absolute;
        right: 18px;
        top: 23px;
        width: 9px;
        height: 9px;
        border-right: 2px solid var(--text-muted);
        border-bottom: 2px solid var(--text-muted);
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

    .main-nav > ul > li.has-dropdown.open .nav-caret::after {
        transform: rotate(-135deg);
    }

    /* Banner */
    .hero-content {
        max-width: 100%;
    }

    .hero-year {
        gap: 12px;
        margin-bottom: 16px;
    }

    .year-num {
        font-size: 64px;
    }

    .year-divider {
        height: 50px;
    }

    .year-title span {
        font-size: 22px;
    }

    .hero-slogan {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 14px;
        padding: 12px 16px;
        max-width: 100%;
    }

    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        height: 280px;
        opacity: 1;
    }

    .shape-ring {
        width: 180px;
        height: 180px;
        right: 20px;
        top: 20px;
        border-width: 24px;
    }

    .shape-cylinder-blue {
        width: 60px;
        height: 180px;
        right: 10px;
        top: 60px;
    }

    .shape-cylinder-orange {
        width: 50px;
        height: 140px;
        right: 120px;
        top: 40px;
    }

    .shape-cube-1 {
        width: 70px;
        height: 70px;
        right: 140px;
        top: 160px;
    }

    .shape-cube-2 {
        width: 50px;
        height: 50px;
        right: 60px;
        top: 200px;
    }

    .shape-cube-3 {
        width: 40px;
        height: 40px;
        right: 230px;
        top: 120px;
    }

    .shape-line {
        width: 120px;
        height: 120px;
        right: 200px;
        top: 40px;
    }

    /* 通用标题 */
    .section-header {
        padding-top: 48px;
        margin-bottom: 32px;
    }

    .section-en {
        font-size: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    /* 核心品牌项目 */
    .core-projects {
        padding-bottom: 60px;
    }

    .projects-layout {
        flex-direction: column;
        gap: 24px;
    }

    .projects-menu {
        width: 100%;
        padding-top: 0;
    }

    .projects-menu-swiper {
        width: 100%;
    }

    .projects-menu-swiper::before {
        display: none;
    }

    .project-cat {
        padding: 14px 16px;
        font-size: 15px;
        background: var(--bg-light);
        border-radius: 4px;
        box-sizing: border-box;
    }

    .project-cat::before {
        display: none;
    }

    .project-cat.active {
        background: var(--primary);
    }

    .project-cat.active .cat-label {
        color: var(--bg-white);
    }

    .project-cat:hover .cat-label {
        transform: none;
    }

    .projects-gallery {
        flex: 1 1 auto;
        width: 100%;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 0;
    }

    .gallery-main {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        min-height: 200px;
    }

    .gallery-sub {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        height: auto;
        align-self: auto;
        min-height: 180px;
    }

    .gallery-card-blue {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        padding: 20px;
    }

    .gallery-right {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
        height: auto;
        align-self: auto;
        min-height: 180px;
    }

    .gallery-card-blue h4 {
        font-size: 16px;
        padding-bottom: 12px;
    }

    .gallery-card-blue li {
        font-size: 14px;
        padding: 10px 0;
    }

    /* 精选视频 */
    .featured-videos {
        padding-bottom: 48px;
    }

    .videos-layout {
        flex-direction: column;
    }

    .video-main .video-thumb {
        min-height: 220px;
    }

    .video-list {
        width: 100%;
        max-height: none;
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .video-list::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .video-list .video-item {
        width: auto;
        flex: 0 0 auto;
        padding: 0;
        border-bottom: none;
    }

    .video-item .video-thumb {
        width: 150px;
        height: 110px;
    }

    /* 活动专区 */
    .event-zone {
        padding-bottom: 60px;
    }

    .event-layout {
        flex-direction: column;
        gap: 16px;
    }

    .event-tabs {
        width: 100%;
        flex-direction: row;
        gap: 12px;
    }

    .event-tabs .tab {
        flex: 1;
        padding: 10px 16px;
        font-size: 14px;
    }

    .event-main {
        width: 100%;
        min-height: 220px;
    }

    .event-list {
        width: 100%;
    }

    .event-card {
        padding: 16px;
    }

    .event-card h3 {
        font-size: 15px;
    }

    /* 页脚 */
    .site-footer {
        padding-top: 40px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-links,
    .footer-qr {
        width: 100%;
    }
    .footer-links h4{
        padding-right: 0;
    }

    .footer-qr {
        text-align: left;
    }

    .footer-qr-list {
        flex-wrap: wrap;
    }

    .qr-placeholder {
        margin: 0;
    }
}

@media screen and (max-width: 768px) {
    .year-num {
        font-size: 52px;
    }

    .year-title span {
        font-size: 18px;
    }

    .hero-slogan {
        font-size: 30px;
    }

    .hero-visual {
        height: 220px;
    }

    .section-en {
        font-size: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .video-item .video-thumb {
        height: 120px;
    }
}

@media screen and (max-width: 480px) {
    .logo-main {
        font-size: 14px;
    }

    .logo-sub {
        font-size: 12px;
    }

    .hero-year {
        flex-wrap: wrap;
    }

    .year-divider {
        display: none;
    }

    .hero-slogan {
        font-size: 26px;
    }

    .project-cat {
        width: 100%;
        box-sizing: border-box;
    }

    .event-tabs {
        flex-direction: column;
    }

    .gallery-card-blue li {
        font-size: 14px;
    }

    .projects-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        grid-column: 1 / 2;
        min-height: 160px;
    }

    .gallery-sub {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .gallery-card-blue {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .gallery-right {
        grid-column: 1 / 2;
        grid-row: auto;
    }
}

/* ====================
   移动端补充（不改 1200px 以上的桌面样式）
   ==================== */
@media screen and (max-width: 1200px) {
    .hero .swiper-item-img {
        left: 16px;
        right: 16px;
        top: 12px;
        bottom: 36px;
        width: auto;
        height: auto;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .hero .swiper-item-img img {
        width: auto;
        max-width: 100%;
        max-height: 100%;
        height: auto;
        object-fit: contain;
        object-position: left center;
    }
}

@media screen and (max-width: 992px) {
    html,
    body {
        overflow-x: clip;
    }

    .site-header {
        height: calc(64px + env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
        box-sizing: border-box;
    }

    .logo {
        width: min(230px, calc(100% - 60px));
        height: auto;
    }

    .logo img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .main-nav {
        top: calc(64px + env(safe-area-inset-top));
        height: calc(100dvh - 64px - env(safe-area-inset-top));
        padding-bottom: 48px;
    }

    .main-nav .dropdown-wrap {
        height: auto;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero .swiper,
    .hero .swiper-slide {
        height: 210px;
    }

    .hero .swiper-item-img {
        left: 12px;
        right: 12px;
        top: 10px;
        bottom: 26px;
        width: auto;
        height: auto;
        max-width: calc(100% - 24px);
        transform: none;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .hero .swiper-item-img img {
        width: auto !important;
        height: auto !important;
        max-width: 100%;
        max-height: 146px !important;
        object-fit: contain;
        object-position: left center;
    }

    .projects-menu-swiper {
        height: auto;
        overflow: visible;
    }

    .projects-menu-swiper .swiper-wrapper {
        transform: none !important;
        height: auto !important;
        flex-direction: column;
    }

    .projects-menu-swiper .swiper-slide {
        height: auto !important;
        width: 100% !important;
    }

    .project-cat .cat-label {
        white-space: normal;
    }

    .featured-videos {
        margin-top: 0;
        padding-top: 48px;
    }

    .video-list {
        display: flex;
        align-items: flex-start;
    }

    .video-main {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        flex-shrink: 1;
    }

    .project-cat .cat-label {
        color: var(--text-secondary);
    }

    .video-title-bar {
        height: auto;
        min-height: 44px;
        padding: 10px 16px;
        font-size: 15px;
    }

    .play-btn {
        width: 56px;
        height: 56px;
    }

    .event-main {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        margin-left: 0;
        min-height: 0;
    }

    .event-list {
        width: 100%;
        height: auto;
        padding-left: 0;
        background: none;
    }

    .event-card {
        height: auto;
    }

    .event-card h3 {
        width: auto;
        max-width: 100%;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .event-meta {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .event-meta-item {
        margin-left: 0;
    }

    .logo-light {
        height: auto;
        padding-bottom: 12px;
    }

    .logo-light img {
        width: min(324px, 100%);
        height: auto;
    }

    .contact-list li a {
        align-items: flex-start;
        line-height: 1.6;
    }

    .footer-bottom p {
        line-height: 1.7;
    }
}

@media screen and (max-width: 480px) {
    .hero .swiper,
    .hero .swiper-slide {
        height: 188px;
    }

    .hero .swiper-item-img img {
        max-height: 128px !important;
    }

    .section-en {
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .event-card {
        padding: 14px 16px;
    }

    .event-card h3 {
        font-size: 15px;
    }

    .event-meta {
        font-size: 12px;
    }

    .video-title-bar {
        font-size: 14px;
        padding-left: 14px;
    }
}
