/* ==========================================
   公共样式 - 健康科普技术专区
   ========================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================
   Header 顶部区域
   ========================================== */
.header {
    background: url('../images/top_backimg.png') repeat-x left top;
    background-size: auto 100%;
    color: #1a3a5c;
    padding: 0;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 左侧：logo + 标题 */
.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    width: auto;
    height: 68px;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    flex-shrink: 0;
}

.header-logo img {
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Logo占位符（无图片时显示） */
.header-logo .logo-placeholder {
    width: 68px;
    height: 68px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #1a73e8;
}

.header-info {
    flex: none;
}

.header-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a3a5c;
}

.header-subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 2px;
    color: #4a6a8a;
}

/* 右侧：日期时间 */
.header-datetime {
    text-align: right;
    flex-shrink: 0;
    line-height: 1.7;
}

.header-date {
    font-size: 15px;
    font-weight: 600;
    color: #c62828;
    letter-spacing: 0.5px;
}

.header-welcome {
    font-size: 13px;
    color: #4a6a8a;
}

/* 导航栏 - 蓝色横条 */
.header-nav {
    background: #1a73e8;
}

.header-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
}

.header-nav-inner a {
    display: inline-block;
    padding: 12px 36px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
    position: relative;
}

.header-nav-inner a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.header-nav-inner a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* ==========================================
   Main Content 主内容区
   ========================================== */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
}

/* ==========================================
   Footer 底部区域
   ========================================== */
.footer {
    background: #263238;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px 24px;
    font-size: 13px;
    line-height: 2;
}

.footer .footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.footer .footer-row span.pipe {
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.3);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer a:hover {
    color: #fff;
}

.footer .beian-row img {
    height: 16px;
    width: auto;
}
.beian-link {
    display: inline-flex;
    align-items: center;
}
.beian-link img {
    margin-right: 4px; /* 调整图标与文字间距 */
    vertical-align: middle;
}
/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 40px;
    width: 44px;
    height: 44px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(26, 115, 232, 0.35);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0d47a1;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.5);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ==========================================
   响应式 - 平板 (< 768px)
   ========================================== */
@media (max-width: 768px) {
    .header-top {
        padding: 16px 16px 12px;
        flex-wrap: wrap;
    }

    .header-brand {
        gap: 10px;
    }

    .header-logo {
        height: 52px;
    }

    .header-logo .logo-placeholder {
        width: 52px;
        height: 52px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-subtitle {
        font-size: 12px;
    }

    .header-datetime {
        width: 100%;
        text-align: left;
        margin-top: 8px;
    }

    .header-nav-inner {
        padding: 0 16px;
    }

    .header-nav-inner a {
        padding: 10px 22px;
        font-size: 14px;
    }

    .main-content {
        padding: 16px;
    }

    .footer {
        padding: 16px;
        font-size: 12px;
    }
}

/* ==========================================
   响应式 - 手机 (< 480px)
   ========================================== */
@media (max-width: 480px) {
    .header-top {
        padding: 12px 12px 8px;
    }

    .header-brand {
        gap: 8px;
    }

    .header-logo {
        height: 42px;
    }

    .header-logo .logo-placeholder {
        width: 42px;
        height: 42px;
    }

    .header-title {
        font-size: 17px;
    }

    .header-subtitle {
        font-size: 11px;
    }

    .header-nav-inner {
        padding: 0 12px;
    }

    .header-nav-inner a {
        padding: 8px 16px;
        font-size: 13px;
    }

    .main-content {
        padding: 12px;
    }
}
  /* 筛选区域 */
  .filter-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    font-weight: 500;
}

.filter-select {
    position: relative;
}

.filter-select select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 7px 32px 7px 12px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.25s;
    min-width: 120px;
    outline: none;
    font-family: inherit;
}

.filter-select select:hover {
    border-color: #1a73e8;
}

.filter-select select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.filter-select::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #888;
    pointer-events: none;
}

/* 搜索按钮图标样式 */
.search-icon-img {
    width: 16px;
    height: 16px;
    display: block;
    margin: auto;
    filter: brightness(0) invert(1); /* 白色滤镜，使图标在深色背景下可见 */
}

.search-box button:hover .search-icon-img {
    opacity: 0.8;
}

/* 搜索框样式调整 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    flex: 1;
    padding: 8px 40px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

.search-box input:focus {
    border-color: #007cba;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 36px;
    border: none;
    background: #007cba;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 如果图标颜色不是白色，可以使用这个样式调整 */
.search-box button img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* 操作栏 */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.action-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.result-count {
    font-size: 14px;
    color: #888;
}

.result-count span {
    color: #1a73e8;
    font-weight: 600;
}

/* 数据表格 */
.data-table-wrapper {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f8f9fb;
}

.data-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #e8ecf0;
    white-space: nowrap;
    font-size: 13px;
}

.data-table tbody tr {
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background: #f0f7ff;
}

.data-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    line-height: 1.6;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 技术名称列 */
.tech-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tech-name-text {
    font-weight: 500;
    color: #1a73e8;
    cursor: pointer;
    transition: color 0.2s;
}

.tech-name-text:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin: 1px 3px 1px 0;
    white-space: nowrap;
}

.tag-blue {
    background: #e3f2fd;
    color: #1565c0;
}

.tag-green {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-orange {
    background: #fff3e0;
    color: #e65100;
}

/* 详情按钮 */
.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 16px;
    font-size: 13px;
    color: #1a73e8;
    background: #e8f0fe;
    border: 1px solid #c5d8f7;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-detail:hover {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.btn-detail svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0 8px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    border: 1px solid #d9d9d9;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.pagination a:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

.pagination span.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
    font-weight: 600;
    cursor: default;
}

