/* ============================================================
   二级页面通用样式 - Subpage Layout
   ============================================================ */

/* ----- 内容区布局：侧边栏 + 主内容----- */
.subpage-content {
    padding: 56px 0 80px;
    background: var(--zinc-50);
    min-height: 60vh;
}

.subpage-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

.subpage-main-full {
    max-width: 1200px;
    margin: 0 auto;
}

/* ----- 侧边栏----- */
.subpage-sidebar {
    background: var(--white);
    border: 1px solid var(--zinc-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 80px;
}

.subpage-sidebar h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    padding: 18px 22px;
    background: #00417f;
    letter-spacing: 1px;
}

.sidebar-nav {
    padding: 8px 0;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--zinc-100);
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav li a {
    display: block;
    padding: 13px 22px;
    font-size: 16px;
    color: var(--zinc-600);
    transition: var(--transition-fast);
    position: relative;
}

.sidebar-nav li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.25s var(--ease-spring);
}

.sidebar-nav li.active a,
.sidebar-nav li a:hover {
    color: var(--primary);
    background: rgba(21, 70, 184, 0.04);
}

.sidebar-nav li.active a::before,
.sidebar-nav li a:hover::before {
    height: 20px;
}

/* ----- 内容卡片 ----- */
.content-card {
    background: var(--white);
    border: 1px solid var(--zinc-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-xs);
}

.content-card:last-child {
    margin-bottom: 0;
}

.content-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-deeper);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--zinc-100);
    letter-spacing: 0.5px;
    position: relative;
}

.content-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.content-card p {
    font-size: 18px;
    color: var(--zinc-600);
    line-height: 1.85;
    margin-bottom: 14px;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.content-card ul,
.content-card ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.content-card ul li,
.content-card ol li {
    font-size: 14.5px;
    color: var(--zinc-600);
    line-height: 2;
    list-style-type: disc;
}

.content-card ol li {
    list-style-type: decimal;
}

/* ============================================================
   组件：时间线
   ============================================================ */
.timeline {
    padding: 0 !important;
    list-style: none !important;
    border-left: 2px solid var(--zinc-200);
    margin-left: 8px;
}

.timeline li {
    list-style: none !important;
    position: relative;
    padding: 0 0 22px 28px;
    font-size: 16px !important;
    color: var(--zinc-600) !important;
    line-height: 1.75 !important;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(21, 70, 184, 0.12);
}

.timeline li strong {
    color: var(--primary);
}

/* ============================================================
   组件：组织架构网�?
   ============================================================ */
.org-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.org-item {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid var(--zinc-200);
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.org-item:hover {
    border-color: rgba(21, 70, 184, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.org-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
}

.org-item strong {
    display: block;
    font-size: 14px;
    color: var(--primary-deeper);
    margin-bottom: 6px;
}

.org-item p {
    font-size: 12px !important;
    color: var(--zinc-400) !important;
    margin: 0 !important;
}

/* ============================================================
   组件：研究方向列�?
   ============================================================ */
.direction-list {
    counter-reset: direction;
    padding-left: 0 !important;
    list-style: none !important;
}

.direction-list li {
    list-style: none !important;
    counter-increment: direction;
    padding: 17px 20px 17px 56px;
    position: relative;
    border-bottom: 1px solid var(--zinc-100);
}

.direction-list li:last-child {
    border-bottom: none;
}

.direction-list li::before {
    content: counter(direction);
    position: absolute;
    left: 0;
    top: 12px;
    width: 36px;
    height: 36px;
    background: #00417f;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   组件：班子领导列�?
   ============================================================ */
.leadership-list p {
    padding: 14px 18px;
    margin-bottom: 8px;
    background: var(--zinc-50);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
    font-size: 14.5px !important;
}

/* ============================================================
   组件：成员卡片网�?(团队�?
   ============================================================ */
.member-grid {
    display: grid;
    gap: 20px;
}

.member-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--zinc-100);
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.member-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 70, 184, 0.15);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--zinc-100);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-deeper);
    margin-bottom: 4px;
}

.member-title {
    font-size: 12.5px !important;
    color: var(--primary) !important;
    font-weight: 600;
    margin-bottom: 10px !important;
    letter-spacing: 0.5px;
}

.member-info p {
    font-size: 13.5px !important;
}

