/* 横向导航栏 */
.navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2ecc71;
    padding: 0 20px;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    font-family: "KaiTi", "楷体", serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.navigation-container {
    display: flex;
    align-items: center;
}

.navigation-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation-links li {
    position: relative;
}

.navigation-links li a {
    display: block;
    color: white;
    text-align: center;
    padding: 20px 15px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.navigation-links li a:hover {
    background-color: #27ae60;
}

/* 下拉菜单 */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    padding-left: 0;
    margin-left: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* 搜索框 */
.search-container {
    margin-left: 20px;
    display: flex;
}

.search-container input {
    padding: 8px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-container button {
    padding: 8px 12px;
    background: #f1f1f1;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-container button:hover {
    background: #ddd;
}



/* 宣传横幅 */
.publicity-banner {
    position: relative;
    height: 500px;
    background: linear-gradient(rgb(3, 87, 223), rgba(8, 86, 231, 0.3)),
    url(#) no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.banner-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.publicity-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    border: 2px solid #27ae60;
}

.cta-button:hover {
    background-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .publicity-banner {
        height: 400px;
    }

    .publicity-banner h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
}




/* 卡片容器 */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* 图片容器 */
.card-img-container {
    height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

/* 图片-保持比例 */
.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* 卡片内容 */
.card-content {
    padding: 15px;
}

.card h3 {
    margin-top: 0;
    color: #2ecc71;
}

.card p {
    color: #666;
    margin-bottom: 15px;
}

.card a {
    display: inline-block;
    color: #2ecc71;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.card a:hover {
    border-bottom-color: #2ecc71;
}



/* 注册和登录表单 */
.reg-and-login-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.1);
    border: 1px solid #e0f7e9;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 28px;
}

.form-header p {
    color: #666;
    font-size: 16px;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

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

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: #81c784;
    font-size: 18px;
}

/* 输入框 */
.reg-and-login-form input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 2px solid #e0f7e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f8fef9;
}

.reg-and-login-form input:focus {
    border-color: #81c784;
    box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.2);
    outline: none;
}

.reg-and-login-form input::placeholder {
    color: #b2dfdb;
}

/* 验证码区域 */
.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-code {
    display: inline-block;
    padding: 10px 15px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #2e7d32;
    user-select: none;
}

.refresh-captcha {
    background: none;
    border: none;
    color: #2e7d32;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.refresh-captcha:hover {
    color: #1b5e20;
}

/* 密码显示/隐藏按钮 */
.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #81c784;
    font-size: 16px;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #57a05a, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* 底部链接 */
.form-footer {
    margin-top: 25px;
    text-align: center;
}

.login-link {
    color: #666;
    margin-top: 15px;
}

.login-link a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/*图标字体*/
.icon-user:before { content: "👤"; }
.icon-email:before { content: "✉️"; }
.icon-lock:before { content: "🔒"; }
.icon-shield:before { content: "🛡️"; }
.icon-refresh:before { content: "🔄"; }
.icon-leaf:before { content: "🌱"; }




/* 登录弹窗 */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: #2e7d32;
    margin-bottom: 8px;
    font-size: 22px;
}

.modal-header p {
    color: #666;
    font-size: 14px;
}

/* 登录表单 */
#loginForm .form-group {
    margin-bottom: 20px;
}

#loginForm label {
    display: block;
    margin-bottom: 8px;
    color: #2e7d32;
    font-weight: 500;
    font-size: 14px;
}

#loginForm .input-with-icon {
    position: relative;
}

#loginForm .input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #81c784;
}

#loginForm input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #e0f7e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #f8fef9;
}

#loginForm input:focus {
    border-color: #81c784;
    box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.2);
    outline: none;
}

#loginForm .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #81c784;
    font-size: 16px;
}

/* 登录按钮 */
#loginForm .submit-btn {
    width: 100%;
    padding: 14px;
    background: #66bb6a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#loginForm .submit-btn:hover {
    background: #57a05a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}


/* 图标定义 */
.icon-login:before { content: "🔑"; }




/* 页脚 */
.site-footer {
    background: #2e7d32;
    color: white;
    padding: 20px 0;
    position: relative;
    font-size: 16px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 0 20px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1b5e20;
    transform: translateY(-3px);
}

/* 图标定义 */
.icon-arrow-up:before { content: "⬆️"; }
