/* ===== common.css - 公共样式 ===== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    color: #202020;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

/* Container */
.container {
    width: 100%;
    max-width: 1584px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --color-primary: #5bb217;
    --color-primary-dark: #4a9413;
    --color-text: #202020;
    --color-text-secondary: #333;
    --color-text-light: #848484;
    --color-text-muted: #9d9d9d;
    --color-light: #e5e5e5;
    --color-bg-dark: #2b2b2b;
    --color-white: #ffffff;
}

/* Section Title Pattern */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header .en-title {
    font-size: 60px;
    font-weight: bold;
    color: var(--color-primary);
    opacity: 0.11;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 2px;
}

.section-header .cn-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--color-text);
    margin-top: -30px;
    line-height: 1.2;
}

.section-header .sub-desc {
    font-size: 16px;
    color: var(--color-text);
    line-height: 28px;
    margin-top: 20px;
    max-width: 1043px;
    margin-left: auto;
    margin-right: auto;
}

/* Button */
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 16px;
    color: #fff;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-more:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 178, 23, 0.3);
}

.btn-more .btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
}

.btn-more .btn-arrow img {
    width: 18px;
    height: auto;
}

/* Utility */
.text-center { text-align: center; }
.text-white { color: #fff; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    height: 86px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-header .logo img {
    height: 42px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 50px;
}

.site-nav a {
    font-size: 16px;
    color: var(--color-text);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--color-primary);
    font-weight: bold;
}

.site-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 5px;
    background: var(--color-primary);
    border-radius: 3px;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0;
    cursor: pointer;
    padding: 5px;
    z-index: 1201;
    width: 30px;
    height: 24px;
    justify-content: center;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s;
    position: absolute;
    left: 4px;
}

.nav-toggle span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}
.nav-toggle span:nth-child(2) {
    top: 11px;
    opacity: 0;
}
.nav-toggle span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

.nav-toggle.active span:nth-child(1) {
    top: 3px;
    transform: none;
}
.nav-toggle.active span:nth-child(2) {
    top: 11px;
    opacity: 1;
}
.nav-toggle.active span:nth-child(3) {
    top: 19px;
    transform: none;
}

/* Footer */
.site-footer {
    background: var(--color-bg-dark);
    color: var(--color-light);
    padding: 80px 0 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    flex: 0 0 auto;
    max-width: 400px;
}

.footer-brand h3 {
    font-size: 32px;
    color: var(--color-light);
    line-height: 1.4;
    margin-bottom: 8px;
}

