@font-face {
    font-family: 'VIVITA-Bold';
    src: url('../public/font/VIVITA-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'VIVITA-Regular';
    src: url('../public/font/VIVITA-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.header-hero-wrapper.no-bg .header {
    background: #fff !important;
}

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

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: 80px 0;
}

.section-title.center {
    text-align: center;
    margin-bottom: 60px;
}
.section-title.center .en {
    font-family: 'VIVITA-Bold', sans-serif;
    font-size: 58px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-title.center .zh {
    font-size: 28px;
    font-weight: 500;
    margin-top: -20px;
    letter-spacing: 4px;
}

/* =========================
   公共头部区域（固定导航 + 完美适配）
========================= */
.header-hero-wrapper {
    position: relative;
    overflow: hidden;
    padding: 40px 0 200px;
    padding-top: 120px !important;
}
.header-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* 固定头部 */
.header {
    padding: 0;
    background: transparent;
    margin-bottom: 80px;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    padding: 10px 0 !important;
    /* background-color: rgba(44, 40, 37, 0.9) !important; */
}
.logo {
    margin-top: 30px;
    position: relative;
    left: 0; /* 修复：取消 -120px 偏移 */
}
.header-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}
.logo-img {
    height: 100px;
}
.nav-list {
    display: flex;
    gap: 60px;
}
.nav-list li a {
    font-size: 20px;
    opacity: 0.9;
    transition: all 0.3s;
    position: relative;
}
/* 导航激活下划线 */
.nav-list li.active a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #E86F56;
}
.nav-list li.active a {
    opacity: 1;
}

.hero {
    background: transparent;
    padding: 0;
    text-align: center;
}
.hero-content p {
    font-size: 22px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: 1px;
}
.main-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000000 !important;
    text-align: center !important;
    font-family: 'VIVITA-Bold', sans-serif !important;
    font-size: 60px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    margin: -140px 0 110px !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    position: relative !important;
    z-index: 1 !important;
    background: none !important;
    border: none !important;
    line-height: 1.2 !important;
}
/* 背景模式样式 */
.header-hero-wrapper.has-bg {
    position: relative !important;
    padding: 0 !important;
    height: 500px !important;
    overflow: hidden !important;
}
/* 背景图铺满 */
.header-hero-wrapper.has-bg .header-bg-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 500px !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 0 !important;
}
.header-hero-wrapper.has-bg .nav-list li a {
    color: #fff;
}
.header-hero-wrapper.has-bg .nav-list li.active a {
    color: #fff !important;
    opacity: 1;
}
.header-hero-wrapper.has-bg .hero {
    position: relative !important;
    z-index: 10 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 0 !important;
    padding: 0 !important;
}
.header-hero-wrapper.has-bg .hero-content {
    width: 100% !important;
    text-align: center !important;
}
.header-hero-wrapper.has-bg .hero-content p {
    margin: 0 auto !important;
    text-align: center !important;
    max-width: 900px !important;
    line-height: 2 !important;
}
.header-hero-wrapper.has-bg .section-title.center .en,
.header-hero-wrapper.has-bg .section-title.center .zh {
    color: #fff;
}

.header-hero-wrapper.no-bg {
    height: auto !important;
    background-color: #fff;
    color: #000;
}
.header-hero-wrapper.no-bg .header-bg-img {
    display: none !important;
}
.header-hero-wrapper.no-bg .nav-list li a {
   color: #757575 ;
}
.header-hero-wrapper.no-bg .nav-list li.active a {
    color: #000;
    opacity: 1;
}
.header-hero-wrapper.no-bg .nav-list li a:hover {
    color: #000;
}
/* 鼠标悬浮：底部同款式划线 */
.header-hero-wrapper .nav-list li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    color: #000;
    background-color: #E86F56;
}
.header-hero-wrapper.no-bg .hero {
    color: #000;
}
.header-hero-wrapper.no-bg .hero-content p {
    color: #000;
}
.header-hero-wrapper.no-bg .section-title.center .en,
.header-hero-wrapper.no-bg .section-title.center .zh {
    color: #000;
}

/* =========================
   iPad 专属适配（768px ~ 1024px）
========================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .header {
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 10px 0 !important;
    }
    .header-hero-wrapper {
        padding-top: 100px !important;
    }
    .logo {
        left: -20px !important; /* 修复：不偏移 */
        right: 0 !important;
    }
    .logo-img {
        height: 75px !important;
    }
    .header-inner {
        justify-content: center !important;
        gap: 20px !important;
        padding: 0 20px !important;
    }
    .nav-list {
        gap: 20px !important;
    }
    .nav-list li a {
        font-size: 16px !important;
        white-space: nowrap !important;
    }
    .hero-content p {
        font-size: 18px !important;
        max-width: 700px !important;
    }
    .section-title.center .en {
        font-size: 42px !important;
    }
    .section-title.center .zh {
        font-size: 22px !important;
    }
    .hamburger-btn {
        display: none !important;
    }
    .nav {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* =========================
   iPad横版 1025px-1366px
========================= */
@media screen and (min-width: 1025px) and (max-width: 1366px) {
    .logo-img {
        height: 70px !important;
    }
    .header-inner {
        gap: 30px !important;
        justify-content: center !important;
    }
    .nav-list {
        gap: 35px !important;
    }
}

/* =========================
   手机端 ≤767px
========================= */
@media screen and (max-width: 767px) {
    .header {
        background-color: #fff !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
        padding: 0 !important;
        position: fixed !important;
        display: flex;
        align-items: center;
    }
    .header-hero-wrapper {
        padding-top: 75px !important;
    }
    .header-inner {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 5px 0  !important;
        gap: 0 !important;
    }
    .logo {
        left: auto !important;
        margin: 0 auto !important;
        text-align: center !important;
        position: static !important;
    }
    .logo-img {
        height: 70px !important;
        content: url('../public/heilogozhu.png');
        margin: 0 auto !important;
    }
    .hamburger-btn {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 15px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    }
    .header.nav-open .nav {
        display: block;
    }
    .nav-list {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 10px !important;
        overflow: visible !important;
        flex-wrap: unset !important;
        justify-content: center;
        scrollbar-width: none !important;
    }
    .nav-list::-webkit-scrollbar {
        display: none;
    }
    .nav-list li {
        text-align: center;
    }
    .nav-list li a {
        font-size: 18px !important;
        color: #757575 !important;
        white-space: nowrap;
        padding: 6px 0 !important;
    }
    .nav-list li.active a {
        color: #000 !important;
        font-weight: 500;
    }
    .nav-list li.active a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #ff6600 !important;
    }
    .header-hero-wrapper.has-bg .header {
        background-color: #fff !important;
    }
    .header-hero-wrapper.has-bg .nav-list li a {
        color: #757575 !important;
    }
    .hero-content p {
        font-size: 15px !important;
        padding: 0 15px !important;
    }
    .main-title {
        font-size: 32px !important;
        margin-bottom: 60px !important; 
    }
}