

* {  
    margin: 0;  
    padding: 0;  
    box-sizing: border-box;  
}  
  
ul, li {  
    list-style: none;  
}  
  
a {  
    text-decoration: none;  
    color: inherit;  
}  
  
/* ==================== Body ==================== */  
body {  
    padding-top: 60px;  
    background: #f5f5f5;  
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;  
}  
  
/* ==================== Header Section ==================== */  
.head-section {  
    position: fixed;  
    top: 0;  
    left: 0;  
    right: 0;  
    z-index: 1000;  
    background: #f5f5f5;  
    border-bottom: 1px solid #e5e5e5;  
    height: 60px;  
}  
  
.head-section .navbar {  
    max-width: 1200px;  
    margin: 0 auto;  
    height: 60px;  
    padding: 0 20px;  
    display: flex;  
    align-items: center;  
    justify-content: flex-start;  
}  
  
/* Logo */  
.head-section .navbar-brand {  
    font-size: 26px;  
    font-weight: 400;  
    color: #5cbdb9 !important;  
    padding: 0 20px 0 0;  
    letter-spacing: 2px;  
    white-space: nowrap;  
    flex-shrink: 0;  
}  
  
.head-section .navbar-brand:hover {  
    color: #4aa8a4 !important;  
}  
  
/* 导航标签按钮 */  
.nav-tabs-custom {  
    display: flex;  
    align-items: center;  
    margin-right: 20px;  
    flex-shrink: 0;  
}  
  
.nav-tab-btn {  
    display: inline-block;  
    padding: 8px 20px;  
    font-size: 14px;  
    border-radius: 4px;  
    margin-right: 10px;  
    cursor: pointer;  
    transition: all 0.3s ease;  
}  
  
.nav-tab-btn.active {  
    background: #5ac17d;  
    color: #fff;  
}  
  
.nav-tab-btn.inactive {  
    background: #e0e0e0;  
    color: #666;  
}  
  
.nav-tab-btn:hover {  
    opacity: 0.85;  
}  
  
/* 搜索框 */  
.search-box {  
    display: flex;  
    align-items: center;  
    background: #fff;  
    border: 1px solid #ddd;  
    border-radius: 4px;  
    overflow: hidden;  
    flex-shrink: 0;  
}  
  
.search-box input {  
    border: none;  
    outline: none;  
    padding: 10px 15px;  
    font-size: 14px;  
    color: #333;  
    width: 250px;  
    background: transparent;  
}  
  
.search-box input::placeholder {  
    color: #999;  
}  
  
.search-box .search-btn {  
    background: transparent;  
    border: none;  
    padding: 10px 15px;  
    cursor: pointer;  
    color: #999;  
    border-left: 1px solid #eee;  
    transition: all 0.3s ease;  
}  
  
.search-box .search-btn:hover {  
    color: #5ac17d;  
    background: #f9f9f9;  
}  
  
/* 右侧空间占位 */  
.navbar-spacer {  
    flex: 1;  
}  
  
/* 用户区域 */  
.user-area {  
    position: relative;  
    flex-shrink: 0;  
    margin-left: auto;  
}  
  
.user-area .user-toggle {  
    display: flex;  
    align-items: center;  
    padding: 8px 12px;  
    cursor: pointer;  
    border-radius: 4px;  
    transition: all 0.3s ease;  
}  
  
.user-area .user-toggle:hover {  
    background: rgba(0, 0, 0, 0.05);  
}  
  
.user-area .headicon {  
    width: 32px;  
    height: 32px;  
    border-radius: 50%;  
    margin-right: 8px;  
    object-fit: cover;  
}  
  
.user-area .user-name {  
    font-size: 14px;  
    color: #333;  
    margin-right: 5px;  
}  
  
.user-area .caret {  
    display: inline-block;  
    width: 0;  
    height: 0;  
    border-left: 5px solid transparent;  
    border-right: 5px solid transparent;  
    border-top: 5px solid #999;  
    transition: transform 0.3s ease;  
}  
  
