/*!
Theme Name: InstituteTheme
Theme URI: https://github.com/yourusername/institutetheme
Author: Your Name
Author URI: https://yourwebsite.com
Description: A custom WordPress theme for research laboratories and academic institutions with professional blue aesthetic.
Version: 2.1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: institutetheme
Tags: academic, research, laboratory, anthropology, blue, custom-menu, featured-images, responsive

This theme is designed for research laboratories, academic institutions, and scientific organizations. Featuring a clean, modern design with professional blue color scheme.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# CSS Variables
# Normalize & Reset
# Typography
# Layout - Container & Grid
# Header - Banner & Navigation
# Homepage Sections
# Sidebar
# Content Pages
# Footer
# Components
# Utilities
# Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    /* Primary Colors - Professional Blue Theme */
    --primary-blue: #0052A4;
    --primary-dark: #003875;
    --primary-light: #5B8FCC;
    --banner-bg: #F5F7FA;
    --section-light-blue: #EEF5FC;

    /* Accent Colors */
    --accent-orange: #E85D0F;
    --accent-green: #52C41A;
    --accent-red: #D32F2F;

    /* Text Colors */
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --text-date: #BBBBBB;
    --text-white: #FFFFFF;

    /* Border Colors */
    --border-light: #E5E5E5;
    --border-primary: #0052A4;
    --border-section: #D9E9F7;

    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --bg-footer: #F8F9FA;
    --bg-gray: #F5F5F5;

    /* Sizes */
    --banner-height: 200px;
    --container-width: 1600px;
    --nav-height: 60px;

    /* Fonts */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;

    /* Shadows */
    --shadow-light: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-hover: 0 6px 16px rgba(0,0,0,0.12);
}

/*--------------------------------------------------------------
# Normalize & Reset
--------------------------------------------------------------*/
html {
    font-family: var(--font-primary);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    line-height: 1.15;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

*, *:before, *:after {
    box-sizing: border-box;
}

/* 移除焦点时的轮廓 */
a:focus, a:active,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
}

/* 修复 WordPress 管理栏样式冲突 */
.logged-in.admin-bar #page {
    margin-top: 0;
}

/* 移除页面顶部留白 */
#page,
.site,
#content,
.site-content {
    margin: 0;
    padding: 0;
}

.site-header {
    margin: 0;
    padding: 0;
}

/* 覆盖 WordPress 默认的 block editor 样式 */
.wp-block-navigation__container,
.wp-block-navigation-item,
.wp-block-navigation-link,
.wp-site-blocks,
.wp-block-group {
    border: none !important;
    outline: none !important;
}

/* 修复菜单和导航的白色边框问题 */
.nav-menu,
.nav-menu li,
.nav-menu li a,
.main-nav,
.main-nav *,
#site-navigation,
#site-navigation * {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 侧边栏菜单修复 */
.sidebar-wrapper,
.sidebar-wrapper *,
.left_title,
.left_menu,
.left_menu ul,
.left_menu li,
.left_menu li a {
    outline: none !important;
}

.left_menu,
.left_menu ul,
.left_menu li,
.left_menu li a {
    border: none !important;
}

article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {
    display: block;
}

a {
    background-color: transparent;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    border: none !important;
    outline: none !important;
    vertical-align: middle;
}

figure {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    clear: both;
    font-family: var(--font-primary);
    color: #222;
    margin: 0 0 15px 0;
    padding: 0;
    font-weight: 500;
    line-height: 1.3;
}

h1 { font-size: 36px; }
h2 { font-size: 1.5em; }
h3 { font-size: 42px; }
h4 { font-size: 18px; }
h5 { font-size: 26px; }
h6 { font-size: 14px; }

p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 24px;
    margin: 0 0 1.75em;
}

/*--------------------------------------------------------------
# Layout - Container & Grid
--------------------------------------------------------------*/
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

/* 首页新闻区域两列等高对齐 */
.home-section .row {
    align-items: stretch;
}

.home-section .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.home-section .col-md-5 {
    justify-content: space-between;
}

.row::after {
    content: "";
    clear: both;
    display: table;
}

/* Column System */
[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
    min-height: 1px;
}

.col-xs-12 { width: 100%; }
.col-xs-9 { width: 75%; }
.col-xs-7 { width: 58.33333%; }
.col-xs-6 { width: 50%; }
.col-xs-5 { width: 41.66667%; }
.col-xs-4 { width: 33.33333%; }
.col-xs-3 { width: 25%; }