/* ============================================================
   组件：团队统计数�?
   ============================================================ */
.team-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.stat-item {
    text-align: center;
    padding: 24px 12px;
    background: linear-gradient(160deg, rgba(21, 70, 184, 0.04), rgba(21, 70, 184, 0.01));
    border-radius: var(--radius);
    border: 1px solid rgba(21, 70, 184, 0.08);
}

.stat-item strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.stat-item span {
    font-size: 12.5px;
    color: var(--zinc-400);
    letter-spacing: 0.5px;
}

/* ============================================================
   组件：论�?成果列表
   ============================================================ */
.pub-list {
    padding: 0 !important;
    list-style: none !important;
}

.pub-list li {
    list-style: none !important;
    padding: 14px 0;
    border-bottom: 1px dashed var(--zinc-200);
    font-size: 14.5px !important;
    color: var(--zinc-600) !important;
    line-height: 1.7 !important;
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.pub-list li:last-child {
    border-bottom: none;
}

.pub-tag {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(21, 70, 184, 0.06);
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
    font-family: "SF Mono", "JetBrains Mono", monospace;
}

/* ============================================================
   组件：设备网�?
   ============================================================ */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.equip-item {
    padding: 18px;
    border: 1px solid var(--zinc-100);
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.equip-item:hover {
    border-color: rgba(21, 70, 184, 0.15);
    background: rgba(21, 70, 184, 0.02);
}

.equip-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-deeper);
    margin-bottom: 6px;
}

.equip-item p {
    font-size: 13px !important;
    color: var(--zinc-500) !important;
    margin: 0 !important;
}

/* ============================================================
   组件：联系信息网�?+ 地图 + 表单
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact-item {
    padding: 20px;
    border: 1px solid var(--zinc-100);
    border-radius: var(--radius);
}

.contact-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.8px;
}

.contact-item p {
    font-size: 14px !important;
    color: var(--zinc-600) !important;
    margin: 0 !important;
    line-height: 1.8;
}

.map-placeholder {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--zinc-200);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--zinc-700);
    margin-bottom: 6px;
}

.form-group label span {
    color: #e53;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--zinc-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--zinc-800);
    transition: var(--transition-fast);
    background: var(--zinc-50);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 70, 184, 0.08);
    background: #fff;
}

.contact-form .btn-more {
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 36px;
    font-size: 15px;
    font-family: inherit;
}

.contact-form .btn-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================================
   科研成果列表页
   ============================================================ */
.achievement-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-list-item {
    display: block;
    background: var(--white);
    border: 1px solid var(--zinc-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.achievement-list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(21,70,184,0.15);
}

.achievement-list-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.achievement-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-spring);
}

.achievement-list-item:hover .achievement-list-img img {
    transform: scale(1.05);
}

.achievement-list-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(2,30,110,0.78);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    font-family: "SF Mono", "JetBrains Mono", monospace;
}

.achievement-list-info {
    padding: 18px;
}

.achievement-list-info h4 {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--zinc-800);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.2s;
}

.achievement-list-item:hover .achievement-list-info h4 {
    color: var(--primary);
}

.achievement-list-info p {
    font-size: 13px;
    color: var(--zinc-500);
    line-height: 1.7;
}

/* ============================================================
   文章详情页
   ============================================================ */
.article-detail {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--zinc-200);
}

.article-header {
    border-bottom: 2px solid var(--zinc-100);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.article-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-deeper);
    line-height: 1.4;
    margin-bottom: 14px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--zinc-400);
    flex-wrap: wrap;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(21,70,184,0.03) 0%, rgba(21,70,184,0.01) 100%);
    border-radius: var(--radius);
    border: 1px solid rgba(21,70,184,0.06);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--zinc-500);
}

.meta-icon {
    flex-shrink: 0;
    color: var(--primary);
    opacity: 0.65;
}

.meta-divider {
    color: var(--zinc-300);
    font-weight: 300;
    margin: 0 2px;
}

.article-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-deeper);
    margin: 32px 0 14px;
    padding-left: 14px;
    border-left: 3px solid var(--primary);
}

.article-body p {
    font-size: 15.5px;
    color: var(--zinc-700);
    line-height: 1.9;
    margin-bottom: 16px;
    text-align: justify;
}

