html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #111827;
  color: #1C1C1E;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1140px;
}

/* 主内容区域样式 */
.main-content {
  flex: 1;
  background-color: #FCFCFC;
}

/* 导航栏样式 */
.header-nav {
  border-bottom: 1px solid #EAEAEA;
}

.navbar {
  padding: 0.75rem 0;
}

.navbar-brand.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1C1C1E;
}

.nav-link {
  color: #212529;
  font-weight: 500;
  margin: 0 0.75rem;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.nav-link.active,
.nav-link:hover {
  color: #6f42c1;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.lang-selector {
  color: #6f42c1;
  font-size: 0.9rem;
  font-weight: 500;
}

.lang-selector i {
  margin-right: 0.25rem;
  color: #6f42c1;
}

.login-btn {
  background-color: #6f42c1;
  border-color: #6f42c1;
  font-weight: 500;
  color: white;
}

.login-btn:hover {
  background-color: #5a3d9a;
  border-color: #5a3d9a;
  color: white;
}

.btn-outline-purple {
  color: #6f42c1;
  border-color: #6f42c1;
  font-weight: 500;
}

.btn-outline-purple:hover {
  background-color: rgba(111, 66, 193, 0.1);
  color: #6f42c1;
}

.signup-btn {
  color: #6f42c1;
  border-color: #6f42c1;
  font-weight: 500;
}

.signup-btn:hover {
  background-color: rgba(111, 66, 193, 0.1);
  color: #6f42c1;
}

/* 下拉菜单样式 */
.products-dropdown {
  min-width: 900px;
  border-radius: 12px;
  border: 1px solid #EAEAEA;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  margin-top: 0.5rem;
}

.dropdown-content {
  /* Styles for the content inside */
}

.dropdown-column {
  padding: 1rem;
}

/* Add vertical dividers if needed */
/* .dropdown-column + .dropdown-column {
    border-left: 1px solid #EAEAEA;
} */

.dropdown-header {
  display: none;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease;
  border-radius: 6px;
  align-items: flex-start !important;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-icon-wrapper {
  width: 36px;
  height: 36px;
  background-color: rgba(111, 66, 193, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f42c1;
  flex-shrink: 0;
}

.dropdown-item strong {
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.dropdown-item p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.explore-all-link {
  color: #6f42c1;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
}

.explore-all-link:hover {
  text-decoration: underline;
}

.explore-all-link i {
  font-size: 0.75rem;
  vertical-align: middle;
}

/* 主页内容样式 */
.hero-section {
  padding-top:5rem;
  padding-bottom:0rem;
  background-color: #FCFCFC;
}

.main-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1C1C1E;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.highlight-text {
  color: #6f42c1;
}

.subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 产品卡片样式 */
.product-grid {
  background-color: #FCFCFC;
  padding-bottom: 6rem;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 2rem;
  color: #6f42c1;
}

.feature-icon i {
  font-size: 2rem;
}

.tool-icon {
  object-fit: contain;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1C1C1E;
}

.feature-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.5;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  color: #6f42c1;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  margin-top: auto;
}

.feature-link:hover {
  color: #5a37a6;
  text-decoration: none;
}

.feature-link i {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.feature-link:hover i {
  transform: translateX(3px);
}

.product-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.product-logo {
  object-fit: contain;
  max-width: 100px;
  max-height: 100px;
}

.product-icon-placeholder {
  width: 50px;
  height: 50px;
  background-color: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #adb5bd;
}

/* Example: Style specific icons if needed */
.product-card i.bi-google {
  color: #DB4437;
  background-color: rgba(219, 68, 55, 0.1);
}

.product-card i.bi-palette {
  color: #F24E1E;
  background-color: rgba(242, 78, 30, 0.1);
}

.product-card i.bi-brush {
  color: #31A8FF;
  background-color: rgba(49, 168, 255, 0.1);
}

.product-name {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.product-name .badge {
  font-size: 0.7rem;
}

.product-item {
  padding: 1.5rem;
  border-radius: 8px;
  background-color: white;
  height: 100%;
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

/* 底部样式 */
.footer {
  background-color: #f8f9fa;
  color: #666;
}

.footer h5 {
  font-weight: 600;
  color: #3a3a3a;
  margin-bottom: 1.2rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #6c5ce7;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c5ce7;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  background-color: #6c5ce7;
  color: white;
}

/* 价格表样式 */
.pricing-header {
  background-color: #f8f9fa;
}

.pricing-card-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.accordion-button:not(.collapsed) {
  background-color: #f0f0ff;
  color: #6c5ce7;
}

/* Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-container span {
  font-weight: 700;
  font-size: 1.5rem;
  color: #212529;
}

.site-logo {
  display: block;
}

/* Footer Styles */
.footer-dark {
  background-color: #111827;
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
}

.footer-logo:hover {
  color: white;
  text-decoration: none;
}

.footer-logo span {
  font-weight: 600;
  color: white;
  font-size: 1.25rem;
}

.footer-site-logo {
  display: block;
}

.copyright-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Navigation and Button Styles */
.btn-primary {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
    font-weight: 500;
}

.btn-primary:hover {
  background-color: #5a3d9a;
  border-color: #5a3d9a;
  color: white;
}

/* 紫色文本样式 */
.purple-text {
  color: #6f42c1 !important;
  font-weight: 500;
}

/* DreamMaster Styles */
.dream-hero-section {
    background-color: #FCFCFC;
    padding: 4rem 0;
}

.dream-main-title {
  font-size: 3rem;
  font-weight: 800;
  color: #6f42c1;
  margin-bottom: 1.5rem;
}

.dream-subtitle {
  font-size: 1.25rem;
  color: #6c757d;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.dream-content {
  background-color: #fff;
  padding: 2rem 0;
}

/* Masters Panel Styles */
.masters-panel {
    background-color: #FCFCFC;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: 100%;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #6f42c1;
  margin-bottom: 1.5rem;
}

.masters-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.master-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.master-item:hover {
  background-color: #f8f9fa;
}

.master-item.active {
  background-color: #f5f2ff;
  border-left: 3px solid #6f42c1;
}

.master-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 2px solid #e9ecef;
}

.master-info {
  flex: 1;
}

.master-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #212529;
}

.master-specialty {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* Chat Panel Styles */
.chat-panel {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-history {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  max-height: 450px;
  min-height: 450px;
  background-color: #f9f9f9;
}

.system-message {
  background-color: #f5f2ff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.system-message p {
  margin-bottom: 0;
  color: #6f42c1;
  font-size: 0.95rem;
}

.user-message {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

    .user-message p {
        background-color: #ede3ff;
        color: white;
        padding: 0.75rem 1rem;
        border-radius: 18px 18px 0 18px;
        max-width: 80%;
        margin-bottom: 0;
    }

.master-message {
  display: flex;
  margin-bottom: 1rem;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
}

.message-content {
  background-color: white;
  padding: 0.75rem 1rem;
  border-radius: 18px 18px 18px 0;
  border: 1px solid #e9ecef;
  max-width: 80%;
}

.message-content p {
  margin-bottom: 0;
  color: #212529;
}

.chat-input-container {
  display: flex;
  padding: 1rem;
  border-top: 1px solid #e9ecef;
  background-color: white;
}

.chat-input {
  flex: 1;
  border: 1px solid #e9ecef;
  border-radius: 24px;
  padding: 0.75rem 1rem;
  resize: none;
  height: 60px;
  font-size: 0.95rem;
}

.chat-input:focus {
  outline: none;
  border-color: #6f42c1;
}

.chat-send-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #6f42c1;
  color: white;
  border: none;
  margin-left: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.chat-send-btn:hover {
  background-color: #5a37a6;
}

.chat-send-btn i {
  font-size: 1.25rem;
}

/* Dream Categories */
.dream-categories {
    background-color: #FCFCFC;
    padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 2rem;
}

.category-card {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  height: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.category-icon {
  width: 60px;
  height: 60px;
  background-color: #f5f2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #6f42c1;
}

.category-icon i {
  font-size: 1.5rem;
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0;
}

/* Text Avatar Styles */
.text-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #6f42c1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin-right: 1rem;
  position: relative;
}

.text-avatar::after {
  content: attr(data-initial);
  position: absolute;
}

.master-message .text-avatar {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  margin-right: 0.75rem;
}

/* 登录模态框样式 */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background-color: #f8f9fa;
    border-color: #212529;
}

.btn-social[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-social img {
    margin-right: 10px;
}

/* 用户菜单样式 */
.user-menu .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.user-menu .dropdown-menu {
    min-width: 200px;
    padding: 0.5rem 0;
}

.user-menu .dropdown-item {
    padding: 0.5rem 1rem;
}

.user-menu .dropdown-item:hover {
    background-color: #f8f9fa;
}

.user-menu .dropdown-item i {
    width: 18px;
}

/* 用户下拉菜单特定样式 - 覆盖通用样式 */
.user-dropdown {
    min-width: 200px !important;
    max-width: 200px !important;
    width: 200px !important;
    padding: 8px 0 !important;
}

.user-dropdown .dropdown-item {
    padding: 8px 16px !important;
    font-size: 14px !important;
}