/* 主样式文件 */

/* 轮播控制样式 */
.carousel-control {
  z-index: 10;
  opacity: 0.8 !important;
  cursor: pointer;
}

.carousel-control:hover {
  opacity: 1 !important;
}

.carousel-control .glyphicon {
  position: absolute;
  top: 50%;
  margin-top: -10px;
  z-index: 5;
  display: inline-block;
}

.carousel-control.left .glyphicon {
  left: 50%;
  margin-left: -10px;
}

.carousel-control.right .glyphicon {
  right: 50%;
  margin-right: -10px;
}

/* 研究人员卡片样式 */
.researcher-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.researcher-name a {
  color: #333;
  text-decoration: none;
}

.researcher-name a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* 仪器设备卡片样式 */
.instrument-item {
  text-align: center;
  margin-bottom: 30px;
  padding: 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.instrument-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.instrument-item img {
  max-height: 150px;
  margin: 0 auto;
  margin-bottom: 15px;
}

.instrument-item h4 {
  font-weight: bold;
  margin-bottom: 5px;
}

/* 新闻轮播样式 */
.news-text-below {
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.9);
}

.news-text-below h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.news-text-below p {
  font-size: 14px;
  color: #666;
}

/* 管理员入口区域样式 */
.admin-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.admin-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px 20px;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #e8eef7;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #0396FF, #ABDCFF);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 24px;
    color: #fff;
}

.admin-card h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.admin-card p {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.admin-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0396FF, #ABDCFF);
    color: #fff;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #0396FF, #0396FF);
    color: #fff;
    text-decoration: none;
    transform: translateX(3px);
}

.admin-btn.disabled {
    background: #f5f6fa;
    color: #95a5a6;
    cursor: not-allowed;
    border: 1px solid #eef2f6;
}

.admin-btn.disabled:hover {
    transform: none;
}

.admin-btn i {
    margin-left: 4px;
    font-size: 12px;
}

/* 标题线条动画 */
.title-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #0396FF, #ABDCFF);
    margin: 15px auto 30px;
}

/* 管理员卡片样式优化 */
.admin-card.feature-card {
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    padding: 30px;
    margin: 15px;
    box-shadow: 0 8px 30px rgba(0,87,146,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,102,178,0.08);
}

.admin-card.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,87,146,0.12);
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066b2 0%, #0088cc 100%);
    border-radius: 18px;
    margin: -50px auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,102,178,0.15);
    transition: all 0.3s ease;
}

.card-icon-wrapper i {
    color: #fff;
    font-size: 32px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-content h4 {
    color: #004080;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

.card-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    min-height: 60px;
}

.gradient-btn {
    background: linear-gradient(135deg, #0066b2, #0088cc);
    color: #fff!important;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,102,178,0.2);
}

.gradient-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.gradient-btn:hover i {
    transform: translateX(3px);
}

.gradient-btn.disabled {
    background: #f5f7fa;
    color: #a8b5c1!important;
    cursor: not-allowed;
}

/* 增强版人员名录链接样式 */
.graduate-link {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    background: linear-gradient(135deg, #1a4a8d 0%, #2c3e50 100%);
    color: #fff !important;
    border-radius: 35px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 6px 20px rgba(26, 74, 141, 0.25);
    border: 2px solid rgba(255,255,255,0.15);
    font-size: 1.2em;
    position: relative;
    overflow: hidden;
}

.graduate-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(26, 74, 141, 0.35);
    background: linear-gradient(135deg, #2c3e50 0%, #1a4a8d 100%);
}

/* 图标容器 */
.link-icon {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 20px;
}

.link-icon i {
    position: absolute;
    transition: all 0.3s ease;
}

.link-icon .fa-graduation-cap {
    font-size: 28px;
    left: 0;
    opacity: 1;
}

.link-icon .fa-users {
    font-size: 22px;
    left: 10px;
    opacity: 0;
}

.graduate-link:hover .fa-graduation-cap {
    opacity: 0;
    transform: translateY(-10px);
}

.graduate-link:hover .fa-users {
    opacity: 1;
    left: 0;
}

/* 文字样式 */
.link-text {
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    font-size: 1.3em;
    padding: 0 15px;
}

/* 箭头动画 */
.link-arrow {
    margin-left: 15px;
    position: relative;
    transition: transform 0.3s ease;
}

.graduate-link:hover .link-arrow {
    transform: translateX(8px);
}

.link-arrow i {
    font-size: 1.4em;
    vertical-align: middle;
}

/* 悬浮光效 */
.graduate-link::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 25%,
        rgba(255,255,255,0.1) 50%,
        transparent 75%);
    animation: shine 4s infinite;
    opacity: 0.3;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* 删除不兼容的自定义字体定义 */

/* 人员目录卡片样式 - 增强版 */
.team-directory-card {
    background: linear-gradient(135deg, #0088cc 0%, #0396FF 100%);
    border-radius: 15px;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 136, 204, 0.3), 0 0 20px rgba(3, 150, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    border: 3px solid rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* 清华园背景层 */
.tsinghua-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
    filter: grayscale(20%);
    transition: all 0.5s ease;
}

/* 彩色蒙版层 */
.color-overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 136, 204, 0.8) 0%, 
        rgba(3, 150, 255, 0.75) 50%,
        rgba(0, 102, 178, 0.85) 100%);
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.75;
}

