/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans SC', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    pointer-events: none;
    z-index: -1;
}

/* 语言切换器 */
.divide {
    font-size: 14px;
    font-weight: 500;
    color: #000000
}

.language-switcher {
    display: flex;
    gap: 5px;
    z-index: 1000;
}

.lang-btn {
    border: none;
    color: #000000;
    padding: 2px;
    cursor: pointer;
    background: none;
    font-size: 14px;
}

.lang-btn.active {
    border: none;
    color: #007A46;
    font-weight: 600;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 150px;
    padding-top: 20px;
}

/* 头部样式 */
.header-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(10px);
    z-index: 1200;
    /* 确保在最上层 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.logo-image {
    width: 115px;
    height: 80px;
    object-fit: contain;
    opacity: 0.8;
}

/* 服务部分样式 */
.services-section {
    padding: 40px 100px;
    background: #ffffff;
    margin: 0 auto;
    max-width: 1200px;
}

.services-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 50px;
    color: #007A46;
    font-weight: 400;
}

.services-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    gap: 50px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 40px;
    height: 40px;
}

.service-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: #000000;
}

/* 主页内容 */
.homepage-content {
    display: none;
}

.homepage-content.active {
    display: block;
}

/* Banner样式 */
.banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    text-align: center;
    margin-top: 80px;
}

.banner img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    object-position: center;
}

.banner-text {
    padding: 20px 150px;
    background: #ffffff;
    margin: 0 auto;
    max-width: 1200px;
}

.banner-text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.banner-text-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.banner-text-content p:last-child {
    margin-bottom: 0;
}

/* Logo点击区域 */
#logo-home {
    cursor: pointer;
}

/* 主导航 */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
    /* 确保子菜单定位正确 */
    z-index: 1100;
    /* 提高主导航的层级 */
    margin-bottom: 0;
    /* 移除底部间距 */
}

.nav-item-wrapper {
    position: relative;
}

.nav-tab {
    background: none;
    border: none;
    color: #000000;
    padding: 25px 45px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #007A46;
    transition: width 0.3s ease;
}

.nav-tab:hover::after {
    width: 50px;
}

.nav-tab.active::after {
    width: 50px;
    background-color: #007A46;
}

.nav-tab:hover {
    color: #007A46;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tab.active {
    color: #007A46;
    font-weight: 500;
}

.sub-nav-dropdown {
    display: flex;
    /* 默认显示，通过 opacity 和 visibility 控制 */
    position: absolute;
    top: calc(100% + 3px);
    /* 调整与主导航的间距，使其更紧凑 */
    left: 50%;
    background: rgba(255, 255, 255, 0.98);
    /* 白色背景 */
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 5px 20px;
    min-width: unset;
    width: auto;
    z-index: 1050;
    /* 确保子导航在其他内容之上，提高优先级 */
    flex-direction: row;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* 默认不可交互 */
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
}

/* 添加尖角指示器 */
.sub-nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    z-index: 1051;
}

.sub-nav-dropdown::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(255, 255, 255, 0.98);
    z-index: 1052;
}

.nav-item-wrapper:hover .sub-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    /* 悬停时可交互 */
}

/* 保持子导航在鼠标移出主导航后短暂可见 */
.nav-item-wrapper:focus-within .sub-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.sub-nav-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    /* 悬停在子导航上时可交互 */
}

/* 添加延迟，防止意外消失 */
.nav-item-wrapper {
    position: relative;
}

.nav-item-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    z-index: 1049;
}

.sub-nav-dropdown .sub-tab {
    background: none;
    border: none;
    color: #333333;
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-nav-dropdown .sub-tab:hover {
    color: #007A46;
    font-weight: 500;
    transform: none;
    box-shadow: none;
}


.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* 标签内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
} */

/* 子内容 */
.sub-content {
    display: none;
}

.sub-content.active {
    display: block;
}

/* 内容区域 */
.content-section {
    border-radius: 15px;
    padding: 30px 50px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.content-section::before {
    content: \'\';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #333333, #666666, #333333);
    /* 灰色渐变 */
}

.title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333333;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
}

.title::after {
    content: \'\';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #333333, transparent);
    /* 深灰色 */
}

/* 联系我们 */
.contact-content {
    display: flex;
}

.contact-item {
    max-width: 430px;
}

.contact-info strong {
    color: #4a4a4a;
    font-weight: 600;
    display: inline-block;
}

/* 公司简介 */
.company-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-top: 20px;
}

.company-intro p {
    margin-bottom: 20px;
    text-align: justify;
}

