/* CSS 模块：产品线卡片样式 */
.product-lines-section {
    padding: 4rem 2rem;
    background: #000;         /* 全局黑色背景下的深色区块 */
    color: #fff;
    text-align: center;
}
.product-lines-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.product-lines-section .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.product-lines-section .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    width: 240px;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-lines-section .card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
}
.product-lines-section .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.product-lines-section .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.product-lines-section .card-desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.4;
}

/* 选中状态高亮 */
.product-lines-section .card.selected {
    border-color: #5b23e8;
    background: rgba(91, 35, 232, 0.2);
}












/* CSS 模块：双社区介绍样式 */
.communities-section {
    padding: 4rem 2rem;
    background: #000;
    color: #fff;
}
.communities-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}
.communities-section .section-title {
    font-size: 2.5rem;
    margin: 0;
}
.communities-section .section-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin: 0.5rem 0 0;
}

.communities-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* 左侧轮播容器 */
.carousel-wrapper {
    flex: 0 0 40%;
    overflow: hidden;
    position: relative;
}
.carousel {
    display: flex;
    width: calc(100% * 3); /* slide 数量，示例为 3 */
    transition: transform 0.5s ease;
}
.carousel .slide {
    flex: 0 0 100%;
}
.carousel .slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* 右侧两张卡片 */
.community-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.community-cards .card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1.5rem;
    box-sizing: border-box;
}
.community-cards .card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}
.community-cards .card p {
    margin: 0;
    color: #ccc;
    line-height: 1.6;
}


img {
    width: 100%;        /* 或者具体像素，如 300px */
    height: 300px;      /* 根据设计需求，自行调整 */
    object-fit: cover;  /* 居中裁剪并充满整个容器 */
    object-position: center center; /* 可选，控制裁剪对齐 */
    border-radius: 8px; /* 若需要圆角 */
}


.slide {
    position: relative;
    width: 100%;          /* 宽度占满父容器 */
    height: 300px;        /* 设定你想要的裁剪高度 */
    overflow: hidden;     /* 超出容器的部分隐藏 */
}

/* 图片做等比缩放，宽度 100%，高度自动 */
.slide img {
    position: absolute;
    top: 50%;             /* 先把图片顶部推到容器中点 */
    left: 0;
    width: 100%;
    height: auto;
    transform: translateY(-50%);  /* 再向上平移自身高度的一半，实现垂直居中 */
}



/* 响应式：移动端堆叠 */
@media (max-width: 768px) {
    .communities-content {
        flex-direction: column;
    }
    .carousel-wrapper {
        flex: none;
        width: 100%;
        margin-bottom: 2rem;
    }
}

























/* CSS 模块：代码编辑器样式 */
.code-editor {
    flex: 0 0 40%;
    height: 300px;
    background: #1e1e1e;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    overflow: hidden;
    position: relative;
    padding: 1rem;
    box-sizing: border-box;
    font-family: 'Source Code Pro', monospace;
    color: #c5c8c6;
}

/* <pre> 去除默认 margin 并启用滚动 */
.code-editor pre {
    margin: 0;
    height: 100%;
    overflow-y: auto;
}

/* 打字光标 */
#codeContent::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #c5c8c6;
    margin-left: 2px;
    animation: blink 1s steps(2) infinite;
    vertical-align: bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* 移动端堆叠 */
@media (max-width: 768px) {
    .communities-content { flex-direction: column; }
    .code-editor {
        flex: none;
        width: 100%;
        margin-bottom: 1.5rem;
    }
}









/* 光标 动画 */
#heroTitle::after,
#heroSubtitle::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #fff;
    margin-left: 2px;
    vertical-align: bottom;
    animation: blink 1s steps(2) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50%, 100% { opacity: 0; }
}



.web3-section {
    background-color: #000000;
    color: #fff;
    padding: 4rem 2rem;
}

.web3-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.web3-text {
    flex: 1 1 55%;
}

.web3-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.web3-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

