 /* ----------------- 全局设计变量 · 极简·高级·理性 ----------------- */
        * {
          margin: 0;
          padding: 0;
          box-sizing: border-box;
        }

        :root {
          --white: #ffffff;
          --off-white: #fbfdff;
          --gray-50: #f8fafc;
          --gray-100: #f1f5f9;
          --gray-200: #e2e8f0;
          --gray-300: #cbd5e1;
          --gray-400: #94a3b8;
          --gray-600: #475569;
          --gray-800: #1e293b;
          --gray-900: #0f172a;
          --accent: #2563eb;
          --accent-soft: #dbeafe;
          --border-light: rgba(0,0,0,0.03);
          --shadow-xs: 0 5px 16px -6px rgba(0,0,0,0.02), 0 2px 4px -2px rgba(0,0,0,0.02);
          --shadow-sm: 0 12px 24px -12px rgba(0,0,0,0.04), 0 2px 6px 0 rgba(0,0,0,0.01);
          --shadow-md: 0 20px 32px -12px rgba(0,0,0,0.06);
          --shadow-lg: 0 30px 48px -16px rgba(0,0,0,0.08);
          --radius-sm: 12px;
          --radius-md: 20px;
          --radius-lg: 28px;
          --radius-xl: 40px;
          --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
          --max-width: 1600px;
        }

        body {
          font-family: var(--font);
          background-color: var(--white);
          color: var(--gray-800);
          line-height: 1.5;
          font-weight: 400;
          font-size: 16px;
          overflow-x: hidden;
          width: 100%;
          -webkit-font-smoothing: antialiased;
        }

        /* ========== 全屏通栏 · 干净留白 ========= */
        section {
          width: 100%;
          padding: 6rem 2rem;
          position: relative;
          background-size: cover !important;
          background-position: center !important;
          background-repeat: no-repeat !important;
        }
        .full-container {
          max-width: var(--max-width);
          margin: 0 auto;
          width: 100%;
          position: relative;
          z-index: 3;
        }
        @media (max-width: 768px) {
          section { padding: 4rem 1.5rem; }
        }
        @media (max-width: 480px) {
          section { padding: 3rem 1.25rem; }
        }

        /* ========== 高级·极简导航 ========= */
        .navbar {
          width: 100%;
          background: rgba(255,255,255,0.80);
          backdrop-filter: blur(12px);
          -webkit-backdrop-filter: blur(12px);
          border-bottom: 1px solid rgba(226,232,240,0.5);
          position: sticky;
          top: 0;
          z-index: 1000;
          padding: 0 2rem;
        }
        .nav-container {
          max-width: var(--max-width);
          margin: 0 auto;
          display: flex;
          justify-content: space-between;
          align-items: center;
          height: 80px;
        }

        .logo {
          display: flex;
    align-items: center;
    gap: 14px;
    width: 400px;
        }
        .logo-icon {
          width: 44px;
          height: 44px;
          /*background: var(&#45;&#45;gray-900);*/
          border-radius: 10px;
          display: flex;
          align-items: center;
          font-weight: 600;
          font-size: 22px;
          color: white;
          letter-spacing: -0.02em;
        }
        .logo-text {
          font-size: 1.3rem;
          font-weight: 600;
          color: var(--gray-900);
          letter-spacing: -0.01em;
        }
        .logo-text span {
          font-weight: 400;
          font-size: 0.95rem;
          color: var(--gray-600);
          margin-left: 8px;
        }

        .nav-links {
          display: flex;
          list-style: none;
          align-items: center;
          gap: 0.2rem;
        }
        .nav-links > li {
          position: relative;
        }
        .nav-links > li > a {
          padding: 0.6rem 1.2rem;
    font-weight: 700;
    color: #30439a;
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: transparent;
    white-space: nowrap;
        }

        .nav-links > li > a i {
              color: #32459d;
    font-size: 0.95rem;
          transition: color 0.2s;
        }
        .nav-links > li > a:hover {
              background: var(--gray-100);
                border-color: var(--gray-200);
                color: #2563eb;
        }
        .nav-links > li > a:hover i {
          color: var(--accent);
        }
        .nav-links > li > a::after {
          content: '';
          position: absolute;
          bottom: 8px;
          left: 50%;
          transform: translateX(-50%);
          width: 0;
          height: 2px;
          background: var(--accent);
          border-radius: 2px;
          transition: width 0.25s ease;
          opacity: 0.7;
        }
        .nav-links > li > a:hover::after {
          width: calc(100% - 2.4rem);
        }

        /* ========== 高级下拉菜单 · 固定对齐永不超出 ========= */
        .mega-menu {
          position: absolute;
          top: 120%;
          left: 0;
          background: rgba(255,255,255,0.98);
          backdrop-filter: blur(16px);
          -webkit-backdrop-filter: blur(16px);
          border: 1px solid var(--gray-200);
          border-radius: var(--radius-md);
          box-shadow: var(--shadow-lg);
          padding: 2rem;
          display: flex;
          flex-wrap: wrap;
          gap: 2rem;
          width: max-content;
          max-width: calc(100vw - 4rem);
          opacity: 0;
          visibility: hidden;
          transition: all 0.25s cubic-bezier(0.2,0,0,1);
          z-index: 1001;
        }
        /* 最后两个菜单项固定右对齐 */
        .nav-links > li:nth-last-child(1) .mega-menu,
        .nav-links > li:nth-last-child(2) .mega-menu {
          left: auto;
          right: 0;
        }
        .nav-links > li:hover .mega-menu {
          opacity: 1;
          visibility: visible;
          top: 100%;
        }

        .menu-column {
          flex: 0 1 auto;
          min-width: 170px;
        }
        .menu-column h3 {
          font-size: 0.8rem;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: 1px;
          color: var(--gray-400);
          margin-bottom: 1.2rem;
          padding-bottom: 0.4rem;
          border-bottom: 1px solid var(--gray-200);
        }
        .menu-column ul {
          list-style: none;
        }
        .menu-column li {
          margin-bottom: 0.8rem;
        }
        .menu-column a {
          color: var(--gray-600);
          text-decoration: none;
          display: flex;
          align-items: center;
          gap: 10px;
          font-size: 0.95rem;
          font-weight: 400;
          transition: all 0.2s;
          white-space: nowrap;
        }
        .menu-column a i {
          color: var(--gray-400);
          font-size: 0.8rem;
          width: 18px;
          transition: color 0.2s, transform 0.2s;
        }
        .menu-column a:hover {
          color: var(--accent);
          transform: translateX(5px);
        }
        .menu-column a:hover i {
          color: var(--accent);
        }

        .menu-image {
          background: var(--gray-100);
          border-radius: 16px;
          height: 160px;
          width: 200px;
          display: flex;
          align-items: center;
          justify-content: center;
          color: var(--gray-600);
          font-weight: 500;
          font-size: 0.95rem;
          border: 1px solid var(--gray-200);
          background-image: radial-gradient(circle at 30% 40%, var(--gray-300) 1px, transparent 1px);
          background-size: 16px 16px;
        }

        .mobile-toggle {
          display: none;
          font-size: 1.8rem;
          color: var(--gray-800);
          cursor: pointer;
          width: 48px;
          height: 48px;
          align-items: center;
          justify-content: center;
          border-radius: 12px;
          background: var(--gray-100);
        }

        /* ========== HERO 全屏轮播 ========= */
        .hero {
          padding: 0;
          min-height: 90vh;
          display: flex;
          align-items: center;
          position: relative;
          background: none !important;
          overflow: hidden;
        }
        .hero-slider {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          z-index: 1;
        }
        .hero-slide {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-size: cover;
          background-position: center;
          background-repeat: no-repeat;
          opacity: 0;
          transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
        }
        .hero-slide.active {
          opacity: 1;
        }
        .hero-overlay {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(10, 25, 47, 0.55);
          z-index: 2;
        }
        .hero .full-container {
          position: relative;
          z-index: 3;
          display: flex;
          align-items: center;
          justify-content: space-between;
          flex-wrap: wrap;
          gap: 3rem;
          padding: 5rem 2rem;
        }
        .hero-content {
          flex: 1 1 500px;
          color: white;
        }
        .hero-content h1 {
          font-size: 3.8rem;
          font-weight: 700;
          color: white;
          margin-bottom: 1.5rem;
          letter-spacing: -0.02em;
          line-height: 1.1;
          text-shadow: 0 4px 20px rgba(0,0,0,0.3);
        }
        .hero-content p {
          font-size: 1.25rem;
          color: rgba(255,255,255,0.9);
          margin-bottom: 2.5rem;
          max-width: 600px;
          text-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        .btn-group {
          display: flex;
          gap: 1rem;
          flex-wrap: wrap;
        }
        .btn {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          padding: 0.9rem 2.6rem;
          border-radius: 50px;
          font-weight: 600;
          text-decoration: none;
          transition: all 0.2s;
          background: white;
          color: var(--gray-900);
          border: 1px solid rgba(255,255,255,0.3);
        }
        .btn-outline {
          background: transparent;
          color: white;
          border: 1px solid rgba(255,255,255,0.6);
        }
        .btn:hover {
          transform: translateY(-2px);
          box-shadow: 0 16px 30px -8px rgba(0,0,0,0.3);
          background: white;
          color: var(--gray-900);
        }
        .btn-outline:hover {
          background: white;
          color: var(--gray-900);
          border-color: white;
        }

        /* ========== 各模块免费商用背景图 ========= */
        .about-section {
          background: linear-gradient(105deg, rgba(255,255,255,0.92), rgba(255,255,255,0.96)),
                      url('https://www.bjqykxy.com/m2/images/bg1.jpg') center/cover no-repeat !important;
        }
        .tabs-section {
          background: linear-gradient(112deg, rgba(255,255,255,0.9), rgba(255,255,255,0.95)),
                      url('https://www.bjqykxy.com/m2/images/bg2.jpg') center/cover no-repeat !important;
        }
        .category-showcase {
          background: linear-gradient(105deg, rgba(255,255,255,0.92), rgba(255,255,255,0.96)),
                      url('https://www.bjqykxy.com/m2/images/bg3.jpg') center/cover no-repeat !important;
        }
        .instruments-section {
          background: linear-gradient(115deg, rgba(255,255,255,0.9), rgba(255,255,255,0.94)),
                      url('https://www.bjqykxy.com/m2/images/bg4.jpg') center/cover no-repeat !important;
        }
        .services-section {
          background: linear-gradient(105deg, rgba(255,255,255,0.92), rgba(255,255,255,0.96)),
                      url('https://www.bjqykxy.com/m2/images/bg5.jpg') center/cover no-repeat !important;
        }
        .areas-section {
          background: linear-gradient(105deg, rgba(15,23,42,0.92), rgba(15,23,42,0.96)),
                      url('https://www.bjqykxy.com/m2/images/bg6.jpg') center/cover no-repeat !important;
        }
        .footer {
          background: linear-gradient(105deg, rgba(15,23,42,0.98), rgba(15,23,42,0.98)),
                      url('https://www.bjqykxy.com/m2/images/bg2.jpg') center/cover no-repeat !important;
        }

        /* ========== 全局卡片风格 ========= */
        .section-title {
          text-align: center;
          margin-bottom: 4rem;
        }
        .section-title h2 {
          font-size: 2.3rem;
          font-weight: 600;
          color: var(--gray-900);
          display: inline-block;
          position: relative;
          padding-bottom: 0.8rem;
        }
        .section-title h2:after {
          content: '';
          position: absolute;
          bottom: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 60px;
          height: 2px;
          background: var(--accent);
          border-radius: 2px;
        }

        .about-grid {
          display: flex;
          flex-wrap: wrap;
          gap: 4rem;
          align-items: center;
        }
        .about-image {
          flex: 1 1 280px;
          height: 360px;
          background: rgba(255,255,255,0.5);
          backdrop-filter: blur(4px);
          border-radius: 28px;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 1.5rem;
          font-weight: 500;
          color: var(--gray-800);
          border: 1px solid rgba(255,255,255,0.6);
          box-shadow: var(--shadow-sm);
        }
        .stats-mini {
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          gap: 1.2rem;
          margin-top: 2.5rem;
        }
        .stat-item {
          background: rgba(255,255,255,0.7);
          backdrop-filter: blur(4px);
          padding: 1.2rem 0.5rem;
          border-radius: 16px;
          text-align: center;
          border: 1px solid rgba(255,255,255,0.6);
        }
        .stat-item .number {
          font-size: 1.8rem;
          font-weight: 700;
          color: var(--accent);
        }
        .stat-item .label {
          font-size: 0.85rem;
          color: var(--gray-600);
        }

        /* ---------- 科研动态 · 分类切换 ---------- */
        .tabs-nav {
          display: flex;
          justify-content: center;
          flex-wrap: wrap;
          gap: 0.8rem;
          margin-bottom: 3rem;
        }
        .tab-btn {
          padding: 0.6rem 2rem;
          border: 1px solid var(--gray-200);
          background: white;
          border-radius: 40px;
          font-weight: 500;
          color: var(--gray-600);
          transition: all 0.2s;
          cursor: pointer;
        }
        .tab-btn.active, .tab-btn:hover {
          background: var(--gray-900);
          color: white;
          border-color: var(--gray-900);
        }
        .card-grid {
          display: grid;
          grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
          gap: 2rem;
        }
        .research-card,
        .science-card {
          display: block; /* 默认显示，JS切换隐藏 */
        }
        .info-card {
          background: white;
          border-radius: 24px;
          padding: 2rem;
          box-shadow: var(--shadow-xs);
          transition: all 0.25s;
          border: 1px solid var(--gray-200);
          height: 100%;
          display: flex;
          flex-direction: column;
        }
        .info-card:hover {
          transform: translateY(-5px);
          box-shadow: var(--shadow-md);
          border-color: var(--gray-300);
        }
        .card-meta {
          display: flex;
          justify-content: space-between;
          margin-bottom: 1rem;
          color: var(--gray-400);
          font-size: 0.85rem;
        }
        .card-cat {
          background: var(--accent-soft);
          color: var(--accent);
          padding: 0.2rem 1rem;
          border-radius: 20px;
          font-weight: 600;
        }
        .card-title {
          font-size: 1.35rem;
          font-weight: 600;
          margin-bottom: 0.8rem;
          color: var(--gray-900);
        }
        .read-more {
          color: var(--accent);
          font-weight: 600;
          text-decoration: none;
          display: inline-flex;
          align-items: center;
          gap: 6px;
          margin-top: 1.2rem;
        }

        /* ---------- 科学栏目分类 · 新版网格容器 ---------- */
        .category-wrapper {
          max-width: var(--max-width);
          margin: 0 auto;
          display: flex;
          gap: 2.5rem;
          flex-wrap: wrap;
        }
        .category-sidebar {
          flex: 0 0 280px;
          background: white;
          border-radius: 28px;
          padding: 2rem 1rem;
          box-shadow: var(--shadow-xs);
          border: 1px solid var(--gray-200);
          height: fit-content;
        }
        .category-header {
          display: flex;
          align-items: center;
          gap: 12px;
          margin-bottom: 1.8rem;
        }
        .category-header h3 {
          font-size: 1.2rem;
          font-weight: 600;
          color: var(--gray-900);
        }
        .category-list {
          list-style: none;
        }
        .category-item {
          margin-bottom: 4px;
        }
        .category-link {
          display: flex;
          align-items: center;
          padding: 0.7rem 1.2rem;
          border-radius: 12px;
          color: var(--gray-600);
          text-decoration: none;
          transition: all 0.15s;
          gap: 12px;
          font-weight: 500;
        }
        .category-link i {
          width: 22px;
          color: var(--gray-400);
        }
        .category-link.active,
        .category-link:hover {
          background: var(--gray-100);
          color: var(--gray-900);
        }
        .category-link.active i,
        .category-link:hover i {
          color: var(--accent);
        }
        .right-content {
          flex: 1;
          min-width: 300px;
        }
        .content-header {
          background: white;
          border-radius: 24px;
          padding: 2rem;
          margin-bottom: 2.2rem;
          box-shadow: var(--shadow-xs);
          border: 1px solid var(--gray-200);
        }
        .content-header h2 {
          font-size: 1.9rem;
          font-weight: 600;
          color: var(--gray-900);
          margin-bottom: 0.5rem;
        }

        /* 仪器轮播 */
        .instruments-grid {
          display: flex;
          flex-wrap: wrap;
          gap: 3rem;
          align-items: center;
        }
        .instruments-desc {
          flex: 1 1 300px;
        }
        .slider-container {
          flex: 1 1 400px;
          background: var(--gray-900);
          border-radius: 32px;
          padding: 2.8rem;
          color: white;
          height: 340px;
          display: flex;
          flex-direction: column;
          justify-content: flex-end;
          box-shadow: var(--shadow-lg);
        }
        .instrument-slide {
          display: none;
        }
        .instrument-slide.active {
          display: block;
        }
        .instrument-slide h4 {
          font-size: 2rem;
          font-weight: 600;
          margin-bottom: 0.8rem;
        }
        .slider-dots {
          display: flex;
          gap: 0.6rem;
          margin-top: 2rem;
        }
        .slider-dot {
          width: 8px;
          height: 8px;
          background: rgba(255,255,255,0.3);
          border-radius: 10px;
          transition: 0.2s;
          cursor: pointer;
        }
        .slider-dot.active {
          background: white;
          width: 28px;
        }

        .services-grid,
        .areas-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
          gap: 2rem;
        }
        .service-card,
        .area-card {
          background: white;
          border-radius: 24px;
          padding: 2.5rem 2rem;
          box-shadow: var(--shadow-xs);
          transition: all 0.25s;
          border: 1px solid var(--gray-200);
        }
