
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    /* 优化基础色调为极简白灰色系 */
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --primary: #111827; /* 主色调改为深沉的近黑色，提升高级感 */
    --primary-hover: #374151;
    --primary-light: #eef2f6;
    --surface-soft: #f8fafc;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --header-height: 80px; /* 稍微增高导航栏，增加呼吸感 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body { 
    font-family: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-color); 
    background-image:
      radial-gradient(circle at 12% 8%, rgba(148, 163, 184, 0.14), transparent 22%),
      radial-gradient(circle at 88% 4%, rgba(15, 23, 42, 0.05), transparent 18%),
      linear-gradient(180deg, #f8fafc 0%, #f4f6f8 100%);
    color: var(--text-main); 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========== 按钮系统 ========== */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
    padding: 0.625rem 1.25rem; 
    border-radius: var(--radius-sm); 
    font-size: 0.9rem; 
    font-weight: 500; 
    cursor: pointer; 
    transition: var(--transition); 
    border: 1px solid transparent; 
    text-decoration: none; 
    min-height: 44px;
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--text-main); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; }

.btn-sm { padding: 0.5rem 0.875rem; font-size: 0.8rem; min-height: 36px; }
.btn-text { background: transparent; color: var(--text-muted); padding: 0.5rem; }
.btn-text:hover { color: var(--primary); background: var(--primary-light); }
.btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ========== 表单系统 ========== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); }
.form-input { 
    width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); 
    border-radius: var(--radius-sm); font-size: 0.95rem; outline: none; 
    transition: var(--transition); background: white; min-height: 44px;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1); }
.form-input:read-only { background: var(--border-light); color: var(--text-muted); cursor: not-allowed; }

/* ========== 导航栏 (优化为居中极简风格) ========== */
.navbar { 
    height: var(--header-height); 
    background: rgba(248, 250, 252, 0.86);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    justify-content: flex-start; /* 为绝对居中做准备 */
    padding: 0 3rem; 
    position: sticky;
    top: 0;
    z-index: 40; 
}

.brand { 
    font-weight: 800; 
    font-size: 1.2rem; 
    color: var(--text-main); 
    display: flex; 
    align-items: center; 
    gap: 0.1rem; 
}
.brand i { color: var(--text-main); font-size: 1.2rem; }

/* 将导航链接绝对居中，匹配图片效果 */
.nav-links { 
    display: flex; 
    gap: 2rem; 
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-links a { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    font-weight: 500;
    padding: 0.5rem 0;
    border-radius: 0;
    transition: var(--transition); 
    background: transparent !important; /* 强制覆盖原有背景 */
}
/* 隐藏导航栏中原有的图标，以匹配参考图中纯文字的极简设计 */
.nav-links a i { display: none; }

.nav-links a:hover { color: var(--text-main); }
/* 活动状态改为图片中的下划线 */
.nav-links a.active { 
    color: var(--text-main); 
    border-bottom: 2px solid var(--text-main);
}
.nav-link-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}
.nav-link-text {
    display: inline-block;
}
.nav-link-tag {
    position: absolute;
    top: -13px;
    right: -20px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
    transform: scale(0.92);
    pointer-events: none;
}

/* 下拉菜单 (保持功能) */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-trigger { cursor: pointer; }
.dropdown-content {
    display: none; position: absolute; background-color: white; min-width: 180px;
    box-shadow: var(--shadow-lg); z-index: 100; border-radius: var(--radius-sm);
    border: 1px solid var(--border); top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%); overflow: hidden;
}
.dropdown-content a { color: var(--text-muted); padding: 0.75rem 1rem; display: block; }
.dropdown-content a:hover { background-color: var(--primary-light); color: var(--primary); }
.dropdown-content .nav-link-inner { overflow: visible; }
.dropdown-content .nav-link-tag {
    position: static;
    margin-left: 6px;
    top: auto;
    right: auto;
    transform: none;
}
.nav-dropdown:hover .dropdown-content { display: block; }

.nav-item-wrapper { display: flex; align-items: center; }

/* ========== Hero 模块 (彻底重构为参考图的光滑白底极简风) ========== */
.hero { 
    background: transparent; /* 去除原本的深色渐变 */
    color: var(--text-main); 
    padding: 1.5rem 1.5rem 1rem;
    text-align: center; 
    position: relative;
}
/* 移除原有的装饰性发光光圈 */
.hero::before, .hero::after { display: none; }

.hero-content { 
    max-width: 860px; 
    margin: 0 auto; 
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.08);
    margin-bottom: 1.25rem;
}

