/* 通用样式文件 */

/* 引入阿里巴巴普惠体字体 */
@font-face {
    font-family: 'ALBB';
    src: url('../font/Alibaba-PuHuiTi-Medium.ttf') format('truetype');
    font-style: normal;
}

/* 引入优设标题圆字体 */
@font-face {
    font-family: 'YouSheBiaoTiYuan';
    src: url('../font/优设标题圆.otf') format('opentype');
    font-style: normal;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 通用容器 */
.container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 章节标题 */
.section-title {
    font-size: 40px;
    color: rgba(28, 142, 199, 1);
    margin-bottom: 30px;
    text-align: center;
}

/* 导航条样式 - 可复用组件 */
.navbar {
    background: rgba(91, 190, 240, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 40px;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #1e3c72;
}

.logo-text {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    flex: 1 1 auto;
    justify-content: center;
}
.nav-item {
    flex: 1 1 160px;
    max-width: 160px;
    min-width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-item.has-submenu:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 100%;
    z-index: 100;
    padding: 10px 0;
}

.submenu-link {
    display: block;
    padding: 10px 15px;
    color: rgba(102, 102, 102, 1);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
}

.submenu-link:hover {
    background: #f5f5f5;
    color: #1C8EC7;
}

.nav-item > a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;

}

.nav-item > a:hover {
    background-color: rgba(66, 138, 175, 0.4);
    transform: translateY(-2px);
}
.nav-item.active > a {
    background-color: rgba(66, 138, 175);
    transform: translateY(-2px);
}

.nav-href {
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 悬停时的底部红条 */
.nav-item:hover::after {
    content: '';
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0;
    height: 4px;
    background-color: #406F87;
    transition: all 0.3s ease;
}

/* 选中时的底部红条 */
.nav-item.active::after {
    content: '';
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0;
    height: 4px;
    background-color: #406F87;
    transition: all 0.3s ease;
}
.nav-utils {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 2;
    min-width: 100px;
}

/* 搜索容器 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #4998C0;
    border-radius: 20px;
    border: 2px solid #3A7A9A;
    overflow: hidden;
    padding: 0 20px;
    max-width: 280px;
    height: 35px;
    border-radius: 8px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 14px;
    width: 100%;
    color: rgba(245, 245, 245, 1);

}

.search-input::placeholder {
    color: rgba(245, 245, 245, 1);
    font-size: 14px;
}

.search-icon {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: url('../../assets/img/search.png') no-repeat center center;
}

.search-icon:hover {
    color: #333;
}

.lang-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 页脚样式 */
.footer {
    background: rgba(35, 48, 67, 1);;
    color: #fff;
    height: 248px;
    padding: 40px 0 0 0;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    height: 194px;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}
.footer-left p {
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.footer-bottom {
    width: 100%;
    height: 54px;
    opacity: 1;
    background: rgba(71, 81, 97, 1);
    display: flex;
    justify-content: center;
    font-size: 14px;
    align-items: center;
}
.qr-codes {
    display: flex;
    gap: 20px;
}

.qr-item {
    text-align: center;
}

.qr-code {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-item p {
    font-size: 12px;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .nav-menu {
        margin-top: 15px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        width: auto;
    }

    .nav-href {
        width: auto;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-title {
        font-size: 48px;
    }
}

/* 手机 (max-width: 480px) */
@media (max-width: 480px) {
    .nav-menu {
        gap: 8px;
    }

    .nav-item a {
        font-size: 12px;
        padding: 6px 10px;
    }

    .hero-title {
        font-size: 36px;
    }

    .search-container {
        width: 100%;
        max-width: 280px;
    }
}

.grey-span {
    color: rgba(153, 153, 153, 100);
}

/* 去除a标签样式的通用类 - 用于Thymeleaf动态添加链接 */
.link-href {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
    display: block;
    width: 100%;
}

.link-href:hover,
.link-href:visited,
.link-href:active,
.link-href:focus {
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
}

/* Hero Banner 通用样式 */
.hero-title {
    font-size: 96px;
    font-family: 'ALBB';
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(102, 102, 102, 1);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}