.business-list {
    margin: 20px 0 20px 20px;
    padding-left: 20px;
}

.business-list li {
    margin-bottom: 10px;
    list-style-type: decimal;
}

/* 荣誉表格 */
.honors-table {
    margin-top: 30px;
    overflow-x: auto;
}

.honors-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.honors-table th {
    color: #333333;
    /* 白色文字 */
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 2px solid #222222;
}

.honors-table td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
}

.honors-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.05);
}

.honors-table tr:hover {
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.honors-table td:first-child {
    font-weight: 600;
    color: #333333;
    text-align: center;
    width: 80px;
}

.honors-table td:nth-child(2) {
    font-weight: 500;
}

.honors-table td:last-child {
    color: #666;
    font-style: italic;
}

/* 图片容器 */
.img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.img-container img {
    max-width: 100%;
    height: auto;
}

/* 投资者关系文档样式 */
.investor-documents {
    margin-top: 30px;
}

.investor-documents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.investor-documents li {
    margin-bottom: 15px;
}

.investor-documents a:hover {
    color: #007A46;
    font-weight: 500;
}

.investor-documents a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
}

/* 轮播图样式 */
.slideshow-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 宽高比 */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 上一张/下一张按钮 */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 5px 10px;
    color: white;
    font-weight: 300;
    font-size: 24px;
    transition: 0.3s ease;
    user-select: none;
    text-decoration: none;
    z-index: 10;
}

.next {
    right: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
}

/* 轮播图指示器 */
.dot-container {
    text-align: center;
    padding: 15px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    z-index: 5;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background-color: #007A46;
    transform: scale(1.2);
    border-color: #007A46;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 底部 */
footer {
    background-color: #f7f7f7;
    /* 浅灰白，日系柔和色 */
    padding: 20px 0 0 0;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    /* 柔和的分割线 */
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

.footer-section {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 0 20px;
}

.footer-logo {
    flex: 1;
}

.logo-vertical {
    width: 100px;
    height: auto;
    opacity: 0.8;
    /* 柔和化 */
}

.contact-info {
    flex: 4;
}

.contact-item p {
    margin-bottom: 10px;
}

.related-sites {
    flex: 1;
}

.contact-info h4,
.related-sites h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.site-item {
    display: block;
    text-decoration: none;
    color: #555;
    font-weight: 400;
    margin-bottom: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-item:hover {
    color: #6a8e7f;
    /* 柔和绿色悬停 */
    transform: translateX(5px);
}

.contact-content {
    display: flex;
    gap: 40px;
}


/* 响应式设计 */
.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #888;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .footer-section {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-logo {
        align-items: center;
    }

    .contact-content {
        flex-direction: column;
        gap: 15px;
    }

    .contact-info h3,
    .related-sites h3 {
        text-align: center;
    }

    .footer-logo,
    .contact-info,
    .related-sites {
        min-width: 100%;
    }

    .container {
        padding: 10px;
    }

    .logo h2 {
        font-size: 2rem;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-tab {
        width: 100%;
        max-width: 300px;
    }

    .sub-nav {
        flex-direction: column;
        align-items: center;
    }

    .sub-tab {
        width: 100%;
        max-width: 250px;
    }

    .content-section {
        padding: 20px;
    }

    .milestones-timeline::before {
        left: 20px;
        transform: translateX(0);
    }

    .timeline-item {
        flex-direction: column !important;
        margin-bottom: 30px;
        margin-left: 40px;
        align-items: flex-start;
    }

    .timeline-year {
        position: absolute;
        left: -50px;
        top: 0;
        width: 80px;
        font-size: 1.5rem;
        padding: 10px 5px;
        border: 1px solid rgba(129, 199, 132, 0.5);
    }

    .timeline-content {
        margin: 0;
        margin-top: 20px;
        max-width: 100%;
        text-align: left !important;
    }

    .timeline-content::before {
        display: none;
    }

    .timeline-events li {
        font-size: 13px;
        padding-left: 15px;
    }

    .announcement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .announcement-date {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .document-item h3 {
        margin-bottom: 10px;
    }

    .download-btn {
        margin-left: 0;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .logo h2 {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 15px;
    }

    .management-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .management-card {
        padding: 20px;
    }

    .avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .management-card h3 {
        font-size: 1.1rem;
    }

    .management-card h4 {
        font-size: 0.9rem;
    }

    .management-details li {
        font-size: 12px;
        padding-left: 12px;
    }

    .honors-grid,
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}