/* 隐藏原有大标题图标，调整字体使其宏大现代 */
.hero h1 i { display: none; }
.hero h1 { 
    font-size: clamp(2.25rem, 5vw, 3.7rem); 
    font-weight: 700; 
    margin-bottom: 1rem; 
    letter-spacing: -0.03em; 
    line-height: 1.1;
    color: var(--text-main);
}
.hero p { 
    color: var(--text-muted); 
    font-size: 1.06rem; 
    margin-bottom: 2rem; 
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* ========== 统计数据 ========== */
.stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.stat-item i {
    opacity: 0.6;
    font-size: 0.82rem;
}

/* 搜索框 (极致简约：只有一条底线) */
.hero .search-box { max-width: 500px; margin: 0 auto; }
.search-wrapper { position: relative; width: 100%; margin-top: 1rem; }
.search-box { position: relative; width: 100%; }

.hero .search-input { 
    background: transparent; 
    border: none;
    border-bottom: 1px solid var(--border); 
    color: var(--text-main); 
    padding: 0.875rem 1rem 0.875rem 2.5rem; 
    font-size: 1.05rem; 
    border-radius: 0;
    width: 100%;
    transition: var(--transition);
}
.hero .search-input::placeholder { color: var(--text-light); font-weight: 300; }
.hero .search-input:focus { 
    border-bottom-color: var(--primary);
    outline: none;
    box-shadow: none; /* 移除之前的外发光 */
}

.search-icon { 
    position: absolute; 
    left: 0.5rem; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--text-light); 
    width: 18px; 
    height: 18px; 
    pointer-events: none;
}

/* 搜索结果悬浮框优化 */
.search-results-popover {
    position: absolute; top: calc(100% + 2px); left: 0; width: 100%;
    background: white; border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); z-index: 50; display: none; padding: 0.5rem 0; 
    max-height: 320px; overflow-y: auto; text-align: left;
}
.search-item { 
    padding: 0.75rem 1.25rem; cursor: pointer; font-size: 0.95rem; 
    display: flex; justify-content: space-between; align-items: center; 
    transition: var(--transition); color: var(--text-main);
}
.search-item:hover { background: var(--primary-light); padding-left: 1.5rem; }

.search-helper {
    margin-top: 0.85rem;
    font-size: 0.86rem;
    color: var(--text-light);
}

/* ========== 分类筛选 (文字形态的筛选器) ========== */
.category-filter {
    display: flex;
    justify-content: center;
    column-gap: 2.2rem;
    row-gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 3.25rem;
    padding: 0.1rem 0.5rem;
    border-bottom: 1px solid var(--border);
}

.category-filter .btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 0.55rem 0.2rem 0.7rem;
    min-height: auto;
    border-radius: 0;
    box-shadow: none !important;
    position: relative;
}
.category-filter .btn:hover {
    color: var(--text-main);
    background: transparent !important;
    transform: none;
}
.category-filter .btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}
.category-filter .btn:hover::after {
    transform: scaleX(0.65);
}
.category-filter .btn.active {
    color: var(--text-main);
}
.category-filter .btn.active::after {
    transform: scaleX(1);
}


/* ========== 容器与网格 ========== */
.container { 
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 3rem;
    min-height: calc(100vh - var(--header-height)); 
}
.home-section-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.15rem;
}
.home-section-intro p {
    font-size: 0.88rem;
    color: var(--text-muted);
}
.home-section-intro .stats .stat-item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.72rem;
}
.home-section-intro .stats .stat-item i {
    color: var(--text-light);
}
.project-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 2.15rem; justify-content: center; 
}

/* ========== 项目卡片 (更清爽扁平) ========== */
.project-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-light); 
    border-radius: var(--radius-lg); 
    padding: 2rem; 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.project-card:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--border); 
}

.card-category { 
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    color: #334155;
    border: 1px solid #dbe4ee;
    padding: 0.22rem 0.65rem 0.22rem 0.72rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    z-index: 12;
    text-transform: uppercase;
    line-height: 1.2;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-category::before {
    content: "";
    position: absolute;
    left: 0.34rem;
    top: 0.34rem;
    bottom: 0.34rem;
    width: 2px;
    border-radius: 2px;
    background: #94a3b8;
}
.card-badge { 
    position: absolute; top: 1rem; 
    background: var(--primary-light); color: white; 
    padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.7rem; font-weight: 600; 
    z-index: 10; text-transform: uppercase; box-shadow: none;
}
.card-badge { right: 1rem;}

.card-icon { 
    width: 64px; height: 64px; background: var(--bg-color); 
    border-radius: 10%; display: flex; align-items: center; justify-content: center; 
    margin-bottom: 1.25rem; color: var(--text-main); font-size: 1.5rem; 
    transition: var(--transition); border: 1px solid var(--border-light);
}
.card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10%;}
.card-icon.has-image { background: transparent; border: none; }
.project-card:hover .card-icon { transform: scale(1.05); }

