/* 全局样式 */
:root {
    --primary-color: #0d1b2a;
    --secondary-color: #1b4965;
    --accent-color: #62b6cb;
    --light-color: #ecf0f1;
    --dark-color: #0d1b2a;
    --text-color: #333;
    --light-text: #f9f9f9;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans SC", "Roboto", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

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

/* 语言切换按钮 */
.language-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

.lang-btn:active {
    transform: translateY(0);
}

/* 语言切换动画 */
[data-cn][data-en] {
    transition: opacity 0.3s ease;
}

/* 导航栏 */
.navbar {
    background-color: #ffffff;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* 首页轮播图 */
.hero {
    padding-top: 70px;
    position: relative;
}

.carousel {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.slide-desc {
    font-size: 1.2rem;
    font-weight: 300;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* 通用部分样式 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 关于我们 */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text {
    width: 100%;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* 虚拟形象展示 */
.about-character {
    width: 100%;
    margin-top: 20px;
}

.character-content {
    display: flex;
    gap: 30px;
    align-items: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.character-image {
    flex: 0 0 120px;
}

.character-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.character-image img:hover {
    transform: scale(1.05);
}

.character-info {
    flex: 1;
}

.character-name {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.character-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* 社团创始者 */
.about-founder {
    width: 100%;
    margin-top: 20px;
}

.founder-content {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.founder-info {
    text-align: center;
}

.founder-name {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.founder-role {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.founder-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .character-content {
        flex-direction: column;
    }

    .character-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* 宗旨与精神 */
.mission {
    background-color: #f9f9f9;
}

.mission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.mission-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mission-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.mission-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.mission-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.spirit-list {
    list-style: none;
}

.spirit-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    line-height: 1.8;
}

.spirit-list li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 活动 */
.activities {
    background-color: white;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: block;
    text-decoration: none;
    color: inherit;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(13, 27, 42, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.activity-card:hover .activity-icon {
    transform: rotate(360deg) scale(1.1);
    background-color: var(--secondary-color);
}

.activity-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.activity-card:hover .activity-icon i {
    color: white;
}

.activity-content {
    padding: 30px;
}

.activity-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.activity-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* 联系我们 */
.contact {
    background-color: var(--primary-color);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: center;
}

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    transition: var(--transition);
}

.contact-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-item i {
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.form-control textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        margin: 5px 10px;
    }

    .carousel {
        height: 400px;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-desc {
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