.web3-code {
    flex: 1 1 40%;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.9rem;
}




/* —— 保留你原有的 .web3-section/.web3-content/.web3-text 样式 —— */

.web3-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}
.tab-btn {
    flex: 1 0 auto;
    background: #111;
    color: #fff;
    border: 1px solid #333;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.tab-btn.active {
    background: #333;
}

/* 隐藏未激活内容 */
.tab-content.hidden {
    display: none;
}

/* 区块链支付布局 */
.transfer-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.transfer-card {
    flex: 1 1 calc(50% - 1rem);
    background: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    color: #fff;
}
.transfer-card h3 {
    margin-bottom: 0.5rem;
}
.transfer-card p {
    margin: 0.5rem 0;
}
.transfer-card input {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    border: none;
    background: #2b2b2b;
    color: #eee;
}
.transfer-card button {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    background: #6611cf;
    color: #fff;
    cursor: pointer;
}
.transfer-card .status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* NFT 卡片 */
.nft-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.nft-card {
    flex: 1 1 calc(50% - 1rem);
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    color: #fff;
}
.nft-card img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .transfer-card,
    .nft-card {
        flex: 1 1 100%;
    }
}







/* CSS 模块：高校生求职功能样式 */
.job-section {
    background: #000;
    color: #fff;
    padding: 4rem 2rem;
}
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}
.section-title {
    font-size: 2rem;
    margin: 0;
}
.section-subtitle {
    color: #ccc;
    margin: 0.5rem 0 0;
}

.job-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}
/* 左侧标签 */
.job-tags {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.job-tags .tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s;
}
.job-tags .tag:hover,
.job-tags .tag.active {
    background: rgba(91,35,232,0.2);
}

/* 中间简历纸 */
.resume-wrapper {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
}
.resume-paper {
    background: #1e1e1e;
    width: 100%;
    height: 300px;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    box-sizing: border-box;
    font-family: 'Source Code Pro', monospace;
    line-height: 1.5;
}
.resume-title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}
.resume-content {
    font-size: 0.95rem;
    color: #ccc;
}

/* 右侧招聘卡 */
.job-card {
    flex: 1;
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    position: relative;
}
.job-card::before {
    /* 箭头指向简历 */
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 0; height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid rgba(255,255,255,0.2);
    transform: translateY(-50%);
}

/* 响应式：移动端堆叠 */
@media (max-width: 768px) {
    .job-content {
        flex-direction: column;
        align-items: stretch;
    }
    .resume-wrapper, .job-card {
        flex: none;
        width: 100%;
        margin-bottom: 1.5rem;
    }
}



/* 标签更窄，浅色调 */
.job-tags .tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 0.8rem;    /* 更窄一些 */
    font-size: 0.9rem;
    color: #ddd;               /* 浅文字 */
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.job-tags .tag:hover,
.job-tags .tag.active {
    background: rgba(76,175,80,0.2);
    color: #fff;
}

/* 简历纸内文字浅色、线高 */
.resume-paper {
    background: #1e1e1e;
    color: #eee;
    line-height: 1.6;
}

/* 高亮修改部分 */
.resume-paper .highlight {
    color: #4caf50;
    font-weight: 500;
    animation: fadeIn 0.4s ease;
}

/* 简单淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}





/* CSS：基本布局 + 打字光标 */
.hero-lang {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0 2rem;
    box-sizing: border-box;
}

.hero-lang .hero-title {
    font-size: 3rem;
    margin: 0;
}

.hero-lang .hero-subtitle {
    font-size: 1.5rem;
    margin: 0.5rem 0 0;
    color: #ddd;
}

/* 打字光标 */
#langHeroTitle::after,
#langHeroSubtitle::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #fff;
    margin-left: 2px;
    animation: blink 1s steps(2, start) infinite;
    vertical-align: bottom;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}

/* 响应式文字 */
@media (max-width: 768px) {
    .hero-lang .hero-title { font-size: 2rem; }
    .hero-lang .hero-subtitle { font-size: 1rem; }
}






