/*
Theme Name: SUNYA Corporate Theme
Theme URI: https://example.com/
Author: SUNYA
Author URI: https://example.com/
Description: 新月尚雅企业官网 WordPress 主题，包含新闻/招聘/重要通告与事业部页面展示。
Version: 1.0.0
Text Domain: sunya-theme
*/

/* 全局重置与变量 */
:root {
    --primary-color: #bfa374;
    /* 香槟金/流金 */
    --hover-color: #d4b886;
    --text-light: #ffffff;
    --text-dark: #333333;
    --nav-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.modal-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- 全局容器调整 --- */
.container {
    width: 100%;
    max-width: 2000px;
    /* 加宽容器 */
    margin: 0 auto;
    padding: 0 40px;
}


/* --- 移动端菜单按钮 (默认隐藏) --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* 移动端导航层 (默认隐藏) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    padding-top: 100px;
    transition: right 0.4s ease;
    display: flex;
    justify-content: center;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-content {
    width: 100%;
    padding: 0 18px 20px;
    overflow-y: auto;
}

.mobile-menu,
.mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu>li>a {
    display: block;
    color: #fff;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 14px 40px 14px 8px;
    position: relative;
    text-align: left;
}

.mobile-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu .sub-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    padding: 10px 8px 10px 20px;
    text-align: left;
}

.mobile-menu .menu-item-has-children {
    position: relative;
}

.mobile-menu .submenu-toggle {
    position: absolute;
    right: 2px;
    top: 8px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu .submenu-toggle::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.mobile-menu .menu-item-has-children.is-open>.sub-menu {
    max-height: 460px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu .menu-item-has-children.is-open>.submenu-toggle::before {
    transform: rotate(-135deg) translateY(-1px);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* --- 响应式适配 --- */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
        /* 平板及以下隐藏传统导航 */
    }

    .mobile-menu-btn {
        display: flex;
        /* 显示汉堡菜单 */
    }

    .header-search-form {
        display: none;
    }

    .hero-content h2 {
        font-size: 48px;
    }

    .hero-content p {
        padding: 0 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        /* 可以在Pad上就变单列，或者保持双列看情况。这里先变单列以防拥挤 */
    }

    .news-img {
        height: 300px;
    }
}