@media (min-width: 768px) {
    .col-sm-12 { width: 100%; }
    .col-sm-9 { width: 75%; }
    .col-sm-7 { width: 58.33333%; }
    .col-sm-6 { width: 50%; }
    .col-sm-5 { width: 41.66667%; }
    .col-sm-4 { width: 33.33333%; }
    .col-sm-3 { width: 25%; }
}

@media (min-width: 992px) {
    .col-md-12 { width: 100%; }
    .col-md-9 { width: 75%; }
    .col-md-7 { width: 58.33333%; }
    .col-md-6 { width: 50%; }
    .col-md-5 { width: 41.66667%; }
    .col-md-4 { width: 33.33333%; }
    .col-md-3 { width: 25%; }
    .col-md-2 { width: 16.66667%; }
}

.pull-right {
    order: 2;
}

.pull-left {
    order: 0;
}

/* 确保主内容区默认在左侧 */
.row > .col-md-9 {
    order: 1;
}

/*--------------------------------------------------------------
# Header - Banner & Navigation
--------------------------------------------------------------*/
.site-header {
    background-color: var(--bg-white);
}

/* Banner Section */
.bg_about {
    display: block;
    position: relative;
    background-color: var(--banner-bg);
}

.bg_about::after {
    content: "";
    background: url('images/nrfp_banner.jpg');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.9;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: 0;
}

.banner-section {
    display: block;
    position: relative;
    background-color: var(--banner-bg);
    min-height: var(--banner-height);
}

.banner-section .container {
    position: relative;
    z-index: 1;
}

.banner-section .row {
    display: flex;
    height: var(--banner-height);
    padding-left: 1em;
    align-items: center;
}

.banner-section .site-logo {
    display: flex;
    align-self: center;
    z-index: 999;
    width: 100%;
    justify-content: center;
}

.banner-section .site-logo img {
    max-width: 60%;
    width: 60%;
    height: auto;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.banner-section .site-logo a:hover img,
.banner-section .site-logo img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Navigation Search */
.nav-search {
    display: flex;
    align-items: center;
}

.nav-search .search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 4px 8px 4px 15px;
    transition: all 0.3s ease;
}

.nav-search .search-form:hover,
.nav-search .search-form:focus-within {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-search .search-field {
    border: none;
    outline: none;
    padding: 6px 10px;
    font-size: 14px;
    width: 120px;
    background: transparent;
    color: var(--text-dark);
    transition: width 0.3s ease;
}

.nav-search .search-field:focus {
    width: 180px;
}

.nav-search .search-field::placeholder {
    color: #999;
}

.nav-search .search-submit {
    background: transparent;
    border: none;
    color: var(--primary-dark);
    padding: 6px 10px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search .search-submit:hover {
    color: var(--text-white);
}

.nav-search .search-submit i {
    font-size: 14px;
}

.site-title {
    color: var(--text-white);
    font-size: 32px;
    margin: 0;
    padding: 20px 0;
}

.site-title a {
    color: var(--text-white);
}

.site-description {
    color: var(--text-white);
    opacity: 0.9;
    margin: 0;
}

/* Navigation */
.main-nav {
    background: var(--primary-blue);
    z-index: 999;
    height: var(--nav-height);
    overflow: visible;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* 隐藏WordPress自动生成的导航中的搜索表单等非菜单元素（但保留我们手动添加的nav-search） */
.nav-menu form,
.nav-menu input,
.nav-menu .searchform {
    display: none !important;
}

.nav-menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu > li:first-child {
    margin-left: 0;
    padding-left: 0;
}

.nav-menu > li > a {
    display: block;
    padding: 0 95px 0 0;
    color: var(--text-white);
    font-size: 22px;
    line-height: var(--nav-height);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 400;
}

.nav-menu > li:first-child > a {
    padding-left: 0 !important;
    margin-left: 0;
}

.nav-menu > li:not(:last-child) > a {
    padding-right: 95px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
    color: var(--text-white);
}

/* 隐藏WordPress自动生成的下拉按钮和箭头图标（仅桌面端） */
@media (min-width: 768px) {
    .nav-menu .dropdown-toggle {
        display: none !important;
    }
}

/* 有子菜单的项目用CSS箭头 */
.nav-menu > li.menu-item-has-children > a::after,
.nav-menu > li.dropdown > a::after {
    content: " \f107";
    font-family: FontAwesome;
    font-size: 12px;
    margin-left: 5px;
}

/* Dropdown Menu */
.dropdown-menu,
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 180px;
    padding: 0;
    margin: 0;
    background-color: var(--primary-blue);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: none;
    z-index: 1000;
    list-style: none;
}

.nav-menu > li:hover > .dropdown-menu,
.nav-menu > li:hover > .sub-menu,
.nav-menu > li.open > .dropdown-menu,
.nav-menu > li.open > .sub-menu,
.nav-menu > li.menu-item-has-children:hover > .dropdown-menu,
.nav-menu > li.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.dropdown-menu > li > a,
.nav-menu .sub-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-white);
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.dropdown-menu > li > a:hover,
.nav-menu .sub-menu > li > a:hover {
    color: var(--primary-blue);
    background-color: var(--text-white);
}

/* Third level submenu (子子菜单) */
.nav-menu .sub-menu .sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
}

