@charset "UTF-8";
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */ }

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0; }

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block; }

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0; }

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */ }

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */ }

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent; }

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
  /* 2 */ }

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder; }

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */ }

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%; }

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline; }

sub {
  bottom: -0.25em; }

sup {
  top: -0.5em; }

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none; }

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */ }

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible; }

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none; }

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button; }

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0; }

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText; }

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em; }

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */ }

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline; }

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto; }

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */ }

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto; }

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */ }

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none; }

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */ }

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block; }

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item; }

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none; }

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none; }

:root {
  --fontFamily:NotoSans, "PingFangTC", Microsoft JhengHei,"微軟正黑體", "Helvetica", "sans-serif";
  --black:#000;
  --gray100:#131820;
  --gray200:#2D3E56;
  --gray300:#303F53;
  --gray400:#4E5969;
  --gray500:#8D9AAD;
  --gray600:#CBCBCB;
  --gray700:#C9C9C9;
  --gray800:#D5DEEC;
  --gray900:#E4E4E4;
  --gray1000:#ECECEC;
  --gray1100:#F2F3F5;
  --purple100:#696DCF;
  --purple200:#BBB5FF;
  --purple300: #B5AFF5;
  --purple400: #C9C5F5;
  --purple500:#DCD9FF;
  --purple600:#E7E5FB;
  --purple700:#E7EEFF;
  --purple800:#F5F8FF;
  --blue100: #D5EEFF;
  --green100: #82D5C1;
  --green200: #71D7B4;
  --green300: #20B398;
  --green400:#B4E2D7;
  --green500: #C7E3DC;
  --green600: #CFEFE4;
  --green700: #F1F9F7;
  --brown100:#765B27;
  --brown200:#DFC38C;
  --brown300:#E7D5B1;
  /*語意化顏色變數*/
  --textBlack: var(--primaryText);
  --border: var(--gray700);
  --border_hover: var(--gray600);
  --border_light:var(--gray1000);
  --border_light_hover:var(--gray900);
  --border_green:var(--green300);
  --tableStrike:var(--gray1100);
  --GreenBg:var(--green700);
  --primaryColor: #16806D;
  --primaryColor_hover:#006C58;
  --primaryBG:#EDF9F6;
  --primaryBG_innerPage:#F5FBF9;
  --primaryLinear:linear-gradient(to right, #008187 1%, #194294 98%);
  --primaryText:#2F3D50;
  --secondaryColor:#15808F;
  --secondaryColor_Link:#0F3F85;
  --secondaryText:#3D4E66;
  --secondaryLinear: linear-gradient(to right, #008187 1%, #008187 58%, #1c4aa6 98%);
  --tertiary_purple:#6C3FCE;
  --tertiary_button:#2467CA;
  --tertiary_focus:#2475EC;
  --tertiaryAlert:#CB2517;
  --tertiaryError:#FFF6F7;
  --tertiary_yellow:#FFCF54;
  --tertiary_yellow_light:#FFDE88;
  --tertiary_orange:#FD993D;
  --tertiary_orange_light:#FFF5EB;
  --tertiaryLinear:linear-gradient(to right, #00a0ac 0%, #2659bf 99%);
  --tertiaryLinear_dark: linear-gradient(to bottom, #056c7a 0%, #057686 100%);
  --indexLinear:linear-gradient(to right, #4ecad1 6%, #1cc9aa 88%);
  --toolbar_purple:#7b33d1;
  --toolbar_purple_hover:#630FC7;
  --toolbar_violet:#6b70d9;
  --toolbar_violet_hover:#5157E5;
  --toolbar_blue:#406abe;
  --toolbar_blue_hover:#174EBD;
  --toolbar_aqua:#3789e5;
  --toolbar_aqua_hover:#176FD1;
  --toolbar_green:#19a247;
  --toolbar_green_hover:#089537;
  --toolbar_red:#E13819;
  --toolbar_red_hover:#E13819;
  --chart_green:var(--green400);
  --chart_border_green: var(--green100);
  --chart_brown:var(--brown300);
  --chart_border_brown: var(--brown200);
  --chart_purple:var(--purple400);
  --chart_border_purple: var(--purple300);
  --chart_gray:var(--gray800);
  --chart_border_gray: #b8c9e3;
  --outlineFocus:var(--brown100);
  --placeholderColor:#3d4e66; }

* {
  transition: font-size 0.3s ease; }
  *:focus {
    outline: 3px dashed var(--outlineFocus); }

html {
  font-size: 1rem; }

body {
  font-family: var(--fontFamily);
  line-height: 1.4;
  transition: all 1s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden; }
  body.mobile-menu-open {
    overflow: hidden; }

a {
  color: var(--secondaryColor_Link); }

.visually-hidden {
  position: absolute;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  overflow: hidden;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
  margin: -1px; }

.goMainContent {
  display: block;
  width: auto;
  height: auto;
  position: absolute;
  top: 5px;
  left: -1000px;
  background-color: var(--primaryColor);
  padding: 10px;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  overflow: hidden; }
  .goMainContent:link {
    color: #fff; }
  .goMainContent:visited {
    color: #fff; }

.goMainContent:focus {
  left: 5px;
  outline: 2px solid #ffd37c; }

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(43, 43, 43, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s; }
  .overlay.active {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s; }

.chatbot-wrap {
  height: 100%;
  display: flex;
  flex-direction: column; }

.header-top {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--primaryBG);
  padding: 1.5rem 2.5rem;
  box-sizing: border-box;
  -webkit-box-sizing: border-box; }
  .header-top .logo {
    margin: 0; }
    .header-top .logo a {
      display: block;
      width: 230px;
      height: 32px;
      text-indent: 101%;
      white-space: nowrap;
      overflow: hidden;
      background-image: url(../images/Logo.png);
      background-size: contain;
      background-repeat: no-repeat;
      background-position: 0 50%; }

.banner-top {
  width: 100%;
  height: 40px;
  min-height: 40px;
  line-height: 40px;
  background-color: #fff;
  padding: 0 2.5rem;
  box-shadow: 0 2px 4px 0 #e4e4e4;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
  position: relative;
  z-index: 1; }

@media screen and (max-width: 1024px) {
  .header-top {
    padding: 0.9375rem 1rem;
    box-shadow: 0 2px 4px 0 rgba(197, 197, 197, 0.5);
    z-index: 1; }
  .banner-top {
    height: 0;
    min-height: 0;
    transition: height 0.3s cubic-bezier(0.075, 0.82, 0.165, 1); } }

/*左側-聊天室*/
.main-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  overflow: hidden; }

.chatroom-block {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #f4f4f4;
  position: relative;
  overflow: hidden; }
  .chatroom-block .chat-message-container {
    flex-grow: 1;
    width: 100%;
    padding: 1em 2.625em 3em 2.625em;
    background-image: url(../images/Robot/chatpattern_bg.png);
    background-repeat: no-repeat;
    background-position: 50% bottom;
    background-size: contain;
    overflow-y: auto;
    overflow-y: overlay;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    /* width */
    /* Handle */
    /* Track */
    /*某些元素的corner部分的部分样式(例:textarea的可拖动按钮)*/
    /*firefox scrollbar*/
    scrollbar-width: thin;
    scrollbar-color: #8d9aad transparent; }
    .chatroom-block .chat-message-container::-webkit-scrollbar {
      width: 6px;
      height: 6px; }
    .chatroom-block .chat-message-container::-webkit-scrollbar-thumb {
      border-radius: 3px;
      background-color: #8d9aad; }
    .chatroom-block .chat-message-container::-webkit-scrollbar-track {
      background-color: transparent; }
    .chatroom-block .chat-message-container::-webkit-scrollbar-corner {
      background-color: transparent; }
    .chatroom-block .chat-message-container::-webkit-resizer {
      background-color: transparent;
      border-color: transparent; }
  .chatroom-block .chat-input-container {
    flex-shrink: 0; }

@media screen and (max-width: 1024px) {
  .main-container {
    flex-direction: column; }
  .chatroom-block .chat-message-container {
    width: 100vw;
    padding: 1rem 1rem 3rem 1rem; } }

/*聊天訊息*/
.message-row {
  min-height: 78px;
  position: relative;
  margin-bottom: 2.5rem; }
  .message-row::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    clear: both; }
  .message-row .avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0; }
    .message-row .avatar img {
      width: 100%;
      height: 100%;
      vertical-align: middle;
      -o-object-fit: contain;
         object-fit: contain; }
  .message-row .message-content {
    max-width: 60%;
    float: left;
    border-radius: 10px;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    color: var(--textBlack);
    font-weight: 500; }
    .message-row .message-content .list-group .list-title {
      font-weight: 500;
      padding: 0.5rem 1rem;
      border-radius: 10px 10px 0 0;
      border: solid 1px #d5deec;
      background-color: #d5deec;
      word-break: break-all; }
    .message-row .message-content .list-group ul {
      padding: 0;
      margin: 0;
      list-style: none; }
      .message-row .message-content .list-group ul li {
        padding: 0.5rem 1rem;
        border: solid 1px #fff;
        border-bottom-color: var(--border_light_hover);
        border-top: 0;
        background-color: #fff;
        word-break: break-all; }
        .message-row .message-content .list-group ul li a {
          text-decoration: none;
          word-break: break-all; }
          .message-row .message-content .list-group ul li a:hover, .message-row .message-content .list-group ul li a:focus {
            text-decoration: underline; }
          .message-row .message-content .list-group ul li a.underline {
            text-decoration: underline; }
        .message-row .message-content .list-group ul li:last-child {
          border-radius: 0 0 16px 16px;
          border-bottom: 0; }
    .message-row .message-content:has(.like-box) {
      display: flex;
      gap: 0.625rem; }
      .message-row .message-content:has(.like-box) .like-box {
        flex-grow: 0; }
  .message-row .like-box {
    display: flex;
    gap: 0.625rem; }
    .message-row .like-box button {
      width: 3rem;
      height: 3rem;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background-color: transparent;
      background-repeat: no-repeat;
      background-size: contain;
      text-decoration: none;
      text-indent: 101%;
      white-space: nowrap;
      overflow: hidden;
      transition: all 0.3s;
      cursor: pointer; }
      .message-row .like-box button.like {
        background-image: url(../images/Robot/satisfy_white.png); }
        .message-row .like-box button.like.active {
          background-image: url(../images/Robot/satisfy_blue.png); }
        .message-row .like-box button.like.disabled {
          background-image: url(../images/Robot/satisfy_gray.png); }
      .message-row .like-box button.dislike {
        background-image: url(../images/Robot/dislike_white.png); }
        .message-row .like-box button.dislike.active {
          background-image: url(../images/Robot/dislike_red.png); }
        .message-row .like-box button.dislike.disabled {
          background-image: url(../images/Robot/dislike_gray.png); }
  .message-row .message-datetime {
    color: var(--textBlack);
    float: left;
    margin-top: 0.625rem;
    clear: both; }
  .message-row .message-loading {
    display: flex;
    width: 100%;
    height: 14px; }
    .message-row .message-loading img {
      width: 100%;
      height: 100%; }
  .message-row.by-robot .message-content {
    margin-left: 100px;
    margin-right: 80px; }
    .message-row.by-robot .message-content.msg {
      border-bottom-left-radius: 0;
      background-color: #d5deec;
      padding: 0.5rem 1rem; }
  .message-row.by-robot .message-datetime {
    margin-left: 100px; }
  .message-row.by-user .message-content {
    float: right;
    border: solid 1px var(--tertiary_yellow);
    border-top-right-radius: 0;
    background-color: var(--tertiary_yellow);
    padding: 0.5rem 1rem;
    margin-left: 140px; }
  .message-row.by-user .message-datetime {
    float: right;
    text-align: right; }

@media screen and (max-width: 1024px) {
  .message-row .avatar {
    width: 44px;
    height: 44px; }
  .message-row .message-content {
    max-width: none; }
    .message-row .message-content:has(.like-box) {
      display: block; }
      .message-row .message-content:has(.like-box) .like-box {
        margin-top: 0.625rem; }
  .message-row.by-robot .message-content {
    margin-left: 54px;
    margin-right: 20px; }
  .message-row.by-robot .message-datetime {
    margin-left: 54px; }
  .message-row.by-user .message-content {
    margin-left: 80px; } }

/*下滑按鈕*/
.btn-message-scroll {
  display: none;
  width: 42px;
  height: 42px;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  background-color: #fff;
  position: absolute;
  bottom: 105px;
  right: 1rem;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-shadow: 0 0 4px 0 rgba(197, 197, 197, 0.5);
  cursor: pointer; }
  .btn-message-scroll img {
    width: 100%;
    height: 100%;
    vertical-align: middle;
    -o-object-fit: contain;
       object-fit: contain; }

/*關鍵字輸入與文字大小控制panel*/
.chat-input-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem 2.5rem 1.25rem 2.5rem;
  background-color: #f4f4f4; }
  .chat-input-container .fontSize-group {
    position: absolute;
    left: 2.5rem;
    bottom: 101%;
    display: flex;
    align-items: center;
    gap: 0.5rem; }
    .chat-input-container .fontSize-group .font-item {
      width: 40px;
      height: 40px;
      padding: 0;
      line-height: 40px;
      border-radius: 10px;
      background-color: #fff;
      font-size: 1.25rem;
      text-align: center;
      font-weight: 500;
      border: 0;
      cursor: pointer; }
      .chat-input-container .fontSize-group .font-item.active {
        color: #fff;
        background-color: var(--primaryColor); }
  .chat-input-container .input-group {
    display: flex;
    gap: 0.875rem;
    align-items: center; }
    .chat-input-container .input-group .chat-input-form {
      flex-grow: 1;
      display: flex;
      align-items: center; }
      .chat-input-container .input-group .chat-input-form .chat-txt-input {
        width: calc(100% - 140px);
        flex-grow: 1;
        height: 64px;
        font-size: 1.125rem;
        border: 0;
        border-radius: 16px 0 0 16px;
        background-color: #fff;
        padding: 1.125rem 1.375rem;
        box-sizing: border-box;
        -webkit-box-sizing: border-box; }
        .chat-input-container .input-group .chat-input-form .chat-txt-input:disabled {
          background-color: var(--border_light_hover);
          cursor: not-allowed; }
      .chat-input-container .input-group .chat-input-form .chat-btn-input {
        flex-shrink: 0;
        width: 140px;
        height: 64px;
        line-height: 64px;
        font-size: 1.125rem;
        font-weight: 500;
        color: #fff;
        border: 0;
        text-align: center;
        padding: 0;
        border-radius: 0 16px 16px 0;
        background-color: var(--primaryColor);
        cursor: pointer; }

@media screen and (max-width: 1024px) {
  .chat-input-container {
    padding: 1rem; }
    .chat-input-container .fontSize-group {
      left: 1rem; }
    .chat-input-container .input-group .chat-input-form .chat-txt-input {
      width: calc(100% - 84px); }
    .chat-input-container .input-group .chat-input-form .chat-btn-input {
      width: 84px; } }