.footer-brand .slogan {
    font-size: 20px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact .icon-phone {
    width: 24px;
    height: 24px;
    margin-top: 7px;
}

.footer-contact .phone-label {
    font-size: 16px;
    color: #fff;
}

.footer-contact .phone-number {
    font-size: 22px;
    font-weight: bold;
    color: var(--color-light);
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav-col {
    min-width: 0;
}

.footer-nav-col h4 {
    font-size: 16px;
    color: var(--color-light);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.footer-nav-col h4 a {
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-arrow {
    display: none;
}

.footer-nav-col ul li {
    margin-bottom: 8px;
}

.footer-nav-col ul li a {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 36px;
    transition: color 0.3s;
}

.footer-nav-col ul li a:hover {
    color: var(--color-primary);
}

.footer-logo-area {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-logo-area img {
    height: 42px;
    width: auto;
}

.footer-bottom {
    border-top: none;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 1400px) {
    .footer-main {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav {
        /* display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 32px; */
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    .section-header .en-title {
        font-size: 44px;
    }
    .section-header .cn-title {
        font-size: 36px;
        margin-top: -20px;
    }

    /* Footer Accordion */
    .footer-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .footer-nav-col {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .footer-nav-col:last-child {
        border-bottom: none;
    }

    .footer-nav-col h4 {
        margin-bottom: 0;
        cursor: default;
    }

    .footer-nav-col h4 a {
        display: flex;
        align-items: stretch;
        padding: 16px 0;
        width: 100%;
        font-weight: normal;
    }

    .footer-nav-text {
        flex: 0 0 auto;
        padding: 16px 20px 16px 0;
        display: flex;
        align-items: center;
    }

    .footer-nav-col.has-child h4 a {
        padding: 0;
    }

    .footer-nav-col.has-child h4 {
        cursor: pointer;
    }

    .footer-arrow {
        flex: 1 1 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 44px;
        padding-right: 10px;
        cursor: pointer;
    }

    .footer-arrow::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid var(--color-text-light);
        border-bottom: 2px solid var(--color-text-light);
        transform: rotate(45deg);
        transition: transform 0.3s;
    }

    .footer-nav-col.has-child.open .footer-arrow::before {
        transform: rotate(-135deg);
    }

    .footer-nav-col .footer-sub {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .footer-nav-col.has-child.open .footer-sub {
        max-height: 500px;
    }

    .footer-nav-col .footer-sub li:last-child {
        margin-bottom: 16px;
    }
}

@media (max-width: 992px) {
    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-main {
        flex-direction: column;
    }

    .footer-nav {
        /* grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 24px; */
    }

    .section-header .en-title {
        font-size: 36px;
    }
    .section-header .cn-title {
        font-size: 30px;
        margin-top: -16px;
    }

    .site-header{
        height: 60px;
    }

    .inside-banner{
        margin-top: 60px !important;
    }

    .site-header .logo img{
        height: 25px;
    }

    .news-card .news-content h4{
        font-size: 16px !important;
    }
    
    .news-card .news-content p{
        font-size: 14px !important;
    }

    .site-footer{
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .section-header .en-title {
        font-size: 28px;
    }
    .section-header .cn-title {
        font-size: 24px;
        margin-top: -14px;
    }
    .section-header .sub-desc {
        font-size: 14px;
        line-height: 24px;
    }

    .footer-nav {
        /* grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px; */
    }

    .footer-brand h3 {
        font-size: 20px;
    }

    .footer-brand .slogan{
        font-size: 16px;
    }

    .footer-contact .phone-number{
        font-size: 20px;
    }

    .footer-logo-area img{
        height: 36px;
    }

    .btn-more {
        padding: 4px 12px;
        font-size: 14px;
    }
    .btn-more .btn-arrow{
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 560px) {
    .footer-nav {
        /* grid-template-columns: 1fr; */
    }
}

/* ===== Nav Dropdown ===== */
.nav-item--dropdown {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 127px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 200;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown a {
    display: block;
    padding: 0 20px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    color: var(--color-text);
    white-space: nowrap;
    font-weight: normal;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown a::after {
    display: none !important;
}

.nav-dropdown a:hover {
    background: var(--color-primary);
    color: #fff;
    font-weight: normal;
}

/* Mobile dropdown */
@media (max-width: 992px) {
    .nav-item--dropdown {
        flex-direction: column;
        align-items: flex-start;
        align-self: auto;
        width: 100%;
    }

    .nav-item--dropdown > a {
        width: 100%;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        width: 100%;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0;
        transition: max-height 0.3s ease;
        background: #f5f5f5;
    }

    .nav-item--dropdown.open .nav-dropdown {
        max-height: 600px;
    }

    .nav-dropdown a {
        height: auto;
        padding: 10px 20px;
        line-height: 1.6;
        border-bottom: 1px solid #ebebeb;
    }
}

/* ===== Inside Banner (内页横幅) ===== */
.inside-banner {
    position: relative;
    margin-top: 86px;
    min-height: 580px;
    height: min(780px, calc(100vh - 86px));
    overflow: hidden;
}

.inside-banner__bg,
.inside-banner__shade {
    position: absolute;
    inset: 0;
}

.inside-banner__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inside-banner__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    height: 100%;
    padding-top: 10%;
}

.inside-banner__text {
    color: #ffffff;
}

.inside-banner__title {
    font-size: 60px;
    line-height: 1.08;
    margin-bottom: 24px;
}

.inside-banner__desc {
    font-size: 22px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1400px) {
    .inside-banner__title {
        font-size: 52px;
    }
}

@media (max-width: 1200px) {
    .inside-banner {
        min-height: 520px;
    }

    .inside-banner__text {
        max-width: 580px;
    }

    .inside-banner__title {
        font-size: 46px;
    }
}

@media (max-width: 992px) {
    .inside-banner {
        min-height: 460px;
    }

    .inside-banner__text {
        max-width: 520px;
    }

    .inside-banner__title {
        font-size: 40px;
    }

    .inside-banner__desc {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .inside-banner {
        min-height: 360px;
        height: 56vh;
    }

    .inside-banner__content {
        padding-top: 80px;
    }

    .inside-banner__title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .inside-banner__desc {
        font-size: 14px;
        line-height: 1.8;
    }
}

@media (max-width: 560px) {
    .inside-banner {
        /* margin-top: 86px; */
        min-height: 320px;
        height: 30vh;
    }

    .inside-banner__text {
        max-width: none;
        width: 100%;
    }
}

/* ===== Mobile Dropdown Nav ===== */
.mobile-dropdown-nav {
    display: none;
    position: fixed;
    top: -100vh;
    left: 0;
    right: 0;
    height: calc(100vh - 60px);
    background: #fff;
    z-index: 1100;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.mobile-dropdown-nav.open {
    top: 60px;
    visibility: visible;
    pointer-events: auto;
}

.mobile-dropdown-nav__body {
    overflow-y: auto;
    height: 100%;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: flex;
    align-items: stretch;
    padding: 0;
}

.mobile-nav-link a {
    flex: 0 0 auto;
    font-size: 16px;
    color: var(--color-text);
    padding: 14px 20px 14px 20px;
    display: flex;
    align-items: center;
}

.mobile-nav-item.active > .mobile-nav-link a {
    color: var(--color-primary);
    font-weight: bold;
}

.mobile-nav-arrow {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 48px;
    padding-right: 20px;
    cursor: pointer;
}

.mobile-nav-arrow::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.mobile-nav-item.open > .mobile-nav-link .mobile-nav-arrow::before {
    transform: rotate(-135deg);
}

.mobile-nav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #f8f8f8;
}

.mobile-nav-item.open > .mobile-nav-sub {
    max-height: 500px;
}

.mobile-nav-sub-link {
    display: block;
    padding: 12px 20px 12px 36px;
    font-size: 14px;
    color: var(--color-text-light);
    border-bottom: 1px solid #efefef;
    transition: color 0.2s;
}

.mobile-nav-sub-link:last-child {
    border-bottom: none;
}

.mobile-nav-sub-link:hover,
.mobile-nav-sub-link.active {
    color: var(--color-primary);
}

@media (max-width: 992px) {
    .mobile-dropdown-nav {
        display: block;
    }
}