.pagination span.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    fill: #ddd;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 15px;
}

/* ==========================================
   响应式 - 平板
   ========================================== */
@media (max-width: 992px) {
    .data-table-wrapper {
        overflow-x: auto;
    }

    .data-table {
        min-width: 700px;
    }
}

@media (max-width: 768px) {
    .filter-section {
        padding: 16px;
    }

    .filter-row {
        gap: 10px 16px;
    }

    .filter-item {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }

    .filter-select select {
        width: 100%;
        min-width: auto;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .action-bar-left {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-box {
        width: 100%;
    }

    .result-count {
        text-align: left;
    }
}

/* ==========================================
   响应式 - 手机
   ========================================== */
@media (max-width: 480px) {
    .filter-section {
        padding: 12px;
        border-radius: 8px;
    }

    .filter-row {
        gap: 8px 12px;
    }

    .filter-item {
        flex: 1 1 100%;
    }

    .filter-select select {
        width: 100%;
    }

    .data-table thead th {
        padding: 10px 12px;
        font-size: 12px;
    }

    .data-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }
}
  /* 面包屑 */
  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #666;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1a73e8;
}

.breadcrumb .separator {
    color: #bbb;
    font-size: 12px;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 详情卡片 */
.detail-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* 详情头部 */
.detail-header {
    padding: 28px 28px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* 技术标签 */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.tech-tag-label {
    color: #999;
}

.tech-tag-value {
    display: inline-block;
    padding: 3px 12px;
    background: #e8f0fe;
    color: #1565c0;
    border-radius: 20px;
    font-weight: 500;
}

.tech-tag-value.type-medicine { background: #e8f5e9; color: #2e7d32; }
.tech-tag-value.type-prevention { background: #fff3e0; color: #e65100; }
.tech-tag-value.type-diagnosis { background: #fce4ec; color: #c62828; }
.tech-tag-value.type-recovery { background: #e1f5fe; color: #0277bd; }
.tech-tag-value.type-screening { background: #f3e5f5; color: #7b1fa2; }
.tech-tag-value.type-health { background: #e0f7fa; color: #00838f; }
.tech-tag-value.type-treatment { background: #fbe9e7; color: #bf360c; }

/* 详情主体 */
.detail-body {
    padding: 28px;
}

.detail-section {
    margin-bottom: 28px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid #1a73e8;
    line-height: 1.4;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #f8f9fb;
    border-radius: 8px;
    transition: background 0.2s;
}

.info-item:hover {
    background: #f0f4f8;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 18px;
    height: 18px;
    fill: #1a73e8;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-all;
}

/* 视频区域 */
.video-section {
    margin-top: 4px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: rgba(255, 255, 255, 0.6);
    gap: 12px;
}

.video-placeholder svg {
    width: 56px;
    height: 56px;
    fill: rgba(255, 255, 255, 0.3);
}

.video-placeholder p {
    font-size: 14px;
}

/* 技术描述 */
.tech-description {
    font-size: 15px;
    line-height: 1.85;
    color: #555;
}

.tech-description p {
    margin-bottom: 12px;
}

.tech-description p:last-child {
    margin-bottom: 0;
}

/* 关键词 */
.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #f0f4f8;
    color: #555;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.25s;
    cursor: default;
}

.keyword-tag:hover {
    background: #e8f0fe;
    color: #1a73e8;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #fff;
    color: #1a73e8;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    margin-top: 24px;
}

.back-btn:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #0d47a1;
}

.back-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
/* ==========================================
   响应式 - 平板
   ========================================== */
@media (max-width: 768px) {
    .detail-header {
        padding: 20px;
    }

    .detail-title {
        font-size: 19px;
    }

    .detail-body {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ==========================================
   响应式 - 手机
   ========================================== */
@media (max-width: 480px) {
    .breadcrumb {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .detail-header {
        padding: 16px;
    }

    .detail-title {
        font-size: 17px;
    }

    .tech-tags {
        gap: 8px;
    }

    .tech-tag-item {
        font-size: 12px;
    }

    .detail-body {
        padding: 16px;
    }

    .detail-section {
        margin-bottom: 20px;
    }

    .detail-section-title {
        font-size: 15px;
    }

    .info-item {
        padding: 12px;
    }

    .tech-description {
        font-size: 14px;
    }

    .video-wrapper {
        border-radius: 8px;
    }

    .back-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}
/* 仿下拉选择框样式 */
.filter-dropdown {
    position: relative;
    display: inline-block;
    min-width: 120px;
    cursor: pointer;
    height: 36px; /* 添加此行，与搜索框按钮高度一致 */
}

.dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    min-height: 34px; /* 调整此值，确保总高度为36px */
    user-select: none;
    cursor: pointer;
    height: 100%; /* 添加此行，占满父容器高度 */
}

.dropdown-selected:hover {
    border-color: #007cba;
}

.selected-text {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #999;
    margin-left: 8px;
    transition: transform 0.3s;
}

.arrow-down.active {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dropdown-options.show {
    display: block;
}

.dropdown-options li {
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-options li:last-child {
    border-bottom: none;
}

.dropdown-options li:hover {
    background-color: #f5f5f5;
}

.filter-item {
    margin-right: 15px;
    display: inline-block;
    vertical-align: top;
}

.filter-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.filter-row {
    margin-bottom: 20px;
}