.stat-item:hover{
transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

        .area-card:hover{
        transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
        }
        .service-card:hover {
          transform: translateY(-5px);
          box-shadow: var(--shadow-md);
          border-color: var(--accent);
        }
        .service-icon {
          font-size: 2.2rem;
          color: var(--accent);
          margin-bottom: 1.5rem;
        }
        .service-title {
          font-size: 1.5rem;
          font-weight: 600;
          margin-bottom: 0.8rem;
          color: var(--gray-900);
        }

        .areas-section .section-title h2 {
          color: white;
        }
        .areas-section .section-title h2:after {
          background: white;
        }
        .area-card {
          background: rgba(255,255,255,0.08);
          border: 1px solid rgba(255,255,255,0.1);
          color: white;
        }
        .area-card .area-icon {
          color: #94a3b8;
          font-size: 2.2rem;
        }
        .area-card .read-more {
          color: white;
          opacity: 0.8;
        }

        /* 高级页脚 */
        .footer {
          color: #e2e8f0;
          padding: 5rem 2rem 2rem;
          width: 100%;
        }
        .footer-grid {
          max-width: var(--max-width);
          margin: 0 auto;
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
          gap: 3rem;
        }
        .footer-col h3 {
          color: white;
          font-size: 1rem;
          font-weight: 600;
          margin-bottom: 1.5rem;
          letter-spacing: 0.3px;
          text-transform: uppercase;
          color: var(--gray-400);
        }
        .footer-links {
          list-style: none;
        }
        .footer-links li {
          margin-bottom: 0.8rem;
        }
        .footer-links a {
          color: #cbd5e1;
          text-decoration: none;
          transition: color 0.2s;
        }
        .footer-links a:hover {
          color: white;
        }
        .social-links {
          display: flex;
          gap: 1rem;
          margin-top: 1.5rem;
        }
        .social-links a {
          background: #1e293b;
          color: white;
          width: 38px;
          height: 38px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          transition: all 0.2s;
        }
        .social-links a:hover {
          background: var(--accent);
          transform: translateY(-2px);
        }
        .copyright {
          max-width: var(--max-width);
          margin: 3rem auto 0;
          padding-top: 2rem;
          border-top: 1px solid #1e293b;
          text-align: center;
          color: #64748b;
          font-size: 0.9rem;
        }

        /* ========== 响应式 ========= */
        @media (max-width: 1024px) {
          .nav-links > li > a {
            padding: 0.6rem 0.9rem;
            font-size: 0.95rem;
          }
        }
        @media (max-width: 900px) {
          .navbar {
            padding: 0 1.5rem;
          }
          .nav-links {
            display: none;
          }
          .mobile-toggle {
            display: flex;
          }
          .nav-links.active {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 80px;
            left: 0;
            width: 100%;
            background: white;
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--gray-200);
            padding: 1.5rem 2rem;
            box-shadow: var(--shadow-md);
          }
          .nav-links.active li {
            width: 100%;
          }
          .nav-links.active > li > a {
            padding: 1rem;
            justify-content: flex-start;
            white-space: normal;
          }
          .mega-menu {
            position: static;
            width: 100%;
            max-width: 100%;
            opacity: 1;
            visibility: visible;
            box-shadow: none;
            border: 1px solid var(--gray-200);
            background: var(--gray-50);
            margin-top: 0.8rem;
            padding: 1.5rem;
            border-radius: 20px;
            display: none;
            left: 0 !important;
            right: 0 !important;
          }
          .nav-links.active > li .mega-menu.show-mobile {
            display: flex;
            flex-wrap: wrap;
          }
          .menu-image {
            display: none;
          }
          .hero-content h1 {
            font-size: 2.6rem;
          }
        }
        @media (max-width: 600px) {
          .hero-content h1 {
            font-size: 2rem;
          }
          .btn-group .btn {
            width: 100%;
            text-align: center;
          }
          .stats-mini {
            grid-template-columns: repeat(2, 1fr);
          }
          .category-wrapper {
            flex-direction: column;
          }
          .category-sidebar {
            flex: auto;
            width: 100%;
          }
        }
        
        /* ---------- 文章详情页主容器 ---------- */