.card-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); }
.card-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.375rem; justify-content: center; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: auto; justify-content: center; width: 100%; }

/* ========== 公告栏 ========== */
.announcement-bar {
    margin: 0;
    padding: 0.65rem 1.5rem 0.2rem;
    background: transparent;
    display: flex;
    justify-content: center;
}
.announcement-container {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 1200px;
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(6px);
    overflow-x: auto;
    scrollbar-width: thin;
    flex-direction: column;      /* 改为垂直排列 */
}
.announcement-container::before {
    content: "公告";
    flex: 0 0 auto;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.08);
    display: none;
}
.announcement-capsule {
    --ann-bg: #f1f5f9;
    --ann-fg: #334155;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: var(--transition);
    background: var(--ann-bg);
    color: var(--ann-fg);
    /* max-width: min(430px, 85vw);*/
    white-space: normal;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);

     width: 100%;                  /* 撑满容器宽度 */
            max-width: none;               /* 移除任何最大宽度限制 */
            white-space: normal;            /* 允许换行 */
            word-break: break-word;         /* 防止长单词溢出 */
            box-sizing: border-box;          /* 保证padding不撑大宽度 */
}
.announcement-capsule:hover {
    border-color: rgba(15, 23, 42, 0.14);
    transform: translateY(-1px);
}
.announcement-capsule b {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: 0.15rem;
    padding-right: 0.45rem;
    position: relative;
    font-weight: 700;
    font-size: 0.74rem;
    white-space: nowrap;
    max-width: none;           /* 移除宽度限制 */
   white-space: normal;       /* 允许换行 */
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: none;
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
}
.announcement-capsule b::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 1px;
    height: 72%;
    background: currentColor;
    opacity: 0.28;
    transform: translateY(-50%);
}
.announcement-capsule .content {
    font-size: 0.8rem;
    color: inherit;
    opacity: 0.92;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: none;
    white-space: normal;
     max-width: none;
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
}
.announcement-capsule .content p {
    display: inline;
    margin: 0;
}
.announcement-capsule .content br {
    display: none;
}
.announcement-capsule .content ul,
.announcement-capsule .content ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.announcement-capsule .content li {
    display: inline-flex;
    align-items: center;
}
.announcement-capsule .content li + li::before {
    content: "·";
    margin-right: 0.4rem;
    color: inherit;
    opacity: 0.55;
}
@media (max-width: 768px) {
  .announcement-container {
    flex-wrap: wrap;          /* 允许换行 */
    overflow-x: visible;      /* 取消水平滚动 */
    gap: 0.6rem;              /* 增加间距 */
    padding: 0.8rem;          /* 适当增加内边距 */
  }
  
  .announcement-capsule {
    flex: 1 1 auto;           /* 允许伸缩，占满宽度 */
    width: 100%;              /* 或者使用 min-width: 100% 使每个胶囊独占一行 */
    min-width: 100%;          /* 强制每个胶囊占满容器宽度 */
    white-space: normal;
    box-sizing: border-box;
  }
  
  /* 可选的标题和内容字体调整 */
  .announcement-capsule b,
  .announcement-capsule .content {
    font-size: 0.9rem;        /* 稍微增大字体方便阅读 */
  }
}

 @media (max-width: 768px) {
            .announcement-container {
                gap: 0.6rem;
                padding: 0.8rem;
            }
            .announcement-capsule b,
            .announcement-capsule .content {
                font-size: 0.85rem;  /* 略微增大字体 */
            }
/* ========== 分页器 ========== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.375rem; margin-top: 4rem; margin-bottom: 2rem; flex-wrap: wrap; }
.page-btn { 
    min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; 
    border: none; background: transparent; border-radius: var(--radius-sm); cursor: pointer; 
    font-size: 0.95rem; font-weight: 500; transition: var(--transition); color: var(--text-muted); 
}
.page-btn.active { background: var(--primary-light); color: var(--text-main); font-weight: 600; }
.page-btn:hover:not(.active) { color: var(--text-main); background: var(--bg-color); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.pagination-jump { display: flex; align-items: center; gap: 0.5rem; margin-left: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.pagination-jump input { width: 48px; padding: 0.25rem; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; outline: none; }
.pagination-jump input:focus { border-color: var(--text-light); }
.pagination-jump button { padding: 0.25rem 0.75rem; border: none; background: var(--primary-light); border-radius: var(--radius-sm); cursor: pointer; color: var(--text-main); }
.pagination-jump button:hover { background: #e5e7eb; }

/* ========== 辅助组件 (Modal, Tooltip, Toast, Loading) ========== */
/* ... 这些基本保持原样，只微调色彩以适应整体风格 ... */
.has-tooltip { position: relative; cursor: pointer; }
.tooltip-content { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-10px); background: var(--text-main); color: white; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; white-space: normal; min-width: 200px; max-width: 320px; opacity: 0; visibility: hidden; transition: var(--transition); box-shadow: var(--shadow-lg); z-index: 10000; }
.tooltip-content {
  padding: 0.85rem 1.1rem;
  line-height: 1.65;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}

