/* Global Styles */
:root {
    --primary-color: #4472C4;
    --secondary-color: #2E4172;
    --accent-color: #D97D0D;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #222;
    --light-bg: #f8f8f8;
    --border-color: #eaeaea;
    --header-height: 100px;
    --transition: all 0.3s ease;
}

/* Animations */
@keyframes slideContentIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 4px;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: var(--primary-color);
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: var(--accent-color);
}

.more-link {
    color: var(--accent-color);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.more-link::after {
    content: '>';
    margin-left: 5px;
}

/* Top Navigation */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: var(--header-height);
    padding: 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0;
    max-width: 100%;
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
    height: 80px;
    margin-right: 0;
    position: relative;
    margin-left: 0;
    padding-left: 0;
    width: 250px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.logo-image {
    height: 80px;
    width: auto;
    transition: var(--transition);
    display: block;
}

.company-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
    white-space: nowrap;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Only applies to top-level navigation list, avoiding affecting ul in dropdown menus */
.main-nav > ul {
    display: flex;
    justify-content: center;
}

.right-nav {
    display: flex;
    align-items: center;
    width: 250px;
    justify-content: flex-end;
}

/* Only restrict to top-level li */
.main-nav > ul > li {
    position: relative;
    margin: 0 10px;
}

/* Only restrict to top-level links */
.main-nav > ul > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 500;
}

.main-nav > ul > li > a:hover {
    color: var(--accent-color);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    min-width: 300px;
    max-width: 600px;
    border-top: 3px solid var(--accent-color);
    padding: 20px;
    z-index: 1001;
}

.dropdown-column {
    flex: 1;
    padding: 0 15px;
}

.dropdown-column h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-column ul li {
    margin: 10px 0;
}

.dropdown-column ul li a {
    font-weight: normal;
    font-size: 14px;
    padding: 5px 0;
}

.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.language-switcher a {
    margin: 0 5px;
    padding: 5px 8px;
    font-size: 14px;
    color: var(--text-color);
    border-radius: 3px;
}

.language-switcher a.active {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.search-box {
    position: relative;
    margin-left: 15px;
}

.search-input {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    width: 150px;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.search-icon {
    display: block;
    width: 16px;
    height: 16px;
    background: url('../images/search.svg') no-repeat center;
    background-size: contain;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

/* Main Banner */
.hero-banner {
    margin-top: var(--header-height);
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 80px;
    left: 50px;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    color: var(--light-text);
    z-index: 20;
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.slide-content p {
    margin-bottom: 20px;
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
}

.prev,
.next {
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    transition: var(--transition);
}

.prev:hover,
.next:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.prev span,
.next span {
    font-size: 18px;
    color: var(--text-color);
}

.dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: rgba(255, 255, 255, 0.8);
}

/* News Center */
.news-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 30px;
}

.news-item {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.research-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    transition: all 0.3s;
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    max-width: 400px;
    max-height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    font-size: 14px;
    color: var(--accent-color);
}

.news-item.featured {
    grid-column: span 3;
    display: flex;
}

.news-item.featured .news-image {
    flex: 0 0 40%;
    height: auto;
}

.news-item.featured .news-content {
    flex: 1;
}

.news-item.featured .news-content h3 {
    font-size: 24px;
}

/* Key Projects */
.projects-section {
    padding: 60px 0;
}

.project-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.project-card {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.project-card ul li {
    margin: 10px 0;
    font-size: 14px;
}

.project-card ul li a:hover {
    color: var(--accent-color);
}

/* Publications */
.publications-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.publication-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.publication-cover {
    height: 260px;
    overflow: hidden;
}

.publication-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.publication-item:hover .publication-cover img {
    transform: scale(1.05);
}

.publication-item h3 {
    padding: 20px;
    font-size: 16px;
    line-height: 1.4;
}

/* Initiatives */
.initiatives-section {
    padding: 60px 0;
}

.initiatives-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.initiative-item {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.initiative-item:hover {
    background-color: var(--primary-color);
}

.initiative-item:hover h3 a {
    color: var(--light-text);
}

.initiative-item h3 {
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
}

/* Footer */
.footer {
    width: 100%;
    background-color: var(--secondary-color);
    padding: 60px 0 30px;
    color: var(--light-text);
    width: 100%;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul li {
    margin: 10px 0;
    font-size: 14px;
}

.footer-column a {
    opacity: 0.8;
}

.footer-column a:hover {
    opacity: 1;
}

.qr-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    background-color: #fff;
    padding: 5px;
}

.qr-code p {
    font-size: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 14px;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.cookie-notice {
    background-color: var(--primary-color);
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-notice p {
    flex: 1;
    margin-right: 20px;
    line-height: 1.4;
}

.cookie-accept {
    background-color: var(--light-text);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

.news-detail {
    margin-top: var(--header-height);
}

.article-meta p {
    font-weight: bold;
}

.center-img {
    display: block;
    margin: 0 auto;
    margin-bottom: 50px;
}

.image-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.image-wrapper img {
    display: block;
    margin: 0 auto;
}

.image-caption {
    font-size: 10pt;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.image-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.image-row img {
    height: 300px;
    width: auto;
    object-fit: cover;
}

.article-content b,
.article-content strong {
    text-align: center;
    display: block;
}