/* 
 Theme Name:   AI编程子主题
 Theme URI:    http://120.24.239.210
 Description:  深蓝矩阵子主题Demo
 Author:       samlan
 Author URI:   http://120.24.239.210
 Template:     woostify
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

.home-ai-chat-section {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: inherit;
}

.home-ai-chat-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.home-ai-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 20px 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c63e7 0%, #24a2ff 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 42, 102, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-ai-chat-launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(8, 42, 102, 0.34);
}

.home-ai-chat-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.home-ai-chat-launcher-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.home-ai-chat-panel {
  width: min(420px, calc(100vw - 24px));
  height: min(680px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(5, 18, 37, 0.28);
  transform: translateY(12px) scale(0.96);
  transform-origin: right bottom;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.home-ai-chat-widget[data-expanded="true"] .home-ai-chat-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.home-ai-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, #04101f 0%, #0b1f38 100%);
  color: #ffffff;
}

.home-ai-chat-header-copy {
  min-width: 0;
}

.home-ai-chat-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8dc4ff;
}

.home-ai-chat-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
  color: #ffffff;
}

.home-ai-chat-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.home-ai-chat-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.home-ai-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-ai-chat-messages {
  flex: 1;
  min-height: 0;
  padding: 18px 18px 10px;
  overflow-y: auto;
  background: #ffffff;
}

.home-ai-chat-message {
  display: flex;
  margin-bottom: 14px;
}

.home-ai-chat-message.is-user {
  justify-content: flex-end;
}

.home-ai-chat-bubble {
  max-width: min(100%, 300px);
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.home-ai-chat-message.is-assistant .home-ai-chat-bubble {
  background: #f1f6fc;
  color: #14233a;
  border-bottom-left-radius: 6px;
}

.home-ai-chat-message.is-user .home-ai-chat-bubble {
  background: linear-gradient(135deg, #0c63e7 0%, #24a2ff 100%);
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.home-ai-chat-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid #e2e8f2;
  background: #ffffff;
}

.home-ai-chat-input {
  width: 100%;
  min-height: 104px;
  max-height: 180px;
  padding: 14px 16px;
  border: 1px solid #d6dfec;
  border-radius: 18px;
  background: #f8fbff;
  color: #152033;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-ai-chat-input:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.12);
  background: #ffffff;
}

.home-ai-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-ai-chat-tip {
  color: #56657c;
  font-size: 12px;
  line-height: 1.5;
}

.home-ai-chat-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c63e7 0%, #24a2ff 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.home-ai-chat-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(12, 99, 231, 0.28);
}

.home-ai-chat-submit:disabled,
.home-ai-chat-input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.home-contact-section {
  margin-top: 72px;
  padding: 72px 24px;
  background: linear-gradient(135deg, #081223 0%, #0f2746 100%);
  color: #ffffff;
  border-radius: 28px;
}

.home-contact-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 40px;
  align-items: center;
}

.home-contact-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ac7ff;
}

.home-contact-title {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  color: #ffffff;
}

.home-contact-description {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.home-contact-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-contact-highlights li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.home-contact-highlights li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4db2ff;
  box-shadow: 0 0 0 6px rgba(77, 178, 255, 0.18);
}

.home-contact-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.96);
  color: #152033;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(5, 18, 37, 0.24);
}

.home-contact-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.home-contact-notice.is-success {
  background: #e9f9ef;
  color: #13653c;
}

.home-contact-notice.is-error {
  background: #fff0f0;
  color: #a12626;
}

.home-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-contact-field span {
  font-size: 14px;
  font-weight: 600;
  color: #17263d;
}

.home-contact-field input,
.home-contact-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d5dceb;
  border-radius: 14px;
  background: #f7f9fc;
  color: #152033;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-contact-field input:focus,
.home-contact-field textarea:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.12);
  background: #ffffff;
}

.home-contact-field textarea {
  min-height: 160px;
  resize: vertical;
}

.home-contact-field.is-full {
  width: 100%;
}

.home-contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.home-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c63e7 0%, #24a2ff 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(12, 99, 231, 0.28);
}

@media (max-width: 991px) {
  .home-ai-chat-section {
    right: 18px;
    bottom: 18px;
  }

  .home-contact-section {
    margin-top: 56px;
    padding: 56px 20px;
    border-radius: 22px;
  }

  .home-contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .home-ai-chat-section {
    right: 12px;
    bottom: 12px;
  }

  .home-ai-chat-launcher {
    min-height: 54px;
    padding-right: 18px;
  }

  .home-ai-chat-panel {
    width: min(100vw - 24px, 380px);
    height: min(76vh, 620px);
  }

  .home-ai-chat-title {
    font-size: 20px;
  }

  .home-ai-chat-form {
    padding: 12px 14px 14px;
  }

  .home-ai-chat-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-contact-card {
    padding: 24px 18px;
  }

  .home-contact-grid {
    grid-template-columns: 1fr;
  }

  .home-contact-title {
    font-size: 30px;
  }
}