.article-section {
  width: 100%;
  padding: 4rem 2rem;
  background: linear-gradient(105deg, rgba(255,255,255,0.98), rgba(255,255,255,0.98)), 
              url('https://www.bjqykxy.com/m2/images/bg5.jpg') center/cover no-repeat;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .article-section { padding: 3rem 1.5rem; }
}
@media (max-width: 480px) {
  .article-section { padding: 2.5rem 1.25rem; }
}

/* ---------- 面包屑导航（与栏目页完全一致） ---------- */
.breadcrumb-nav {
  width: 100%;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.breadcrumb-item a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-item a:hover {
  color: var(--accent);
}
.breadcrumb-item a i {
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: color 0.2s;
}
.breadcrumb-item a:hover i {
  color: var(--accent);
}
.breadcrumb-item.separator {
  color: var(--gray-400);
  margin: 0 0.4rem;
}
.breadcrumb-item.separator i {
  font-size: 0.7rem;
}
.breadcrumb-item.active {
  color: var(--gray-900);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .breadcrumb-item { white-space: normal; }
  .breadcrumb-item.separator { margin: 0 0.2rem; }
}

/* ---------- 文章主网格 ---------- */
.article-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.article-main {
  flex: 2;
  min-width: 0; /* 防止flex溢出 */
}
.article-sidebar {
  flex: 1;
  min-width: 280px;
}

/* ---------- 文章头部 ---------- */
.article-header {
  margin-bottom: 2.5rem;
}
.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-item i {
  color: var(--gray-400);
}
.article-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.keyword-tag {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}
.keyword-tag:hover {
  background: var(--accent);
  color: white;
  cursor: default;
}

/* ---------- 文章内容 ---------- */
.article-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-800);
}
.article-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 2.2rem 0 1rem;
}
.article-content p {
  margin-bottom: 1.5rem;
}
.article-excerpt {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 1.5rem 1.8rem;
  background: var(--gray-50);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
}
.article-figure {
  margin: 2.5rem 0;
}
.abstract-diagram {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--gray-200);
}
.diagram-grid {
  width: 100%;
  height: 200px;
  background-image: 
    linear-gradient(var(--gray-300) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-300) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  position: relative;
}
.diagram-grid::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.diagram-caption {
  margin-top: 1.2rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-style: italic;
}
.article-quote {
  margin: 2.5rem 0;
  padding: 1.8rem 2rem;
  background: var(--off-white);
  border-radius: var(--radius-md);
  font-style: italic;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}
