/* index.css - 首页专用样式 */

/* 访问统计图片样式 */
.visit-counter-img {
    position: absolute;
    visibility: hidden;
    width: 1px;
    height: 1px;
}

/* 用户等级标签样式 */
.admin-badge {
    background-color: #dc3545;
    color: white;
    font-size: 0.6em;
    padding: 2px 5px;
    border-radius: 3px;
    vertical-align: middle;
}

.vip-badge {
    background-color: #ffc107;
    color: white;
    font-size: 0.6em;
    padding: 2px 5px;
    border-radius: 3px;
    vertical-align: middle;
}

/* 公告内容样式 */
.announcement-title-text {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.announcement-content-text {
    white-space: pre-wrap;
}

.announcement-empty {
    text-align: center;
    color: #999;
    padding: 2rem;
}

.announcement-empty-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* 欢迎区域样式 */
.fade-in {
    color: #ffffff;
}

.fade-in-text {
    opacity: 0;
}

/* 轮播图片样式 */
.carousel-image {
    max-width: 90%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-image.small-image {
    max-width: 60%;
}

/* 特色内容样式 */
.feature-cards.three-column {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

/* 页脚按钮 */
.footer-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

/* 用户等级标签 */
.admin-badge {
    background-color: #dc3545;
    color: white;
    font-size: 0.6em;
    padding: 2px 5px;
    border-radius: 3px;
    vertical-align: middle;
}

.vip-badge {
    background-color: #ffc107;
    color: white;
    font-size: 0.6em;
    padding: 2px 5px;
    border-radius: 3px;
    vertical-align: middle;
}

/* 基础样式 */
body {
    background-color: #e0f7fa; /* 设置背景颜色为浅蓝色 */
}

.fade-in-text, .ai-chat-text {
    color: #ffffff; /* 设置文本颜色为白色 */
    font-family: Arial, sans-serif; /* 设置字体 */
}

.fade-in-text {
    background: linear-gradient(to right, #ffffff, #ffffff); /* 渐变颜色改为纯白 */
    -webkit-background-clip: text; /* 仅对文本应用背景 */
    background-clip: text; /* 添加标准属性以实现兼容性 */
    -webkit-text-fill-color: transparent; /* 使文本颜色透明 */
    animation: fadeIn 2s ease-in; /* 添加渐变动画 */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 添加居中样式 */
.home-carousel-section {
    text-align: center; /* 使文本居中 */
}

/* 添加文字颜色样式 */
.home-carousel-section h2 {
    font-size: 2.0em; /* 设置标题文字大小 */
    color: #3e4a57;
}

.home-carousel-section p {
    font-size: 1.2em; /* 设置段落文字大小 */
    color: #3e4a57;
}

/* 照片轮播样式 */
.carousel-slide {
    display: flex; /* 使用flexbox布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    padding: 20px; /* 添加内边距 */
}

.carousel-slide img {
    max-width: 70%; /* 确保图片不超出容器 */
    height: auto; /* 保持图片比例 */
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影 */
    cursor: pointer; /* 鼠标悬停时显示手形光标 */
}

.lightbox {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明背景 */
    justify-content: center; /* 居中对齐 */
    align-items: center; /* 垂直居中 */
    z-index: 1000; /* 确保在最上层 */
    cursor: pointer; /* 鼠标悬停时显示手形光标 */
}

.lightbox img {
    max-width: 90%; /* 最大宽度 */
    max-height: 90%; /* 最大高度 */
}

.bug-report-button {
    background-color: #4ca3e0; /* 按钮背景颜色 - 浅蓝色 */
    color: white; /* 按钮文字颜色 */
    border: none; /* 去掉边框 */
    border-radius: 5px; /* 圆角 */
    padding: 5px 10px; /* 内边距 */
    cursor: pointer; /* 鼠标悬停时显示手形光标 */
    font-size: 1em; /* 字体大小 */
    margin-top: 5px; /* 上边距 */
}

.bug-report-button:hover {
    background-color: #3a8cc1; /* 悬停时的背景颜色 - 深一点的蓝色 */
}

/* 右下角按钮样式 */
.fixed-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* 确保在最上层 */
}

/* 登录按钮样式 */
.login-button {
    background-color: #4ca3e0; /* 浅蓝色背景 */
    color: white !important; /* 白色文字，使用!important确保覆盖其他样式 */
    padding: 5px 15px; /* 内边距 */
    border-radius: 5px; /* 圆角 */
    margin-right: 250px; /* 右侧间距 */
    transition: background-color 0.3s ease; /* 平滑过渡效果 */
}

.login-button a {
    color: white !important; /* 确保a标签文字为白色 */
    text-decoration: none; /* 移除下划线 */
}

.login-button:hover {
    background-color: #3a8cc1; /* 悬停时的深蓝色 */
    color: white !important; /* 确保悬停时文字仍为白色 */
}

.login-button:hover a {
    color: white !important; /* 确保悬停时a标签文字仍为白色 */
}

/* 修改页脚样式以适应天气组件和用户头像 */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

/* 页脚中间区域样式 */
.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

/* 添加featured-content部分的样式 */
.featured-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-size: 2rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* 功能预览区域响应式优化 */
@media (max-width: 1200px) {
    .features-preview {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features-preview {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}