@media (max-width: 1200px) {
    .header-search-form {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }

    .hero-btn-group {
        justify-content: center;
    }

    .hero-btn-group .btn-outline {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .hero-content h2 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .hero-content h3 {
        font-size: 20px;
    }

    .notice-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        align-items: flex-start;
    }

    .notice-title {
        border-right: none;
        padding-right: 0;
        padding-bottom: 10px;
        margin-bottom: 15px;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .notice-title .en {
        margin-top: 3px;
    }

    .notice-content {
        margin: 0 0 15px 0;
        width: 100%;
    }

    .notice-more {
        align-self: flex-end;
    }

    /* 集团动态移动端 */
    .section-header h2 {
        font-size: 28px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-meta {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 10px;
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .news-meta .day {
        font-size: 20px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    background: transparent;
    /* 初始透明 */
    transition: background 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 滚动后的导航栏样式 (JS控制 class) */
.fixed-header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    /* 深色背景，更显高端 */
    height: 70px;
    /* 稍微缩小高度 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

/* 内页默认使用深色半透明导航，避免白底页面看不清 */
body:not(.home):not(.front-page) .fixed-header {
    background: rgba(26, 26, 26, 0.88);
    border-bottom: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 电脑端：导航靠右并贴近搜索栏 */
@media (min-width: 1025px) {
    .main-nav {
        margin-left: auto;
        margin-right: 24px;
    }

    .header-tools {
        gap: 12px;
    }

    .main-nav ul {
        gap: 26px;
    }
}

/* Logo */
.logo {
    color: var(--text-light);
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    letter-spacing: 1px;
    font-weight: 700;
}

.logo .logo-sub {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    opacity: 0.8;
}

.logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 220px;
}

.logo .custom-logo {
    width: 100%;
    max-height: 54px;
    object-fit: contain;
}

/* 导航链接 */
.main-nav > ul {
    display: flex;
    gap: 40px;
}

.main-nav .menu-item {
    position: relative;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-light);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav .current-menu-item>a,
.main-nav .current-menu-ancestor>a,
.main-nav .current_page_item>a,
.main-nav .current_page_ancestor>a {
    color: var(--text-light);
}

.main-nav .current-menu-item>a::after,
.main-nav .current-menu-ancestor>a::after,
.main-nav .current_page_item>a::after,
.main-nav .current_page_ancestor>a::after {
    width: 100%;
}

/* 桌面端二级导航 */
@media (min-width: 1025px) {
    .main-nav .sub-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        transform: translateY(0);
        min-width: 180px;
        padding: 8px;
        background: #111111;
        border: 1px solid #2a2a2a;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        z-index: 1200;
    }

    .main-nav .sub-menu li {
        display: block;
        width: 100%;
    }

    .main-nav .sub-menu li+li {
        margin-top: 4px;
    }

    .main-nav .sub-menu a {
        width: 100%;
        padding: 10px 12px;
        color: #e9e9e9;
        font-size: 14px;
        justify-content: flex-start;
        transition: background-color 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
    }

    .main-nav .sub-menu a::after {
        display: none;
    }

    .main-nav .sub-menu a:hover,
    .main-nav .sub-menu a:focus-visible,
    .main-nav .sub-menu .current-menu-item>a,
    .main-nav .sub-menu .current_page_item>a {
        background: #bfa374;
        color: #fff;
        padding-left: 16px;
    }

    .main-nav .menu-item-has-children:hover>.sub-menu,
    .main-nav .menu-item-has-children:focus-within>.sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* 悬停桥接区：避免鼠标从一级移动到二级时触发消失 */
    .main-nav .menu-item-has-children>.sub-menu::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: -10px;
        height: 10px;
    }
}

/* 顶部工具栏 */
.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search-form {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.header-search-input {
    width: 150px;
    height: 34px;
    border: none;
    outline: none;
    padding: 0 10px;
    color: #fff;
    background: transparent;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.header-search-btn {
    height: 34px;
    border: none;
    padding: 0 12px;
    color: #fff;
    background: var(--primary-color);
    cursor: pointer;
}

/* --- 第一屏 Banner (Hero Section) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* 占满一整屏 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* --- 首页首屏滚动 Banner --- */
.hero-banner {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.9s ease, transform 5s ease;
    will-change: opacity, transform;
}

.hero-banner-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .hero-banner-slide {
        transition: opacity 0.2s ease;
        transform: none;
    }

    .hero-banner-slide.is-active {
        transform: none;
    }
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    /* 渐变遮罩 */
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--text-light);
    max-width: 1000px;
}

.hero-content h2 {
    font-size: 64px;
    /* 超大标题，大气 */
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.hero-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* 按钮组 */
.hero-btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 15px 40px;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}

/* 动画类 */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动提示 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.5);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- 第二屏：重要通告 (Notice Section) --- */
.notice-section {
    position: relative;
    background-color: #fff;
    padding: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* 悬浮感 */
    z-index: 20;
    margin-top: -5px;
    /* 消除缝隙 */
}

.notice-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.notice-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 25px;
    min-width: 140px;
}

.notice-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.notice-title .en {
    font-size: 10px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.notice-content {
    flex: 1;
    overflow: hidden;
    height: 40px;
    /* 限制高度，用于滚动 */
    margin: 0 30px;
    position: relative;
}

.notice-list {
    position: relative;
    transition: transform 0.5s ease;
}

.notice-list li {
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-list li .date {
    color: var(--primary-color);
    margin-right: 15px;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
}

/* 通告时间后的分隔符（避免与时间贴一起） */
.notice-list li .date::after {
    content: " | ";
    color: #c9c0b1;
    margin-left: 10px;
}

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

.notice-more {
    font-size: 12px;
    color: #888;
    border: 1px solid #ddd;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.notice-more:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .notice-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        align-items: flex-start;
    }

    .notice-title {
        border-right: none;
        border-bottom: 2px solid var(--primary-color);
        padding-right: 0;
        padding-bottom: 10px;
        margin-bottom: 15px;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .notice-title .en {
        margin-top: 3px;
    }

    .notice-content {
        margin: 0 0 15px 0;
        width: 100%;
    }

    .notice-more {
        align-self: flex-end;
    }
}

/* --- 集团动态 (Group News) --- */
.group-news-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.section-header .sub-title {
    font-size: 14px;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

/* 左侧头条 */
.news-feature {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    /* 微圆角 */
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.news-img {
    width: 100%;
    height: 360px;
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-feature:hover .news-img img {
    transform: scale(1.05);
    /* 图片放大 */
}

.news-date {
    position: absolute;
    bottom: 0;
    left: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.news-date .day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
}

.news-info {
    padding: 35px;
}

.news-info h3 {
    margin-bottom: 15px;
    font-size: 22px;
    line-height: 1.4;
}

.news-info p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

/* 右侧列表 */
.news-plain-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.news-item {
    display: flex;
    padding: 25px;
    background: #fff;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item:hover {
    border-left-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.news-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    min-width: 60px;
    border-right: 1px solid #eee;
    padding-right: 25px;
    color: #999;
}

.news-meta .day {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-dark);
}

.news-meta .year {
    font-size: 12px;
}

.news-text h4 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
}

.news-text p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻列表里不再显示重复的内联日期（保留 DOM 但隐藏） */
.news-date-inline {
    display: none;
}

/* --- 事业部 (Specialty Department) --- */
.specialty-section {
    position: relative;
    padding: 100px 0 150px 0;
    /* 底部多留白给错位 */
    background-color: #fff;
    overflow: hidden;
}

/* 背景大水印 */
.bg-watermark {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    font-size: 180px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    text-align: center;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    font-family: 'Arial Black', sans-serif;
    z-index: 0;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    position: relative;
    z-index: 10;
}

.specialty-card {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    transition: all 0.4s ease;
}

/* 错位布局 - 偶数列下沉 */
.specialty-card:nth-child(even) {
    margin-top: 60px;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9);
}

.specialty-card:hover .card-bg img {
    transform: scale(1.1);
    filter: brightness(1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-text {
    margin-bottom: 20px;
}

.en-name {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.8;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.cn-name {
    font-size: 20px;
    font-weight: 500;
}

.card-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.btn-text {
    font-size: 13px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Effects */
.specialty-card:hover .card-content {
    bottom: 10px;
    /* 稍微上浮 */
}

.specialty-card:hover .card-btn {
    color: #fff;
}

.specialty-card:hover .btn-text {
    opacity: 1;
    transform: translateX(0);
}

.specialty-card:hover .btn-icon {
    background: #ff6600;
    /* 橙色高亮 */
    border-color: #ff6600;
}

/* 响应式 */
@media (max-width: 1024px) {
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specialty-card:nth-child(even) {
        margin-top: 60px;
        /* 双列时依然保持错位 */
    }

    .bg-watermark {
        font-size: 100px;
        top: 20px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* 事业部手机适配 */
    .specialty-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .specialty-card:nth-child(even) {
        margin-top: 0;
        /* 手机端单列取消错位 */
    }

    .specialty-card {
        height: 400px;
        /* 减小高度 */
    }

    .bg-watermark {
        font-size: 60px;
        top: 40px;
    }

    .btn-text {
        opacity: 1;
        /* 手机端直接显示文字 */
        transform: translateX(0);
    }
}

/* --- 品牌文化 (Brand Culture) --- */
.brand-culture-section {
    position: relative;
    height: 80vh;
    /* 占据大半屏 */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.culture-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.culture-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    /* 稍微放大以便做动效 */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* 将图片压暗 */
    z-index: 1;
}

.culture-container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.culture-content {
    max-width: 800px;
}

.culture-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.culture-content h2 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.culture-divider {
    width: 40px;
    height: 2px;
    background: #fff;
    margin: 0 auto 30px auto;
    opacity: 0.6;
}

.culture-content p {
    font-size: 16px;
    line-height: 2;
    opacity: 0.9;
    margin-bottom: 50px;
}

/* 统计数据 */
.culture-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item .label {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 播放按钮 */
.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 12px;
    letter-spacing: 2px;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    background: transparent;
    cursor: pointer;
}

.btn-play:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.play-icon {
    font-size: 10px;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal[hidden] {
    display: none !important;
}

.video-modal.is-open {
    display: flex;
}

.video-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.video-modal-dialog {
    position: relative;
    width: min(960px, 92vw);
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 1;
}

.video-modal-dialog video {
    width: 100%;
    display: block;
    max-height: 76vh;
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
}

/* 响应式 */
@media (max-width: 768px) {
    .culture-content h2 {
        font-size: 32px;
    }

    .culture-stats {
        gap: 30px;
    }

    .stat-item .number {
        font-size: 28px;
    }
}

/* --- 招生简章 (Recruitment Brochure) --- */
.recruitment-section {
    padding: 120px 0;
    background-color: #fff;
    background-image: linear-gradient(rgba(245, 245, 245, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 245, 245, 0.5) 1px, transparent 1px);
    background-size: 50px 50px;
    /* 淡网格背景 */
}

.recruit-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.recruit-info {
    flex: 1;
    max-width: 500px;
}

.recruit-header {
    margin-bottom: 40px;
}

.recruit-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #e67e22;
    /* 橙色强调 */
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.recruit-title {
    font-size: 42px;
    font-family: 'Playfair Display', serif;
    /* 衬线体 */
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.recruit-line {
    width: 60px;
    height: 4px;
    background: #e67e22;
}

.recruit-details {
    margin-bottom: 50px;
}

.detail-item {
    display: flex;
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.detail-item .label {
    font-weight: 600;
    color: #333;
    width: 100px;
    flex-shrink: 0;
}

.btn-outline-orange {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 35px;
    border: 2px solid #e67e22;
    color: #e67e22;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-orange:hover {
    background: #e67e22;
    color: #fff;
}

/* 右侧图片区域 */
.recruit-image {
    flex: 1;
    position: relative;
    padding: 20px;
    /* 给边框留位 */
}

.image-wrapper {
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

.image-border {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border-top: 4px solid #e67e22;
    border-right: 4px solid #e67e22;
    z-index: 0;
    pointer-events: none;
}

/* 底部左侧也加一个点缀 */
.recruit-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0px;
    width: 40%;
    height: 40%;
    border-bottom: 4px solid #e67e22;
    border-left: 4px solid #e67e22;
    z-index: 0;
    pointer-events: none;
}

.btn-overlay {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: #e67e22;
    color: #fff;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4);
    transition: all 0.3s ease;
    z-index: 20;
}

.btn-overlay:hover {
    background: #d35400;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.5);
}

/* 响应式 */
@media (max-width: 1024px) {
    .recruit-container {
        flex-direction: column;
        gap: 50px;
    }

    .recruit-info {
        max-width: 100%;
    }

    .recruit-image {
        width: 100%;
    }

    .image-wrapper img {
        height: 400px;
    }
}

/* --- 校园风光 (Campus Scenery) --- */
.campus-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 300px 300px;
    gap: 20px;
}

.campus-item {
    position: relative;
    overflow: hidden;
    /* border-radius: 4px; Removed for square look */
    cursor: pointer;
}

/* 布局调整：第一张大图占两列两行 (效果类似参考站) */
.item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.item-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.item-3 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.item-4 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

.campus-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.campus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.campus-overlay h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 4px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.campus-item:hover img {
    transform: scale(1.1);
}

.campus-item:hover .campus-overlay {
    opacity: 1;
}

.campus-item:hover .campus-overlay h3 {
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 1024px) {
    .campus-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        height: 300px;
    }

    .item-2 {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        height: 300px;
    }

    .item-3 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        height: 250px;
    }

    .item-4 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .campus-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4 {
        grid-column: auto;
        grid-row: auto;
        height: 250px;
    }
}

/* --- 社交媒体 (Social Media) --- */
.social-section {
    position: relative;
    padding: 100px 0;
    color: #fff;
    overflow: hidden;
}

.social-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.social-bg-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* 黑色遮罩，使背景纹理若隐若现 */
}

.relative-z {
    position: relative;
    z-index: 10;
}

.light-header h2 {
    color: #fff;
}

.light-header .sub-title {
    color: var(--primary-color);
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.social-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    text-align: center;
    width: 260px;
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

/* 电脑端：hover 时图标切换为各自二维码（每卡片通过 --qr-src 传入） */
@media (min-width: 769px) {
    .social-card:hover .icon-circle {
        width: 112px;
        height: 112px;
        border-radius: 12px;
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    }
}

.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.icon-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #fff var(--qr-src) center/contain no-repeat;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

@media (min-width: 769px) {
    .social-card:hover .icon-circle::after {
        opacity: 1;
        transform: scale(1);
    }
}

.icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

/* 文本占位图标样式 */
.text-icon {
    background: linear-gradient(135deg, #333, #111);
    border: 1px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.text-icon span {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* 兜底：确保文本图标（DY/RED）hover 必定显示二维码 */
@media (min-width: 769px) {
    .social-card:hover .icon-circle.text-icon {
        border-color: rgba(255, 255, 255, 0.9);
    }
}

.social-card h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 5px;
    color: var(--text-light);
}

.social-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
}

.social-link {
    display: inline-block;
    padding: 8px 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.social-card:hover .social-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 20px rgba(191, 163, 116, 0.3);
}

.social-card:hover .icon-circle img {
    transform: scale(1.1) rotate(5deg);
}

.social-card:hover .text-icon {
    background: var(--primary-color);
    border-color: #fff;
}

.social-card:hover .text-icon span {
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .social-grid {
        flex-direction: column;
        align-items: center;
    }

    .social-card {
        width: 100%;
        max-width: 300px;
    }
}

/* --- 页脚 (Footer) --- */
.main-footer {
    background-color: #111;
    color: #fff;
    padding: 80px 0 30px 0;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.brand-col {
    flex: 1.5;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 5px;
}

.footer-logo span {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
}

.footer-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 220px;
}

.footer-logo .custom-logo {
    width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.footer-col p {
    color: #888;
    line-height: 1.8;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 500;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #888;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-list li {
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 订阅表单 */
.subscribe-form {
    display: flex;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-top: 20px;
}

.subscribe-form input {
    background: transparent;
    border: none;
    color: #fff;
    flex: 1;
    outline: none;
}

.subscribe-form button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 12px;
}

/* 响应式 */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- WordPress 列表页与详情页 --- */
.archive-page,
.single-entry-page,
.division-page {
    padding-top: 140px;
    padding-bottom: 80px;
}

.search-keyword-bar {
    background: #f8f3ea;
    border-left: 4px solid var(--primary-color);
    padding: 14px 18px;
    margin-bottom: 26px;
    color: #6f6048;
}

.search-keyword-bar strong {
    color: #3b3428;
}

.search-count {
    margin-left: 14px;
    color: #9c8a6a;
    font-size: 13px;
}

.search-empty {
    text-align: center;
    background: #fff;
    border: 1px solid #f1eadf;
    padding: 48px 20px;
}

.search-empty h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.search-empty p {
    color: #777;
    margin-bottom: 22px;
}

.search-empty-form {
    display: inline-flex;
    border: 1px solid #d8c5a0;
}

.search-empty-form input {
    border: none;
    outline: none;
    height: 40px;
    width: 260px;
    padding: 0 12px;
}

.search-empty-form button {
    border: none;
    height: 40px;
    padding: 0 18px;
    color: #fff;
    background: var(--primary-color);
    cursor: pointer;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 96px;
}

.archive-side-box {
    background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
    border: 1px solid #efe5d5;
    border-left: 4px solid var(--primary-color);
    padding: 18px;
}

.archive-side-box h3 {
    font-size: 18px;
    margin-bottom: 14px;
    color: #3b3428;
}

.archive-side-search-form {
    display: flex;
    gap: 8px;
}

.archive-side-search-form input {
    flex: 1;
    height: 40px;
    border: 1px solid #dac8a8;
    padding: 0 10px;
    outline: none;
}

.archive-side-search-form button {
    height: 40px;
    border: none;
    padding: 0 14px;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
}

.archive-cat-grid {
    display: grid;
    gap: 12px;
}

.archive-cat-card {
    position: relative;
    height: 108px;
    overflow: hidden;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.archive-cat-card img,
.archive-cat-fallback {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.archive-cat-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f6efe2, #eddcc0);
    color: #8a774f;
    letter-spacing: 2px;
    font-size: 14px;
}

.archive-cat-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
    font-size: 14px;
}

.archive-item {
    background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
    border: 1px solid #f1eadf;
    border-left: 4px solid var(--primary-color);
    display: flex;
    gap: 26px;
    padding: 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.archive-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(191, 163, 116, 0.18);
}

.archive-thumb {
    width: 280px;
    min-width: 280px;
    height: 180px;
    display: block;
    overflow: hidden;
    border-radius: 0;
    background: #f2f2f2;
}

.archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.archive-item:hover .archive-thumb img {
    transform: scale(1.06);
}

.archive-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
    color: #999;
    font-size: 14px;
    background: linear-gradient(120deg, #f8f8f8, #ececec);
}

.archive-item-main {
    flex: 1;
}

.archive-item-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.archive-item-date {
    color: #8b7a5d;
    font-size: 13px;
    background: #f8f3ea;
    padding: 4px 10px;
    border-radius: 0;
}

.archive-item-cat {
    font-size: 12px;
    color: #fff;
    background: var(--primary-color);
    padding: 4px 10px;
    border-radius: 0;
}

.archive-item-main h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.archive-item-main p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 14px;
}

.archive-item-action {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: #8b7248;
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.archive-item:hover .archive-item-action {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.archive-item-action-text {
    font-size: 14px;
}

.archive-item-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d8c5a0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: all 0.25s ease;
}

.archive-item-action:hover .archive-item-action-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.archive-news .archive-item {
    border-left-color: var(--primary-color);
}

.archive-recruit .archive-item {
    border-left-color: var(--primary-color);
    background: linear-gradient(180deg, #ffffff 0%, #fcf8f1 100%);
}

.archive-recruit .archive-item-cat {
    background: var(--primary-color);
}

.archive-notice .archive-item {
    border-left-color: var(--primary-color);
    background: linear-gradient(180deg, #ffffff 0%, #fcf8f1 100%);
}

.archive-notice .archive-item-cat {
    background: var(--primary-color);
}

.archive-news .archive-item-cat {
    background: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 8px;
    margin-top: 35px;
}

.nav-links .page-numbers {
    min-width: 40px;
    text-align: center;
    padding: 10px 14px;
    border: 1px solid #ddd;
    color: #555;
    border-radius: 0;
}

.main-footer {
    margin-top: auto;
}

.floating-tools {
    position: fixed;
    right: 24px;
    bottom: 80px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-tools.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.floating-tools .tool-btn {
    width: 86px;
    min-height: 86px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(17, 17, 17, 0.62);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    padding: 12px 10px;
    text-align: center;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.floating-tools .tool-btn:hover {
    background: rgba(191, 163, 116, 0.92);
    border-color: rgba(191, 163, 116, 0.92);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(191, 163, 116, 0.26);
}

.floating-tools .tool-btn:active {
    transform: translateY(0);
}

.floating-tools .tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1;
}

.floating-tools .tool-icon-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.floating-tools .tool-text {
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 1.1;
}

.floating-tools .tool-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.floating-tools .tool-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.single-entry {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

/* 详情页在两栏布局中应占满左栏，避免与侧栏间出现大空白 */
.archive-layout .single-entry {
    max-width: none;
    width: 100%;
    margin: 0;
}

.single-entry-header h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.entry-meta {
    color: #888;
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.single-entry-content {
    line-height: 2;
    color: #444;
}

.single-entry-nav {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.single-entry-nav-left a,
.single-entry-nav-right a,
.single-entry-nav-right .is-disabled {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 10px 24px;
    color: #555;
}

.single-entry-nav-right {
    display: flex;
    gap: 10px;
}

.single-entry-nav-right .is-disabled {
    color: #aaa;
    border-color: #eee;
    background: #fafafa;
    cursor: not-allowed;
}

.single-news {
    border-top: 6px solid var(--primary-color);
}

.single-recruit {
    border-top: 6px solid var(--primary-color);
}

.single-notice {
    border-top: 6px solid var(--primary-color);
}

.division-article {
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.division-header h1 {
    font-size: 38px;
    margin-bottom: 20px;
}

.division-content {
    color: #444;
    line-height: 2;
}

@media (max-width: 768px) {
    .archive-layout {
        grid-template-columns: 1fr;
    }

    .archive-sidebar {
        display: none;
        position: static;
    }

    .archive-item {
        flex-direction: column;
        gap: 10px;
    }

    .archive-item-action {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        align-self: flex-start;
    }

    .archive-thumb {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }

    .single-entry,
    .division-article {
        padding: 24px;
    }

    .single-entry-nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .single-entry-nav-right {
        width: auto;
        margin-left: auto;
        flex-shrink: 0;
    }

    .single-entry-header h1,
    .division-header h1 {
        font-size: 28px;
    }

    .floating-tools {
        right: 12px;
        bottom: 68px;
    }

    .floating-tools .tool-btn {
        width: 72px;
        min-height: 72px;
    }

    .floating-tools .tool-icon {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .floating-tools .tool-text {
        font-size: 11px;
    }
}

/* --- 移动端专项优化 --- */
@media (max-width: 768px) {
    .hero-section .scroll-indicator {
        display: none !important;
    }

    /* 0) 移动端隐藏关注我们 */
    .social-section {
        display: none !important;
    }

    /* 1) 重要通告保持单行滚动样式 */
    .notice-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        padding: 0;
    }

    .notice-title {
        flex-direction: column;
        border-right: 2px solid var(--primary-color);
        border-bottom: none;
        padding-right: 14px;
        padding-bottom: 0;
        margin-bottom: 0;
        min-width: 100px;
        width: auto;
        gap: 0;
    }

    .notice-content {
        height: 40px;
        margin: 0 10px;
        width: auto;
    }

    .notice-more {
        align-self: auto;
        padding: 4px 10px;
        font-size: 11px;
    }

    .notice-list li {
        font-size: 13px;
    }

    /* 2) 新闻列表：左侧时间，右侧标题 + 摘要（仅移动端） */
    .news-list-wrapper {
        display: none;
    }

    .news-item {
        flex-direction: row;
        align-items: center;
        padding: 14px 12px;
        gap: 12px;
    }

    .news-meta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-right: 1px solid #eee;
        margin: 0;
        padding: 0 12px 0 0;
        min-width: 74px;
        color: #666;
        text-align: center;
    }

    .news-meta .day {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        line-height: 1.1;
    }

    .news-meta .year {
        font-size: 12px;
        color: #999;
        line-height: 1.2;
    }

    .news-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .news-text h4 {
        margin-bottom: 6px;
        font-size: 14px;
        line-height: 1.4;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
    }

    .news-date-inline {
        display: none;
    }

    .news-text p {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
    }

    /* 3) 关注我们改为一排自适应 */
    .social-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 10px;
        margin-top: 30px;
    }

    .social-card {
        width: 100%;
        max-width: none;
        padding: 16px 10px;
    }

    .icon-circle {
        width: 52px;
        height: 52px;
        margin: 0 auto 10px auto;
    }

    .social-card h3 {
        font-size: 14px;
    }

    .social-card p {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .social-link {
        padding: 6px 10px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    /* 4) 页脚移动端精简 */
    .main-footer {
        padding: 36px 0 18px 0;
    }

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

    .footer-top .footer-col:nth-child(2),
    .footer-top .footer-col:nth-child(4) {
        display: none;
    }

    .footer-col h4 {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .footer-col ul li {
        margin-bottom: 8px;
    }

    .footer-col p {
        max-width: 100%;
        line-height: 1.6;
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 16px;
        font-size: 11px;
        gap: 8px;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 14px;
    }

    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .social-card {
        padding: 12px 8px;
    }

    .icon-circle {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }

    .social-card h3 {
        font-size: 12px;
    }

    .social-card p {
        display: none;
    }

    .social-link {
        padding: 5px 8px;
        font-size: 9px;
    }

    .main-footer {
        padding: 28px 0 14px 0;
    }

    .footer-col p,
    .contact-list li {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 10px;
    }
}

/* --- 首页结构调整（通告/新闻/Logo） --- */
.fixed-logo-link {
    display: inline-flex;
    align-items: center;
}

.fixed-logo-img {
    width: 210px;
    max-width: 100%;
    height: auto;
    display: block;
}

.notice-content {
    margin-left: 0;
}

.news-grid {
    gap: 24px;
}

.news-item {
    align-items: flex-start;
}

.news-text h4 {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .fixed-logo-img {
        width: 150px;
    }

    .notice-container {
        height: 60px;
        padding: 0 14px;
    }

    .notice-content {
        margin: 0 8px 0 0;
        width: auto;
    }

    .news-item {
        padding: 14px 12px;
    }
}

/* 重要通告标题：仅移动端隐藏（电脑端必须显示） */
@media (max-width: 768px) {
    .notice-title {
        display: none !important;
    }
}