:root {
    --gradient-from: #4F46E5;
    --gradient-to: #9333EA;
    --button-hover: #3730A3;
    --text-dark: #1F2937;
    --text-light: #F9FAFB;
    --bg-gray: #F3F4F6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 20px;
    flex: 1;
}

/* 修改后的标题部分 */
.hero {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeIn 1s ease;
    display: flex;
    flex-direction: column; /* 修改为垂直排列 */
    align-items: center;
    gap: 20px;
}

/* 确保手机端保持正常 */
@media (max-width: 768px) {
    .hero {
        gap: 15px; /* 调整间距 */
    }
}

.title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    /* gap: 20px; */
}

.title-icon {
    font-size: 3.5rem;
    background: linear-gradient(45deg, var(--gradient-from), var(--gradient-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.himg {
    width: 2.825rem;
    height: 2.825rem;
    border-radius: .40625rem;
    vertical-align: middle;
    border-style: none;
}

.gradient-text {
    /* background: linear-gradient(45deg, var(--gradient-from), var(--gradient-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    font-weight: 500;
    font-size: 1.625rem; /* 调小字体大小 */
    /* letter-spacing: 0.1em; */
    line-height: 1;
    margin-left: .6125rem;
    /* margin-bottom: 18px;  */
}

.title-ge {
    position: relative;
    top: -0.06em;
    display: inline-block;
    height: 0.9em;
    margin: 0 8px;
    vertical-align: middle;
    border-top: 0;
    border-inline-start: 1px solid rgba(27, 26, 26, 0.6);
    padding: 0;
    font-size: 16px;
    line-height: 1.5714rem;
    list-style: none;
}

@media (max-width: 768px) {
    .title-ge {
        display: none; /* 隐藏手机端分割线 */
    }
}

/* 修改后的输入框 */
 .input-container {
    max-width: 720px;
    margin: 0 auto 30px;
    position: relative;
}

.input-box {
    display: flex;
    gap: 16px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-box:focus-within {
    border-color: var(--gradient-from);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -2px rgba(79, 70, 229, 0.1);
}



    #userInput {
        flex: 1;
        border: none;
        padding: 20px 24px;
        font-size: 1.125rem;
        border-radius: 12px;
    }

    #userInput:focus {
        outline: none;
    }

    .send-button {
        background: linear-gradient(45deg, var(--gradient-from), var(--gradient-to));
        color: white;
        border: none;
        padding: 0 36px;
        border-radius: 12px;
        font-size: 1.325rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .send-button:hover {
        background: linear-gradient(45deg, var(--button-hover), #7C3AED);
        transform: scale(0.98);
    }

/* 修改后的功能模块 */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 30px;
}

.feature-card {
    display: flex; /* 确保使用 Flexbox 布局 */
    flex-direction: row; /* 水平排列子元素 */
    align-items: flex-start; /* 顶部对齐 */
    gap: 20px; /* 图标和内容之间的间距 */
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    text-align: left;
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.feature-icon {
    flex-shrink: 0; /* 防止图标被压缩 */
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--gradient-from), var(--gradient-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    justify-content: center; /* 水平居中对齐 */
}

.feature-content {
    flex: 1; /* 占据剩余空间 */
    overflow: hidden; /* 防止内容溢出 */
}

.feature-desc {
    font-size: .875rem;
    line-height: 1.25rem;
    margin-top: .125rem;
    overflow: hidden;
    display: -webkit-box;
    color: #313335b9;
    -webkit-line-clamp: 4; /* 设置显示的行数 */
    -webkit-box-orient: vertical;
}
 /* 底部 */
footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

footer p {
    color: #636e72;
    font-size: 0.9rem;
}


/* 新增媒体查询 */
@media (max-width: 768px) {
    /* 标题部分调整 */
    .hero {
        flex-direction: column; /* 改为垂直排列 */
        gap: 15px;
    }

    .title-wrapper {
        flex-direction: column; /* 子元素垂直排列 */
        align-items: center; /* 居中对齐 */
        text-align: center; /* 文本居中 */
    }

    .gradient-text {
        font-size: 1.8rem; /* 缩小字体大小 */
    }

    .title-icon {
        font-size: 2.5rem; /* 缩小图标大小 */
    }

    /* 输入框和按钮调整 */
    .input-box {
        flex-direction: column; /* 输入框和按钮垂直排列 */
        gap: 10px; /* 减小间距 */
    }

    #userInput {
        width: 100%; /* 输入框宽度占满父容器 */
        padding: 12px; /* 调整内边距 */
        font-size: 1rem; /* 缩小字体大小 */
    }

    .send-button {
        width: 100%; /* 按钮宽度占满父容器 */
        padding: 12px; /* 调整内边距 */
        font-size: 1rem; /* 缩小字体大小 */
    }

    /* 智能体模块调整 */
    .features {
        grid-template-columns: 1fr; /* 每行显示1个模块 */
    }

    .feature-card {
        flex-direction: row; /* 强制水平排列 */
        align-items: center; /* 垂直居中对齐 */
        gap: 10px; /* 减小图标和内容之间的间距 */
        padding: 10px; /* 调整内边距以适配小屏幕 */
    }

    .feature-icon {
        width: 60px; /* 减小图标的宽度 */
        height: 50px; /* 减小图标的高度 */
        font-size: 2.2rem; /* 调整图标字体大小 */
        margin: 0; /* 移除多余的外边距 */
    }

    .feature-content {
        flex: 1; /* 占据剩余空间 */
        text-align: left; /* 确保文本左对齐 */
    }
}