/* 页面整体样式 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Fira Code', monospace;
  background: linear-gradient(-215deg, #5BA8EE, #9DB8E0, #F2CECE, #F2CECE); /* 蓝粉渐变 */
  background-size: 400% 400%;
  animation: gradient 12s ease infinite; /* 动画时间调整为12s，更流畅 */
  color: #000; /* 全局字体颜色改为黑色 */
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/* 动态渐变动画 */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



/* 按钮容器样式 */
.button-container {
  position: absolute;
  top: 265px;
  left: 130px;
  display: grid; /* 使用网格布局 */
  grid-template-columns: repeat(2, 1fr); /* 两列布局 */
  grid-gap: 90px; /* 按钮之间的间距 */
  justify-items: center; /* 水平居中对齐 */
  align-items: center; /* 垂直居中对齐 */
}

/* 按钮样式 */
.animated-button {
  width: 290px;
  height: 260px;
  background-color: #FFF;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

/* 按钮点击时的动画效果 */
.animated-button:active {
  transform: scale(0.95);
  background-color: #F0F0F0;
}

/* 图标样式 */
.button-icon {
  width: 90px;
  height: 90px;
}

/* 文字样式 */
.button-text1 {
  font-family: 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: #676565;
}


/* 鼠标按下效果 */
button.outline:active {
    transform: scale(0.95); /* 轻微缩小 */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* 减少阴影 */
}


/* Logo 样式 */
.logo {
  position: absolute; /* 定位到页面左上角 */
  top: 30px; /* 距离顶部 */
  left: 38px; /* 距离左侧 */
  width: 130px; /* 固定宽度 */
  height: 130px; /* 固定高度 */
  z-index: 100; /* 确保层级较高 */
  cursor: pointer; /* 鼠标变为手形 */
  overflow: hidden; /* 防止图片溢出容器 */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25); /* 阴影效果 */
  border-radius: 20px; /* 圆角 */
}

.logo:hover {
      transform: scale(1.05); /* 微微放大 */
      transition: transform 0.3s ease; /* 平滑过渡 */
    }
/* 图片样式 */
.logo img {
  width: 100%; /* 图片宽度适应容器宽度 */
  height: 100%; /* 图片高度适应容器高度 */
  object-fit: cover; /* 图片裁剪填充容器，保持比例 */
  object-position: center; /* 图片居中对齐 */
}

/* SANA 样式 */
.sana {
  position: absolute;
  width: 334px; /* 宽度 */
  height: 254px; /* 高度 */
  left: 200px; /* 距离左侧 */
  top: -31px; /* 距离顶部 */
  font-family: 'Inter', sans-serif; /* 字体 */
  font-style: normal;
  font-weight: 600; /* 字体粗细 */
  font-size: 78px; /* 字体大小 */
  line-height: 190px; /* 行高 */
  text-align: center; /* 文本居中对齐 */
  letter-spacing: 24px; /* 字母间距 */
  color: #F1A5A5; /* 字体颜色 */
  text-shadow: 0px 5px 5px rgba(0, 0, 0, 0.25); /* 文本阴影 */
  display: flex; /* 使用 Flexbox */
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  box-sizing: border-box; /* 包括边框在内计算宽高 */
}




