/* 全局样式重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  
  body {
    background-color: #060b19; /* 深暗蓝色背景 */
    color: #ffffff;
    padding: 40px 20px;
  }
  
  .container {
    max-width: 1000px;
    margin: 0 auto;
  }

  .top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
  }

  .top-bar-spacer {
    flex: 1;
  }

  .admin-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #1e2d5a;
    background-color: #111a36;
    color: #93c5fd;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .admin-link:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
  }
  
  /* 顶部标题 */
  .header h1 {
    text-align: center;
    font-size: 24px;
    color: #4facfe;
    margin-bottom: 30px;
    letter-spacing: 1px;
  }
  
  /* 搜索栏样式 */
  .search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
  }
  
  .search-box input {
    width: 70%;
    max-width: 500px;
    padding: 12px 20px;
    background-color: #111a36;
    border: 1px solid #1e2d5a;
    border-radius: 4px 0 0 4px;
    color: #fff;
    font-size: 16px;
    outline: none;
  }
  
  .search-box button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
  }

  .school-hints {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: -24px;
    margin-bottom: 32px;
  }

  .year-range {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
  }

  
  /* 学校标题 */
  .school-title {
    font-size: 22px;
    color: #fff;
    margin-bottom: 20px;
    border-left: 4px solid #00c6ff;
    padding-left: 10px;
  }
  
  /* 两栏卡片布局 */
  .cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  @media (max-width: 768px) {
    .cards-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* 卡片容器 */
  .card {
    background-color: #0d1630;
    border: 1px solid #16254e;
    border-radius: 8px;
    padding: 20px;
  }
  
  /* 卡片顶部标签 */
  .card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .badge {
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
  }
  
  .tag-211 { background-color: #1e3a8a; color: #60a5fa; }
  .tag-985 { background-color: #7c2d12; color: #fdba74; }
  .tag-type { background-color: #581c87; color: #c084fc; }
  .tag-type.zs { background-color: #065f46; color: #34d399; }
  
  .rating {
    margin-left: auto;
    font-size: 12px;
    color: #eab308;
  }

  /* 简易分值块 */
  .score-summary {
    display: flex;
    justify-content: space-between;
    background-color: #111a36;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
  }
  
  .score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .year-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
  }
  
  .score-val {
    font-size: 13px;
    font-weight: bold;
    color: #38bdf8;
  }
  
  /* 折线图高度 */
  .chart-container {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
  }
  
  /* 指标列表 */
  .details-list {
    border-top: 1px dashed #1e2d5a;
    padding-top: 15px;
    margin-bottom: 20px;
  }
  
  .detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: #94a3b8;
  }
  
  .detail-row strong {
    color: #f1f5f9;
  }
  
  .high-score { color: #f43f5e !important; }
  .low-score { color: #38bdf8 !important; }
  
  /* 科目柱状进度条 */
  .subject-bars h4 {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
  }
  
  .bar-group {
    margin-bottom: 8px;
  }
  
  .bar-group label {
    display: block;
    font-size: 11px;
    color: #cbd5e1;
    margin-bottom: 3px;
  }
  
  .progress-bg {
    background-color: #1e2d5a;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .progress-bar {
    height: 100%;
    width: 0%;
    transition: width 0.6s ease;
  }
  
  /* 进度条颜色 */
  .bar-pol { background-color: #10b981; }
  .bar-eng { background-color: #3b82f6; }
  .bar-math { background-color: #f59e0b; }
  .bar-proj { background-color: #ef4444; }