.article-quote p {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.article-quote cite {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-style: normal;
  display: block;
  text-align: right;
}

/* ---------- 文章底部 ---------- */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}
.share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.share-label {
  color: var(--gray-600);
  font-weight: 500;
}
.share-buttons {
  display: flex;
  gap: 0.8rem;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
}
.share-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.post-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.post-prev, .post-next {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 40px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.post-prev:hover, .post-next:hover {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: white;
  transform: translateX(-2px);
}
.post-next:hover {
  transform: translateX(2px);
}

/* ---------- 侧边栏卡片（统一风格） ---------- */
.sidebar-card {
  background: white;
  border-radius: 24px;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  margin-bottom: 2rem;
  transition: box-shadow 0.3s;
}
.sidebar-card:hover {
  box-shadow: var(--shadow-md);
}
.sidebar-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.sidebar-title i {
  color: var(--accent);
  font-size: 1.1rem;
}

/* 作者卡片 */
.author-card {
  text-align: center;
}
.author-card p {
  text-align: left!important;
}


.author-avatar {
  font-size: 4rem;
  color: var(--gray-400);
  margin-bottom: 0.8rem;
}
.author-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.8rem;
}
.author-bio {
  color: var(--gray-600);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.author-stats {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--gray-600);
  font-size: 0.9rem;
    margin-top: 1.5rem;
}
.author-stats i {
  margin-right: 4px;
  color: var(--gray-400);
}
.author-follow {
  display: inline-block;
  padding: 0.6rem 2rem;
  background: var(--accent);
  color: white;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--accent);
}
.author-follow:hover {
  background: white;
  color: var(--accent);
  transform: translateY(-2px);
}