.tooltip-content p { margin: 0; }
.tooltip-content p + p { margin-top: 0.45rem; }

.tooltip-content ul,
.tooltip-content ol {
  margin: 0.35rem 0 0;
  padding-left: 1.35rem;   /* 关键：给富文本列表左缩进 */
  list-style-position: outside;
}

.tooltip-content ul { list-style-type: disc; }
.tooltip-content ol { list-style-type: decimal; }
.tooltip-content li + li { margin-top: 0.25rem; }

.tooltip-content::before { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border-width: 6px; border-style: solid; border-color: transparent transparent var(--text-main) transparent; }
.has-tooltip:hover > .tooltip-content { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 100; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: var(--transition); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box { background: white; width: 90%; max-width: 420px; padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); transform: scale(0.95); transition: var(--transition); }
.modal-overlay.active .modal-box { transform: scale(1); }

.toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 2000; display: flex; flex-direction: column; gap: 0.75rem; }
.toast { background: white; padding: 1rem 1.5rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); border-left: 4px solid var(--text-main); font-size: 0.9rem; animation: slideIn 0.3s ease; max-width: 320px; color: var(--text-main); }
.toast.error { border-left-color: #ef4444; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.loading-indicator { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; color: var(--text-muted); grid-column: 1 / -1; width: 100%; }
.loading-spinner { width: 36px; height: 36px; border: 2px solid var(--border); border-top-color: var(--text-main); border-radius: 50%; animation: loading-spin 0.8s linear infinite; margin-bottom: 1rem; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 0.9rem; font-weight: 500; }

.hidden { display: none !important; }

/* ========== 响应式设计 - 移动端优先 ========== */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: var(--header-height);
        padding: 0.55rem 0.9rem 0.45rem;
        justify-content: flex-start;
        align-items: stretch;
        flex-direction: column;
        gap: 0.45rem;
    }
    .brand {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.25;
        white-space: normal;
    }
    .nav-links {
        position: static;
        transform: none;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem 0.5rem;
        justify-content: stretch;
        overflow: visible;
        white-space: normal;
        padding-bottom: 0;
    }
    .nav-item-wrapper,
    .nav-dropdown {
        min-width: 0;
        display: block;
    }
    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        text-align: center;
        line-height: 1.25;
        white-space: normal;
        padding: 0.4rem 0.35rem;
        font-size: 0.82rem;
    }
    .nav-link-inner {
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-link-tag {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        margin-left: 0.35rem;
    }
    
    .hero { padding: 3rem 1rem 2.5rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; margin-bottom: 1.5rem; }
    
    .home-section-intro { margin-bottom: 1rem; gap: 0.75rem; }
    .home-section-intro .stats { width: 100%; gap: 0.65rem; flex-wrap: wrap; }
    .home-section-intro .stats .stat-item { padding: 0.3rem 0.65rem; }
    .home-section-intro p { width: 100%; font-size: 0.85rem; }
    .category-filter { column-gap: 1.25rem; row-gap: 0.55rem; margin-bottom: 2rem; }
    .category-filter .btn { font-size: 0.88rem; padding: 0.42rem 0.1rem 0.52rem; }
    .announcement-bar { padding: 0.5rem 1rem 0.15rem; }
    .announcement-container { border-radius: 10px; padding: 0.4rem 0.45rem; gap: 0.35rem; }
    .announcement-capsule { max-width: 70vw; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card { padding: 1.5rem; }
    
    .pagination-jump { margin-left: 0; margin-top: 1rem; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.55rem 0.75rem 0.4rem;
        gap: 0.35rem;
    }
    .brand {
        font-size: 0.86rem;
        gap: 0.3rem;
    }
    .hero h1 { font-size: 1.75rem; }
    .nav-links {
        gap: 0.34rem 0.45rem;
    }
    .nav-links a { font-size: 0.76rem; padding: 0.34rem 0.2rem; }
    .nav-link-tag { font-size: 9px; padding: 2px 5px; }
    .container { padding: 0 1rem 2rem; }
}