.article-body ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.article-body ul li {
    font-size: 15px;
    color: var(--zinc-700);
    line-height: 2;
    list-style-type: disc;
}

.article-footer-info {
    margin-top: 36px;
    padding: 20px 24px;
    background: var(--zinc-50);
    border-radius: var(--radius);
    border: 1px solid var(--zinc-200);
}

.article-footer-info p {
    font-size: 13.5px !important;
    color: var(--zinc-500) !important;
    margin-bottom: 6px !important;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--zinc-200);
    gap: 16px;
    flex-wrap: wrap;
}

.article-nav-prev,
.article-nav-next {
    font-size: 13.5px;
    color: var(--zinc-500);
    transition: color 0.2s;
}

.article-nav-prev:hover,
.article-nav-next:hover {
    color: var(--primary);
}

.article-nav-back {
    font-size: 13.5px;
    color: var(--primary);
    font-weight: 600;
    padding: 6px 18px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    transition: all 0.2s;
}

.article-nav-back:hover {
    background: var(--primary);
    color: #fff;
}

/* 设备详情页大图 */
.device-detail-img {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
}

.device-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 科研团队统计卡片 */
.team-stats-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 36px auto 0;
    max-width: 800px;
}

.team-stats-card .stat-item {
    text-align: center;
    padding: 24px 12px;
    background: linear-gradient(160deg, rgba(21,70,184,0.04), rgba(21,70,184,0.01));
    border-radius: var(--radius);
    border: 1px solid rgba(21,70,184,0.08);
}

.team-stats-card .stat-item strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.team-stats-card .stat-item span {
    font-size: 12.5px;
    color: var(--zinc-400);
    letter-spacing: 0.5px;
}

/* ============================================================
   新闻列表页
   ============================================================ */
.news-list-page {
    max-width: 1200px;
    margin: 0 auto;
}

.news-list-item {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px dashed var(--zinc-200);
    align-items: flex-start;
}

.news-list-item:first-child {
    padding-top: 0;
}

.news-list-date-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-width: 56px;
    padding: 8px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8efff 100%);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(21, 70, 184, 0.1);
    transition: all 0.3s var(--ease-spring);
    position: relative;
    margin-top: 2px;
}

.news-list-date-badge::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.3;
}

.news-list-date-badge .date-day {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.news-list-date-badge .date-mon {
    font-size: 10px;
    color: var(--zinc-400);
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 5px;
    white-space: nowrap;
}

.news-list-item:hover .news-list-date-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 70, 184, 0.2);
}

.news-list-item:hover .news-list-date-badge .date-day,
.news-list-item:hover .news-list-date-badge .date-mon {
    color: #fff;
}

.news-list-item:hover .news-list-date-badge::after {
    background: rgba(255,255,255,0.4);
    opacity: 1;
}

.news-list-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.news-list-info h4 a {
    color: var(--zinc-800);
    transition: color 0.2s;
}

.news-list-info h4 a:hover {
    color: var(--primary);
}

.news-list-info p {
    font-size: 14px;
    color: var(--zinc-500);
    line-height: 1.6;
}

/* ============================================================
   图片展示页
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-img {
    position: relative;
    width: 100%;
    height: 0px;
    padding-bottom: 56.25%;
    overflow: hidden;
    display: block;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-spring);
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.08);
}

/* 浮动在图片左下角 */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px 14px 12px;
    background: linear-gradient(to top, rgba(2,30,110,0.82) 0%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.gallery-caption h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
}

.gallery-caption p {
    font-size: 14px;
    opacity: 0.85;
    color: #fff;
}

/* ============================================================
   分页组件
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.gallery-pagination {
    grid-column: 1 / -1;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13.5px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    color: var(--zinc-600);
    border: 1px solid var(--zinc-200);
    background: var(--white);
    text-decoration: none;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(21,70,184,0.04);
}

.pagination a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

.pagination a.disabled {
    color: var(--zinc-300);
    pointer-events: none;
    border-color: var(--zinc-100);
}

.page-ellipsis {
    border: none !important;
    background: transparent !important;
    color: var(--zinc-400) !important;
    padding: 8px 4px !important;
}

.page-info {
    margin-left: 12px;
    font-size: 12.5px !important;
    color: var(--zinc-400) !important;
    border: none !important;
    background: transparent !important;
}

/* ============================================================
   科研方向详情页
   ============================================================ */