.nav-menu .sub-menu > li {
    position: relative;
}

.nav-menu .sub-menu > li:hover > .sub-menu {
    display: block;
}

/* Arrow indicator for submenu items that have children */
.nav-menu .sub-menu > li.menu-item-has-children > a::after {
    content: " \f105";
    font-family: FontAwesome;
    font-size: 12px;
    float: right;
    margin-left: 10px;
}

/* Mobile Navigation Toggle */
/*--------------------------------------------------------------
# Homepage Sections
--------------------------------------------------------------*/
/* Hero Slider */
.hero-slider {
    width: 100%;
    margin: 0;
    padding: 0 15px;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.hero-swiper {
    width: 100%;
    max-width: calc(var(--container-width) - 30px);
    height: 390px;
    overflow: hidden;
    margin: 0 auto;
}

.hero-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 390px;
}

.hero-swiper .slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-swiper .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: center;
}

.hero-swiper .slide-content {
    max-width: 600px;
    color: var(--text-white);
    padding: 20px;
}

.hero-swiper .slide-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.hero-swiper .slide-content h2 a {
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-swiper .slide-content h2 a:hover {
    color: var(--primary-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-swiper .slide-content p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--text-white);
    background: rgba(0, 82, 164, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: var(--primary-blue);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--text-white);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-blue);
    transform: scale(1.2);
}

/* Section Common */
.home-section {
    padding: 50px 0;
}

.section-light-blue {
    background-color: var(--section-light-blue);
}

/* Section Title */
.section-title,
.newstitle_left {
    float: left;
}

.section-title h4,
.newstitle_left h4 {
    font-size: 22px;
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.section-title h4::before,
.newstitle_left h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--primary-blue);
}

.section-title h4 i,
.newstitle_left h4 i {
    color: var(--primary-blue);
    margin-right: 8px;
}

.newstitle_right,
.section-more {
    float: right;
    padding-right: 10px;
}

.newstitle_right a,
.section-more a {
    color: #aaa;
    font-size: 14px;
}

.newstitle_right a:hover,
.section-more a:hover {
    color: var(--primary-blue);
}

.newstitle_right2 {
    float: right;
    padding: 0.1em 0;
}

.newstitle_right2 a {
    color: #aaa;
}

/* Section Header with Border */
.section-header-bordered {
    height: 40px;
    border-bottom: 2px solid var(--border-light);
    margin: 15px 0 15px 0;
    overflow: hidden;
}

.section-header-bordered::after {
    content: "";
    clear: both;
    display: table;
}

/* 改进的section header样式 */
.section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

/* News Section */
.news-section {
    padding: 40px 0;
    background-color: var(--bg-white);
}

/* News Item Home Style (matching reference site) */
.news-item-home {
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-light);
}

.news-item-home:last-child {
    border-bottom: none;
}

.news-item-home .news-date {
    float: left;
    width: 80px;
    font-size: 14px;
    color: var(--text-gray);
    margin-right: 15px;
}