/* 热门文章列表 */
.hot-list {
  list-style: none;
  margin: 0;
}
.hot-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--gray-200);
}
.hot-list li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
  flex: 1;
}
.hot-list li a:hover {
  color: var(--accent);
}
.hot-rank {
  width: 24px;
  height: 24px;
  background: var(--gray-100);
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}
.hot-count {
  color: var(--gray-500);
  font-size: 0.8rem;
  background: var(--gray-100);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

/* 相关推荐列表 */
.related-list {
  list-style: none;
}
.related-list li {
  margin-bottom: 0.9rem;
}
.related-list li a {
  color: var(--gray-700);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.related-list li a:hover {
  color: var(--accent);
  transform: translateX(5px);
  border-bottom-color: var(--accent-soft);
}

/* ---------- 评论区 ---------- */
.comments-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}
.comments-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.comments-title i {
  color: var(--accent);
}
.comments-list {
  margin-bottom: 2rem;
}
.comment-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--gray-200);
}
.comment-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 1.6rem;
}
.comment-content {
  flex: 1;
}
.comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}
.comment-author {
  font-weight: 600;
  color: var(--gray-900);
}
.comment-date {
  color: var(--gray-500);
  font-size: 0.8rem;
}
.comment-text {
  color: var(--gray-700);
  line-height: 1.5;
}
.comments-more {
  text-align: right;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .article-grid {
    flex-direction: column;
  }
  .article-sidebar {
    min-width: 100%;
  }
}
@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
  .article-content h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 600px) {
  .article-title {
    font-size: 1.8rem;
  }
  .article-meta {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .post-nav {
    flex-direction: column;
  }
  .post-prev, .post-next {
    width: 100%;
    justify-content: center;
  }
  .comment-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .comment-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

 /* ---------- 栏目页专属布局 · 与首页完全统一 ---------- */
  .archive-section {
    width: 100%;
    padding: 6rem 2rem;
    background: linear-gradient(105deg, rgba(255,255,255,0.96), rgba(255,255,255,0.98)), 
                url('https://www.bjqykxy.com/m2/images/bg5.jpg') center/cover no-repeat;
    background-attachment: fixed;
  }
  @media (max-width: 768px) {
    .archive-section { padding: 4rem 1.5rem; }
  }
  @media (max-width: 480px) {
    .archive-section { padding: 3rem 1.25rem; }
  }

  .archive-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
  }

  /* ---------- 左侧边栏 · 完美复刻首页侧边栏，增加热门区块 ---------- */
  .archive-sidebar {
    flex: 0 0 300px;
    width: 100%;
  }

  .sidebar-widget {
    background: white;
    border-radius: 28px;
    padding: 2rem 1.2rem;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
  }
  .sidebar-widget:hover {
    box-shadow: var(--shadow-md);
  }

  .widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.8rem;
  }
  .widget-header i {
    font-size: 1.4rem;
    color: var(--accent);
  }
  .widget-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
  }

  /* 栏目分类列表 - 直接复用.category-link样式，已全局定义，此处微调间距 */
  .sidebar-category-list {
    list-style: none;
  }
  .sidebar-category-list li {
    margin-bottom: 4px;
  }
  .sidebar-category-list .category-link {
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
  }
  .sidebar-category-list .category-link i {
    width: 22px;
    color: var(--gray-400);
  }
  .sidebar-category-list .category-link.active,
  .sidebar-category-list .category-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
  }
  .sidebar-category-list .category-link.active i,
  .sidebar-category-list .category-link:hover i {
    color: var(--accent);
  }

  /* ---------- 热门点击列表 · 丰富且精致 ---------- */
  .hot-articles-list {
    list-style: none;
    margin-bottom: 1.8rem;
  }
  .hot-articles-list li {
    margin-bottom: 1rem;
  }
  .hot-articles-list li a {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 16px;
    background: var(--gray-50);
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid transparent;
  }
  .hot-articles-list li a:hover {
    background: white;
    border-color: var(--gray-200);
    transform: translateX(5px);
    box-shadow: var(--shadow-xs);
  }
  .hot-rank {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 12px;
  }
  .hot-title {
    flex: 1;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
  .hot-count {
    flex-shrink: 0;
    background: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    margin-left: 8px;
  }

  /* 热门标签云 */
  .hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
  }
  .hot-tags .tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: default;
  }
  .hot-tags .tag:hover {
    background: var(--accent);
    color: white;
  }

  /* ---------- 右侧内容区 · 卡片网格 + 分页 ---------- */
  .archive-content {
    flex: 1;
    min-width: 0; /* 防止flex溢出 */
  }

  /* 卡片网格 — 直接复用全局.card-grid，但增强内部卡片一致性 */
  .archive-content .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
  }

  /* 卡片容器——保证所有卡片高度一致，内容溢出优雅处理 */
  .archive-card {
    display: block;
    height: 100%;
  }
  .archive-card .info-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-200);
    transition: all 0.25s cubic-bezier(0.2,0,0,1);
  }
  .archive-card .info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
  }
  .archive-card .card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--gray-400);
    font-size: 0.85rem;
  }
  .archive-card .card-cat {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-weight: 600;
  }
  .archive-card .card-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--gray-900);
    line-height: 1.3;
  }
  .archive-card .card-excerpt {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .archive-card .read-more {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
  }

  /* ---------- 高级分页组件 · 极简毛玻璃质感 ---------- */
  .pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
  }

  .pagination {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .page-prev,
  .page-next,
  .page-num,
  .page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6rem;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
  }

  .page-prev,
  .page-next {
    gap: 4px;
    padding: 0 1.2rem;
  }

  .page-num.active {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: white;
  }

  .page-num:hover:not(.active) {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-900);
  }

  .page-prev:hover:not(.disabled),
  .page-next:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-900);
  }

  .page-prev.disabled,
  .page-next.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: var(--gray-50);
  }

  .page-dots {
    border: none;
    background: transparent;
    pointer-events: none;
  }

  .page-info {
    color: var(--gray-600);
    font-size: 0.9rem;
  }

  /* ---------- 响应式适配 · 平板/移动端 ---------- */
  @media (max-width: 1024px) {
    .archive-wrapper {
      gap: 2rem;
    }
    .archive-sidebar {
      flex: 0 0 260px;
    }
  }

  @media (max-width: 900px) {
    .archive-wrapper {
      flex-direction: column;
    }
    .archive-sidebar {
      flex: auto;
      width: 100%;
    }
    .sidebar-widget {
      margin-bottom: 1.5rem;
    }
    .archive-content .card-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
    }
    .pagination-wrapper {
      flex-direction: column;
      align-items: flex-start;
    }
    .pagination {
      justify-content: center;
      width: 100%;
    }
  }

  @media (max-width: 600px) {
    .archive-content .card-grid {
      grid-template-columns: 1fr;
    }
    .page-prev,
    .page-next {
      padding: 0 0.8rem;
    }
    .hot-articles-list li a {
      padding: 0.5rem 0.6rem;
    }
    .hot-title {
      white-space: normal;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
  }
  
  /* ---------- 文章详情页主容器 ---------- */
.article-section {
  width: 100%;
  padding: 4rem 2rem;
  background: linear-gradient(105deg, rgba(255,255,255,0.98), rgba(255,255,255,0.98)), 
              url('https://www.bjqykxy.com/m2/images/bg5.jpg') center/cover no-repeat;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .article-section { padding: 3rem 1.5rem; }
}
@media (max-width: 480px) {
  .article-section { padding: 2.5rem 1.25rem; }
}

/* ---------- 面包屑导航（与栏目页完全一致） ---------- */
.breadcrumb-nav {
  width: 100%;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.breadcrumb-item a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-item a:hover {
  color: var(--accent);
}
.breadcrumb-item a i {
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: color 0.2s;
}
.breadcrumb-item a:hover i {
  color: var(--accent);
}
.breadcrumb-item.separator {
  color: var(--gray-400);
  margin: 0 0.4rem;
}
.breadcrumb-item.separator i {
  font-size: 0.7rem;
}
.breadcrumb-item.active {
  color: var(--gray-900);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .breadcrumb-item { white-space: normal; }
  .breadcrumb-item.separator { margin: 0 0.2rem; }
  .logo{
      width: 250px;
  }
}

/* ---------- 文章主网格 ---------- */
.article-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.article-main {
  flex: 2;
  min-width: 0; /* 防止flex溢出 */
}
.article-sidebar {
  flex: 1;
  min-width: 280px;
}

/* ---------- 文章头部 ---------- */
.article-header {
  margin-bottom: 2.5rem;
}
.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-item i {
  color: var(--gray-400);
}
.article-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.keyword-tag {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}
.keyword-tag:hover {
  background: var(--accent);
  color: white;
  cursor: default;
}

/* ---------- 文章内容 ---------- */
.article-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-800);
}
.article-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 2.2rem 0 1rem;
}
.article-content p {
  margin-bottom: 1.5rem;
}
.article-excerpt {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 1.5rem 1.8rem;
  background: var(--gray-50);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
}
.article-figure {
  margin: 2.5rem 0;
}
.abstract-diagram {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--gray-200);
}
.diagram-grid {
  width: 100%;
  height: 200px;
  background-image: 
    linear-gradient(var(--gray-300) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-300) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  position: relative;
}
.diagram-grid::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.diagram-caption {
  margin-top: 1.2rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-style: italic;
}
.article-quote {
  margin: 2.5rem 0;
  padding: 1.8rem 2rem;
  background: var(--off-white);
  border-radius: var(--radius-md);
  font-style: italic;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}
