/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 盒子模型 */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 800;
    color: #d24e19;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: color 0.3s ease; /* 过渡效果 */
}

hr {
    border: none;
    border-top: 1px solid #e74c3c;
    margin: 2rem 0;
}

/* 导航栏 - 使用定位(position) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1a751;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    padding: 10px 5% ;
    position: sticky; /* 粘性定位 */
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(200, 3, 3, 0.327);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 2rem;
}

.navbar ul li a {
    font-size: larger;
    color: #fff;
    padding: 0.5rem 0;
    position: relative;
}

.navbar ul li a.active {
    color: #e74c3c;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease; /* 过渡效果 */
}

.navbar ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 移动端菜单 - 显示与隐藏(display) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #2c3e50;
    z-index: 101;
    padding: 2rem;
    transition: right 0.3s ease; /* 过渡效果 */
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 2rem;
}

.mobile-menu ul li {
    margin: 1rem 0;
}

.mobile-menu ul li a {
    color: #fff;
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
}

.mobile-menu ul li a.active {
    color: #e74c3c;
}

/* 英雄区容器 - 相对定位，作为内容和背景的参照物 */
.hero-container {
    width: 100%;
    height: 60vh;
    position: relative;
    overflow: hidden;
}
/* 背景图片 - 仅这个元素会有缩放效果 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* 平面转换-缩放效果 */
    transform: scale(1);
    transition: transform 5s ease-in-out; /* 平滑过渡效果 */
}
/* 鼠标悬停时背景图片缩放 */
.hero-container:hover .hero-background {
    transform: scale(1.05); /* 放大5% */
}

/* 文字内容 - 保持静止，不随背景缩放 */
.hero-content {
    position:absolute;
    width: 100%;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -100%); /* 居中定位 */
    text-align: center;
    color: white;
    z-index: 2; /* 确保文字在背景之上 */
    padding: 20px;
    background-color: rgba(162, 121, 63, 0.5);
    border-radius: 8px;
}

/* 文字样式 */
.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-container {
        height: 40vh;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}
    

/* 社团简介 */
.intro {
    background: #fff;
    padding: 20px 0;
    text-align: center;
}

.intro ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.intro ul li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.intro ul li::before {
    content: '•';
    color: #e74c3c;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
}

/* 活动展示 - 使用浮动(float) */
.activities {
    padding: 2rem 0;
    background: #f9f6f0;
}

.activities h2 {
    text-align: center;
}

.activity-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.activity-card {
    width: 350px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 过渡效果 */
}

.activity-card:hover {
    transform: translateY(-10px) scale(1.02); /* 2D转换 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.activity-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}
/* 文本链接样式 */
.qq-group-link {
  color: #e35e00; 
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.qq-group-link:hover {
  color: #e35e00;
  text-decoration: underline;
}
/* 页面标题 */
.page-header {
    background: linear-gradient(0,white 0%,#f8db72 100%);
    color: #e35e00;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    margin: 0;
    color: #e35e00;
    font-size: 2.5rem;
}

/* 社团风采 - 思维导图样式 */
.club-features {
    padding: 1rem 0;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.mind-map {
    position: relative;
    width: 100%;
    min-height: 700px;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 1rem;
}

/* 装饰几何图形 */
.decor-shape {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}

.shape1 {
    width: 300px;
    height: 300px;
    border: 30px solid #e35e00;
    top: 40%;
    left: 15%;
    transform: rotate(45deg);
}

.shape2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid #e74c3c;
    bottom: 75%;
    right: 80%;
}

.shape3 {
    width: 180px;
    height: 100px;
    border: 8px solid #f8db72;
    top: 60%;
    left: 5%;
}

.shape4 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #f1a751;
    top: 20%;
    right: 20%;
}

.mind-center {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 200px;
    z-index: 10;
}

.mind-center img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 6px solid #e74c3c;
    margin-bottom: 1rem;
}

/*思维导图分支位置为三角形布局 */
.mind-branch {
    position: absolute;
    width: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

/* 三角形顶点分支（顶部） */
.branch-1 {
    top: 0%;
    right: 38%;
    transform: translateY(0);
}

/* 三角形右底角分支 */
.branch-2 {
    bottom: 5%;
    right: 5%;
    transform: translateY(0);
}

/* 三角形左底角分支 */
.branch-3 {
    bottom: 5%;
    left: 5%;
    transform: translateY(0);
}
/* 连接线公共样式 */
.connection-line {
  position: absolute;
  background-color: #e35e00; 
  z-index: 2; /* 确保在线条背景之上，内容之下 */
  pointer-events: none; /* 让鼠标可以穿透线条点击下面的内容 */
}

/* 第一条线：中心到顶部 */
.connection-top {
  width: 4px;
  height: 200px; 
  top: 40%; /* 起始位置 */
  left: 50%;
  transform: translateX(-50%); 
}

/* 第二条线：中心到右侧 */
.connection-right {
  width: 250px; 
  height: 4px;
  top: 70%; 
  left: 50%;
  transform: translateY(-50%)rotate(20deg); 
}

/* 第三条线：中心到左侧 */
.connection-left {
  width: 250px; 
  height: 4px;
  top: 70%; 
  right: 50%;
  transform: translateY(-50%)rotate(160deg); 
}

/* 响应式调整 */
@media (max-width: 768px) {
  .connection-top,
  .connection-right,
  .connection-left {
    width: 150px; /* 小屏幕缩短线条 */
    height: 3px;  /* 线条变细 */
  }
}
.mind-branch:hover {
    transform: scale(1.05);
}

.branch-content {
    background: #fbf5ea;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mind-branch img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* 改进的模态框样式 */
.feature-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* 原页面变暗效果 */
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-content {
    background: #fff;
    border: radius 8px;;
    width: 100%;
    max-width: 800px; /* 不占满屏幕 */
    min-width: 700px;
    max-height: 90vh; /* 限制最大高度 */
    position: relative;
    animation: zoomIn 0.3s;
    overflow-y: auto; /* 内容过多时可滚动 */
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #e74c3c;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 101;
}

.close-modal:hover {
    transform: scale(1.1);
}

#modal-body {
    padding: 0; /* 移除内边距以便图片充满宽度 */
}

#modal-body img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px 8px 0 0; /* 顶部圆角 */
    margin-bottom: 0; /* 移除底部间距 */
}

#modal-body .modal-text {
    padding: 2rem;
}

