@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css";


:root {
    --wood: #6E5B4C;      /* 木刻主色 */
    --ink: #3A2E28;       /* 版画墨色 */
    --paper: #F5F1E8;     /* 宣纸底色 */
    --mountain: #7A9D96;  /* 重庆山色 */
    --accent: #D4A373;    /* 点缀色 */
}

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

body {
    font-family: "华文宋体", "SimSun", serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.8;
    background-image: url(../img/tb.jpg);/* 大图 */
}

/* 导航栏优化 */
.nav-bar,
.nav-bar1 {
    background: rgba(142, 140, 140, 0.5); /* 透明黑背景 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 底部细边框 */
    padding: 0.95rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-bar {
    top: 0;
    justify-content: space-between;
}

.nav-bar1 {
    top:77px;
    justify-content: center;
    justify-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--paper);
    line-height: 1.3; /* 调整整体行高 */
}

.logo-en {
    font-size: 0.9rem;  /* 英文缩小到原字号的75% */
    font-weight: normal; /* 去除加粗 */
    display: block;     /* 确保换行生效 */
    margin-top: 0.2rem; /* 增加中英文间距 */
    letter-spacing: 0.5px; /* 适当字母间距 */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 80%;
}

.menu-toggle {
    display: none;
    color: var(--paper);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 统一导航链接颜色 */
.nav-bar .nav-link,
.nav-bar1 .nav-link {
    color: rgba(255, 255, 255, 0.9) !important; /* 强制统一颜色 */
    opacity: 0.9; /* 统一透明度 */
}


/* 下拉菜单适配 */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 5%;
    color: var(--paper);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: var(--ink);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

.hero-btn:hover {
    background: #c2946a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 163, 115, 0.4);
}






.social-links {
    display: flex;
    gap: 3rem;/* 第一栏图标间隔 */
}

.social-icon {
    /* 新增以下两行 */
    color: inherit;       /* 继承父元素颜色 */
    text-decoration: none; /* 去除下划线 */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-5px);
}



/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--wood);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.4s;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .quick-access {
        grid-template-columns: 1fr;
    }

    .chat-window {
        width: 300px;
        height: 0;
    }
}

/* 下拉菜单样式 */
.submenu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(94, 93, 93, 0.5);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 5%;
    top: 100%; /* 紧贴父菜单底部 */
    z-index: 1001; /* 确保高于其他元素 */
}

/* 显示逻辑改为JS控制 */
.submenu.active {
    display: flex;
    justify-content: right;
    gap: 2rem;
}

/* 在home.css中添加 */
.column-intro {
    font-size: 50%;
    text-align: justify;
    margin-top: -30px;
    margin-bottom: 30px;
}

/* 新增dropdown容器样式 */
.dropdown .nav-link{
    position: relative;
    display: flex;
    align-items: center; /* 垂直居中 */
    height: 100%; /* 继承父级高度 */
}


/* video样式 */
body {
    background-image: none;
    background-color: azure;
}

/* 增强型视频布局 */
.video-container {
    padding: 100px 5% 50px;
}

.video-group {
    max-width: 1200px;
    margin: 0 auto;
}

.language-switch {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.lang-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--wood) 0%, var(--ink) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(110, 91, 76, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn i {
    font-size: 1.1em;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 91, 76, 0.3);
}

.bilingual-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    margin-top: 5rem;
    padding-top: 10%;
}

.video-card:hover {
    transform: translateY(-8px);
}

.video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    backdrop-filter: blur(4px);
}

.video-thumb {
    height: 280px;
    background-size: cover;
    position: relative;
    background-position: center;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    color: white;
    font-size: 3.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.video-content {
    padding: 25px;
    background: linear-gradient(to bottom, #ffffff 70%, var(--paper));
}

.video-title {
    font-size: 1.4em;
    margin-bottom: 12px;
    color: var(--ink);
    position: relative;
    padding-left: 28px;
}

.video-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 4px;
}

.video-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--mountain), var(--accent));
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    gap: 8px;
}

.detail-btn i {
    font-size: 0.9em;
}

.detail-btn:hover {
    box-shadow: 0 5px 15px rgba(122, 157, 150, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .bilingual-row {
        grid-template-columns: 1fr;
    }

    .video-thumb {
        height: 200px;
    }
}


/* 智能导航栏样式 */
.smart-nav {
    position: fixed;
    left: -260px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 70vh;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(142, 140, 140, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0 20px 20px 0;
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.smart-nav:hover {
    left: -10px;
}

.nav-trigger {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 100px;
    background: var(--wood);
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.2);
}

.nav-trigger i {
    transform: rotate(90deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.nav-item {
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(110, 91, 76, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.nav-item:hover {
    background: rgba(110, 91, 76, 0.05);
    transform: translateX(10px);
}

.nav-item.active {
    background: rgba(110, 91, 76, 0.08);
}

.nav-item.active:before {
    transform: scaleY(1);
}

/* 调整视频容器位置 */
.video-container {
    padding-left: 60px;
}

@media (max-width: 768px) {
    .smart-nav {
        display: none;
        /* 移动端使用原有导航 */
    }

    .video-container {
        padding-left: 5%;
    }
}

footer{
    background-color: white;
    align-items: center;
    text-align: center;
}

.video-container {
    flex: 3; /* 视频区域占据更大比例 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}