.article-quote p {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.article-quote cite {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-style: normal;
  display: block;
  text-align: right;
}

/* ---------- 文章底部 ---------- */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}
.share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.share-label {
  color: var(--gray-600);
  font-weight: 500;
}
.share-buttons {
  display: flex;
  gap: 0.8rem;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
}
.share-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.post-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.post-prev, .post-next {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 40px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.post-prev:hover, .post-next:hover {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: white;
  transform: translateX(-2px);
}
.post-next:hover {
  transform: translateX(2px);
}

/* ---------- 侧边栏卡片（统一风格） ---------- */
.sidebar-card {
  background: white;
  border-radius: 24px;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  margin-bottom: 2rem;
  transition: box-shadow 0.3s;
}
.sidebar-card:hover {
  box-shadow: var(--shadow-md);
}
.sidebar-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.sidebar-title i {
  color: var(--accent);
  font-size: 1.1rem;
}

/* 作者卡片 */
.author-card {
  text-align: center;
}
.author-card p {
  text-align: left!important;
}


.author-avatar {
  font-size: 4rem;
  color: var(--gray-400);
  margin-bottom: 0.8rem;
}
.author-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.8rem;
}
.author-bio {
  color: var(--gray-600);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.author-stats {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--gray-600);
  font-size: 0.9rem;
    margin-top: 1.5rem;
}
.author-stats i {
  margin-right: 4px;
  color: var(--gray-400);
}
.author-follow {
  display: inline-block;
  padding: 0.6rem 2rem;
  background: var(--accent);
  color: white;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--accent);
}
.author-follow:hover {
  background: white;
  color: var(--accent);
  transform: translateY(-2px);
}

