/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.navbar {
    background: linear-gradient(135deg, rgba(15, 45, 85, 0.3) 0%, rgba(10, 28, 60, 0.3) 100%), url('img/navbg.png');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.1);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 1rem;
    font-weight: bold;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* 横幅 */
.banner {
    background: 
        linear-gradient(135deg, rgba(0, 26, 77, 0.6) 0%, rgba(0, 102, 204, 0.6) 50%, rgba(0, 217, 255, 0.6) 100%),
        url('img/banner.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* 公司简介部分 */
.about-section {
    padding: 4rem 2rem;
    background-image: url('img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    position: relative;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #ffffff;
}

/* 奖项展示区域 */
.awards-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    color: #ffffff;
    border-top: 2px solid #e0e0e0;
}

.awards-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.screen-outer-frame {
    position: relative;
    width: 100%;
    padding: 6% 8%;
    background: url("img/pc1.png") center / contain no-repeat;
    background-size: 100% 100%;
    z-index: 1;
}
.screen-outer-frame::before {
    content: "";
    position: absolute;
    inset: 6% 8%; 
    background: rgba(8, 16, 36, 0.1);
    border-radius: 8px;
    z-index: -1;
}
.screen-outer-frame .carousel-container {
    position: relative;
    z-index: 2; 
    background: transparent !important;
}

.screen-outer-frame .carousel-wrapper {
    background: transparent !important;
}

.screen-outer-frame .carousel-dots {
    background: transparent !important;
    padding: 0 !important;
}

/* 轮播图容器 */
.carousel-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    border-radius: 10px;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
}

.carousel-slide {
    opacity: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
     margin: 20px auto;
}



.carousel-caption {
    text-align: center;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

/* 轮播按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.8);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* 轮播指示点 */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: white;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot:hover {
    background: #bbb;
}

.dot.active {
    background: #667eea;
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-slide {
        padding: 1.5rem;
    }

    .carousel-slide img {
        max-height: 200px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: white;
}

.stat:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.stat p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* 共建、科研、产业 共用卡片容器 */
.cooper-stat,
.tech-stat,
.industry-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px; 
    padding: 2.5rem 2rem; 
}
.cooper-logo,
.tech-logo,
.industry-logo {
    position: absolute;
    left: 2rem; 
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    opacity: 0.98;
    transition: all 0.3s ease;
}

.cooper-stat:hover .cooper-logo,
.tech-stat:hover .tech-logo,
.industry-stat:hover .industry-logo {
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
}

.cooper-stat,
.tech-stat,
.industry-stat {
    overflow: hidden;
}
.cooper-stat::before,
.tech-stat::before,
.industry-stat::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(12, 30, 62, 0.15), rgba(12, 30, 62, 0.15)), url("img/card-bg.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}
.cooper-stat:hover::before,
.tech-stat:hover::before,
.industry-stat:hover::before {
    transform: scale(1.05);
}

.stat-text {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    max-width: 80%;
}
.stat-text h3 {
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-align: center;
}
.stat-text p {
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .cooper-stat,
    .tech-stat,
    .industry-stat {
        position: static; 
        flex-direction: column;
        gap: 16px;
        min-height: auto;
    }
    .cooper-logo,
    .tech-logo,
    .industry-logo {
        position: static;
        transform: none;
    }
}

.positions-section {
    padding: 4rem 2rem;
    position: relative;
    min-height: 600px;
    z-index: 1;
}
.positions-section::before {
    content: "";
    position: absolute;
    inset: 0; 
    background: rgba(255,255,255,0.88) url("img/bg1.png") center / cover no-repeat;
    z-index: -1;
}

.positions-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.search-bar {
    text-align: center;
    margin-bottom: 3rem;
}

.search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #667eea;
}

/* 搜索框包装器 */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    width: 20px;
    height: 20px;
    color: #999;
    pointer-events: none;
    transition: color 0.3s;
}

.search-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s;
    background: #f8f9fa;
}

.search-input::placeholder {
    color: #999;
}

.search-input:hover {
    border-color: #667eea;
    background: white;
}

.search-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.search-wrapper:focus-within .search-icon {
    color: #667eea;
}

/* 筛选栏 */
.filter-search {
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.position-card {
    position: relative;
    background: rgba(255,255,0.94);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem 2rem 2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1;
    overflow: hidden; 
}
.position-card::before {
    content: "";
    position: absolute;
    inset: 0; 
    background: rgba(255,255,255,0.9) url("img/bg2.png") center / cover no-repeat;
    z-index: -1;
    transition: transform 0.3s ease;
}
.position-card:hover::before {
    transform: scale(1.08);
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.position-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.position-card .type-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    
}

.position-card .type-badge.formal {
    background: #e3f2fd;
    color: #1976d2;
}

.position-card .type-badge.intern {
    background: #f3e5f5;
    color: #7b1fa2;
}

.position-card .salary {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.position-card .info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.position-card .tag {
    background: #f0f0f0;
    padding: 0.4rem 0.3rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 35px;
    color: #666;
}

.position-card .description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.position-card .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
    width: 100%;
}

.position-card .btn:hover {
    opacity: 0.9;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s;
    overflow: hidden;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close {
    color: #aaa;
    font-size: 28px;
    float: right;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close:hover {
    color: #000;
}
.modal-detail {
    margin-top: 0.5rem;
}
.modal-detail h3 {
    color: #667eea;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.modal-detail p {
    color: #666;
    line-height: 1.8;
}
.modal-detail ul {
    margin-left: 2rem;
    color: #666;
}
.modal-detail li {
    margin-bottom: 0.5rem;
}

/* 联系我们部分 */
.contact-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}
.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.86) url("img/contact-bg.png") center / cover no-repeat;
    z-index: -1;
}
.contact-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: stretch;
}
.contact-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-width: 280px;
    max-width: 360px;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.8rem 1.6rem;
    box-shadow: inset 0 0 0 1px rgba(120, 170, 255, 0.25), 0 4px 18px rgba(0, 30, 90, 0.15);
    transition: all 0.3s ease;
    isolation: isolate;
    z-index: 10;
}
.contact-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 48, 0.35) url("img/bg3.png") center / cover no-repeat;
    z-index: -1;
}
.contact-item:hover::before {
    transform: scale(1.08);
}
.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    border-color: #ffffff;
}
.contact-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    text-align: center;
}
.contact-inner h3 {
    font-size: 1.4rem;
    height: 46px;
    line-height: 46px;
    margin: 0 0 0.8rem 0;
    color: #ffffff;
}
.contact-inner p {
    font-size: 0.98rem;
    color: #fff;
    line-height: 1.6;
    min-height: 65px;
    margin: 0;
}


.contact-item h3,
.contact-item p {
    position: relative;
    z-index: 20;
}
.contact-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #ffffff;
}
.contact-item p {
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.7;
}


/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat {
        padding: 1rem;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .positions-grid {
        grid-template-columns: 1fr;
    }
}

/* 图片放大弹窗样式 */
.img-modal {
  display: none;
  position: fixed;
  z-index: 2000; /* 高于职位弹窗z-index:1000 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.img-modal img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}
.img-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.img-close:hover {
  color: #ccc;
}

/* 仅职位弹窗内的关闭按钮，独立样式，不影响其他弹窗 */
.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.modal-close:hover {
    color: #000;
}