.user-area.open .caret {  
    transform: rotate(180deg);  
}  
  
/* 用户下拉菜单 */  
.user-area .dropdown-menu {  
    display: none;  
    position: absolute;  
    top: 100%;  
    right: 0;  
    background: #fff;  
    border: 1px solid #e5e5e5;  
    border-radius: 6px;  
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);  
    padding: 8px 0;  
    min-width: 150px;  
    margin-top: 5px;  
    z-index: 1001;  
}  
  
.user-area.open .dropdown-menu {  
    display: block;  
    animation: fadeIn 0.2s ease;  
}  
  
@keyframes fadeIn {  
    from { opacity: 0; transform: translateY(-10px); }  
    to { opacity: 1; transform: translateY(0); }  
}  
  
.user-area .dropdown-menu li a {  
    display: block;  
    color: #333;  
    padding: 10px 20px;  
    font-size: 14px;  
    transition: all 0.2s ease;  
}  
  
.user-area .dropdown-menu li a:hover {  
    background: #f5f5f5;  
    color: #5ac17d;  
}  
  
.user-area .dropdown-menu li a i {  
    margin-right: 10px;  
    color: #999;  
    width: 16px;  
    text-align: center;  
}  
  
.user-area .dropdown-menu li a:hover i {  
    color: #5ac17d;  
}  
  
/* 移动端菜单按钮 */  
.navbar-toggle {  
    display: none;  
    border: 1px solid #ddd;  
    border-radius: 4px;  
    padding: 8px 10px;  
    background: #fff;  
    cursor: pointer;  
    flex-direction: column;  
    gap: 4px;  
}  
  
.navbar-toggle .icon-bar {  
    display: block;  
    width: 20px;  
    height: 2px;  
    background-color: #666;  
}  
  
/* 导航内容区 */  
.navbar-content {  
    display: flex;  
    align-items: center;  
    flex: 1;  
}  
  
/* ==================== 响应式设计 ==================== */  
@media (max-width: 768px) {  
    .head-section {  
        height: auto;  
        min-height: 60px;  
    }  
      
    .head-section .navbar {  
        flex-wrap: wrap;  
        height: auto;  
        padding: 10px 15px;  
    }  
      
    .navbar-toggle {  
        display: flex;  
        margin-left: auto;  
    }  
      
    .navbar-content {  
        display: none;  
        width: 100%;  
        flex-direction: column;  
        align-items: flex-start;  
        padding: 15px 0;  
        border-top: 1px solid #e5e5e5;  
        margin-top: 10px;  
    }  
      
    .navbar-content.show {  
        display: flex;  
    }  
      
    .nav-tabs-custom {  
        margin: 10px 0;  
    }  
      
    .search-box {  
        width: 100%;  
        margin: 10px 0;  
    }  
      
    .search-box input {  
        width: 100%;  
    }  
      
    .user-area {  
        margin: 10px 0;  
        margin-left: 0;  
    }  
      
    body {  
        padding-top: 60px;  
    }  
}  
  
/* ==================== Footer ==================== */  
.footer-small {  
    background: #fff;  
    border-top: 1px solid #e5e5e5;  
    padding: 20px 0;  
    text-align: center;  
}  
  
.footer-small .copyright {  
    color: #999;  
    font-size: 13px;  
}  
  
.footer-small .copyright a {  
    color: #666;  
}  
  
.footer-small .copyright a:hover {  
    color: #5ac17d;  
}  