/* 热门文章列表 */
.hot-list {
  list-style: none;
  margin: 0;
}
.hot-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--gray-200);
}
.hot-list li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
  flex: 1;
}
.hot-list li a:hover {
  color: var(--accent);
}
.hot-rank {
  width: 24px;
  height: 24px;
  background: var(--gray-100);
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}
.hot-count {
  color: var(--gray-500);
  font-size: 0.8rem;
  background: var(--gray-100);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

/* 相关推荐列表 */
.related-list {
  list-style: none;
}
.related-list li {
  margin-bottom: 0.9rem;
}
.related-list li a {
  color: var(--gray-700);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.related-list li a:hover {
  color: var(--accent);
  transform: translateX(5px);
  border-bottom-color: var(--accent-soft);
}

/* ---------- 评论区 ---------- */
.comments-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}
.comments-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.comments-title i {
  color: var(--accent);
}
.comments-list {
  margin-bottom: 2rem;
}
.comment-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--gray-200);
}
.comment-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 1.6rem;
}
.comment-content {
  flex: 1;
}
.comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}
.comment-author {
  font-weight: 600;
  color: var(--gray-900);
}
.comment-date {
  color: var(--gray-500);
  font-size: 0.8rem;
}
.comment-text {
  color: var(--gray-700);
  line-height: 1.5;
}
.comments-more {
  text-align: right;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .article-grid {
    flex-direction: column;
  }
  .article-sidebar {
    min-width: 100%;
  }
}
@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
  .article-content h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 600px) {
  .article-title {
    font-size: 1.8rem;
  }
  .article-meta {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .post-nav {
    flex-direction: column;
  }
  .post-prev, .post-next {
    width: 100%;
    justify-content: center;
  }
  .comment-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .comment-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
.slider-container a{
        color: white;
    text-decoration: auto;
}

    /* 重新定义幻灯片容器——允许图片并排，高度自适应 */
    .slider-container {
      display: flex;
      flex-direction: column;
      background: var(--gray-900);
      border-radius: 32px;
      padding: 2rem 2rem 1.8rem;
      color: white;
      box-shadow: var(--shadow-lg);
      min-height: 380px;  /* 增加高度以容纳图片 */
      transition: all 0.3s ease;
    }

    /* 幻灯片主体：flex 双栏布局，垂直居中 */
    .instrument-slide {
      display: none;
      flex: 1;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
    }

    .instrument-slide.active {
      display: flex;
    }

    /* 左侧文字区 */
    .slide-text {
      flex: 1.2;
      padding-right: 0.5rem;
    }

    .slide-text h4 {
      font-size: 1.9rem;
      font-weight: 600;
      margin-bottom: 0.8rem;
      line-height: 1.2;
    }

    .slide-text p {
      font-size: 1rem;
      opacity: 0.8;
      margin-bottom: 0;
    }

    /* 右侧图片区 */
    .slide-image {
      flex: 0.8;
      display: flex;
      justify-content: flex-end;
      align-items: center;
    }

    .slide-image img {
      width: 100%;
      max-width: 240px;
      height: auto;
      border-radius: 20px;
      box-shadow: 0 20px 30px -8px rgba(0, 0, 0, 0.5);
      border: 2px solid rgba(255, 255, 255, 0.1);
      transition: transform 0.4s ease, box-shadow 0.4s ease;
      object-fit: cover;
      aspect-ratio: 1.2 / 1;
    }

    .instrument-slide:hover .slide-image img {
      transform: scale(1.02);
      box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.6);
      border-color: rgba(255, 255, 255, 0.2);
    }

    /* 轮播指示点容器 */
    .slider-dots {
      display: flex;
      gap: 0.6rem;
      margin-top: 1.8rem;
      justify-content: center;
    }

    .slider-dot {
      width: 8px;
      height: 8px;
      background: rgba(255,255,255,0.3);
      border-radius: 10px;
      transition: 0.2s;
      cursor: pointer;
    }

    .slider-dot.active {
      background: white;
      width: 28px;
    }

    /* 平板响应式：图片适当缩小，文字调小 */
    @media (max-width: 992px) {
      .slider-container {
        padding: 1.8rem 1.8rem 1.5rem;
        min-height: 340px;
      }
      .slide-text h4 {
        font-size: 1.6rem;
      }
      .slide-image img {
        max-width: 200px;
      }
    }

    /* 移动端响应式：改为上下布局（图片置于文字下方） */
    @media (max-width: 700px) {
      .instrument-slide.active {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
      }
      .slide-text {
        padding-right: 0;
        width: 100%;
      }
      .slide-image {
        width: 100%;
        justify-content: center;
      }
      .slide-image img {
        max-width: 180px;
      }
      .slider-container {
        min-height: auto;
      }
    }
/* ---------- 分享按钮样式（保持原有，微调） ---------- */
.share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.share-label {
  color: var(--gray-600);
  font-weight: 500;
}
.share-buttons {
  display: flex;
  gap: 0.8rem;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- 微信二维码弹窗 ---------- */
.weixin-qrcode-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.weixin-qrcode-modal.active {
  display: flex;
}
.qrcode-content {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  max-width: 360px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.3s ease;
}
.qrcode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
}
.close-btn {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}
.close-btn:hover {
  color: var(--accent);
}
.qrcode-body {
  text-align: center;
}
.qrcode-image {
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.qrcode-image img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}
.qrcode-tip {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ---------- 复制提示 ---------- */
.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  white-space: nowrap;
}
.copy-toast.show {
  opacity: 1;
  visibility: visible;
}

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

/* 移动端适配 */
@media (max-width: 480px) {
  .qrcode-content {
    padding: 1.5rem;
  }
  .qrcode-image img {
    width: 160px;
    height: 160px;
  }
}

