/* ==================== 全局 ==================== */
*,
*::before,
*::after {
    box-sizing: border-box; /* 包含 padding 和 border */
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
}

img, .owl-carousel, .carousel .item {
    max-width: 100%;
    display: block;
}

/* ==================== 顶部导航栏 ==================== */
.site-menu {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    height: 64px;
    background: #222;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.site-logo.small {
    position: absolute;
    left: 200px;
    top: 50%;
    transform: translateY(-50%);
}
.site-logo.small img {
    height: 40px;
    width: auto;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
}

.menu li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.menu li a:hover {
    color: #ffd700;
}

.sub-menu,
.user-menu {
    position: absolute;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: none;
    min-width: 150px;
    z-index: 999;
    border-radius: 5px;
    background: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sub-menu li a,
.user-menu li a {
    display: block;
    padding: 8px 20px;
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s;
}

.sub-menu li a:hover,
.user-menu li a:hover {
    background: #444;
    color: #ffd700;
}

/* 子菜单显示 */
.menu li:hover > .sub-menu {
    display: block;
}
.sub-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
    top: 0;
    left: 100%;
}

/* ==================== 汉堡按钮 ==================== */
.menu-toggle {
    display: none;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 992px) {
    .menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background: #222;
        position: absolute;
        top: 32px;
        left: 0;
        width: 200px;
        height: calc(100vh - 32px);
        overflow-y: auto;
    }
    .menu.active {
        display: flex;
    }
    .menu li {
        border-bottom: 1px solid #444;
    }
    .menu li a {
        padding: 12px 20px;
    }
    .menu-toggle {
        display: block;
    }
    .user-center {
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .menu {
        height: calc(100vh - 32px);
    }
}

/* ==================== 用户中心 ==================== */
.user-center {
    position: absolute;
    right: 110px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 1001;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #ffd700;
}

.user-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Header 大 Logo ==================== */
.site-header {
    position: absolute;
    top: 32px;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    z-index: 995;
    pointer-events: none;
    text-align: left;
}

.site-logo.large {
    position: absolute;
    top: 96px;
    left: 200px;
    z-index: 995;
}

.site-logo.large img {
    max-height: 80px;
    width: auto;
}

.site-header .site-title,
.site-header .site-description {
    font-size: 32px;
    opacity: 0.15;
    position: relative;
    z-index: -999;
}

.site-header .site-description {
    font-size: 16px;
    margin: 0;
}

/* ==================== 轮播器 ==================== */
.carousel .item {
    position: relative;
    z-index: 900;
}

.carousel .item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10%;
    background: rgba(0,0,0,0.4);
    z-index: 910;
}

.carousel-more {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 5px;
    cursor: pointer;
    z-index: 915;
    user-select: none;
    text-align: center;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 950;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 18px;
    margin-bottom: 15px;
}

.carousel-btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: #ffd700;
    color: #222;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.carousel-btn-link:hover {
    background: #ffb700;
}

/* 自定义箭头 */
.owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 950;
    pointer-events: none;
}

.owl-nav button {
    background: rgba(255, 215, 0, 0.8);
    color: #097c39;
    border: none;
    font-size: 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: all 0.3s;
}

.owl-nav button:hover {
    transform: scale(1.2);
}

.arrow-multi {
    font-size: 50px;
    font-weight: bold;
    color: #222;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    animation: arrowMove 1s infinite alternate;
}

@keyframes arrowMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(5px); }
}

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
    .carousel .item img { height: 400px; }
    .carousel-caption h2 { font-size: 28px; }
    .carousel-caption p { font-size: 16px; }
    .carousel-btn-link { padding: 8px 16px; font-size: 14px; }
    .owl-nav button { width: 60px; height: 60px; font-size: 50px; }
}

@media (max-width: 768px) {
    .carousel .item img { height: 300px; }
    .carousel-caption h2 { font-size: 22px; }
    .carousel-caption p { font-size: 14px; }
    .carousel-btn-link { padding: 6px 12px; font-size: 12px; }
    .owl-nav button { width: 50px; height: 50px; font-size: 40px; }
}
/* ==================== 响应式隐藏 Logo ==================== */
@media (max-width: 992px) {
    .site-logo.small,
    .site-logo.large {
        display: none;
    }
}