/* General Styles */
.row-container {
    position: relative;
    width: 100%;  /* 使用百分比宽度，确保它在不同的屏幕上自适应 */
    max-width: 1000px;  /* 最大宽度设置为800px，确保大屏时不会过于宽 */
    height: 85vh;  /* 使用视口高度（vh）来设置高度，相对于可视窗口 */
    margin: 0 auto;  /* 自动水平居中 */
    box-sizing: border-box; /* 包括内边距和边框的宽度计算在内 */
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .row-container {
        height: 75vh;  /* 在较小的屏幕上稍微减少高度 */
        width: 90%;  /* 宽度略微缩小，确保适应中等屏幕 */
    }
}

@media (max-width: 600px) {
    .row-container {
        height: 70vh;  /* 在手机屏幕上进一步减少高度 */
        width: 100%;  /* 在手机设备上使用100%宽度 */
    }
}
.chat-container {
  max-width: 800px;
  margin: 0 auto;

  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
  height: 95%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.chat-header {
    background-color: #1890ff;
    color: white;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ai-disclaimer {
    font-size: 9px;
    color: #fff;
    margin-left: 10px;
}
.chat-messages {
  padding: 15px;
  overflow-y: auto;
  background-color: #fafafa;
  flex: 1;
  min-height: 100px;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
}

.user-message {
    background-color: #1890ff;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background-color: #e6e6e6;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.bot-message a {
    color: #1890ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.bot-message a:hover {
    color: #004499;
    text-decoration: underline;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #fff;
}

#message-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 16px;
}

#analysisImage,
#send-button {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #48cfad;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
}

#analysisImage:hover,
#send-button:hover {
    background-color: #39b797;
}

#analysisImage:disabled,
#send-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.typing-indicator {
    display: none;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.cancel-button {
    position: absolute;
    right: 10px;
    top: 5px;
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}

.message-loading {
    opacity: 0.7;
}

/* Deep Analysis Button Style */
.btn-deep-analysis {
    transition: all 0.3s ease;
    padding: 8px 20px;
    font-size: 16px;
    border-radius: 30px;
    background-color: #48cfad;
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(72, 207, 173, 0.3);
    cursor: pointer;
}

.btn-deep-analysis:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 207, 173, 0.4);
    background-color: #39b797;
}

.btn-deep-analysis i {
    margin-right: 5px;
}

/* Preset Button Container Style */
.preset-buttons {
    display: flex;
    gap: 10px;
    padding: 5px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

/* Preset Button Style */
.preset-buttons button {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    background-color: #48cfad;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

/* Hover Effect for Buttons */
.preset-buttons button:hover {
    background-color: #39b797;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Active Effect for Buttons */
.preset-buttons button:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .preset-buttons {
        flex-direction: column;
    }
    
    .preset-buttons button {
        width: 100%;
        min-width: auto;
    }

    .chat-container {
        max-width: 100%;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    .chat-header {
        font-size: 16px;
        padding: 10px;
    }
    
    .chat-input {
        padding: 10px;
    }

    #message-input {
        font-size: 14px;
    }

    .message {
        max-width: 100%;
    }
}

/* For Small Screens (Mobile) */
@media (max-width: 600px) {
    .chat-header {
        font-size: 14px;
        padding: 10px;
    }

    .chat-input {
        padding: 8px;
    }

    #message-input {
        font-size: 14px;
        padding: 8px;
    }

    .preset-buttons button {
        width: 100%;
        min-width: auto;
        font-size: 14px;
    }

    .message {
        padding: 8px 12px;
    }
    
    /* Make Buttons Full Width on Small Screens */
    #analysisImage,
    #send-button {
        width: 100%;
        padding: 12px;
    }

    /* Adjust chat container for mobile */
    .chat-container {
        max-width: 100%;
        padding: 5px;
        margin-top: 5px;
    }

    .typing-indicator {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .cancel-button {
        font-size: 14px;
    }
}

/* New Header Button Style */
#interpret-btn {
    font-size: 14px;
    padding: 6px 15px;
    border-radius: 15px;
    background: #48cfad;
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#interpret-btn:hover {
    background: #39b797;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Keyframe for Loading Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

/* Disabled Button Style */
button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