.news-item-home .news-title {
    margin-left: 95px;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.news-item-home .news-title a {
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.news-item-home .news-title a:hover {
    color: var(--primary-blue);
}

.news-item-home .news-excerpt {
    margin-left: 95px;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-top: 5px;
}

/* Notice List Style (for announcements and seminars) */
.notice-list {
    padding: 5px 0;
}

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

.notice-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
    position: relative;
    display: flex;
    align-items: flex-start;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list li::before {
    content: "•";
    color: var(--primary-blue);
    font-weight: bold;
    flex-shrink: 0;
    width: 1em;
    margin-right: 5px;
    line-height: 1.6;
}

.notice-list li a {
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
    flex: 1;
}

.notice-list li a:hover {
    color: var(--primary-blue);
}

.notice-list .notice-title {
    flex: 1;
    padding-right: 10px;
    line-height: 1.6;
    font-size: 16px;
}

.notice-list .notice-date {
    color: var(--text-light);
    font-size: 12px;
    white-space: nowrap;
}

/* Research Highlight (with image) */
.research-highlight {
    margin-top: 15px;
}

.research-highlight .research-item {
    border: 1px solid var(--border-light);
    overflow: hidden;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.research-highlight .research-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.research-highlight img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.research-highlight a:hover img {
    opacity: 0.9;
}

/* Research Swiper */
.research-swiper-wrapper {
    margin-top: 20px;
}

.research-swiper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.research-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    height: 200px !important;
}

.research-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 200px;
}

.research-swiper .swiper-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.research-swiper .swiper-slide a:hover img {
    opacity: 0.9;
}

.research-swiper .swiper-pagination {
    position: relative;
    margin-top: 10px;
    bottom: auto;
}

.research-swiper .swiper-button-next,
.research-swiper .swiper-button-prev {
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.research-swiper .swiper-button-next:hover,
.research-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-hover);
}

.research-swiper .swiper-button-next::after,
.research-swiper .swiper-button-prev::after {
    font-size: 20px;
}

/* News Item with Image */
.news-item-row {
    padding: 20px 0;
    line-height: 1.8;
    border-bottom: 1px solid var(--border-light);
}

.divnewsimg {
    height: 90px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 10px -5px rgba(0,0,0,0.5);
}

.divnewsimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.6s;
}

.divnewsimg img:hover {
    transform: scale(1.12);
}

.newslist a {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.newslist a:hover {
    color: var(--primary-blue);
}

.newslist .news-date {
    color: var(--text-gray);
    font-size: 14px;
    margin-right: 12px;
}

.newslist .news-title {
    color: var(--text-dark);
    font-size: 16px;
}

/* Simple List (Notice/Research) */
.xbtg_data {
    padding: 10px 0;
}

.xbtg_data a {
    font-size: 0.96em;
    line-height: 150%;
}

.notice ul li a,
.notice a {
    font-weight: 350;
    font-size: 0.96em;
    line-height: 150%;
    color: var(--text-dark);
}

.notice ul li a:hover,
.notice a:hover {
    color: var(--primary-blue);
}

/* Quick Service Buttons */
.services2 {
    margin-top: 2em;
    text-align: center;
}

.services2 .service-item2 {
    text-align: center;
    padding: 1em 0;
    background-color: var(--bg-white);
    transition: all 0.25s ease;
    border-radius: 10px;
}

.services2 .service-item2 img {
    width: 50%;
}

.services2 .service-item2 p {
    margin: 0;
    font-size: 14px;
    color: var(--text-dark);
}

.services2 .service-item2:hover {
    box-shadow: var(--shadow-medium);
    background-color: #EAFCD6;
    transform: translateY(-2%);
}

/* Research Facilities Section */
.services {
    padding: 10px 0 50px 0;
}

.services .section-header {
    padding: 1em 0.5em;
    border-top: 2px solid var(--border-section);
}

.service-item {
    padding: 30px 15px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 150%;
}

.service-item img {
    width: 65%;
    transition: 0.4s;
    border: 0 solid #FFF;
    border-radius: 50%;
}

.service-item img:hover {
    width: 75%;
    border-radius: 50%;
    border: 3px solid #FFF;
}

.service-item h5 {
    padding-top: 15px;
    font-size: 16px;
}

.service-item h5 a {
    font-size: 0.9em;
    color: var(--text-dark);
}

.service-item h5 a:hover {
    color: var(--accent-green);
}

/* Media/Publicity Section with Overlay */
.content-two {
    width: 100%;
}

.con-two {
    width: 100%;
    height: 160px;
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
}

.con-two img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.6s;
}

.con-two img:hover {
    transform: scale(1.12);
}

.txt-two {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: var(--text-white);
    background-image: linear-gradient(to bottom, rgba(23,74,121,0), rgba(23,74,121,0.8));
}

.txt-two a {
    color: var(--text-white);
    font-size: 14px;
}

/* Gallery/Album Section with Swiper */
.gallery-section {
    padding-bottom: 4em;
}

.gallery-section .section-header {
    padding: 2em 1em;
    border-top: 2px solid #EEE;
}

.swiper {
    width: 98%;
    height: 98%;
    padding-left: 0.3em;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#divkpimg {
    width: 100%;
    overflow: hidden;
}

