html {
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f4f6fa;
    color: #222;
    padding-top: 64px;
}

body.home-has-banner {
    padding-top: 0; /* 首页不需要padding-top，因为有全屏banner */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2d7cf7;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-list li a:hover {
    color: #2d7cf7;
}

.nav-list a.active {
    color: #5c4cf0 !important;
    font-weight: bold;
    text-decoration: none;
}

.hero {
    background: linear-gradient(120deg, #e3f0ff 0%, #f8f9fb 100%);
    padding: 60px 0 40px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 18px;
    color: #2d7cf7;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    color: #444;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.feature {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 18px 28px;
    font-size: 1rem;
    color: #2d7cf7;
    min-width: 180px;
}

.clients {
    background: #fff;
    padding: 48px 0 32px 0;
    text-align: center;
}

.clients h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #2d7cf7;
}

.client-logos {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.client-logo {
    width: 100px;
    height: 48px;
    background: #e3f0ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #2d7cf7;
    font-weight: bold;
}

.software-support {
    background: #f8f9fb;
    padding: 48px 0 32px 0;
    text-align: center;
}

.software-support h2 {
    font-size: 1.6rem;
    color: #2d7cf7;
    margin-bottom: 18px;
}

.software-list {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.software-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 16px 32px;
    font-size: 1rem;
    color: #2d7cf7;
    min-width: 120px;
}

.software-note {
    font-size: 0.95rem;
    color: #888;
}

.footer {
    background: #fff;
    border-top: 1px solid #e3e3e3;
    padding: 18px 0;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

/* 分区白底卡片 */
.section-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 36px 28px 32px 28px;
    margin-bottom: 36px;
}

/* 分区标题 */
.section-title {
    font-size: 1.6rem;
    color: #2d7cf7;
    font-weight: bold;
    margin-bottom: 18px;
    margin-top: 0;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 12px;
    margin-top: 0;
}

/* 列表样式 */
.ys-list {
    margin: 0 0 18px 0;
    padding-left: 22px;
}
.ys-list li {
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.7;
}

/* 表格样式 */
.ys-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 28px 0;
    background: #fff;
    font-size: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    max-width: 100%;
}
.ys-table th, .ys-table td {
    border: 1px solid #e3e3e3;
    padding: 10px 14px;
    text-align: center;
}
.ys-table th {
    background: #f0f6ff;
    color: #2d7cf7;
    font-weight: bold;
    font-size: 1.05rem;
}
.ys-table tr:nth-child(even) {
    background: #f8f9fb;
}
.ys-table .ys-table-note td {
    background: #f7f7f7;
    color: #888;
    font-size: 0.97rem;
    text-align: left;
    padding: 10px 18px;
}

/* 顶部Banner样式 */
.banner {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 100;
    min-height: unset;
    height: 100vh;
    background: linear-gradient(120deg, #2d7cf7 60%, #6ec3f4 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    box-sizing: border-box;
    padding-bottom: 0;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1), opacity 0.5s cubic-bezier(.4,0,.2,1);
    will-change: transform, opacity;
}
.banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
.banner::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(0,0,0,0.28);
    z-index: 1;
}
.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    margin-bottom: 48px;
}
.banner-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 22px;
    letter-spacing: 2px;
    line-height: 1.18;
}
.banner-desc {
    font-size: 2rem;
    font-weight: 600;
    opacity: 0.98;
    margin-bottom: 0;
}
/* 首页专属banner全屏效果 */
.home-has-banner .banner {
    position: relative !important;
    width: 100%; 
    height: 100vh !important;
    min-height: unset !important;
    max-height: unset !important;
    background: linear-gradient(120deg, #2d7cf7 60%, #6ec3f4 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    padding-bottom: 0;
    margin-top: -64px; /* 抵消body的padding-top */
    padding-top: 64px; /* 为navbar留出空间 */
}

body.home-has-banner .main-content {
    margin-top: 0;
    position: relative;
    z-index: 10;
    background: #f4f6fa;
}
/* 其它页面banner普通高度 */
.banner {
    width: 100%;
    min-height: 220px;
    height: 28vw;
    max-height: 320px;
    background: linear-gradient(120deg, #2d7cf7 60%, #6ec3f4 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 32px;
    box-sizing: border-box;
    padding-bottom: 0;
    transition: none;
}
@media (max-width: 900px) {
    .section-card {
        padding: 18px 6px 18px 6px;
    }
    .banner-title {
        font-size: 2.1rem;
    }
    .banner-desc {
        font-size: 1.08rem;
    }
}
@media (max-width: 700px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }
    .nav-list {
        flex-direction: column;
        gap: 10px;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .feature, .software-item {
        min-width: 120px;
        padding: 12px 10px;
        font-size: 0.95rem;
    }
    .client-logo {
        width: 80px;
        height: 36px;
        font-size: 0.95rem;
    }
    .ys-table th, .ys-table td {
        font-size: 0.95rem;
        padding: 7px 4px;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .banner {
        min-height: 100vh;
        height: auto;
        margin-bottom: 18px;
    }
    .banner-title {
        font-size: 1.2rem;
    }
    .banner-desc {
        font-size: 0.95rem;
    }
    .ys-home-features {
        margin-top: 0;
    }
}

/* 参数卡片并排展示 */
.node-params-row {
    display: flex;
    gap: 36px;
    justify-content: center;
    margin: 36px 0 32px 0;
    flex-wrap: wrap;
}
.node-param-card {
    background: #f6f7f9;
    border-radius: 10px;
    padding: 32px 38px 28px 38px;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 260px;
    box-sizing: border-box;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.node-param-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 18px;
    color: #222;
    text-align: left;
}
.node-param-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #222;
    font-size: 1.07rem;
    line-height: 2.1;
}
@media (max-width: 700px) {
    .node-params-row {
        flex-direction: column;
        gap: 18px;
        margin: 18px 0 18px 0;
    }
    .node-param-card {
        padding: 18px 12px 14px 12px;
        min-width: 0;
        max-width: 100%;
    }
    .node-param-title {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    .node-param-list {
        font-size: 0.98rem;
    }
}

.ys-divider {
    width: 96%;
    max-width: 1100px;
    height: 14px;
    background: #5c4cf0;
    border-radius: 10px;
    margin: 48px auto 38px auto;
}
@media (max-width: 700px) {
    .ys-divider {
        height: 9px;
        margin: 28px auto 18px auto;
    }
} 

/* 轮播样式 */
.ys-client-carousel, .ys-software-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ys-carousel-container {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.ys-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 200%;
}

.ys-carousel-slide {
    flex: 0 0 50%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 24px 0;
    box-sizing: border-box;
}

.ys-carousel-slide.active {
    opacity: 1;
}

.ys-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.ys-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ys-indicator.active {
    background: #333;
    transform: scale(1.2);
}

.ys-indicator:hover {
    background: #2d7cf7;
}

/* 客户展示区样式 */
.ys-home-clients {
    background: #fff;
    padding: 60px 0;
    text-align: center;
}

.ys-home-section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #333;
    font-weight: bold;
}

.ys-section-desc {
    color: #666;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.ys-client-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.ys-client-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ys-client-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ys-client-logo-img:hover {
    transform: scale(1.05);
}

.ys-client-logo-img span {
    display: block;
    line-height: 1.2;
    padding: 0 8px;
}

/* 不同大学的配色 */
.dalian-univ { background: linear-gradient(135deg, #003d82, #0056b3); }
.shandong-arch { background: linear-gradient(135deg, #c41e3a, #dc3545); }
.taishan-univ { background: linear-gradient(135deg, #228b22, #28a745); }
.fudan-univ { background: linear-gradient(135deg, #722f37, #8b3a47); }
.shanghai-tech { background: linear-gradient(135deg, #2E5984, #3d73a8); }
.lanzhou-tech { background: linear-gradient(135deg, #FF6B35, #ff7f50); }
.huabei-tech { background: linear-gradient(135deg, #1565C0, #1976d2); }
.shaanxi-normal { background: linear-gradient(135deg, #B71C1C, #d32f2f); }
.tsinghua-univ { background: linear-gradient(135deg, #8e24aa, #9c27b0); }
.peking-univ { background: linear-gradient(135deg, #c41e3a, #dc3545); }
.cas-univ { background: linear-gradient(135deg, #d32f2f, #f44336); }
.sjtu-univ { background: linear-gradient(135deg, #1976d2, #2196f3); }
.zju-univ { background: linear-gradient(135deg, #388e3c, #4caf50); }

/* 软件支持区样式 */
.ys-home-software {
    background: #f8f9fb;
    padding: 60px 0;
    text-align: center;
}

.ys-software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.ys-software-item {
    text-align: center;
}

.ys-software-category {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 16px;
    font-weight: bold;
}

.ys-software-logo-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ys-software-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ys-software-content {
    position: relative;
    height: 60px;
    margin-bottom: 12px;
}

.ys-software-logo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.ys-software-logo.active {
    opacity: 1;
}

.ys-software-logo span {
    font-size: 13px;
    line-height: 1.2;
}

.ys-software-logo small {
    display: block;
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

/* 软件logo配色 */
.gaussian-logo { background: linear-gradient(135deg, #0066cc, #0080ff); }
.orca-logo { background: linear-gradient(135deg, #333, #555); }
.qchem-logo { background: linear-gradient(135deg, #8e24aa, #9c27b0); }
.molpro-logo { background: linear-gradient(135deg, #d32f2f, #f44336); }

.vasp-logo { background: linear-gradient(135deg, #1976d2, #2196f3); }
.qe-logo { background: linear-gradient(135deg, #388e3c, #4caf50); }
.abacus-logo { background: linear-gradient(135deg, #4CAF50, #66BB6A); }
.cp2k-logo { background: linear-gradient(135deg, #ff9800, #ffc107); }

.gromacs-logo { background: linear-gradient(135deg, #2e7d32, #43a047); }
.lammps-logo { background: linear-gradient(135deg, #5d4037, #795548); }
.amber-logo { background: linear-gradient(135deg, #FF6B35, #FF8A50); }
.namd-logo { background: linear-gradient(135deg, #3f51b5, #5c6bc0); }

.ms-logo { background: linear-gradient(135deg, #e91e63, #f06292); }
.vesta-logo { background: linear-gradient(135deg, #00acc1, #26c6da); }
.vmd-logo { background: linear-gradient(135deg, #8bc34a, #aed581); }
.ovito-logo { background: linear-gradient(135deg, #ff5722, #ff8a65); }

.ys-software-indicators {
    margin-top: 8px;
    gap: 4px;
}

.ys-software-indicators .ys-indicator {
    width: 8px;
    height: 8px;
}

/* 首页四大优势悬浮卡片 */
.ys-home-features {
    width: 100%;
    position: static;
    margin: 0 auto 0 auto;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.ys-features-row {
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(20,20,20,0.55);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    overflow: hidden;
}
.ys-feature-item {
    flex: 1 1 0;
    padding: 32px 50px 24px 50px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ys-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #fff;
}
.ys-feature-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 6px;
}
.ys-feature-desc {
    font-size: 1.58rem;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ys-feature-item + .ys-feature-item {
    border-left: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) {
    .ys-features-row {
        max-width: 98vw;
    }
}
@media (max-width: 700px) {
    .ys-home-features {
        margin-top: 0;
    }
    .ys-features-row {
        flex-direction: column;
        border-radius: 12px;
    }
    .ys-feature-item + .ys-feature-item {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.12);
    }
    .ys-feature-item {
        padding: 18px 0 12px 0;
    }
    
    /* 轮播响应式样式 */
    .ys-carousel-slide {
        padding: 16px 0;
    }
    
    .ys-client-logos {
        gap: 12px;
        justify-content: center;
    }
    
    .ys-client-logo-img {
        width: 60px;
        height: 60px;
        font-size: 10px;
    }
    
    .ys-client-logo-img span {
        padding: 0 4px;
    }
    
         .ys-software-grid {
         grid-template-columns: repeat(2, 1fr);
         gap: 16px;
     }
     
     .ys-software-logo-card {
         padding: 16px;
     }
     
     .ys-software-content {
         height: 50px;
         margin-bottom: 8px;
     }
     
     .ys-software-logo {
         height: 50px;
     }
     
     .ys-software-logo span {
         font-size: 11px;
     }
     
     .ys-software-category {
         font-size: 1rem;
         margin-bottom: 12px;
     }
     
     .ys-software-indicators {
         margin-top: 6px;
     }
     
     .ys-software-indicators .ys-indicator {
         width: 6px;
         height: 6px;
     }
    
    .ys-home-section-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
         .ys-section-desc {
         font-size: 0.9rem;
         margin-bottom: 32px;
     }
 }

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .ys-client-logos {
        gap: 8px;
    }
    
    .ys-client-logo-img {
        width: 50px;
        height: 50px;
        font-size: 8px;
    }
    
    .ys-software-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ys-software-content {
        height: 45px;
        margin-bottom: 6px;
    }
    
    .ys-software-logo {
        height: 45px;
    }
    
    .ys-software-logo span {
        font-size: 10px;
    }
    
    .ys-software-category {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .ys-home-section-title {
        font-size: 1.4rem;
    }
} 

/* Manual Header 样式 - 用于统一各页面的Banner区域 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.manual-header {
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.manual-header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.manual-header p {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0 auto;
    white-space: nowrap;
} 