#modal-body h3 {
    color: #e35e00;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

#modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #e74c3c;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

#modal-body {
    padding: 2rem;
}

#modal-body img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mind-map {
        min-height: 800px;
    }
    
    .mind-branch {
        width: 250px;
    }
    
    .branch-1 {
        top: 5%;
    }
    
    .branch-2 {
        top: 35%;
        right: 2%;
    }
    
    .branch-3 {
        bottom: 10%;
    }
    
    .mind-map::before {
        width: 40%;
    }
}

/* 社团结构 - 表格样式 */
.structure {
    padding: 3rem 0;
    background: #f9f6f0;
}

.structure-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.structure-table th, .structure-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.structure-table th {
    background: #e35e00;
    color: #fff;
}

.structure-table tr:hover {
    background: #f9f9f9;
}

/* 社团成员 - 使用3D转换 */
.members {
    padding: 3rem 0;
    background: #fff;
}

.member-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.member-card {
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease; /* 过渡效果 */
}

.member-card:hover {
    transform: scale(1.05); /* 3D转换 */
}

.member-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #e74c3c;
    transition: all 3s ease; /* 阴影过渡动画 */
}
.member-img:hover{
    box-shadow: 0 0 10px #e74c3c;
}
.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease-in-out; /* 过渡效果 */
}

.member-card:hover .member-img img {
    transform: scale(1.1) rotate(360deg);
    transition: transform 3s ease-in-out; /* 旋转动画 */
}

/* 作品展示 - 画廊 */
.gallery-filters {
    background: #fff;
    padding: 1rem 0;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 1rem;
}

.filter-item {
    background: #f1a751;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease; /* 过渡效果 */
}

.filter-item.active {
    background: #e74c3c;
}

.filter-item:hover {
    background: #e74c3c;
}

.gallery {
    padding: 1rem 0;
    background: #fff;
}

.gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(142, 42, 42, 0.1);
    transition: transform 0.3s ease; /* 过渡效果 */
}

.gallery-item:hover {
    transform: scale(1.03); /* 2D转换 */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* 过渡效果 */
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1); /* 2D转换 */
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(210, 167, 115, 0.799);
    color: #fff;
    padding: 1rem;
    transform: translateY(100%); /* 2D转换 */
    transition: transform 0.3s ease; /* 过渡效果 */
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* 图片查看器 - 显示与隐藏 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex; /* 显示 */
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid #fff;
    border-radius: 4px;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease; /* 过渡效果 */
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-close {
    top: -60px;
    right: -60px;
}

.lightbox-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%); /* 2D转换 */
}

.lightbox-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%); /* 2D转换 */
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.2rem;
}

/* 会员福利 */
.membership-benefits {
    padding: 3rem 0;
    background: linear-gradient(0,#fbf5ea 0%,#fff 100%);
}

.membership-benefits h2 {
    text-align: center;
}

.benefit-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    width: 250px;
    background: #fff;
    padding: 2rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease; /* 过渡效果 */
}

.benefit-card:hover {
    transform: translateY(-10px); /* 2D转换 */
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease; /* 过渡效果 */
}

.benefit-card:hover .benefit-icon {
    transform: rotate(10deg) scale(1.1); /* 2D转换 */
}

/* 报名表单 */
.registration-form {
    padding: 3rem 0;
    background: #fbf5ea;
}

.form {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s ease; /* 过渡效果 */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e74c3c;
    outline: none;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-submit {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none; /* 默认隐藏错误信息 */
}

.error-message.active {
    display: block; /* 显示错误信息 */
}
/* 按钮 */
.btn {
    display: inline-block;
    background: #f1a751;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease; /* 过渡效果 */
}

.btn:hover {
    background: #e74c3c;
    transform: translateY(-2px); /* 2D转换 */
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.required {
    color: #e74c3c;
}

/* 常见问题 */
.faq {
    padding: 3rem 0;
    background: #fbf5ea;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1rem 1.5rem;
    background: #e76a3c;
    color: #fff;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease; /* 过渡效果 */
}
.faq-question:hover {
    background: #d7511f;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease; /* 过渡效果 */
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg); /* 2D转换 */
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease; /* 过渡效果 */
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex; /* 显示 */
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s ease; /* 动画效果 */
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* 页脚 */
footer {
    background: #f1a751;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ffffff; 
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e74c3c;
}

.social-links a {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.social-links a i {
    margin-right: 0.5rem;
    color: #ffffff;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ffffff;
}

/* 移动端布局 */
@media (max-width: 768px) {
    .navbar ul {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .carousel {
        height: 300px;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slide-content h2 {
        font-size: 1.2rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-year {
        left: 30px;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 60px;
        float: none !important;
    }
    
    .lightbox-close, .lightbox-prev, .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-close {
        top: -50px;
        right: 0;
    }
    
    .lightbox-prev {
        left: 0;
    }
    
    .lightbox-next {
        right: 0;
    }
}