#divkpimg img {
    cursor: pointer;
    transition: all 0.6s;
    object-fit: cover;
}

#divkpimg img:hover {
    transform: scale(1.12);
}

/* List Item with Image */
.divlistimg {
    margin: 10px 0 5px 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px -3px rgba(0,0,0,0.44);
    border-radius: 5px;
}

.divlistimg img {
    cursor: pointer;
    transition: all 0.6s;
    border-radius: 5px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.divlistimg img:hover {
    transform: scale(1.1);
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.left_title {
    font-size: 22px;
    padding: 16px 0 15px 13px;
    color: var(--primary-blue);
    font-weight: bold;
    background-color: transparent;
    top: 0;
    line-height: 20px;
}

.left_title > div {
    border-left: 7px solid var(--accent-orange);
    padding-left: 10px;
}

.left_menu {
    margin-top: 20px;
    word-wrap: break-word;
    background-color: var(--primary-blue);
}

.left_menu ul {
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.left_menu li {
    padding: 5px 20px 5px 30px;
    list-style: none;
    word-wrap: break-word;
}

.left_menu li a {
    color: var(--text-white);
    font-size: 16px;
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: inline-block;
}

.left_menu li a:hover {
    color: var(--text-white);
}

.left_menu li:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 767px) {
    .sidebar-wrapper .left_menu {
        display: none;
    }
}

/*--------------------------------------------------------------
# Content Pages
--------------------------------------------------------------*/
/* Page Header */
.page-header {
    background-color: var(--banner-bg);
    padding: 30px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    color: var(--primary-blue);
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    padding-left: 15px;
    border-left: 5px solid var(--accent-orange);
}

/* Page Section */
.page-section {
    padding: 60px 0;
}

/* Content Title */
.contenttitle {
    padding: 80px 50px 50px 50px;
}

.contenttitle h2 {
    color: #000;
    font-size: 38px;
    font-weight: 600;
    line-height: 140%;
}

/* Content Body */
.contentbody {
    font-size: 18px;
    line-height: 200%;
    padding: 50px 50px;
    margin-bottom: 5em;
}

.contentbody p {
    font-size: 18px;
    line-height: 200%;
    color: #222;
}

/* Content Author */
.contentauthor {
    padding: 0 80px;
    border-bottom: 3px solid var(--accent-green);
}

.contentauthor p {
    color: #aaa;
    font-size: 1em;
    line-height: 100%;
}

/* List Page Styles */
.list-link {
    font-size: 1.1em;
    line-height: 200%;
    padding: 25px 0;
    border-bottom: 1px dashed #DDD;
    list-style: none;
}

/* Content List Item */
.content-list-item {
    border-bottom: 1px solid #DDD;
    padding: 20px 0;
}

.content-list-item .item-image {
    overflow: hidden;
    border-radius: 5px;
}

.content-list-item .item-image img {
    width: 100%;
    border-radius: 5px;
    transition: all 0.6s;
}

.content-list-item .item-image img:hover {
    transform: scale(1.1);
}

.content-list-item .item-content {
    font-size: 22px;
    line-height: 150%;
    font-weight: 600;
    padding: 10px 20px;
}

.content-list-item .item-content a {
    color: var(--text-dark);
}

.content-list-item .item-content a:hover {
    color: var(--primary-blue);
}

.content-list-item .item-meta {
    font-size: 16px;
    margin-top: 20px;
    color: #aaa;
    font-weight: 200;
}

/* Team Section */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.team-member-card {
    padding: 15px;
    width: 25%;
}

.item_stu {
    width: 100%;
    padding-top: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px -5px rgba(0,0,0,0.9);
}

.item_stu img {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
    transition: all 0.6s;
}

.item_stu img:hover {
    transform: scale(1.2);
}

.item_text {
    text-align: center;
    padding: 15px 0;
}

.item_text a {
    font-size: 1.2em;
    font-weight: 400;
    color: var(--primary-blue);
}

.item_text p {
    font-size: 14px;
    color: #aaa;
    text-align: center;
    margin: 0;
}

/* Team Member Detail */
.team-member-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.team-member-photo {
    width: 200px;
    height: 200px;
    min-width: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 10px -5px rgba(0,0,0,0.9);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-info h1 {
    font-size: 24px;
    color: var(--primary-blue);
    margin: 10px 0 12px;
    font-weight: 600;
}

.team-member-position {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.team-member-contact {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.team-member-contact i {
    width: 20px;
    color: var(--primary-blue);
    margin-right: 8px;
}

.team-member-contact a {
    color: var(--primary-blue);
    text-decoration: none;
}

.team-member-contact a:hover {
    text-decoration: underline;
}

.team-member-content {
    padding-top: 25px;
    border-top: 1px solid #e9e9e9;
    line-height: 1.8;
    color: var(--text-dark);
}

.team-member-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9e9e9;
}

.team-member-nav a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
}

.team-member-nav a:hover {
    text-decoration: underline;
}

.team-member-nav .nav-next {
    margin-left: auto;
}

@media (max-width: 767px) {
    .team-member-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-member-photo {
        width: 150px;
        height: 150px;
        min-width: 150px;
    }

    .team-member-nav {
        flex-direction: column;
        gap: 10px;
    }
}

/* Pagination */
div.page,
.pagination {
    font-size: 14px;
    color: #c1c1c1;
    margin-top: 30px;
    text-align: center;
}

div.page a,
div.page span,
.pagination a,
.pagination span {
    display: inline-block;
    margin: 0 8px;
    padding: 5px 12px;
    border: 1px solid #ddd;
    color: #666;
}

div.page a:hover,
div.page a.now,
.pagination a:hover,
.pagination .current {
    background-color: var(--primary-blue);
    color: var(--text-white);
    border-color: var(--primary-blue);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: var(--bg-footer);
    color: var(--text-gray);
    padding: 25px 0 20px;
    position: relative;
    border-top: 1px solid var(--border-light);
}

.site-footer .row {
    align-items: center;
}

/* Footer Main: logo + divider + info as one unit */
.site-footer .footer-main-inner {
    display: flex;
    align-items: center;
}

.site-footer .footer-logo {
    flex-shrink: 0;
}

.site-footer .footer-logo a,
.site-footer .footer-logo .custom-logo-link {
    display: block;
    line-height: 0;
    border: none !important;
    outline: none !important;
}

.site-footer .footer-logo img {
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    display: block;
    object-fit: contain;
    border: none !important;
    outline: none !important;
}

.site-footer .footer-divider {
    width: 1px;
    align-self: stretch;
    background-color: var(--border-light);
    margin: 0 15px;
}

.site-footer .footer-info {
    flex: 1;
    padding: 0;
}

.site-footer p {
    color: var(--text-gray);
    margin: 0;
    padding: 3px 0;
    font-size: 13px;
    line-height: 1.6;
}

.site-footer a {
    color: var(--primary-blue);
    font-weight: 400;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-beian a,
.footer-beian a:hover {
    color: inherit;
    text-decoration: none;
}

/* Footer Friendly Links */
.site-footer .footer-links {
    padding: 0 10px 0 30px;
    overflow: hidden;
}

.site-footer .friendly-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 35px;
    align-items: center;
}

.site-footer .friendly-link-item {
    flex: 0 1 auto;
}

.site-footer .friendly-link-item a {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-footer .friendly-link-item a:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.site-footer .friendly-link-item img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
    background: transparent;
    padding: 0;
    border: none;
    transition: opacity 0.3s ease;
}

.site-footer .friendly-link-item a:hover img {
    box-shadow: var(--shadow-medium);
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
/* Buttons */
.default-button {
    display: inline-block;
    text-transform: uppercase;
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

.default-button:hover {
    background-color: var(--primary-dark);
    color: var(--text-white);
}

/* Cards */
.card {
    background-color: var(--bg-white);
    border-radius: 5px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* Alert/Notice Box */
.notice-box {
    padding: 15px 20px;
    border-left: 4px solid var(--primary-blue);
    background-color: var(--section-light-blue);
    margin-bottom: 20px;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.padding-50 { padding: 50px 0; }
.padding-60 { padding: 60px 0; }
.padding-100 { padding: 100px 0; }

.margin-top-20 { margin-top: 20px; }
.margin-bottom-20 { margin-bottom: 20px; }

/* 页面内容区统一样式 */
.page-main-content {
    text-align: left;
    padding: 0 30px;
}

.page-main-content .entry-content {
    margin-bottom: 30px;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Screen Reader */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* Captions */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
    font-size: 14px;
    color: var(--text-gray);
}

/* Gallery */
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

/* Custom Logo */
.custom-logo-link {
    display: inline-block;
    border: none !important;
    outline: none !important;
}

.custom-logo-link img,
.custom-logo {
    max-height: 180px;
    width: auto;
    border: none !important;
    outline: none !important;
}