.styled-box {
  width: 596px;
  height: 380px;
  flex-shrink: 0;
  border-radius: 55px;
  background: linear-gradient(180deg, #FFF 0%, #FBE5F6 49.99%, #E6EEFC 99.99%);
  box-shadow: 0px 4px 4px 0px rgba(29, 27, 27, 0.25);
  position: absolute;
  top: 261px;
  left: 1067px;
  right: 35px;
}
/* 头像框样式 */
.profile-image {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 50%; /* 完全圆形 */
  background: url('./images/lego.png') lightgray 50% / cover no-repeat; /* 背景图片 */
  position: absolute;
  top: 33px;
  left: 36px;
}

/* Edit Profile 链接样式 */
.edit-profile-link {
  position: absolute;
  top: 172px; /* 调整链接距离顶部的位置 */
  left: 29px; /* 与头像框左对齐 */
  font-size: 16px;
  color: #A6A6A6; /* 链接颜色，可以根据需要调整 */
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.edit-profile-link:hover {
  text-decoration: underline; /* 鼠标悬停时的样式 */
}

/* 欢迎文字样式 */
.welcome-text {
  width: 270px;
  height: 130px;
  flex-shrink: 0;
  color: #1673FF;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 39px;
  font-style: italic;
  font-weight: 800;
  line-height: 27px;
  letter-spacing: 3.12px;
  position: absolute;
  top: 39px;
  left: 292px;
}


/* 头像框样式 */
.profile-image {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 50%; /* 完全圆形 */
  background: url('./image/lego.png') lightgray 50% / cover no-repeat; /* 背景图片 */
  position: absolute;
  top: 33px;
  left: 36px;
}


/* 表情区域样式 */
.emoji-area {
  width: 130px;
  height: 140px;
  flex-shrink: 0;
  background: url('./image/happy.png') no-repeat center center; /* 表情图像 */
  background-size: cover; /* 让图像覆盖整个框 */
  position: absolute;
  top: 167px;
  left: 360px;
}

.chat-button-container {
    position: absolute; /* 使用绝对定位 */
    top: 750px; /* 调整为相对于父容器顶部的具体像素值 */
    left: 1360px; /* 水平居中 */
    transform: translateX(-50%); /* 修正左偏移，确保完全居中 */
}

.chat-button {
    background: linear-gradient(0deg, #3090E9 100%, #F2CECE 0%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 30px 110px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.35);
}

.chat-button:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
}


/* 位置信息样式 */
.location-info {
  position: absolute;
  bottom: 19.81px;
  left: 36px;
  display: flex;
  align-items: center;
  gap: 15px; /* 图标、文字和国旗之间的间距 */
}

/* 位置图标样式 */
.location-icon {
  width: 26.156px;
  height: 32.193px;
  flex-shrink: 0;
}

/* 位置文字样式 */
.location-text {
  color: #7E7474;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 10px;
  letter-spacing: 0.028px;
}

/* 国旗图标样式 */
.flag-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/*以下是report的css */
/* 主容器 */
.report-container {
    width: 90%;
    max-width: 1200px;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 50px;
    align-items: stretch; /* 确保子元素等高 */
}

/* 图表部分 */
.chart-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-box {
    width: 100%;
    height: 400px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 文字分析部分 */
.analysis-section {
    flex: 1;
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.analysis-section h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #3090E9;
}

.analysis-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}



/* 响应式调整 */
@media screen and (max-width: 768px) {
    .report-container {
        flex-direction: column;
        gap: 20px;
    }

    .chart-box {
        height: 300px;
    }

    .analysis-section {
        align-items: center;
        text-align: center;
    }
}






.page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px; /* 分析区和聊天区之间的间距 */
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

/* 分析区域样式 */
/* 分析卡片整体样式 */
.analysis-card {
    flex: 1;
    max-width: 400px;
    background: linear-gradient(145deg, #ffffff, #e6eefc);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fade-in 0.5s ease-out;
}

/* 标题和情绪状态 */
.analysis-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #3090E9;
    margin-bottom: 5px;
}

.emotion-status {
    font-size: 16px;
    font-weight: 500;
    color: #676565;
}

.status-text {
    font-weight: bold;
    color: #F56C6C; /* 根据情绪动态改变颜色 */
}

/* 情绪图表 */
.emotion-chart {
    width: 100%;
    height: 150px;
    background: linear-gradient(145deg, #f5faff, #e6eefc);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0px 4px 10px rgba(0, 0, 0, 0.05);
}

/* 推荐部分 */
.recommendations-section h3 {
    font-size: 20px;
    font-weight: bold;
    color: #3090E9;
    margin-bottom: 10px;
}

.recommendations {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendations li {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
}

.recommendations a {
    color: #3090E9;
    text-decoration: none;
    font-weight: bold;
}

.recommendations a:hover {
    text-decoration: underline;
}

/* 动画效果 */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-card {
    flex: 3;
    max-width: 680px;
    background: #FFFFFF;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    height: 830px; /* 设置固定高度为 500px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* 聊天标题和返回按钮 */
.chat-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chat-title {
    font-size: 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #3090E9;
    margin: 0;
}



/* 聊天区域和消息内容 */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid #E6EEFC;
    border-radius: 15px;
    background: #F9FAFB;
}

/* 聊天气泡 */
.chat-bubble {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background-color 0.3s;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 60%;
    object-fit: cover;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.user-message {
    align-self: flex-end;
    background: linear-gradient(145deg, #5ba8ee, #3090e9);
    color: #ffffff;
    transform: scale(1);
}

.user-message:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, #3090e9, #1673ff);
}

.sana-message {
    align-self: flex-start;
    background: linear-gradient(145deg, #e6eefc, #dce6f5);
    color: #333333;
    transform: scale(1);
}

.sana-message:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, #dce6f5, #e6eefc);
}

/* 聊天输入区域 */
.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #E6EEFC;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

.chat-send-button {
    padding: 10px 20px;
    background: #3090E9;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.chat-send-button:hover {
    background-color: #2678C9;
    transform: scale(1.05);
}

.chat-send-button:active {
    transform: scale(0.95);
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .page-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .analysis-card, .chat-card {
        width: 100%;
    }
}






/* 调查问卷css */
/* 全局样式 */


/* 主容器 */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* 确保容器宽度自适应 */
  height: 100vh; /* 将高度设为视口高度 */
  padding: 20px; /* 添加外边距以避免内容太靠边 */
}


/* 卡片容器 */
/* 修改后的 .card 样式 */
.card {
  width: 100%;
  max-width: 900px; /* 将宽度从 800px 调整为 900px */
  padding: 40px; /* 将内边距从 30px 调整为 40px */
  border-radius: 20px;
  background: white;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 顶部导航 */
.top-navigation { 
  display: flex;
  justify-content: space-between;
  align-items: center;
}



.evaluation-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.progress-text {
  font-size: 14px;
  color: #555;
}

/* 进度条 */
.progress-bar-container {
  width: 100%;
  height: 10px;
  background: #e6eefc;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #3090E9, #87CEFA);
  transition: width 0.4s ease-in-out;
}

/* 问题区域 */
.questions-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.question-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

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

.label {
  font-size: 14px;
  color: #888;
}

.rating-button {
  width: 40px;
  height: 40px;
  background: #e6eefc;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  color: #3090E9;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.rating-button:hover {
  background: #3090E9;
  color: white;
}

.rating-button.selected {
  background: #3090E9;
  color: white;
  box-shadow: 0px 4px 8px rgba(48, 144, 233, 0.4);
}

/* 提交按钮 */
.submit-button {
  padding: 12px 20px;
  font-size: 16px;
  color: white;
  background: #3090E9;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.submit-button:hover {
  background: #2678C9;
  transform: scale(1.05);
}
/* 选中按钮高亮 */
.rating-button.selected {
  background-color: #3090E9;
  color: white;
  box-shadow: 0px 4px 10px rgba(48, 144, 233, 0.5);
  transform: scale(1.1);
}

.rating-button {
  transition: all 0.3s ease-in-out;
}

/* 恭喜界面 */

/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Fira Code', monospace;
  background: linear-gradient(to bottom right, #87CEFA, #FFC0CB);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* 主容器 */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 90%;
  max-width: 800px;
}

/* 卡片样式 */
.card {
  width: 100%;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.title {
  font-size: 28px;
  font-weight: bold;
  color: #3090E9;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 20px;
  color: #555;
  margin-bottom: 20px;
}

/* 记录项 */
.record {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.record-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 16px;
  color: #000; /* 确保文字为黑色 */
}

.record-date, .record-score {
  font-weight: bold;
  color: #000; /* 确保文字为黑色 */
}

.detail-button {
  padding: 8px 12px;
  font-size: 14px;
  color: white;
  background: #3090E9;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.detail-button:hover {
  background: #2678C9;
}

/* 图表容器 */
.chart-container {
  margin-top: 10px;
  height: 200px;
}

/* 按钮组 */
.button-group {
  margin-top: 20px;
}

.nav-button {
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background: #3090E9;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 0 10px;
}

.nav-button:hover {
  background: #2678C9;
  transform: scale(1.05);
}


/* 返回按钮样式 */

        /* 返回按钮 */
        .back-button {
            position: absolute;
            top: 20px;
            left: 20px;
            font-size: 20px;
            padding: 10px 20px;
            background: #ffffff;
            border: none;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
            color: #3090E9;
            cursor: pointer;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s, transform 0.2s;
        }




/* 设置css */
/* Body 渐变背景 */

/* Container 样式 */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Card 样式 */
.card {
  width: 100%;
  max-width: 500px; /* 将宽度从 800px 调整为 900px */
  padding: 40px; /* 将内边距从 30px 调整为 40px */
  border-radius: 20px;
  background: white;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* 按钮样式 */
.submit-button {
  width: 100%;
  padding: 10px 20px;
  background-color: #3090E9;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.submit-button:hover {
  background-color: #2677b8;
}

/* 表单标签和标题颜色 */
label, .setting-title, .evaluation-title {
  color: #000; /* 表单标签和标题的文字颜色改为黑色 */
}

/* 进度条和其他小元素（可选） */
.progress-text, .question-text, .rating .label {
  color: #000; /* 进度条文字和问题文字设置为黑色 */
}

/* 登录卡片样式 */
.login-card {
  width: 390px;
  padding: 20px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-title {
  font-size: 24px;
  font-weight: bold;
  color: #3090E9; /* 蓝色标题 */
}

.login-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* 表单样式 */
.login-form .input-group {
  margin-bottom: 15px;
  text-align: left;
}

.login-form label {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
  display: block;
}

.login-form input {
  width: 95%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #3090E9;
  box-shadow: 0 0 5px rgba(48, 144, 233, 0.5);
}

/* 登录按钮样式 */
.login-button {
  width: 100%;
  padding: 12px;
  background-color: #3090E9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  background-color: #2677b8;
}

/* 额外链接样式 */
.additional-links {
  margin-top: 15px;
}

.additional-links a {
  font-size: 14px;
  color: #3090E9;
  text-decoration: none;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.additional-links a:hover {
  text-decoration: underline;
}

/* 错误提示消息样式 */
.error-message {
  font-size: 12px;
  color: red;
  margin-top: 5px;
  display: none; /* 默认隐藏 */
}



/* profile css*/


.rotated-gradient-box {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
}



.profile-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

.profile-container {
  background: #FFFFFF;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 25px;
  padding: 30px;
  width: 80%;
  max-width: 500px;
  margin-top: 20px;
}

.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #3090E9;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.edit-avatar-button {
  background: #3090E9;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.2s;
}

.edit-avatar-button:hover {
  transform: scale(1.1);
}

.user-name {
  font-size: 22px;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.info-icon {
  font-size: 24px;
}

.info-text {
  font-weight: bold;
  color: #333;
}

.logout-button {
  background: linear-gradient(180deg, #FF6666 0%, #FF4D4D 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 30px;
  width: 100%;
  transition: background 0.2s, transform 0.2s;
}

.logout-button:hover {
  transform: scale(1.05);
  background: linear-gradient(180deg, #FF4D4D 0%, #FF3333 100%);
}


.rotated-gradient-box {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
}



.profile-container {
  background: #FFFFFF;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 25px;
  padding: 30px;
  width: 80%;
  max-width: 500px;
  margin-top: 20px;
  text-align: center;
}

.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #3090E9;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.edit-avatar-button {
  background: #3090E9;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.2s;
}

.edit-avatar-button:hover {
  transform: scale(1.1);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #ffffff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 20px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-size: 20px;
  margin-bottom: 20px;
}

.file-input {
  margin: 10px 0;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
}

.info-label {
  font-size: 18px;
}

.info-input {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  width: 70%;
}

.update-button,
.logout-button,
.upload-button {
  background: linear-gradient(180deg, #3090E9 0%, #6ABAF7 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.2s;
}

.update-button:hover,
.logout-button:hover,
.upload-button:hover {
  transform: scale(1.05);
}

/* community css*/

.rotated-gradient-box {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
}

.community-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.left-panel {
  background: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.upload-content-button {
  background: #3090E9;
  color: white;
  border: none;
  border-radius: 15px;
  padding: 10px;
  cursor: pointer;
  margin-bottom: 20px;
}

.categories {
  list-style: none;
  padding: 0;
}

.category-item {
  padding: 10px;
  margin: 5px 0;
  background: #E6EEFC;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.category-item.active {
  background: #3090E9;
  color: white;
}

.middle-panel, .right-panel {
  background: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

/* 卡片样式 */
.post-card {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 15px;
  background: #F9F9F9;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent; /* 初始透明边框 */
  transition: all 0.3s ease-in-out;
  position: relative;
}

/* 悬停时添加动态边框特效 */
.post-card:hover {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(90deg, #FF7EB3, #FF758C, #FF967E, #FFE084) border-box;
  box-shadow: 0px 6px 12px rgba(255, 118, 20, 0.3);
  transform: scale(1.02);
}

/* 用户头像 */
.post-header {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.post-content {
  margin: 10px 0;
  font-size: 16px;
  color: #333;
}

/* 图片样式 */
.post-image {
  width: 100%;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

/* 悬停时图片缩放 */
.post-image:hover {
  transform: scale(1.03);
}

/* 按钮组样式 */
.post-interactions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.like-button, .comment-button, .save-button {
  background: #3090E9;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.like-button:hover, .comment-button:hover, .save-button:hover {
  background: #6ABAF7;
  transform: scale(1.1);
}

.next-page {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/* 优化右侧箭头样式 */
.arrow-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(to bottom right, #3090E9, #87CEFA);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.arrow-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(48, 144, 233, 0.5);
}

.arrow-button::after {
  content: "→";
  font-size: 24px;
  color: white;
  font-weight: bold;
}
/* 社区主容器 */
.community-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}

/* 左侧分类栏 */
.categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upload-button {
  background: #3090E9;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}

.category-button {
  background: #e6eefc;
  color: #3090E9;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}

.category-button.active {
  background: #3090E9;
  color: white;
}

/* 内容显示区域 */
.content-display {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user-share {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.music-link {
  color: #3090E9;
  text-decoration: none;
  font-weight: bold;
}

.music-link:hover {
  text-decoration: underline;
}

.song-lyrics {
  font-style: italic;
  color: #555;
}

/* 优化右侧箭头 */
.arrow-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(to bottom right, #3090E9, #87CEFA);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.arrow-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(48, 144, 233, 0.5);
}

.arrow-button::after {
  content: "→";
  font-size: 24px;
  color: white;
  font-weight: bold;
}

/* ------------------------------ */
/* NEW HOMEPAGE LAYOUT (DESKTOP) */
/* ------------------------------ */

.homepage-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 25px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 90px;
    height: 88px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}

.header-title {
    font-size: 65px;
    font-weight: 700;
    letter-spacing: 20px;
    color: #ffffff;
    text-shadow: 0px 2px 6px rgba(0,0,0,0.3);
}

.header-right img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.homepage-container {
    margin-top: 90px;
    width: 100%;
    max-width: 1500px;
    display: flex;
    justify-content: space-between;
    padding: 20px 80px;
}

.homepage-left {
    width: 48%;
}

.homepage-title {
    font-size: 55px;
    font-weight: 800;
    color: #0d2b66;
}

.primary-btn-home {
    display: inline-block;
    margin-top: 15px;
    padding: 18px 60px;
    background: #3293f0;
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    font-size: 22px;
    transition: transform .2s;
}

.primary-btn-home:hover {
    transform: scale(1.05);
}

.homepage-subtitle {
    margin-top: 50px;
    font-size: 26px;
    font-weight: 700;
}

/* Quick Actions 容器更大 */
.homepage-actions {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(2, 290px); /* 从 180px → 230px */
    gap: 50px; /* 从 35px → 45px */
}

/* 每张卡片更大 */
.action-card {
  width: 100%;         /* 真正占满 380px */
  padding: 36px;
  min-height: 170px;

  border-radius: 35px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(20, 40, 84, 0.16);
}



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

.action-icon {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.homepage-right {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

.profile-card-home {
    width: 90%;
    background: linear-gradient(180deg, #FFF, #ECF3FF);
    border-radius: 35px;
    padding: 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);

}

.profile-avatar-home {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: url('./image/lego.png') center/cover no-repeat;
}

.profile-info-home {
    flex: 1;
}

.profile-name-home {
    font-size: 32px;
    font-weight: 800;
    color: #1673FF;
}

.edit-profile-link-home {
    color: #888;
    font-size: 16px;
    text-decoration: none;
}

.profile-location-home {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-emoji-home {
    font-size: 65px;
}

.support-btn-home {
    margin-top: 25px;
    display: block;
    padding: 18px 80px;
    background: #3293f0;
    color: white;
    border-radius: 40px;
    font-weight: 800;
    text-decoration: none;
    font-size: 22px;
    transition: transform .2s;
}

.support-btn-home:hover {
    transform: scale(1.05);
}

/* ----------------------------------- */
/*   FIXED PROFILE CARD (BETTER RATIO) */
/* ----------------------------------- */

.profile-card-home {
    margin-top: 45px;  
    width: 100%;
    max-width: 520px;                /* 从 690px 改为 520，避免过宽 */
    height: 260px;                   /* 加高度，让比例更舒服 */
    padding: 35px 40px;
    border-radius: 40px;
    background: linear-gradient(180deg, #ffffff, #eef3ff);
    display: grid;
    grid-template-columns: 120px 1fr 80px;   /* 头像 | 文本 | emoji */
    align-items: center;
    column-gap: 25px;
    box-shadow: 0px 6px 16px rgba(0,0,0,0.2);
}

/* 头像保持固定比例 */
.profile-avatar-home {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: url('./image/lego.png') center/cover no-repeat;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}

/* 文本区变更紧凑、更居中 */
.profile-info-home {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-name-home {
    font-size: 33px;
    font-weight: 900;
    color: #1673FF;
}

.edit-profile-link-home {
    font-size: 15px;
    color: #888;
    text-decoration: none;
}

.profile-location-home {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-text-home {
    font-size: 16px;
    color: #666;
}

/* emoji 更紧凑地放右侧，不撑高卡片 */
.profile-emoji-home {
    font-size: 110px;
    transform: translateX(-40px);
}

/* Get Support 按钮位置、比例调整 */
.support-btn-home {
    margin-top: 20px;
    padding: 20px 90px;
    font-size: 23px;
    font-weight: 800;
    border-radius: 40px;
}

/* Quick Actions 容器更大 & 更居中 */
.homepage-actions {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(2, 240px); /* 260 太宽 → 改 240 更稳 */
    gap: 55px;
}

/* 完美比例的卡片 */
.action-card {
    background: #ffffff;
    width: 195px;
    height: 130px;                /* 固定高度：更像“图标卡片” */
    border-radius: 35px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;      /* 内容垂直居中 */
    align-items: center;

    padding: 25px; 
    gap: 22px;                    /* 图标与文字间距 */

    text-decoration: none;
    color: #333;
    font-size: 22px;              /* 让文字撑住卡片 */
    font-weight: 600;

    box-shadow: 0px 6px 15px rgba(0,0,0,0.10);
    transition: all 0.25s ease;
}

.action-card:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0px 10px 25px rgba(0,0,0,0.18);
}

/* 图标比例也要一起增大 */
.action-icon {
    width: 80px;     /* 从 70px → 100px */
    height: 80px;    /* 更符合 240px 卡片比例 */
    object-fit: contain;
}
/* Improve Profile Card Visual Proportion */
.profile-card-home {
    width: 100%;
    max-width: 520px;              /* 让卡片稍微窄一点 → 不那么横条 */
    height: 260px;                 /* 加一点高度 → 比例更舒服 */
    padding: 40px 45px;
    border-radius: 40px;
    background: linear-gradient(180deg, #ffffff, #eef3ff);

    display: grid;
    grid-template-columns: 125px 1fr 70px; /* 头像 | 文本 | emoji */
    align-items: center;
    column-gap: 25px;

    box-shadow: 0px 8px 20px rgba(0,0,0,0.18);
}

/* Avatar centered vertically */
.profile-avatar-home {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: url('./image/lego.png') center/cover no-repeat;
    align-self: center;
}

/* Text Block More Balanced */
.profile-info-home {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 让文字垂直居中 */
    gap: 6px;
}

.profile-name-home {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    color: #1673FF;
}

/* Slightly smaller "Edit Profile" */
.edit-profile-link-home {
    font-size: 15px;
    color: #808080;
}

.location-text-home {
    color: #666;
    font-size: 17px;
}

/* Move emoji further left + center aligned */
.profile-emoji-home {
    font-size: 100px;
    transform: translateX(-30px); /* 再往左一点，更平衡 */
    align-self: center;           /* 垂直居中 → 和头像对齐 */
}

/* Mood Page Layout */
.mood-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
}

/* Title */
.mood-title {
    font-family: 'Fira Code', monospace;
    font-size: 48px;
    color: #0D2B60;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

/* Mood Grid */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(5, 200px);
    gap: 40px;
}

/* Card */
.mood-card {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 45px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: all .25s ease;
    border: 3px solid transparent;
}

/* Hover & Active */
.mood-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 8px 15px rgba(0,0,0,0.25);
    border-color: #3090E9;
}

.mood-card.selected {
    border-color: #3090E9;
    box-shadow: 0px 10px 20px rgba(48,144,233,0.4);
    transform: translateY(-6px);
}

/* Icon */
.mood-icon {
    width: 80px;
    height: 80px;
}

/* Label */
.mood-label {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #444;
    font-weight: 600;
}

/* Confirm Button */
.confirm-mood-btn {
    margin-top: 50px;
    background: #3090E9;
    color: white;
    padding: 20px 80px;
    border-radius: 50px;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: .25s;
}

.confirm-mood-btn:hover {
    transform: scale(1.05);
}
.mood-emoji {
    font-size: 70px;
    line-height: 1;
}



/* ============================
   SANA Mood Dashboard Styles
   ============================ */

/* 全局基础 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* 页面背景：柔和蓝粉渐变 + 中心高光 */


/* ============= 页面整体布局 ============= */
.dashboard-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 34px 0 46px;
}

.dashboard-inner {
  width: 100%;
  max-width: 1180px;
  padding: 0 18px;
  animation: fade-in 0.5s ease-out;
}

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

/* ============= 标题 ============= */
.dashboard-title {
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 46px;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 32px;
  color: #182a66;
  text-shadow:
    0 16px 40px rgba(19, 41, 90, 0.45),
    0 0 1px rgba(255, 255, 255, 0.8);
}

/* ============= 通用玻璃卡片（降亮版） ============= */
.glass-card {
  position: relative;
  border-radius: 28px;
  padding: 20px 24px;
  /* 更接近背景色的半透明玻璃，而不是纯白块 */
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.58),
      rgba(250, 252, 255, 0.42)
    );
  border: 1px solid rgba(255, 255, 255, 0.55);

  box-shadow:
    0 18px 40px rgba(11, 21, 54, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  overflow: hidden;
}

/* 右上角柔和光斑，亮度减弱 */
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 8% -10%,
    rgba(255, 255, 255, 0.55),
    transparent 60%
  );
  pointer-events: none;
}

/* 悬停微交互（小卡片） */
.glass-card.hoverable {
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.glass-card.hoverable:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 60px rgba(17, 40, 88, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ============= 上半部分布局 ============= */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 1.6fr;
  grid-template-rows: 165px 250px;
  grid-column-gap: 24px;
  grid-row-gap: 22px;
  margin-bottom: 36px;
}

/* 顶部统计卡片 */
.stat-card {
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Donut 卡片：右侧跨两行，稍微更透明一点 */
.stat-card-donut {
  grid-column: 3 / 4;
  grid-row: 1 / span 2;
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.54),
    rgba(244, 248, 255, 0.38)
  );
  box-shadow:
    0 18px 40px rgba(11, 21, 54, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  animation: float-slow 13s ease-in-out infinite alternate;
}

/* 折线图卡片：左下横跨两列 */
.chart-card {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  padding: 24px 30px 24px;
  height: 235px;
  display: flex;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.52),
    rgba(243, 248, 255, 0.36)
  );
  box-shadow:
    0 18px 40px rgba(11, 21, 54, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  animation: float-slow 15s ease-in-out infinite alternate;
}

/* Chart canvas 填满卡片 */
.chart-card canvas {
  width: 100% !important;
  height: 100% !important;
}

/* 轻微浮动动画（大块） */
@keyframes float-slow {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-4px);
  }
}

/* ============= 统计卡片内部排版 ============= */
.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: #8a92b1;
}

.stat-icon {
  font-size: 13px;
  color: #cbd1eb;
}

.stat-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon-large {
  font-size: 22px;
  opacity: 0.9;
}

.stat-value {
  font-size: 40px;
  font-weight: 700;
  color: #2d6dff;
  text-shadow:
    0 10px 28px rgba(45, 109, 255, 0.3),
    0 0 1px rgba(255, 255, 255, 0.8);
}

/* ============= Donut 区域 ============= */
.donut-layout {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 6px;
}

.donut-wrapper {
  flex: 0 0 188px;
  height: 188px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 0,
    rgba(255, 255, 255, 0.9),
    transparent 60%
  );
}

#moodDonutChart {
  width: 100% !important;
  height: 100% !important;
}

/* legend */
.mood-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #646c92;
}

.mood-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-positive {
  background: #2f8cff;
}

.dot-neutral {
  background: #9fa8da;
}

.dot-negative {
  background: #f6a9d6;
}

/* ============= 下半部分：Insights + Recommendations ============= */
.dashboard-bottom-row {
  display: flex;
  align-items: flex-start;
  gap: 34px;
}

/* 左、右列宽度 */
.bottom-left {
  flex: 1.08;
}

.bottom-right {
  flex: 1;
}

/* 小标题 */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1c275b;
  margin-bottom: 18px;
}

/* ---- Weekly insights 行 ---- */
.insights-row {
  display: flex;
  gap: 18px;
}

/* 小 insight 卡片：再柔一点 */
.insight-card {
  flex: 1;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.55),
    rgba(246, 249, 255, 0.38)
  );
  box-shadow:
    0 14px 30px rgba(12, 18, 46, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.insight-card.hoverable {
  cursor: default;
}

.insight-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #222c55;
}

.insight-icon {
  font-size: 16px;
}

.insight-text {
  font-size: 13px;
  line-height: 1.7;
  color: #6e7492;
}

/* ---- Recommendations 大卡片 ---- */
.recommendation-card {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.52),
    rgba(245, 248, 255, 0.36)
  );
  box-shadow:
    0 18px 38px rgba(11, 20, 51, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* 推荐里的每一行小条 */
.reco-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(255, 255, 255, 0.95),
    rgba(243, 246, 255, 0.9)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 26px rgba(143, 170, 236, 0.32);
  transition: transform 0.16s ease, box-shadow 0.18s ease;
}

.reco-item:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 32px rgba(143, 170, 236, 0.35);
}

.reco-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(86, 118, 204, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.reco-text {
  font-size: 14px;
  color: #5f6684;
}

/* ============= 响应式（简版） ============= */
@media (max-width: 1024px) {
  .dashboard-inner {
    max-width: 960px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .stat-card-donut {
    grid-column: auto;
    grid-row: auto;
    height: 270px;
  }

  .chart-card {
    grid-column: auto;
    grid-row: auto;
    height: 230px;
  }

  .dashboard-bottom-row {
    flex-direction: column;
  }

  .insights-row {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .dashboard-inner {
    max-width: 100%;
    padding: 0 12px;
  }

  .dashboard-title {
    font-size: 34px;
    letter-spacing: 0.05em;
  }
}

/* =========================================
   Global / 基础设置
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Fira Code", monospace;
  background: linear-gradient(-215deg, #5BA8EE, #9DB8E0, #F2CECE, #F2CECE);
  background-size: 400% 400%;
  animation: bg-move 14s ease infinite;
  color: #111827;
}

@keyframes bg-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================================
   顶部导航栏
   ========================================= */

.homepage-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 33, 70, 0.35);
}

.header-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.header-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-profile-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* =========================================
   主体两列布局
   ========================================= */

/* 主内容区左右加大间距 */
.homepage-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 120px;   /* 左右 padding 从 60 → 120 */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 130px;                  /* 左右列间距从 70 → 120 */
}


/* =========================================
   左列：标题 + 状态条 + 快捷入口
   ========================================= */

.homepage-left {
  flex: 1.05;
  display: flex;
  flex-direction: column;
}

.homepage-title {
  font-size: 46px;
  font-weight: 800;
  color: #112a63;
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 420px;
}

/* 顶部三块状态条 */
.mood-status-strip {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.mood-status-item {
  flex: 1;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(13, 37, 82, 0.11);
  backdrop-filter: blur(16px);
}

.mood-status-label {
  display: block;
  font-size: 12px;
  color: #7a86a5;
  margin-bottom: 4px;
}

.mood-status-value {
  font-size: 14px;
  font-weight: 600;
  color: #24325b;
}

/* Mood Check-in 主按钮 */

.primary-btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 15px 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f8cff, #3ca9ff);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(21, 92, 205, 0.48);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(21, 92, 205, 0.6);
}

.homepage-subtitle {
  margin-top: 30px;
  font-size: 22px;
  font-weight: 700;
  color: #182552;
}

/* ============================
   Quick Actions – LARGE CARDS
   ============================ */

/* 让整块区域更宽、更大间距 */
.homepage-actions {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 490px)); /* 更宽，从 360 → 420 */
  gap: 34px;  /* 按钮之间间距更大 */
}


/* 大尺寸卡片 */
.action-card {
  padding: 59px 50px;        /* 整体空间变大 */
  min-height: 150px;         /* 卡片高度变大（从 150 → 180） */
  border-radius: 36px;       /* 更圆润更高端 */

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
      0 20px 40px rgba(20, 40, 84, 0.12),
      inset 0 1px 0 rgba(255,255,255,0.8);

  display: flex;
  align-items: center;
  gap: 24px;                /* 图标与文字间距更大 */

  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.action-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 26px 55px rgba(20, 40, 84, 0.20);
}


/* ---------------------------
   大图标版本
---------------------------- */
.action-icon {
  width: 78px;           /* 从 50 → 78，显著变大 */
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
}


/* ---------------------------
   文本部分：更大、更显眼、更信息化
---------------------------- */
.action-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-title {
  font-size: 22px;       /* 从 19 → 22 */
  font-weight: 800;
  color: #182c5a;
}

.action-subtitle {
  font-size: 14px;       /* 从 12 → 14 */
  color: #717896;
  line-height: 1.5;
  max-width: 240px;      /* 避免文字过长拉伸卡片 */
}


/* ---------------------------
   Mobile responsiveness
---------------------------- */
@media (max-width: 1100px) {
  .homepage-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .action-card {
    min-height: 160px;
  }
}

@media (max-width: 760px) {
  .homepage-actions {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* =========================================
   右列：个人卡 + Today’s suggestion + 支持
   ========================================= */

.homepage-right {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  align-items: flex-end;    /* ← 右对齐所有右列组件 */
  gap: 20px;                /* ← 让组件之间距离更自然 */
}


/* 个人卡片 */

.profile-card-home {
  width: 100%;
  max-width: 520px;
  height: 250px;
  padding: 32px 38px;
  border-radius: 34px;
  background: radial-gradient(circle at 0% 0%, #ffffff, #eef3ff 60%);
  box-shadow: 0 18px 40px rgba(16, 39, 86, 0.22);
  display: grid;
  grid-template-columns: 116px 1fr 76px;  /* 头像 | 文本 | emoji */
  column-gap: 22px;
  align-items: center;
}

.profile-avatar-home {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: url("./image/lego.png") center/cover no-repeat;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.profile-info-home {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-name-home {
  font-size: 30px;
  font-weight: 900;
  color: #1673ff;
}

.edit-profile-link-home {
  font-size: 14px;
  color: #8a8fa7;
  text-decoration: none;
}

.edit-profile-link-home:hover {
  text-decoration: underline;
}

.profile-location-home {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-text-home {
  font-size: 14px;
  color: #616887;
}

.profile-week-summary {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7394;
}

.summary-positive {
  color: #1a9f63;
  font-weight: 600;
}

.profile-emoji-home {
  font-size: 88px;
  transform: translateX(-8px);
}

/* Today’s suggestion：在右侧 Hello 卡片下面 */

.today-tip-card {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(18, 42, 90, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
  max-width: 520px;
}

.today-tip-title {
  font-size: 15px;
  font-weight: 700;
  color: #1b2759;
  margin: 0 0 4px;
}

.today-tip-text {
  font-size: 14px;
  line-height: 1.6;
  color: #5f6688;
  margin: 0;
}

/* 支持按钮 + 说明 */

.support-block-home {
  margin-top: 18px;
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.support-btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 90px;
  border-radius: 32px;
  background: linear-gradient(135deg, #2f8cff, #3779ff);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(18, 84, 196, 0.58);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.support-btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(18, 84, 196, 0.68);
}

.support-caption {
  margin-top: 23px;
  font-size: 13px;
  color: #6a7396;
}
.homepage-right {
  display: flex;
  flex-direction: column;
    /* 整列组件右对齐 */
}

.emergency-link-home {
  margin-top: 0;        /* 去掉顶上的怪异间距 */
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  background: rgba(214, 73, 96, 0.92);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(120, 7, 32, 0.35);
}


/* =========================================
   响应式（简单）
   ========================================= */

@media (max-width: 1100px) {
  .homepage-container {
    flex-direction: column;
    padding: 110px 32px 48px;
    gap: 40px;
  }

  .homepage-right {
    width: 100%;
  }

  .profile-card-home,
  .today-tip-card,
  .support-block-home {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .homepage-title {
    font-size: 34px;
  }

  .mood-status-strip {
    flex-direction: column;
  }

  .homepage-actions {
    grid-template-columns: 1fr;
  }

  .action-card {
    width: 100%;
  }

  .homepage-header {
    padding: 14px 20px;
  }

  .homepage-container {
    padding: 100px 20px 40px;
  }
}

/* ================================
   Tweak glass effect → less blurry
   ================================ */

/* 先关掉之前那层强高光 */
.mood-status-item::after,
.action-card::after,
.today-tip-card::after,
.profile-card-home::after {
  background: none;
  opacity: 0;
}

/* 顶部状态条 & Quick Actions：改回更“实体”的卡片 */
.mood-status-item,
.action-card {
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f5f6fc);
  border: 1px solid rgba(230, 235, 250, 0.9);
  box-shadow: 0 10px 22px rgba(19, 39, 80, 0.14);
  backdrop-filter: none;              /* 去掉模糊 */
  -webkit-backdrop-filter: none;
}

/* Hover 保留一点动态感就好 */
.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(19, 39, 80, 0.2);
}

/* Profile 卡片：保留轻微玻璃但更清晰 */
.profile-card-home {
  border-radius: 30px;
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.96),
      rgba(238, 243, 255, 0.96)
    );
  border: 1px solid rgba(220, 230, 255, 0.95);
  box-shadow: 0 18px 38px rgba(16, 39, 86, 0.20);
  backdrop-filter: blur(8px);         /* 从 18px → 8px */
  -webkit-backdrop-filter: blur(8px);
}

/* Today’s suggestion：跟 Profile 一致但稍微更轻一点 */
.today-tip-card {
  border-radius: 24px;
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.97),
      rgba(244, 248, 255, 0.97)
    );
  border: 1px solid rgba(225, 233, 255, 0.95);
  box-shadow: 0 12px 28px rgba(18, 42, 90, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


/* ================================
   彩色渐变版卡片（替换白色背景）
   ================================ */

/* 顶部 3 个状态条：淡蓝 + 淡紫 */
.mood-status-item {
  border-radius: 20px;
  background: linear-gradient(135deg, #E4F0FF, #F4ECFF);
  border: 1px solid rgba(210, 222, 255, 0.9);
  box-shadow: 0 10px 22px rgba(19, 39, 80, 0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* 文字保持深色，方便阅读 */
.mood-status-label {
  color: #6F79A8;
}
.mood-status-value {
  color: #1F2850;
}

/* Quick Actions：偏粉蓝渐变，跟主背景呼应 */
.action-card {
  border-radius: 24px;
  background: linear-gradient(135deg, #FDF7FF, #E4F1FF);
  border: 1px solid rgba(230, 220, 255, 0.9);
  box-shadow: 0 12px 26px rgba(22, 40, 86, 0.16);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.action-title {
  color: #242B55;
}
.action-subtitle {
  color: #757CA1;
}

/* 右侧 Profile 卡片：主角，蓝粉渐变更强一点 */
.profile-card-home {
  border-radius: 30px;
  background: linear-gradient(145deg, #FDFBFF, #E4EEFF 45%, #F8E4F3 100%);
  border: 1px solid rgba(215, 228, 255, 0.95);
  box-shadow: 0 18px 40px rgba(16, 39, 86, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.profile-name-home {
  color: #1673FF;
}
.profile-week-summary {
  color: #6B7394;
}
.summary-positive {
  color: #1A9F63;
}

/* Today’s suggestion：偏暖一点的粉橘渐变 */
.today-tip-card {
  border-radius: 24px;
  background: linear-gradient(135deg, #FFF9F5, #FFE8F3);
  border: 1px solid rgba(255, 224, 236, 0.95);
  box-shadow: 0 12px 28px rgba(212, 120, 150, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.today-tip-title {
  color: #1F2750;
}
.today-tip-text {
  color: #5F6688;
}
/* ================================
   Quick Actions — Medium Size Version (B)
   ================================ */

/* 大区域布局：两列 + 更宽的按钮 */
.homepage-actions {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px)); /* 每个按钮 360px 宽 */
  gap: 32px 38px;  /* 上下 32px，左右 38px 间距 */
  justify-content: flex-start;
}

/* Medium Size 卡片 */
.action-card {
  width: 100%;
  padding: 32px 26px;
  min-height: 165px;            /* 固定高度 → 卡片更均匀 */
  border-radius: 26px;

  background: linear-gradient(135deg, #FDF7FF, #E4F1FF);
  border: 1px solid rgba(230, 220, 255, 0.9);
  box-shadow: 
      0 14px 30px rgba(22, 40, 86, 0.15),
      inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(5px);

  display: flex;
  align-items: center;
  gap: 20px;

  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Hover 效果（轻微浮起） */
.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 
      0 20px 44px rgba(22, 40, 86, 0.24),
      inset 0 1px 0 rgba(255,255,255,1);
}

/* 图标尺寸（中大型） */
.action-icon {
  width: 64px;     /* 不会过大 */
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* 文字区布局 */
.action-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 230px; /* 避免文字太长导致按钮变形 */
}

/* 主标题：醒目 */
.action-title {
  font-size: 20px;
  font-weight: 800;
  color: #1f2850;
}

/* 副标题：柔和 */
.action-subtitle {
  font-size: 13px;
  color: #717896;
  line-height: 1.45;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 1100px) {
  .homepage-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 760px) {
  .homepage-actions {
    grid-template-columns: 1fr;
  }
}

.homepage-right {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* ← 右对齐所有右列组件 */
  gap: 22px;               /* 组件之间统一间距 */
}
.emergency-link-home {
  align-self: center;     /* ← 魔法一样的居中！！ */
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  color: #fff;
  background: rgba(214, 73, 96, 0.92);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(120, 7, 32, 0.35);
}

/* ===============================
   Emergency Page (Fixed & Polished)
================================ */

/* 让页面正常滚动，防止被裁掉 */
body, html {
  height: auto !important;
  overflow-y: visible !important;
}

/* Emergency page container – 更自然、不被裁掉 */
.emergency-container {
  width: 100%;
  max-width: 900px;
  margin: 110px auto 100px;   /* 居中 + 不靠上 + 不贴边 */
  padding: 0 40px;            /* 更柔和的左右内边距 */
}

/* Title 更居中、更好看 */
.emergency-title {
  font-family: "Fira Code", monospace;
  font-size: 46px;
  font-weight: 900;
  color: #162a61;
  text-align: left;
  margin-bottom: 8px;
}

/* Subtitle */
.emergency-subtitle {
  font-size: 17px;
  color: #2b355f;
  opacity: 0.85;
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 38px;
}


/* ===============================
   Emergency Cards
=============================== */

.emergency-card {
  background: linear-gradient(135deg, #FDF7FF, #EAF1FF);
  border: 1px solid rgba(225, 230, 255, 0.9);
  border-radius: 26px;
  padding: 32px 36px;
  margin-bottom: 40px;
  box-shadow: 0 14px 34px rgba(18,42,90,0.16);
  backdrop-filter: blur(10px);
}

.emergency-card.critical {
  background: linear-gradient(135deg, #FFE7EA, #FFD5D8);
  border: 1px solid rgba(255, 190, 200, 0.9);
  box-shadow: 0 16px 40px rgba(220, 70, 80, 0.28);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: #222c55;
  margin-bottom: 14px;
}


/* ===============================
   Hotline items
=============================== */
.hotline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hotline-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 14px rgba(80, 110, 200, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}


/* ===============================
   Call 999 Button
=============================== */

.call-button {
  display: inline-block;
  padding: 14px 38px;
  font-size: 20px;
  background: linear-gradient(135deg, #ff5b6f, #ff8291);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(255, 110, 130, 0.35);
  transition: .2s ease;
  margin-top: 14px;
}

.call-button:hover {
  transform: translateY(-3px);
}


/* ===============================
   Back Button – 更好看、更靠右
=============================== */

.emergency-back-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-start;   /* ⬅ 右对齐 */
  margin-top: 40px;
}

.emergency-back-btn {
  display: inline-block;
  padding: 14px 42px;
  background: linear-gradient(135deg, #2f8cff, #3779ff);
  color: white;
  font-size: 18px;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(18,84,196,0.4);
  transition: .22s ease;
}

.emergency-back-btn:hover {
  transform: translateY(-3px);
}


/* ===========================
   GET SUPPORT PAGE LAYOUT
   =========================== */

/* 主容器：控制整体宽度和上下间距 */
.support-page {
  max-width: 1450px;
  margin: 0 auto;
  padding: 120px 80px 80px;   /* 顶部给导航让位 */
}

/* 顶部标题区 */
.support-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.support-back {
  position: absolute;
  left: 0;
  top: 4px;
}

.support-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(19, 39, 80, 0.25);
  font-family: "Fira Code", monospace;
  font-size: 14px;
  color: #182552;
  text-decoration: none;
}

.support-title {
  font-family: "Fira Code", monospace;
  font-size: 36px;
  letter-spacing: 0.16em;
  color: #182552;
  margin: 0 0 10px;
}

.support-subtitle {
  margin: 0;
  font-size: 18px;
  color: #414c7a;
}

/* 双列布局 */
.support-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1.2fr;
  gap: 40px;
}

/* 列本身只是一个 flex 列 */
.support-column-left,
.support-column-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-section-label {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2754;
}
.support-section-label.small {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* 顶部状态小条 */
.support-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(225,233,255,0.9);
  box-shadow: 0 12px 26px rgba(18,42,90,0.22);
  font-size: 13px;
  color: #3a426a;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f8cff;
}

/* 通用卡片玻璃风格 */
.support-card {
  border-radius: 24px;
  padding: 16px 25px;
  background: linear-gradient(135deg, #fdfbff, #e4f1ff);
  border: 1px solid rgba(222, 230, 255, 0.95);
  box-shadow: 0 18px 36px rgba(15, 33, 70, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 左侧横向按钮卡片 */
.support-card-row {
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  border: none;
  outline: none;
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, #f7fbff, #e9f5ff);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.support-card-large {
  margin-top: 6px;
}

/* 主 CTA 卡片（AI Listener） */
.support-card-primary {
  background: linear-gradient(135deg, #f7f4ff, #e3f0ff);
  box-shadow: 0 22px 48px rgba(32, 96, 210, 0.32);
}

.support-card-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(15, 33, 70, 0.26);
}

/* 左侧小圆图标 */
.support-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #ffffff, #b7d7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(31, 93, 183, 0.35);
  flex-shrink: 0;
}

.support-icon-ai {
  background: radial-gradient(circle at 30% 0%, #ffffff, #ffd5f2);
  box-shadow: 0 10px 22px rgba(190, 94, 188, 0.35);
}

.support-icon-inner {
  font-size: 20px;
}

/* 卡片文字 */
.support-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.support-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a2753;
}

.support-card-desc {
  font-size: 13px;
  color: #69739a;
}

/* 右侧 chips & 箭头 */
.support-chip {
  margin-left: auto;
  margin-right: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: #46507a;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(226,232,255,0.9);
}
.support-chip-primary {
  background: #2f8cff;
  color: #ffffff;
  border-color: #2f8cff;
}

.support-arrow {
  font-size: 20px;
  color: #8d96c0;
}

/* ============ 人工支持卡 ============ */

.support-human-card {
  padding-top: 18px;
}

.support-human-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.support-human-note {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(222,230,255,0.9);
  color: #6b7394;
}

.support-human-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.support-human-main {
  flex: 1;
}

.support-human-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2852;
}

.support-human-desc {
  font-size: 13px;
  color: #6a7396;
  margin-top: 3px;
}

.support-human-meta {
  font-size: 12px;
  color: #848bac;
  margin-top: 4px;
}

.support-human-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #2f8cff, #3779ff);
  color: white;
  box-shadow: 0 12px 26px rgba(18, 84, 196, 0.55);
}

.support-human-btn.secondary {
  background: #ffffff;
  color: #2353b2;
  box-shadow: 0 10px 22px rgba(18, 84, 196, 0.25);
}

.support-human-btn:disabled {
  cursor: default;
  opacity: 0.55;
  background: rgba(255,255,255,0.9);
  color: #7b84aa;
  box-shadow: none;
}

.support-divider {
  height: 1px;
  margin: 10px 0;
  background: linear-gradient(to right, rgba(180,192,230,0.4), rgba(255,255,255,0.2));
}

/* ============ 情绪趋势卡 ============ */

.support-emotion-card {
  padding: 18px 20px 16px;
}

.support-emotion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.support-emotion-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #606994;
  border: 1px solid rgba(220,229,255,0.9);
}

.support-emotion-body {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  align-items: center;
  column-gap: 16px;
}

.support-emotion-legend {
  font-size: 11px;
  color: #6b7394;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.legend-today {
  background: #2f8cff;
}
.legend-week {
  background: #9fa8da;
}

/* 简单图形背景 */
.support-emotion-chart {
  position: relative;
  width: 100%;
  height: 82px;
  border-radius: 18px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(229,237,255,0.9));
  overflow: hidden;
}

.chart-line {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 140% 140%;
}

.chart-line-week {
  background-image: linear-gradient(
    120deg,
    rgba(188, 197, 233, 0.7) 0%,
    rgba(188, 197, 233, 0.3) 50%,
    rgba(188, 197, 233, 0.8) 100%
  );
  opacity: 0.7;
}

.chart-line-today {
  background-image: linear-gradient(
    120deg,
    rgba(47, 140, 255, 0.0) 0%,
    rgba(47, 140, 255, 0.55) 30%,
    rgba(47, 140, 255, 0.9) 70%,
    rgba(47, 140, 255, 0.0) 100%
  );
  mix-blend-mode: multiply;
}

.support-emotion-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.support-emotion-emoji {
  font-size: 40px;
}

.support-emotion-text {
  font-size: 12px;
  color: #5c658f;
  text-align: right;
}
.support-emotion-text span {
  color: #2461d1;
}

/* ============ 建议流程卡 ============ */

.support-flow-card {
  padding-top: 14px;
}

.support-flow-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #5b648a;
  line-height: 1.6;
}

/* ============ 紧急工具栏 ============ */

.support-emergency-bar {
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffdde4, #ffb9c6);
  box-shadow: 0 16px 34px rgba(160, 35, 70, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5c0f25;
}

.support-emergency-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #c0183e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* =================== 响应式 =================== */

@media (max-width: 1040px) {
  .support-page {
    padding: 110px 32px 60px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-column-right {
    margin-top: 10px;
  }

  .support-header {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .support-page {
    padding: 100px 20px 40px;
  }

  .support-title {
    font-size: 30px;
  }

  .support-subtitle {
    font-size: 16px;
  }
}

/* =========================
      PROFILE PAGE (SANA UI)
   ========================= */

/* 背景渐变保持和主站一致 */
.rotated-gradient-box {
  min-height: 100vh;
  padding: 60px 20px;
  background: linear-gradient(150deg, #dde9ff 0%, #e6d4ff 40%, #f0c7d8 100%);
}

/* 页顶部导航 */
.top-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}



.profile-title {
  font-family: "Fira Code", monospace;
  font-size: 32px;
  letter-spacing: 0.1em;
  color: #182552;
}

/* ===========================
      Profile 主内容容器
   =========================== */

.profile-container {
  width: 500px;
  margin: 0 auto;
  text-align: center;

  padding: 40px 40px 60px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.65);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  box-shadow:
    0 28px 60px rgba(30, 50, 80, 0.18),
    inset 0 0 0 0.6px rgba(255, 255, 255, 0.75);
}

/* 头像区域 */
.profile-avatar {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;

  border: 6px solid rgba(255,255,255,0.75);
  box-shadow: 0 20px 45px rgba(40, 75, 145, 0.35);
}

/* 编辑头像按钮 */
.edit-avatar-button {
  position: absolute;
  bottom: 8px;
  right: 140px;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  background: linear-gradient(135deg, #8ab4ff, #477dff);
  box-shadow: 0 14px 32px rgba(22, 90, 200, 0.32);

  border: none;
  cursor: pointer;
  font-size: 18px;
  color: white;

  transition: transform 0.2s ease;
}

.edit-avatar-button:hover {
  transform: scale(1.12);
}

/* 用户名 */
.user-name {
  margin-top: 22px;
  font-size: 24px;
  font-weight: 700;
  color: #1f2754;
}

/* ===========================
         信息输入框
   =========================== */

.profile-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 12px 16px;
  border-radius: 16px;

  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(215, 225, 255, 0.85);
  backdrop-filter: blur(12px);

  box-shadow: 0 16px 36px rgba(28, 60, 120, 0.18);
}

.info-icon {
  font-size: 20px;
}

.info-label {
  font-size: 14px;
  color: #3a4470;
  min-width: 120px;
  text-align: left;
}

.info-input {
  flex: 1;
  font-size: 15px;

  padding: 8px 10px;
  border: none;
  border-radius: 8px;

  outline: none;
  color: #1c2343;
  background: rgba(255,255,255,0.65);

  box-shadow: inset 0 0 6px rgba(80,80,140,0.15);
}

.info-input:focus {
  background: white;
  box-shadow: inset 0 0 0 2px #6d9aff;
}

/* ===========================
         按钮
   =========================== */

.update-button,
.logout-button {
  width: 100%;
  padding: 14px;
  margin-top: 24px;

  font-size: 16px;
  border-radius: 16px;
  cursor: pointer;
  border: none;

  font-weight: 600;
  letter-spacing: 0.6px;
}

.update-button {
  background: linear-gradient(135deg, #348cff, #4d6aff);
  color: white;
  box-shadow: 0 20px 40px rgba(50, 90, 200, 0.32);
}

.update-button:hover {
  transform: translateY(-3px);
}

.logout-button {
  background: rgba(255,255,255,0.75);
  color: #cc2a4a;
  border: 1px solid rgba(255,180,180,0.65);
  box-shadow: 0 12px 34px rgba(200, 60, 60, 0.25);
}

.logout-button:hover {
  background: white;
}

/* ===========================
      Modal 弹窗玻璃效果
   =========================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);

  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 420px;
  padding: 32px 34px;
  border-radius: 26px;

  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px rgba(18, 38, 90, 0.32);

  text-align: center;
}

.close-button {
  float: right;
  cursor: pointer;
  font-size: 26px;
  color: #333;
}

.modal-title {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #1f2754;
}

.file-input {
  width: 100%;
  padding: 12px;
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid #cdd7f7;
}

.upload-button {
  margin-top: 20px;
  padding: 12px 20px;

  background: linear-gradient(135deg, #6fa8ff, #3e7bff);
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  width: 100%;

  font-weight: 600;
  box-shadow: 0 16px 32px rgba(50, 80, 200, 0.28);
}

/* ==============================
   Dashboard Back Button (LEFT)
================================ */

.dashboard-back-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-start;   /* ❶ 改成左对齐 */
  margin-top: 30px;
  margin-bottom: -10px;
  padding-left: 10px;            /* ❷ 微微缩进，不会贴左边 */
}

.dashboard-back-btn {
  padding: 12px 32px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(220, 228, 255, 0.8);
  box-shadow: 0 12px 28px rgba(18, 42, 90, 0.16);

  font-family: "Fira Code", monospace;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #1e2a55;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  transition: .22s ease;
}

.dashboard-back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(18,42,90,0.24);
}


/* 整体容器 */
.how-flow {
  width: 100%;
  max-width: 1100px;
  margin: 80px auto 120px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* 单条 step */
.how-item {
  display: flex;
  align-items: center;
  gap: 30px;

  padding: 28px 40px;
  border-radius: 28px;

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 40px rgba(15, 30, 70, 0.12);

  transition: 0.25s ease;
}

/* hover 动画 */
.how-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 30, 70, 0.18);
}

/* 图标 */
.how-icon {
  font-size: 48px;
  min-width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(100,120,180,0.18);
}

/* 文本区 */
.how-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how-step-title {
  font-family: "Fira Code", monospace;
  font-size: 24px;
  font-weight: 900;
  color: #141d3b;
}

.how-step-text {
  font-size: 16px;
  line-height: 1.65;
  color: #34405c;
  opacity: 0.9;
}

/* 左右交错布局 */
.how-item.left {
  flex-direction: row;
}

.how-item.right {
  flex-direction: row-reverse;
  text-align: right;
}

.how-item.right .how-content {
  align-items: flex-end;
}
/* ===============================
   How Page – Back Button with spacing
================================ */
.how-back-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;

  margin-top: 40px;      /* ⭐顶部留出空间（从 0 → 40px）*/
  margin-bottom: 25px;   /* ⭐与标题拉开一点距离 */
}

.how-back-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  border-radius: 999px;

  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(220,228,255,0.7);
  box-shadow: 0 12px 28px rgba(18,42,90,0.16);

  text-decoration: none;
  font-family: "Fira Code", monospace;
  font-size: 16px;
  font-weight: 700;
  color: #1e2a55;

  transition: .22s ease;
}

.how-back-btn:hover {
  transform: translateY(-3px);
}
/* ===============================
   How Page – Start Button with spacing
================================ */
.how-start-wrapper {
  text-align: center;
  margin-top: 70px;       /* ⭐与步骤区拉开距离 */
  margin-bottom: 80px;    /* ⭐底部留白，避免贴边 */
}

.how-start-btn {
  display: inline-block;
  padding: 18px 60px;
  border-radius: 999px;

  background: linear-gradient(135deg, #2f8cff, #3779ff);
  color: #ffffff;

  font-size: 20px;
  font-weight: 800;
  text-decoration: none;

  box-shadow: 0 16px 40px rgba(18,84,196,0.45);
  transition: .22s ease;
}

.how-start-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(18,84,196,0.58);
}

.header-link {
  padding: 8px 18px;
  border-radius: 999px;

  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.15));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255,255,255,0.45);
  color: #1f2a55;
  font-weight: 600;
  text-decoration: none;

  transition: .22s ease;
}

.header-link:hover {
  background: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}
.confirm-mood-btn {
  padding: 16px 40px;
  background: linear-gradient(135deg, #2f8cff, #3779ff);
  color: white;
  font-size: 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none; /* 关键：去掉下划线 */
  display: inline-block;
}