.team-directory-card:hover {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 20px 40px rgba(0, 136, 204, 0.4), 0 0 30px rgba(3, 150, 255, 0.3);
    border-color: rgba(255,255,255,0.5);
}

.team-directory-card:hover .tsinghua-bg-layer {
    opacity: 0.25;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-directory-card:hover .color-overlay-layer {
    background: linear-gradient(135deg, 
        rgba(0, 136, 204, 0.7) 0%, 
        rgba(3, 150, 255, 0.65) 50%,
        rgba(0, 102, 178, 0.75) 100%);
}

.directory-card-content {
    display: flex;
    align-items: center;
    padding: 35px 50px;
    position: relative;
    z-index: 2;
}

.directory-icon {
    background: rgba(255,255,255,0.2);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 35px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border: 3px solid rgba(255,255,255,0.4);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.directory-icon i {
    color: #fff;
    font-size: 40px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 2;
}

.directory-icon-overlay {
    position: absolute;
    font-size: 50px !important;
    opacity: 0.2;
    right: -15px;
    bottom: -15px;
    transform: rotate(-20deg);
}

.directory-text {
    color: #fff;
    flex-grow: 1;
    padding-right: 25px;
    text-align: left;
}

.directory-text h3 {
    font-size: 28px;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.directory-text p {
    margin: 0;
    opacity: 0.95;
    font-size: 18px;
    line-height: 1.4;
}

.directory-btn {
    background: #ffffff;
    color: #0088cc !important;
    padding: 15px 28px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.directory-btn:hover {
    background: #f5f5f5;
    transform: translateX(5px);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.directory-btn i {
    margin-left: 10px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.directory-btn:hover i {
    transform: translateX(5px);
}

/* 设置背景装饰 */
.team-directory-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: url('https://www.tsinghua.edu.cn/__local/F/E0/5D/A2AE1CE96CFDCA0D12E86BC7B43_EAFD00C2_BC0C4.png') no-repeat center center;
    background-size: 80px;
    opacity: 0.15;
    transform: rotate(15deg);
    z-index: 1;
}

/* 光圈效果 */
.team-directory-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    right: -80px;
    top: -80px;
    z-index: 1;
}

/* 角标装饰 */
.corner-ribbon {
    position: absolute;
    top: 25px;
    right: -30px;
    width: 120px;
    background-color: #4fc3f7;
    color: white;
    text-align: center;
    line-height: 30px;
    letter-spacing: 1px;
    font-weight: bold;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 3;
    font-size: 14px;
}

/* 脉冲动画增强 */
@keyframes enhanced-pulse {
    0% {
        box-shadow: 0 15px 30px rgba(0, 136, 204, 0.3), 0 0 20px rgba(3, 150, 255, 0.2);
        border-color: rgba(255,255,255,0.3);
    }
    50% {
        box-shadow: 0 15px 35px rgba(0, 136, 204, 0.4), 0 0 30px rgba(3, 150, 255, 0.4);
        border-color: rgba(255,255,255,0.4);
    }
    100% {
        box-shadow: 0 15px 30px rgba(0, 136, 204, 0.3), 0 0 20px rgba(3, 150, 255, 0.2);
        border-color: rgba(255,255,255,0.3);
    }
}

.team-directory-card {
    animation: enhanced-pulse 3s infinite;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .directory-card-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px 30px;
    }
    
    .directory-icon {
        margin-right: 0;
        margin-bottom: 25px;
    }
    
    .directory-text {
        padding-right: 0;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .directory-text h3 {
        font-size: 24px;
    }
    
    .directory-text p {
        font-size: 16px;
    }
    
    .directory-btn {
        padding: 12px 25px;
    }
} 