.direction-detail-card {
    background: var(--white);
    border: 1px solid var(--zinc-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.direction-detail-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(21,70,184,0.15);
}

.direction-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(21,70,184,0.04) 0%, rgba(21,70,184,0.01) 100%);
    border-bottom: 1px solid var(--zinc-100);
}

.direction-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(21,70,184,0.25);
}

.direction-detail-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-deeper);
    margin: 0;
    padding: 0;
    border: none;
    letter-spacing: 1px;
}

.direction-detail-header h3::after {
    display: none;
}

.direction-detail-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    padding: 32px;
}

.direction-detail-img {
    width: 100%;
    height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.direction-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-spring);
}

.direction-detail-card:hover .direction-detail-img img {
    transform: scale(1.05);
}

.direction-detail-text p {
    font-size: 18px;
    color: var(--zinc-600);
    line-height: 1.9;
    margin-bottom: 18px;
    text-indent: 2em;
}

.direction-topics {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.direction-topics li {
    font-size: 16px;
    color: var(--zinc-600);
    padding: 10px 14px 10px 28px;
    position: relative;
    background: var(--zinc-50);
    border-radius: var(--radius-sm);
    line-height: 1.6;
    transition: var(--transition-fast);
}

.direction-topics li:hover {
    background: rgba(21,70,184,0.05);
    color: var(--primary);
}

.direction-topics li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 17px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* ============================================================
   响应式
   ============================================================ */

/* 1024px */
@media (max-width: 1024px) {
    .subpage-layout {
        grid-template-columns: 200px 1fr;
        gap: 28px;
    }

    .org-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* 768px：侧边栏转为横向胶囊导航 */
@media (max-width: 768px) {
    .subpage-content {
        padding: 36px 0 56px;
    }

    .subpage-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .subpage-sidebar {
        position: static;
        border-radius: var(--radius);
    }

    .subpage-sidebar h3 {
        font-size: 19px;
        padding: 14px 18px;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        padding: 10px 12px;
    }

    .sidebar-nav li {
        border-bottom: none;
    }

    .sidebar-nav li a {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 20px;
        margin: 4px;
        background: var(--zinc-100);
    }

    .sidebar-nav li.active a {
        background: var(--primary);
        color: #fff;
    }

    .sidebar-nav li a::before {
        display: none;
    }

    .content-card {
        padding: 22px 18px;
    }

    .content-card h3 {
        font-size: 19px;
    }

    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item strong {
        font-size: 26px;
    }

    .org-grid {
        grid-template-columns: 1fr 1fr;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .member-card {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .member-avatar {
        width: 70px;
        height: 70px;
    }
}

/* 480px */
@media (max-width: 480px) {
    .subpage-content {
        padding: 24px 0 40px;
    }

    .subpage-sidebar h3 {
        font-size: 17px;
        padding: 12px 16px;
    }

    .sidebar-nav li a {
        padding: 8px 13px;
        font-size: 12.5px;
    }

    .content-card {
        padding: 16px 14px;
        margin-bottom: 16px;
    }

    .content-card h3 {
        font-size: 17px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .content-card p,
    .content-card ul li {
        font-size: 13.5px !important;
    }

    .team-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-item {
        padding: 16px 8px;
    }

    .stat-item strong {
        font-size: 22px;
    }

    .org-grid {
        grid-template-columns: 1fr;
    }

    .member-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .direction-list li {
        padding: 12px 12px 12px 44px;
    }

    .direction-list li::before {
        width: 28px;
        height: 28px;
        font-size: 12px;
        top: 10px;
    }

    .pub-list li {
        flex-direction: column;
        gap: 4px;
    }

    .contact-form .btn-more {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   响应式 - 文章/新闻/图片
   ============================================================ */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .achievement-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .achievement-list-img {
        height: 180px;
    }

    .direction-detail-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .direction-detail-img {
        height: 220px;
    }

    .direction-topics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-detail {
        padding: 24px 18px;
    }

    .article-header h2 {
        font-size: 21px;
    }

    .article-meta {
        gap: 4px;
        padding: 12px 14px;
        font-size: 12px;
    }

    .article-body p {
        font-size: 14.5px;
    }

    .news-list-item {
        flex-direction: column;
        gap: 8px;
        padding: 16px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .article-nav {
        flex-direction: column;
        text-align: center;
    }

    .achievement-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .achievement-list-info {
        padding: 16px;
    }

    .team-stats-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .direction-detail-header {
        padding: 18px 20px;
    }

    .direction-detail-header h3 {
        font-size: 18px;
    }

    .direction-num {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .direction-detail-body {
        padding: 20px;
    }

    .direction-detail-img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .article-detail {
        padding: 18px 14px;
    }

    .article-header h2 {
        font-size: 18px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-caption {
        padding: 14px 8px 10px;
    }

    .gallery-caption h5 {
        font-size: 12px;
    }

    .achievement-list-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .achievement-list-img {
        height: 180px;
    }

    .achievement-list-info h4 {
        font-size: 14px;
    }

    .team-stats-card .stat-item strong {
        font-size: 24px;
    }

    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 12px;
    }

    .direction-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px;
    }

    .direction-detail-header h3 {
        font-size: 17px;
    }

    .direction-detail-body {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .direction-detail-img {
        height: 180px;
    }

    .direction-topics {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   站内搜索页
   ============================================================ */
.search-page {
    max-width: 900px;
    margin: 0 auto;
}

/* 搜索框 */
.search-page-box {
    background: var(--white);
    border: 1px solid var(--zinc-200);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-xs);
    margin-bottom: 28px;
}

.search-page-form {
    display: flex;
    gap: 12px;
}

.search-page-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--zinc-200);
    border-radius: 30px;
    font-size: 15px;
    color: var(--zinc-800);
    font-family: inherit;
    outline: none;
    transition: all 0.25s var(--ease-spring);
    background: var(--zinc-50);
}

.search-page-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21,70,184,0.08);
}

.search-page-btn {
    flex-shrink: 0;
    padding: 0 34px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s var(--ease-spring);
    box-shadow: 0 4px 14px rgba(21,70,184,0.25);
}

.search-page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21,70,184,0.35);
}

.search-page-tip {
    margin-top: 16px;
    font-size: 13px;
    color: var(--zinc-400);
    letter-spacing: 0.3px;
}

.search-page-tip a {
    color: var(--primary);
    margin: 0 4px;
}

.search-page-tip a:hover {
    text-decoration: underline;
}

/* 搜索结果 */
.search-results {
    background: var(--white);
    border: 1px solid var(--zinc-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.search-results-header {
    padding: 18px 28px;
    border-bottom: 1px solid var(--zinc-100);
    font-size: 14px;
    color: var(--zinc-500);
    background: linear-gradient(135deg, rgba(21,70,184,0.03) 0%, rgba(21,70,184,0.01) 100%);
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    border-bottom: 1px dashed var(--zinc-200);
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(21,70,184,0.02);
}

.search-result-link {
    display: block;
    padding: 24px 28px;
}

.search-result-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(21,70,184,0.08);
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.search-result-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--zinc-800);
    margin-bottom: 8px;
    line-height: 1.5;
    transition: color 0.2s;
}

.search-result-link:hover .search-result-title {
    color: var(--primary);
}

.search-result-date {
    display: inline-block;
    font-size: 12.5px;
    color: var(--zinc-400);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.search-result-desc {
    font-size: 13.5px;
    color: var(--zinc-500);
    line-height: 1.8;
}

.search-hit {
    font-style: normal;
    color: var(--primary);
    background: rgba(21,70,184,0.1);
    border-radius: 3px;
    padding: 0 2px;
}

/* 空结果 */
.search-empty {
    padding: 60px 24px;
    text-align: center;
    display: none;
}

.search-empty-icon {
    color: var(--zinc-300);
    margin-bottom: 16px;
}

.search-empty p {
    font-size: 14.5px;
    color: var(--zinc-500);
}

/* 搜索页响应式 */
@media (max-width: 768px) {
    .search-page-box {
        padding: 24px 18px;
    }

    .search-result-link {
        padding: 18px 18px;
    }
}

@media (max-width: 480px) {
    .search-page-form {
        flex-direction: column;
    }

    .search-page-btn {
        padding: 12px 0;
    }

    .search-result-title {
        font-size: 15px;
    }
}
