/* 全局样式 */
html, body {
    width: 100%;
    overflow-x: hidden; /* 隐藏横向滚动条 */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* Logo 样式 */
.logo {
    margin: 20px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo svg {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
    fill: #0078d4;
}

.logo span {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    vertical-align: middle;
    letter-spacing: 1px;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    width: 90%;
    max-width: 800px;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    min-height: 120px;
    box-sizing: border-box; /* 确保 padding 和 border 包含在宽度内 */
}

.search-box:hover {
    border-color: #0078d4;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 1em;
    background-color: transparent;
    box-sizing: border-box;
}

.search-box button {
    position: absolute;
    right: 15px;
    bottom: 15px;
    background-color: #0078d4;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #005bb5;
}

.search-box button svg {
    height: 20px;
    fill: #fff;
}

/* 搜索内容区块样式 */
.search-sections {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box; /* 确保 padding 和 border 包含在宽度内 */
    overflow: hidden; /* 防止内容溢出 */
}

/* 最新文章区块样式 */
.search-section {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-section h2 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.search-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* 搜索项样式 */
.search-item {
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: #333;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.search-item a {
    text-decoration: none;
    color: inherit;
}

.search-item:hover {
    background-color: #0078d4;
    color: #fff;
    transform: translateY(-2px);
}

.search-item:hover a {
    color: #fff;
}

/* 等待动画样式 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#loading-content {
    text-align: center;
}

#loading-progress {
    width: 200px;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    margin: 10px auto;
    position: relative;
    overflow: hidden;
}

#loading-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #0078d4;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .logo span {
        font-size: 1.5em;
    }

    .search-box {
        min-height: 100px;
        padding: 10px;
    }

    .search-box input {
        font-size: 0.9em;
        padding: 8px;
    }

    .search-box button {
        padding: 8px 16px;
    }

    .search-section h2 {
        font-size: 1em;
    }

    .search-item {
        font-size: 0.8em;
        padding: 6px 12px;
        white-space: normal; /* 允许换行 */
    }
}
  /* 验证码弹窗样式 */
    #captcha-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        align-items: center;
        justify-content: center;
        z-index: 1001;
        transition: opacity 0.3s ease;
    }

    #captcha-content {
        background-color: #fff;
        padding: 30px;
        border-radius: 15px;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        max-width: 330px;
        width: 90%;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #captcha-content label {
        display: block;
        font-size: 18px;
        margin-bottom: 15px;
        color: #333;
        font-weight: 600;
    }

    .captcha-input-container {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
        justify-content: center;
    }

    #verifyCodeInput {
        width: 150px;
        padding: 12px;
        font-size: 16px;
        border: 2px solid #ddd;
        border-radius: 10px;
        box-sizing: border-box;
        transition: border-color 0.3s ease;
    }

    #verifyCodeInput:focus {
        border-color: #007bff;
        outline: none;
    }

    #captcha-content img {
        cursor: pointer;
        border-radius: 10px;
        border: 2px solid #ddd;
        height: 40px; /* 调整验证码图片高度 */
        transition: transform 0.3s ease;
    }

    #captcha-content img:hover {
        transform: scale(1.05);
    }

    #captcha-content button {
        background-color: #007bff;
        color: #fff;
        border: none;
        padding: 12px 30px;
        font-size: 16px;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.3s ease;
        display: block;
        margin: 0 auto; /* 确定按钮居中 */
    }

    #captcha-content button:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
    }

    /* 响应式调整 */
    @media (max-width: 600px) {
        #captcha-content {
            padding: 20px;
        }

        #verifyCodeInput {
            width: 140px;
        }

        #captcha-content button {
            padding: 10px 25px;
        }
    }
/* 模态框背景 */
.modal {
    display: none;
    position: fixed; /* 固定在页面上 */
    z-index: 1000; /* 确保模态框在最上层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* 模态框内容 */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
}

/* 标题样式 */
#error-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* 消息样式 */
#error-modal-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* 关闭按钮样式 */
#close-error-modal {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#close-error-modal:hover {
    background-color: #ff1a1a;
}

/* 显示模态框 */
.modal.show {
    display: flex;
}
.submit-spinner {
    display: none; /* 初始隐藏 */
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 页脚整体样式 */
.blog-footer {
        position: fixed; /* 固定在底部 */
    bottom: 0; /* 距离底部 0 */
    left: 0; /* 距离左侧 0 */
    width: 100%; /* 宽度 100% */
        width: 100%;
    background: linear-gradient(to bottom, #f0f0f0, #c0c0c0);
    color: #fff; /* 文字颜色 */
    font-family: 'Arial', sans-serif; /* 字体 */
        text-align: center; /* 文字居中 */
}


/* 页脚容器 */
.footer-container {
    max-width: 1200px; /* 最大宽度 */
    margin: 0 auto; /* 水平居中 */
    padding: 0 20px; /* 左右内边距 */
    display: flex; /* 分栏布局 */
    justify-content: space-between; /* 内容均匀分布 */
    flex-wrap: wrap; /* 小屏幕换行 */
    gap: 20px; /* 栏目间距 */
}


/* 底部版权信息样式 */
.footer-bottom {
    text-align: center; /* 文字居中 */
    padding: 20px 0; /* 上下内边距 */
    margin-top: 20px; /* 顶部外边距 */
}

.footer-bottom p {
    margin: 5px 0; /* 上下外边距 */
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8); /* 半透明文字 */
}

.footer-bottom a {
    color: #1abc9c; /* 链接颜色 */
    text-decoration: none; /* 去掉下划线 */
}

.footer-bottom a:hover {
    text-decoration: underline; /* 悬停时下划线 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* 小屏幕垂直排列 */
        text-align: center; /* 文字居中 */
    }

    .footer-social {
        justify-content: center; /* 图标居中 */
    }

    .footer-title::after {
        left: 50%; /* 下划线居中 */
        transform: translateX(-50%);
    }
}
        /* 基础按钮样式 */
        .login-btn {
         display: inline-block;
  padding: 12px 25px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  color: #fff;
  background-color: #378bdd;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: absolute;
  right: 15px;
  bottom: 15px;
        }
        .login-btn:hover {
            background-color: #0077cc;
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
        }

        .login-btn:active {
            background-color: #005299; /* 更深的蓝色 */
            transform: translateY(0);
            box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
        }