/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  /* 移动端优化 */
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 头部和导航栏 */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.logo a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #667eea;
}

.logo i {
  font-size: 2rem;
}

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

.header nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.header nav a:hover,
.header nav a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffd700;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: white;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* 主要内容区域 */
main {
  padding: 1rem 0;
}

/* 英雄区域 */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #333;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 1px solid #dee2e6;
}

.hero-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #2c3e50;
}

.hero-section p {
  font-size: 1.1rem;
  color: #6c757d;
  line-height: 1.6;
}

.hero-subtitle {
  font-size: 1.2rem !important;
  color: #667eea !important;
  font-weight: 500;
  margin-top: 0.5rem;
  font-style: italic;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #ffd700;
  color: #333;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #ffed4e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* 表格样式 */
.table-container {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.table tr:hover {
  background: #f8f9fa;
}

/* 筛选表单 */
.filter-form {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-group-full {
  grid-column: 1 / -1;
  text-align: center;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.pagination button:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.pagination button.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 搜索框 */
.search-box {
  display: flex;
  gap: 0.5rem;
}

.search-box input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.search-box button {
  padding: 10px 15px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-box button:hover {
  background: #5a6fd8;
}

/* 统计网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

/* 页脚 */
.footer {
  background: #333;
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #ffd700;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: #ffd700;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .nav-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .header nav {
        order: 3;
        width: 100%;
    }

    .header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        z-index: 1000;
    }
    
    .header nav ul.show {
        display: flex;
    }

    .header nav ul li {
        width: 100%;
        text-align: center;
    }

    .header nav a {
        padding: 1rem;
        display: block;
        width: 100%;
        color: #333;
    }

    .header nav a:hover,
    .header nav a.active {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    main {
        padding: 1rem 0;
    }
    
    .card {
        margin-bottom: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* 表单间距优化 */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    /* 按钮组优化 */
    .form-group-full {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-group-full .btn {
        width: 100%;
        margin: 0;
    }
    
    /* 搜索框优化 */
    .search-box {
        display: flex;
        gap: 0.5rem;
    }
    
    .search-box input {
        flex: 1;
        border-radius: 20px 0 0 20px;
    }
    
    .search-box button {
        border-radius: 0 20px 20px 0;
        min-width: 50px;
    }
    
    /* 表格头部优化 */
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        margin-bottom: 1rem;
    }
    
    .table-header h2 {
        text-align: center;
        margin: 0;
    }
    
    .table-header .btn {
        width: 100%;
    }
    
    /* 分页控件优化 */
    .pagination {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pagination button {
        min-width: 40px;
        height: 40px;
        border-radius: 20px;
        font-size: 0.8rem;
    }
    
    /* 加载动画优化 */
    .loading {
        padding: 2rem;
        text-align: center;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    /* 结果计数优化 */
    #resultCount {
        background: #f8f9fa;
        padding: 0.8rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        font-weight: 600;
        color: #495057;
    }

    /* 主页优化 */
    .hero-section h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-section p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* About页面优化 */
    .about-content {
        padding: 1rem;
    }

    .about-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .about-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .about-content ul {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-content li {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    /* Methodology页面优化 */
    .methodology-content {
        padding: 1rem;
    }

    .methodology-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .methodology-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .methodology-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }

    .methodology-item {
        padding: 1rem;
    }

    .methodology-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .methodology-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .percentage {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    /* News页面优化 */
    .news-content {
        padding: 1rem;
    }

    .news-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-item {
        padding: 1rem;
    }

    .news-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .news-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .news-date {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    /* Barentsz DataLab页面优化 */
    .datalab-content {
        padding: 1rem;
    }

    .datalab-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .datalab-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .datalab-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .datalab-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .datalab-item {
        padding: 1rem;
    }

    .datalab-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .datalab-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* 通用内容优化 */
    .content-section {
        padding: 1rem;
    }

    .content-section h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .content-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }

    .content-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .content-section ul,
    .content-section ol {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .content-section li {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    /* 表格优化 */
    .content-section table {
        font-size: 0.8rem;
        margin: 1rem 0;
    }

    .content-section th,
    .content-section td {
        padding: 6px 4px;
        font-size: 0.8rem;
    }

    /* 代码块优化 */
    .content-section pre,
    .content-section code {
        font-size: 0.8rem;
        padding: 0.5rem;
        margin: 0.5rem 0;
        overflow-x: auto;
    }

    /* 移动端标题换行样式 */
    .mobile-break {
        display: block;
        margin-top: 0.5rem;
    }
}

@media (min-width: 769px) {
    .mobile-break {
        display: inline;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    main {
        padding: 0.5rem 0;
    }
    
    .card {
        margin-bottom: 0.8rem;
        padding: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .form-control {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .search-box input {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .table-header h2 {
        font-size: 1.2rem;
    }
    
    .pagination button {
        min-width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    #resultCount {
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    /* 更小屏幕的进一步优化 */
    .hero-section h2 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .about-content h2,
    .methodology-content h2,
    .news-content h2,
    .datalab-content h2,
    .content-section h1 {
        font-size: 1.4rem;
    }

    .about-content h3,
    .methodology-content h3,
    .datalab-content h3,
    .content-section h2 {
        font-size: 1.2rem;
    }

    .about-content p,
    .methodology-content p,
    .news-content p,
    .datalab-content p,
    .content-section p {
        font-size: 0.9rem;
    }

    .about-content li,
    .content-section li {
        font-size: 0.9rem;
    }

    .methodology-item h4,
    .datalab-item h4 {
        font-size: 1rem;
    }

    .methodology-item p,
    .datalab-item p {
        font-size: 0.85rem;
    }

    .news-item h3 {
        font-size: 1.1rem;
    }

    .news-item p {
        font-size: 0.85rem;
    }

    .percentage {
        font-size: 1.5rem;
    }

    .content-section table {
        font-size: 0.7rem;
    }

    .content-section th,
    .content-section td {
        padding: 4px 2px;
        font-size: 0.7rem;
    }

    /* 排名徽章优化 */
    .rank-badge {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 0.7rem;
    }

    /* 表格内容优化 */
    .table td strong {
        font-size: 0.8rem;
    }
    
    /* 移动端性能优化 */
    .fade-in {
        animation: none; /* 移动端禁用动画以提高性能 */
    }
    
    /* 减少阴影效果以提高性能 */
    .card {
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .header {
        box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    }
}

/* 加载动画 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 排名徽章 */
.rank-badge {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  font-size: 0.9rem;
}

.rank-1 { background: #ffd700; }
.rank-2 { background: #c0c0c0; }
.rank-3 { background: #cd7f32; }
.rank-other { background: #667eea; }

/* 工具提示 */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
}

/* 淡入动画 */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* 管理员链接样式 */
.admin-link::after {
  content: " 🔧";
  font-size: 0.8em;
}

/* 表格头部 */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.table-header h2 {
  margin: 0;
  color: #333;
}

/* 加载动画 */
.loading-spinner {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.loading-spinner::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    display: block;
    margin: 0;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #000 !important;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #007bff !important;
}

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

/* 移动端下拉菜单 */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static !important;
        display: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin-left: 20px;
        min-width: auto;
        z-index: auto;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-menu li {
        display: block;
        width: 100%;
    }
    
    .dropdown-menu a {
        padding: 8px 15px;
        border-bottom: none;
        color: #666 !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    .dropdown-menu a:hover {
        color: #007bff !important;
    }
}

/* 新的Barentsz Uni-Ranking Logo - 白色版本 */
.barentsz-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.logo-icon i {
    color: #667eea;
    font-size: 1.5rem;
    z-index: 2;
    position: relative;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-primary {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-secondary {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 响应式Logo */
@media (max-width: 768px) {
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-icon i {
        font-size: 1.3rem;
    }
    
    .logo-primary {
        font-size: 1.4rem;
    }
    
    .logo-secondary {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .barentsz-logo {
        gap: 0.8rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon i {
        font-size: 1.1rem;
    }
    
    .logo-primary {
        font-size: 1.2rem;
    }
    
    .logo-secondary {
        font-size: 0.65rem;
    }
}

/* 表格响应式优化 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
    
    .table {
        border-collapse: collapse;
        width: 100%;
        min-width: 600px;
    }
    
    .table th,
    .table td {
        border: 1px solid #e0e0e0;
        position: relative;
    }
    
    /* 固定排名和大学名称列 */
    .table th:first-child,
    .table td:first-child {
        position: sticky;
        left: 0;
        background: #f8f9fa;
        z-index: 20;
        min-width: 50px;
        text-align: center;
    }
    
    .table th:nth-child(2),
    .table td:nth-child(2) {
        position: sticky;
        left: 50px;
        background: #f8f9fa;
        z-index: 20;
        min-width: 150px;
        text-align: left;
        padding-left: 10px;
    }
    
    /* 添加阴影效果 */
    .table th:nth-child(2)::after,
    .table td:nth-child(2)::after {
        content: '';
        position: absolute;
        top: 0;
        right: -5px;
        width: 5px;
        height: 100%;
        background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
    }
}

@media (max-width: 480px) {
    .table {
        min-width: 500px;
        font-size: 0.7rem;
    }
    
    .table th:first-child,
    .table td:first-child {
        left: 0;
        min-width: 40px;
    }
    
    .table th:nth-child(2),
    .table td:nth-child(2) {
        left: 40px;
        min-width: 120px;
        padding-left: 8px;
    }
    
    .table th,
    .table td {
        padding: 4px 2px;
    }
    
    /* 排名徽章在移动端优化 */
    .rank-badge {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.7rem;
        font-weight: bold;
    }
}

/* Methodology网格样式 */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.methodology-item {
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.methodology-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.methodology-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.methodology-item h3 i {
    color: #3498db;
    font-size: 1.2rem;
}

.methodology-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 移动端Methodology网格优化 */
@media (max-width: 768px) {
    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .methodology-item {
        padding: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .methodology-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        flex-wrap: wrap;
    }
    
    .methodology-item h3 i {
        font-size: 1rem;
    }
    
    .methodology-item p {
        font-size: 0.9rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .methodology-grid {
        gap: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .methodology-item {
        padding: 0.8rem;
    }
    
    .methodology-item h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .methodology-item h3 i {
        font-size: 0.9rem;
    }
    
    .methodology-item p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
} 