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

    :root {
      
      --bg:           #f7f3ee;       
      --bg2:          #ede9e3;       
      --bg3:          #e0dbd3;       
      --text:         #3d3c37;       
      --text-muted:   #565656;       
      --text-subtle:  #9c9c9c;       
      --accent:       #2c6ef2;       
      --accent-hover: #2968d9;       
      --accent-light: #eef3fe;       
      --border:       #e5e5e5;       
      --divider:      #d5d0c8;       
      --nav-bg:       #ffffff;       
      --nav-text:     #1a1a1a;       
      --footer-bg:    #000000;       
      --footer-text:  #ffffff;
      --red:          #c53532;       
      --red-bg:       #fdf2f1;
      --red-border:   #f5c6c2;
      
      --gs-max:     1280px;
      --gs-px:      3rem;
    }

    
    .page-wrap {
      max-width: calc(var(--gs-max) + var(--gs-px) * 2);
      margin: 0 auto;
      width: 100%;
      padding-left: var(--gs-px);
      padding-right: var(--gs-px);
    }

    
    .gs-wrap {
      max-width: var(--gs-max);
      margin: 0 auto;
      width: 100%;
      padding-left: var(--gs-px);
      padding-right: var(--gs-px);
    }

    html { scroll-behavior: smooth; overflow-y: scroll; }

    

    body {
      font-family: 'Source Sans 3', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      padding-top: 56px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    
    p, li, span, div, button, input, a, label, td, th {
      font-family: 'Source Sans 3', sans-serif;
    }
    h1, h2, h3, h4, h5, h6 {
      font-family: 'Lora', serif;
      color: var(--text);
      letter-spacing: -0.01em;
    }

    

    
    nav {
      background: var(--nav-bg);
      color: var(--nav-text);
      height: 56px;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      border-bottom: 1px solid #e5e5e5;
    }

    .nav-inner {
      max-width: calc(var(--gs-max) + var(--gs-px) * 2);
      margin: 0 auto;
      padding: 0 var(--gs-px);
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-brand {
      font-family: 'Lora', serif;
      font-weight: 700;
      font-size: 1rem;
      letter-spacing: 0.02em;
      color: var(--nav-text);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .nav-logo {
      height: 28px;
      width: auto;
      display: block;
      object-fit: contain;
    }

    .nav-links {
      display: flex;
      gap: 2.2rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--nav-text);
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 500;
      transition: color 0.15s;
      letter-spacing: 0.01em;
      text-transform: none;
    }

    .nav-links a:hover { color: #000000; }

    
    main {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2.5rem var(--gs-px);
      max-width: calc(var(--gs-max) + var(--gs-px) * 2);
      margin: 0 auto;
      width: 100%;
    }

    .profile-card {
      display: flex;
      align-items: stretch;
      gap: 0;
      max-width: 760px;
      width: 100%;
      animation: fadeUp 0.6s ease both;
    }

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

    
    .profile-left {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      min-width: 200px;
      padding-right: 2.4rem;
      border-right: 1px solid var(--divider);
    }

    .avatar-wrapper {
      width: 140px;
      height: 140px;
      border-radius: 50%;
      overflow: hidden;
      border: 3px solid var(--border);
      margin-bottom: 1.1rem;
      background: var(--bg2);
    }

    .avatar-wrapper img,
    .avatar-photo {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .avatar-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #c5cdd9, #a0afc0);
    }

    .avatar-placeholder svg {
      width: 64px;
      height: 64px;
      opacity: 0.5;
    }

    .profile-name {
      font-family: 'Lora', serif;
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.3rem;
      letter-spacing: 0.01em;
    }

    .profile-title {
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.5;
      font-weight: 400;
    }

    
    .profile-right {
      padding-left: 2.4rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .profile-right h1 {
      font-family: 'Lora', serif;
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 1.2rem;
      letter-spacing: -0.01em;
    }

    .profile-right p {
      font-size: 1rem;
      line-height: 1.75;
      color: var(--text);
      margin-bottom: 1rem;
      font-weight: 400;
    }

    .profile-right p:last-child { margin-bottom: 0; }

    .profile-right a {
      color: var(--accent);
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s, color 0.2s;
    }

    .profile-right a:hover {
      color: var(--accent-hover);
      border-bottom-color: var(--accent-hover);
    }

    

    
    footer {
      background: var(--footer-bg);
      padding: 1.1rem 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-top: 1px solid rgba(255,255,255,0.08);
    }

    .social-icons {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .social-icons a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      transition: transform 0.2s, opacity 0.2s;
      text-decoration: none;
    }

    .social-icons a:hover {
      transform: translateY(-2px);
      opacity: 0.85;
    }

    .social-icons img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
    }

    
    .icon-btn {
      background: #555555;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .icon-btn svg {
      width: 20px;
      height: 20px;
      fill: white;
    }

    .linkedin-btn { background: #0077b5; }
    .github-btn   { background: #fff; }
    .github-btn svg { fill: var(--text); }
    .orcid-btn    { background: #a6ce39; }
    .orcid-btn svg { fill: white; }
    .email-btn    { background: #000f47; }
    .scholar-btn  { background: #4285f4; }

    .footer-copy {
      font-size: 0.75rem;
      color: rgba(255,255,255,0.45);
      letter-spacing: 0.04em;
      font-family: 'Source Sans 3', sans-serif;
    }

    
    .about-social {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-top: 1rem;
    }
    .about-social .icon-btn {
      width: 34px;
      height: 34px;
    }
    .about-social .icon-btn svg {
      width: 16px;
      height: 16px;
    }

    
    .logo-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 3rem;
      flex-wrap: wrap;
      margin-top: -1rem;
    }
    .logo-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      opacity: 0.7;
      transition: opacity 0.25s;
      white-space: nowrap;
    }
    .logo-item:hover { opacity: 1; }
    .logo-icon {
      width: 90px;
      height: 90px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .logo-icon svg { width: 100%; height: 100%; }
    .logo-icon img { width: 100%; height: 100%; object-fit: contain; }
    .logo-text-wrap { display: none; }
    .logo-name {
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: var(--text);
    }
    .logo-sub {
      font-size: 0.6rem;
      color: var(--text-muted);
    }

    
    .page { display: none; flex: 1; flex-direction: column; min-height: 0; }
    .page.active { display: flex; }

    

    
    .work-hero {
      background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('https://images.unsplash.com/photo-1612953293239-4befdc359b72?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') 50% 60%/cover no-repeat;
      background-attachment: fixed;
      text-align: center;
      padding: 6rem 2rem 5rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 380px;
      color: white;
    }
    .work-eyebrow {
      font-size: 0.82rem;
      font-weight: 600;
      color: #ffffff;
      letter-spacing: 0.06em;
      margin-bottom: 0.6rem;
      text-transform: uppercase;
      opacity: 0.95;
    }
    .work-hero h1 {
      font-family: 'Lora', serif;
      font-size: 2.8rem;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.2;
      margin-bottom: 1.2rem;
      max-width: var(--gs-max);
      text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .work-hero p {
      max-width: 580px;
      margin: 0 auto;
      font-size: 0.98rem;
      color: rgba(255,255,255,0.95);
      line-height: 1.7;
      width: 100%;
      text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    }

    
    .filter-bar {
      margin: -2rem auto 1.8rem;
      padding: 0.6rem 1.8rem;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: white;
      backdrop-filter: blur(8px);
      box-shadow: 0 4px 16px rgba(0,0,0,0.12);
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.6rem;
      flex-wrap: wrap;
      position: relative;
      z-index: 10;
      max-width: calc(var(--gs-max) - 3rem);
      width: 90%;
    }
    .filter-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text);
      margin-right: 0.4rem;
      white-space: nowrap;
    }
    .filter-btn {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.35rem 0.85rem;
      border-radius: 20px;
      border: 1px solid var(--border);
      background: var(--bg);
      font-size: 0.78rem;
      font-family: 'Source Sans 3', sans-serif;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.18s;
    }
    .filter-btn:hover { border-color: var(--accent); color: var(--accent); }
    .filter-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: white;
    }
    .filter-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

    
    .work-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.6rem;
      padding: 0 0 3rem;
    }
    @media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(3,1fr); } }
    @media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2,1fr); } }
    @media (max-width: 580px) { .work-grid { grid-template-columns: 1fr; padding: 0 0 2rem; } }
    .work-card {
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: visible;
      background: var(--bg);
      cursor: pointer;
      transition: box-shadow 0.2s, transform 0.2s;
      display: flex;
      flex-direction: column;
    }
    .work-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }

    .card-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--accent);
      background: var(--accent-light);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 0.2rem 0.6rem;
      margin: 0.8rem 0.8rem 0.4rem;
      width: fit-content;
    }
    .card-tag svg { width: 11px; height: 11px; }

    .card-img {
      width: 100%;
      aspect-ratio: 16/9;
      object-fit: cover;
      background: #e8eaed;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      font-size: 0.75rem;
    }
    .card-img-placeholder {
      width: 100%;
      aspect-ratio: 16/9;
      background: #e2e6ed;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border-radius: 10px 10px 0 0;
    }
    .card-img-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
    .work-card:hover .card-img-placeholder img { transform: scale(1.04); }
    .card-img-placeholder svg { opacity: 0.25; width: 36px; height: 36px; }

    .card-body { padding: 0.9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
    .card-title {
      font-family: 'Lora', serif;
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.4;
    }
    .card-excerpt {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.6;
      flex: 1;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .card-read-more {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      color: var(--accent);
      margin-top: 0.3rem;
    }
    .card-read-more svg { width: 13px; height: 13px; transition: transform 0.15s; }
    .work-card:hover .card-read-more svg { transform: translateX(3px); }

    
    #page-work-article { background: var(--bg); }

    .article-back {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.82rem;
      font-weight: 500;
      color: var(--text-muted);
      padding: 1rem 0 0;
      cursor: pointer;
      text-decoration: none;
      transition: color 0.15s;
      background: none; border: none;
      font-family: 'Source Sans 3', sans-serif;
    }
    .article-back:hover { color: var(--accent); }
    .article-back svg { width: 15px; height: 15px; }

    .article-hero {
      padding: 1.6rem 0 2rem;
    }
    .article-eyebrow {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 0.01em;
      text-transform: none;
      margin-bottom: 0.7rem;
    }
    .article-hero-title {
      font-family: 'Lora', serif;
      font-size: 2rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.25;
      margin-bottom: 1.1rem;
      max-width: calc(100% - 296px);
    }
    .article-hero-lead {
      font-size: 0.95rem;
      color: var(--text-muted);
      line-height: 1.75;
      border-left: 3px solid var(--accent);
      padding-left: 1rem;
      max-width: calc(100% - 296px);
    }

    .article-layout {
      display: flex;
      align-items: flex-start;
      gap: 2.4rem;
      padding: 0.8rem 0 4rem;
      width: 100%;
    }

    .article-main {
      flex: 1;
      min-width: 0;
    }

    .article-sidebar {
      width: 260px;
      flex-shrink: 0;
      position: sticky;
      top: 68px;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
    }

    .sidebar-section {
      padding: 1rem 1.2rem;
      border-bottom: 1px solid var(--border);
    }
    .sidebar-section:last-child { border-bottom: none; }

    .sidebar-label {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 0.6rem;
    }
    .sidebar-value {
      font-size: 0.83rem;
      color: var(--text);
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .sidebar-value svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
    .sidebar-tag-list { display: flex; flex-direction: column; gap: 0.35rem; }
    .sidebar-tag {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.8rem;
      color: var(--text);
    }
    .sidebar-tag svg { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }

    .article-cover {
      width: 100%;
      aspect-ratio: 16/9;
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 2rem;
      background: repeating-linear-gradient(
        45deg, #edf0f5 0px, #edf0f5 10px, #e2e6ed 10px, #e2e6ed 20px
      );
      display: flex; align-items: center; justify-content: center;
    }
    .article-cover img,
    .blog-article-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .article-cover svg { opacity: 0.15; width: 60px; height: 60px; }
    .grid-error {
      text-align: center;
      padding: 4rem 2rem;
      color: var(--text-subtle);
    }
    .grid-error p { margin-bottom: 0.5rem; font-size: 0.95rem; }

    .article-section { margin-bottom: 2rem; }
    .article-section-title {
      font-family: 'Lora', serif;
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.8rem;
    }
    .article-section p {
      font-size: 0.95rem;
      line-height: 1.85;
      color: var(--text);
      margin-bottom: 0.8rem;
    }
    .article-section ol,
    .article-section ul {
      padding-left: 1.5rem;
      margin-bottom: 0.8rem;
    }
    .article-section li {
      font-size: 0.95rem;
      line-height: 1.8;
      color: var(--text);
      margin-bottom: 0.5rem;
    }
    .article-section li strong { color: var(--text); font-weight: 600; }

    .article-blockquote {
      border-left: 4px solid var(--accent);
      background: var(--bg2);
      padding: 1.1rem 1.4rem;
      border-radius: 0 8px 8px 0;
      margin: 1.2rem 0;
    }
    .article-blockquote p {
      font-size: 0.95rem;
      line-height: 1.75;
      color: var(--text);
      margin: 0;
      font-style: italic;
    }

    @media (max-width: 820px) {
      .article-layout { flex-direction: column; padding: 1.4rem 1.5rem 3rem; }
      .article-sidebar { width: 100%; position: static; }

      .article-back { padding: 0.8rem 0 0; }
    }

    #page-blog-article { background: var(--bg); }

    .blog-article-back {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.82rem;
      font-weight: 500;
      color: var(--text-muted);
      padding: 1rem 2.5rem 0;
      cursor: pointer;
      background: none; border: none;
      font-family: 'Source Sans 3', sans-serif;
      transition: color 0.15s;
    }
    .blog-article-back:hover { color: var(--accent); }
    .blog-article-back svg { width: 15px; height: 15px; }

    .blog-article-wrap {
      max-width: 780px;
      margin: 0 auto;
      padding: 2.4rem 0 5rem;
      width: 100%;
    }

    .blog-article-tag {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1rem;
    }

    .blog-article-title {
      font-family: 'Lora', serif;
      font-size: 2.2rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.25;
      margin-bottom: 1.2rem;
      letter-spacing: -0.02em;
    }

    .blog-article-subtitle {
      font-size: 1.15rem;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 1.8rem;
      font-weight: 400;
    }

    .blog-article-meta-bar {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      margin-bottom: 2.4rem;
    }

    .blog-article-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, #c5cdd9, #a0afc0);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .blog-article-avatar svg { width: 20px; height: 20px; opacity: 0.5; }

    .blog-article-byline { flex: 1; }
    .blog-article-author {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text);
    }
    .blog-article-date {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-top: 0.1rem;
    }

    .blog-article-read-time {
      font-size: 0.78rem;
      color: var(--text-muted);
      padding-left: 1rem;
      border-left: 1px solid var(--border);
    }

    .blog-article-cover {
      width: 100%;
      aspect-ratio: 16/9;
      border-radius: 6px;
      overflow: hidden;
      background: repeating-linear-gradient(
        45deg, #edf0f5 0px, #edf0f5 10px, #e2e6ed 10px, #e2e6ed 20px
      );
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 2.4rem;
    }
    .blog-article-cover svg { opacity: 0.15; width: 56px; height: 56px; }

    .blog-article-body h2 {
      font-family: 'Lora', serif;
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--text);
      margin: 2.2rem 0 0.8rem;
      line-height: 1.3;
    }

    .blog-article-body p {
      font-size: 1.05rem;
      line-height: 1.85;
      color: var(--text);
      margin-bottom: 1.3rem;
      font-weight: 400;
    }

    .blog-article-body ul,
    .blog-article-body ol {
      padding-left: 1.6rem;
      margin-bottom: 1.3rem;
    }

    .blog-article-body li {
      font-size: 1.05rem;
      line-height: 1.8;
      color: var(--text);
      margin-bottom: 0.4rem;
    }

    .blog-article-body strong { color: var(--text); font-weight: 600; }

    .blog-article-blockquote {
      border-left: 3px solid var(--accent);
      padding: 0.2rem 0 0.2rem 1.4rem;
      margin: 1.8rem 0;
    }
    .blog-article-blockquote p {
      font-family: 'Lora', serif;
      font-size: 1.15rem;
      font-style: italic;
      color: var(--text);
      line-height: 1.7;
      margin: 0;
    }

    .blog-article-divider {
      border: none;
      border-top: 1px solid var(--border);
      margin: 2.4rem 0;
    }

    .blog-article-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 1.4rem;
      border-top: 1px solid var(--border);
      margin-top: 2.4rem;
    }
    .blog-article-tags-row {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    .blog-article-pill {
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      border: 1px solid var(--border);
      font-size: 0.75rem;
      color: var(--text-muted);
      background: var(--bg2);
    }

    @media (max-width: 600px) {
      .blog-article-title { font-size: 1.6rem; }
      .blog-article-wrap { padding: 1.6rem 1.2rem 4rem; }
      .blog-article-back { padding: 0.8rem 0 0; }
      .blog-article-body p,
      .blog-article-body li { font-size: 0.97rem; }
    }

    
    .blog-tabs {
      display: flex;
      align-items: center;
      gap: 0;
      padding: 0;
      border-bottom: 1px solid var(--border);
      margin-top: 1.4rem;
      position: relative;
    }
    .blog-tab {
      padding: 0.6rem 1.1rem;
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--text-muted);
      background: none;
      border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      font-family: 'Source Sans 3', sans-serif;
      transition: color 0.15s;
      margin-bottom: -1px;
    }
    .blog-tab:hover { color: var(--text); }
    .blog-tab.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
      font-weight: 600;
    }
    .blog-search-group {
      margin-left: auto;
      display: flex;
      align-items: center;
      flex-direction: row-reverse;
      gap: 0;
    }
    .blog-search-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-muted);
      padding: 0.4rem;
      display: flex;
      align-items: center;
      transition: color 0.15s;
      flex-shrink: 0;
    }
    .blog-search-btn:hover { color: var(--text); }
    .blog-search-btn svg { width: 18px; height: 18px; }

    .blog-search-bar {
      display: none;
      align-items: center;
      padding: 0 0.5rem 0 0;
      flex-shrink: 0;
    }
    .blog-search-bar.open { display: flex; }
    .blog-search-bar input {
      width: 200px;
      max-width: 260px;
      padding: 0.35rem 0.8rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      font-size: 0.88rem;
      font-family: 'Source Sans 3', sans-serif;
      background: var(--bg);
      color: var(--text);
      outline: none;
    }
    .blog-search-bar input:focus { border-color: var(--accent); }

    .blog-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.4rem;
      padding: 1.6rem 0 3rem;
    }
    @media (max-width: 1100px) { .blog-grid { grid-template-columns: repeat(3,1fr); } }
    @media (max-width: 760px)  { .blog-grid { grid-template-columns: repeat(2,1fr); } }
    @media (max-width: 480px)  { .blog-grid { grid-template-columns: 1fr; padding: 1rem 0; } }

    .blog-card {
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      background: var(--bg);
      cursor: pointer;
      transition: box-shadow 0.2s, transform 0.2s;
      display: flex;
      flex-direction: column;
    }
    .blog-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.09); transform: translateY(-2px); }

    .blog-card-img {
      width: 100%;
      aspect-ratio: 16/9;
      background: #e0e4eb;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
    .blog-card-img-inner {
      width: 100%;
      height: 100%;
      background: #e2e6ed;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .blog-card-img-inner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
    .blog-card:hover .blog-card-img-inner img { transform: scale(1.04); }
    .blog-card-img-inner svg { opacity: 0.2; width: 40px; height: 40px; }

    .blog-card-body { padding: 0.8rem 0.9rem 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }

    .blog-card-title-row {
      display: flex;
      align-items: flex-start;
      gap: 0.35rem;
    }
    .blog-card-star {
      color: var(--accent);
      font-size: 0.9rem;
      flex-shrink: 0;
      margin-top: 1px;
    }
    .blog-card-title {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.4;
      font-family: 'Source Sans 3', sans-serif;
    }
    .blog-card-excerpt {
      font-size: 0.75rem;
      color: var(--text-muted);
      line-height: 1.55;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .blog-card-meta {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-top: auto;
      padding-top: 0.4rem;
    }
    .blog-card-meta svg { width: 12px; height: 12px; flex-shrink: 0; }

    .blog-see-all {
      display: flex;
      padding: 0 0 2.5rem;
    }
    .blog-see-all-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.5rem 1.2rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--bg);
      font-size: 0.82rem;
      font-weight: 500;
      color: var(--text);
      cursor: pointer;
      font-family: 'Source Sans 3', sans-serif;
      transition: border-color 0.15s, background 0.15s;
    }
    .blog-see-all-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
    .blog-see-all-btn svg { width: 14px; height: 14px; }

    
    .research-outer {
      padding: 0 var(--gs-px);
      max-width: calc(var(--gs-max) + var(--gs-px) * 2);
      margin: 0 auto;
    }

    .research-wrap {
      max-width: 780px;
      margin: 0 auto;
      padding: 3rem 0 4rem;
      width: 100%;
    }
    .research-page-title {
      font-family: 'Lora', serif;
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      text-align: center;
      color: var(--text);
      margin-bottom: 2.2rem;
    }
    .research-section {
      margin-bottom: 2.4rem;
    }
    .research-section-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.2rem;
    }
    .research-section-title {
      font-family: 'Lora', serif;
      font-size: 1rem;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
    }
    .research-section-rule {
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    .research-item {
      margin-bottom: 1.4rem;
    }
    .research-item-title {
      font-size: 0.92rem;
      font-weight: 400;
      color: var(--accent);
      text-decoration: none;
      line-height: 1.5;
      transition: color 0.15s;
      display: inline;
      border-bottom: 1px solid transparent;
      transition: border-color 0.15s;
    }
    .research-item-title:hover {
      color: var(--accent-hover);
      border-bottom-color: var(--accent-hover);
    }
    .research-item-badge {
      display: inline;
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-left: 0.3rem;
    }
    .research-item-subtitle {
      font-size: 0.85rem;
      font-style: italic;
      font-weight: 600;
      color: var(--text);
      margin: 0.2rem 0 0.1rem;
    }
    .research-item-meta {
      list-style: disc;
      padding-left: 1.6rem;
      margin-top: 0.2rem;
    }
    .research-item-meta li {
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 0.1rem;
    }
    .research-item-meta li em { font-style: italic; color: var(--text); }
    .abstract-toggle {
      background: none;
      border: none;
      color: var(--accent);
      font-size: 0.82rem;
      cursor: pointer;
      padding: 0;
      font-family: 'Source Sans 3', sans-serif;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .abstract-toggle:hover { color: var(--accent-hover); }
    .abstract-text {
      display: none;
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.7;
      margin-top: 0.5rem;
      padding: 0.8rem 1rem;
      background: var(--bg2);
      border-left: 3px solid var(--accent);
      border-radius: 0 6px 6px 0;
    }
    .abstract-text.open { display: block; }

    
    @media (max-width: 1024px) {
      :root { --gs-px: 2.5rem; }
      
      .work-hero { padding: 2.8rem var(--gs-px) 2rem; background-attachment: scroll; }
      .work-hero h1 { font-size: 2.1rem; }
      .filter-bar { margin: 1.4rem 0; width: 100%; max-width: 100%; }
      .work-grid { grid-template-columns: repeat(3,1fr); padding: 0 0 2.5rem; }

      
      .article-layout { padding: 2rem 0 3rem; gap: 2rem; }
      .article-sidebar { width: 220px; }
      .article-hero { padding: 1.4rem 0 1.4rem; }
      .article-hero-title { font-size: 1.7rem; max-width: calc(100% - 252px); }
      .article-hero-lead { max-width: calc(100% - 252px); }

      
      .blog-tabs { padding: 0; }
      .blog-search-bar { padding: 0.8rem 0; }
      .blog-grid { grid-template-columns: repeat(3,1fr); padding: 1.4rem 0 2.5rem; gap: 1.2rem; }
      .blog-see-all { padding: 0 0 2rem; }

      
      .blog-article-wrap { padding: 2rem 0 4rem; }
      .blog-article-back { padding: 1rem 2.5rem 0; }
      .blog-article-title { font-size: 1.9rem; }

      
      .research-outer {
      padding: 0 var(--gs-px);
      max-width: calc(var(--gs-max) + var(--gs-px) * 2);
      margin: 0 auto;
    }

    .research-wrap { padding: 2.5rem 0 3rem; }

      
      .article-back { padding: 1rem 2.5rem 0; }
    }

    
    @media (max-width: 768px) {
      :root { --gs-px: 1.5rem; }
      
      nav { height: 52px; }
      body { padding-top: 52px; }
      .nav-links a { font-size: 0.82rem; }
      .nav-inner { padding: 0 var(--gs-px); }

      
      main { padding: 2rem var(--gs-px); }
      .profile-card { flex-direction: column; align-items: center; gap: 1.8rem; }
      .profile-left {
        border-right: none;
        border-bottom: 1px solid var(--divider);
        padding-right: 0;
        padding-bottom: 1.6rem;
        width: 100%;
      }
      .profile-right { padding-left: 0; }
      .profile-right h1 { font-size: 1.5rem; }
      .logo-row { justify-content: center; }

      
      .work-hero { padding: 2.2rem var(--gs-px) 1.8rem; }
      .work-hero h1 { font-size: 1.8rem; }
      .work-hero p { font-size: 0.88rem; }
      .filter-bar { margin: 1.2rem 0; width: 100%; max-width: 100%; }
      .work-grid { grid-template-columns: repeat(2,1fr); padding: 0 0 2rem; gap: 1rem; }

      
      .article-back { padding: 0.8rem 0 0; }

      .article-hero-title { font-size: 1.5rem; max-width: 100%; }
      .article-hero-lead { font-size: 0.9rem; max-width: 100%; }
      .article-layout { flex-direction: column; padding: 1.4rem 0 3rem; gap: 1.6rem; }
      .article-sidebar { width: 100%; position: static; }
      .article-cover { border-radius: 8px; }

      
      .blog-tabs { padding: 0; }
      .blog-search-bar { padding: 0.7rem var(--gs-px); }
      .blog-grid { grid-template-columns: repeat(2,1fr); padding: 1.2rem 1.5rem 2rem; gap: 1rem; }
      .blog-see-all { padding: 0 0 1.8rem; }

      
      .blog-article-back { padding: 0.8rem 0 0; }
      .blog-article-wrap { padding: 1.6rem 1.5rem 3.5rem; }
      .blog-article-title { font-size: 1.6rem; }
      .blog-article-subtitle { font-size: 1rem; }
      .blog-article-body p,
      .blog-article-body li { font-size: 0.97rem; }
      .blog-article-body h2 { font-size: 1.2rem; }

      
      .research-outer {
      padding: 0 var(--gs-px);
      max-width: calc(var(--gs-max) + var(--gs-px) * 2);
      margin: 0 auto;
    }

    .research-wrap { padding: 2rem 0 2.5rem; }
      .research-page-title { font-size: 0.95rem; }
      .research-section-title { font-size: 0.9rem; }
    }

    
    @media (max-width: 480px) {
      :root { --gs-px: 1rem; }
      
      nav { height: 50px; }
      body { padding-top: 50px; }
      .nav-brand { font-size: 0.88rem; }
      .nav-links { gap: 0.9rem; }
      .nav-links a { font-size: 0.75rem; }

      
      main { padding: 1.6rem var(--gs-px); }
      .avatar-wrapper { width: 110px; height: 110px; }
      .profile-name { font-size: 1rem; }
      .profile-right h1 { font-size: 1.3rem; }
      .profile-right p { font-size: 0.9rem; }

      
      .work-hero { padding: 1.8rem var(--gs-px) 1.5rem; }
      .work-hero h1 { font-size: 1.5rem; }
      .filter-bar { margin: 1rem 0; flex-wrap: wrap; width: 100%; max-width: 100%; }
      .work-grid { grid-template-columns: 1fr; padding: 0 0 1.8rem; }
      .card-title { font-size: 0.9rem; }

      
      .article-back { padding: 0.8rem 0 0; font-size: 0.78rem; }
      .article-hero { padding: 1.2rem 1rem 1.2rem; }
      .article-hero-title { font-size: 1.3rem; }
      .article-layout { padding: 1.2rem 0 2.5rem; }
      .article-section-title { font-size: 1.1rem; }
      .article-section p,
      .article-section li { font-size: 0.88rem; }

      
      .blog-tabs { padding: 0; }
      .blog-tab { font-size: 0.82rem; padding: 0.5rem 0.8rem; }
      .blog-search-bar { padding: 0.7rem var(--gs-px); }
      .blog-grid { grid-template-columns: 1fr; padding: 1rem 1rem 1.8rem; gap: 1rem; }
      .blog-see-all { padding: 0 var(--gs-px) 1.5rem; }
      .blog-card-title { font-size: 0.83rem; }
      .blog-card-excerpt { font-size: 0.72rem; }

      
      .blog-article-back { padding: 0.8rem var(--gs-px) 0; font-size: 0.78rem; }
      .blog-article-wrap { padding: 1.2rem 0 3rem; }
      .blog-article-title { font-size: 1.4rem; }
      .blog-article-subtitle { font-size: 0.92rem; }
      .blog-article-body p,
      .blog-article-body li { font-size: 0.93rem; line-height: 1.75; }
      .blog-article-body h2 { font-size: 1.1rem; margin-top: 1.8rem; }
      .blog-article-meta-bar { flex-wrap: wrap; gap: 0.7rem; }
      .blog-article-read-time { border-left: none; padding-left: 0; }

      
      .research-outer {
      padding: 0 var(--gs-px);
      max-width: calc(var(--gs-max) + var(--gs-px) * 2);
      margin: 0 auto;
    }

    .research-wrap { padding: 1.5rem 0 2rem; }
      .research-item-title { font-size: 0.85rem; }
      .research-item-meta li { font-size: 0.78rem; }

      
      footer { padding: 0.9rem 1rem; }
      .footer-copy { font-size: 0.68rem; }
    }

    
    @media (max-width: 360px) {
      .nav-links { gap: 0.6rem; }
      .nav-links a { font-size: 0.7rem; }
      .work-hero h1 { font-size: 1.3rem; }
      .blog-article-title { font-size: 1.2rem; }
      .article-hero-title { font-size: 1.15rem; }
    }