html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
}

body {
    display: flex;
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    background-color: #f9f9f9;
    padding: 10px;
    box-shadow: px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.header {
    margin-bottom: 20px;
}

.header h1 {
    color: #333;
    margin: 0 0 15px 0;
}

.header h1 img {
    height: 35px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    background-color: #0069d9;
}

/* 功能列表样式 */
.feature-list {
    flex: 1;
    margin-bottom: 20px;
}

.glm-feature {
    background-color: white;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.2s ease-out;
    border: 0px solid #e8e8e8;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.glm-feature:hover {
    background-color: #e9f5ff;
    border-color: #b8daff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
    transform: translateX(4px);
}

.glm-feature-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glm-feature:hover .glm-feature-name {
    color: #007bff;
    font-weight: 600;
}

.glm-feature img {
    width: 24px;
    height: 24px;
}

/* 最近对话 */
.recent-chats h5 {
    margin: 20px 0 10px 0;
    color: #666;
    font-size: 14px;
}

/* 底部按钮 */
.footer {
    margin-top: auto;
}

.zhi {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zhi button {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.zhi button:hover {
    background-color: #f0f7ff;
    border-color: #b8daff;
}

.zhi button img {
    width: 20px;
    height: 20px;
}

/* VIP区域 */
.vip {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.vip img {
    width: 100%;
    display: block;
}

/* 主内容区域 */
.middle-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.slogan h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 500;
}

.announcement {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
}

.announcement p {
    margin: 8px 0;
    display: inline;
}

.badge {
    background-color: #4e73df;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.left-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.right-feature {
    height: 100%;
}

.feature-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: #4e73df;
    margin-bottom: 15px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: flex;          
    flex-wrap: wrap;        
    justify-content: center; 
    gap: 8px;               
}

.feature-card p span {
    white-space: nowrap;     
}

a {
    color: #4e73df;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .middle-section {
        padding: 20px 15px;
        margin: 20px auto;
    }
}

/* 底部输入框 */
.chat-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

.input-box {
    position: relative;
    margin-top: 110px;
}

.new-chat-tag {
    position: absolute;
    top: -10px;
    left: 15px;
    background-color: #4a8cff;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.input-content {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chat-input {
    width: 100%;
    min-height: 60px;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    margin-bottom: 10px;
    font-family: inherit;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mode-options {
    display: flex;
    gap: 8px;
}

.mode-tag {
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 15px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-tag:hover {
    background-color: #e0e0e0;
}

.mode-tag.active {
    background-color: #4a8cff;
    color: white;
}

.send-btn {
    padding: 8px 20px;
    background-color: #4a8cff;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.send-btn:hover {
    background-color: #3a7be0;
}
/* 轮播图 */
.carousel-inside {
    margin-top: 36px;
    overflow: hidden;
    border-radius: 8px;
    height: auto;
    max-height: 180px;
}


.carousel-inside .carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fade 0.8s ease-in-out;
}

.carousel-inside .carousel-slide img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

.carousel-inside .carousel-slide.active {
    display: block;
}

.carousel-inside .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: white;
    border: none;
    font-size: 20px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1;
}
@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
