/*
  Wayne Dark Theme Override
  覆盖参考模板所有颜色，变为深海军蓝暗色主题
  颜色: 背景#0d1127 / 卡片#131a33 / 边框#1e2d4a / 文字#f5ecd8 / 强调#faca22
*/

/* ── CSS 变量覆盖 ── */
:root {
  --heading-color:    #f5ecd8;
  --bg-color:         #0d1127;
  --body-color:       #e8dec9;
  --theme-color:      #faca22;
  --thm-clr-2:        #00fff9;
  --white-color:      #131a33;
  --black-color:      #f5ecd8;
  --light-color:      #1e2d4a;
  --lightgrey-color:  #1e2d4a;
  --font-1: 'JetBrains Mono', monospace;
  --font-2: 'JetBrains Mono', monospace;
}

/* ── 全局 ── */
html, body           { background: #0d1127 !important; color: #e8dec9; }
body                 { background-color: #0d1127 !important; }
p                    { color: #a8a39a; }
h1,h2,h3,h4,h5,h6   { color: #f5ecd8; }

/* ── 预加载 ── */
.preloader           { background: #0d1127; }
.lds-ellipsis div    { background: #faca22; }

/* ── 侧边栏导航 ── */
.header,
.main-navigation,
.bsnav-sidebar-left,
.bsnav-sidebar .navbar,
.navbar             { background: #0a0f20 !important; border-right: 1px solid #1e2d4a !important; }
.navbar.sticked.in  { background: #0a0f20 !important; border-bottom: 1px solid #1e2d4a !important; }
.profile_name        { color: #f5ecd8 !important; }
.navbar-nav .nav-item .nav-link,
.navbar .navbar-nav .nav-link { color: #a8a39a !important; }
.navbar-nav .nav-item:hover > .nav-link,
.navbar-nav .nav-item.active > .nav-link { color: #faca22 !important; }
.sidebar-copyright p { color: #5e7a9e; }

/* ── 主内容区 ── */
.main-area-width,
.main                { background: #0d1127; }
.main                { border-left: 1px solid #1e2d4a; }

/* ── 线条动画 ── */
.line_item           { background: rgba(30,45,74,.5) !important; }

/* ── Hero ── */
.hero-section-bg,
.hero-section        { background: #0d1127 !important; }
.hero-section-bg     { background-image: url(img/wayne-hero.jpg) !important;
                       background-position: right center !important;
                       background-size: cover !important; }
.hero-section-bg:after { background: linear-gradient(to right, rgba(13,17,39,0.96) 35%, rgba(13,17,39,0.55) 100%) !important;
                         opacity: 1 !important; }
.top-title           { color: #a8a39a !important; }
.top-title::before   { background: #faca22 !important; }
.hero-content h2     { color: #f5ecd8 !important; }
.hero-content p      { color: #a8a39a; }
.type_color          { color: #faca22 !important; }
.head-top-contact span { color: #a8a39a; }
.top-contact-btn     { background: #1e2d4a !important; }
.top-contact-btn i   { color: #faca22; }
.scroll-down-arrow   { color: #5e7a9e; }
.right-social-icon .social-icon li a { color: #5e7a9e; border-color: #1e2d4a; }
.right-social-icon .social-icon li a:hover { color: #faca22; border-color: #faca22; }

/* ── 通用 section ── */
.about-area, .exp-area, .service-area,
.fq-area, .feedback-area, .price-area,
.portfolio_bg, #work, #blog,
.copyright-area, footer  { background: #0d1127 !important; }

/* 交替深一点的 section */
.hireme-area         { background: #090d1e !important; }

/* ── section 标题 ── */
.resume-title        { color: #5e7a9e !important; }
.about-tl-3.gr-2,
.gr-2                { background-image: linear-gradient(122deg,#faca22 0%,#00fff9 100%) !important;
                       -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ── About ── */
.about-right h2, .about-tl, .about-tl-2 { color: #f5ecd8 !important; }
.about-cn ul li      { color: #a8a39a !important; }
.about-cn ul li i    { color: #faca22 !important; }
.btn-3               { color: #faca22 !important; border-color: #faca22; }

/* ── 统计数字 ── */
.counter-counter     { border-top: 1px solid #1e2d4a; }
.fun-fact            { background: #131a33 !important; border: 1px solid #1e2d4a; }
.fun-fact .timer     { color: #f5ecd8; }
.fun-fact .medium    { color: #5e7a9e; }
.fun-icon            { background: #0d1127 !important; }

/* ── 经历/进度条 ── */
.exp-box             { background: #131a33 !important; border: 1px solid #1e2d4a !important; box-shadow: none !important; }
.exp-box h4          { color: #f5ecd8; }
.exp-box p, .exp-description { color: #a8a39a; }
.exp-icon            { background: #0d1127 !important; }
.progress            { background: #1e2d4a !important; }
.progress-bar        { background: linear-gradient(90deg,#faca22,#00fff9) !important; }
.progress-box h5     { color: #e8dec9; }

/* ── 服务卡片 ── */
.service-box         { background: #131a33 !important; border: 1px solid #1e2d4a !important; box-shadow: none !important; }
.service-box:hover   { border-color: #faca22 !important; }
.service-info h2     { color: #f5ecd8; }
.service-info ul li  { color: #a8a39a; }
.service-icon        { background: #0d1127 !important; }

/* ── Hire Me ── */
.hire-title h2       { color: #f5ecd8 !important; }

/* ── FAQ ── */
.accordion-item,
.accordion-button    { background: #131a33 !important; color: #f5ecd8 !important; border-color: #1e2d4a !important; }
.accordion-button:not(.collapsed) { color: #faca22 !important; box-shadow: none !important; }
.accordion-button::after { filter: invert(1); }
.accordion-body      { background: #0d1127 !important; color: #a8a39a !important; border-color: #1e2d4a !important; }

/* ── Portfolio ── */
.work_menu li a      { color: #5e7a9e; }
.work_menu li a.active, .work_menu li a:hover { color: #faca22; border-color: #faca22; }
.work_box            { background: #131a33 !important; }
.work_detail         { background: #131a33 !important; border-top: 1px solid #1e2d4a; }
.work_detail p       { color: #5e7a9e; }
.work_detail h4      { color: #f5ecd8; }

/* ── Testimonials ── */
.feedback-box        { background: #131a33 !important; border: 1px solid #1e2d4a !important; box-shadow: none !important; }
.feedback-box p      { color: #a8a39a; }
.feedback-bio h5     { color: #f5ecd8; }
.feedback-bio span   { color: #5e7a9e; }

/* ── 价格 ── */
.price-box           { background: #131a33 !important; border: 1px solid #1e2d4a !important; box-shadow: none !important; }
.price-head          { border-bottom: 1px solid #1e2d4a; }
.price-value h2      { color: #f5ecd8; }
.price-info ul li    { color: #a8a39a; border-bottom-color: #1e2d4a; }
.price-icon          { background: #0d1127 !important; }

/* ── Blog ── */
.blog-box            { background: #131a33 !important; border: 1px solid #1e2d4a !important; }
.blog-info h4 a      { color: #f5ecd8; }
.blog-info h4 a:hover { color: #faca22; }
.blog-info p         { color: #a8a39a; }
.blog-date           { color: #5e7a9e; }

/* ── Contact ── */
.contact-right-icon  { background: #131a33 !important; border: 1px solid #1e2d4a !important; }
.contact-right-icon i { color: #faca22; }
.contact_itext       { color: #a8a39a !important; }
.contact-form input,
.contact-form textarea { background: #131a33 !important; border: 1px solid #1e2d4a !important; color: #f5ecd8 !important; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #5e7a9e; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #faca22 !important; outline: none; }
.gmap-area iframe    { filter: invert(0.9) hue-rotate(180deg); opacity: .8; }

/* ── Footer / copyright ── */
.copyright-area      { border-top: 1px solid #1e2d4a; }
.copyright-text, .copyright-text a { color: #5e7a9e; }
.copyright-menu a    { color: #5e7a9e; }
.copyright-menu a:hover { color: #faca22; }
.footer-social li a  { color: #5e7a9e; border-color: #1e2d4a; }
.footer-social li a:hover { color: #faca22; border-color: #faca22; }

/* ── 按钮覆盖 ── */
.theme-btn           { background-image: linear-gradient(122deg,#c89e0a 0%,#faca22 100%) !important;
                       color: #0d1127 !important; box-shadow: 0 10px 30px rgba(250,202,34,.2) !important; }
.theme-btn:hover     { color: #0d1127 !important; box-shadow: 0 15px 30px rgba(250,202,34,.35) !important; }
.btn-2               { background-image: linear-gradient(122deg,#00fff9 0%,#00d4d0 100%) !important;
                       color: #0d1127 !important; }

/* ── scroll-to-top ── */
#scrtop              { background: #faca22 !important; color: #0d1127 !important; border-color: #faca22 !important; }

/* ── 自定义光标 ── */
.cursor-outer        { border-color: #faca22 !important; }
.cursor-inner        { background: #faca22 !important; }

/* ── 响应式小屏幕适配 ── */
@media(max-width:991px){
  .bsnav-sidebar-left { background: #0a0f20 !important; }
  .bsnav-mobile-overlay { background: rgba(13,17,39,.85) !important; }
}

/* ═══════════════════════════════════════
   Agent Lab
═══════════════════════════════════════ */
.agent-area { background: #0d1127 !important; position: relative; min-height: 600px; }

/* ── Lock Overlay ── */
.agent-lock-overlay {
  display: flex; align-items: center; justify-content: center;
  min-height: 500px; padding: 60px 20px;
}
.agent-lock-box {
  background: #131a33; border: 1px solid #1e2d4a; border-radius: 16px;
  padding: 50px 40px; text-align: center; max-width: 400px; width: 100%;
}
.agent-lock-icon { font-size: 48px; color: #faca22; margin-bottom: 16px; }
.agent-lock-box h3 { color: #f5ecd8; font-size: 24px; margin-bottom: 8px; }
.agent-lock-subtitle { color: #5e7a9e; font-size: 13px; margin-bottom: 28px; }
.agent-lock-form input { text-align: center; letter-spacing: 2px; }
.agent-lock-error { color: #ff6b6b; font-size: 13px; margin-top: 12px; display: none; }
@keyframes shake {
  0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)}
}
.shake { animation: shake .4s ease; }

/* ── Section Title ── */
.agent-lab-desc { color: #5e7a9e; font-size: 14px; margin-top: 10px; }

/* ── Filter Tabs ── */
.agent-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.agent-filter-btn {
  cursor: pointer; padding: 6px 18px; border-radius: 20px;
  border: 1px solid #1e2d4a; color: #5e7a9e; font-size: 13px;
  transition: all .2s;
}
.agent-filter-btn:hover, .agent-filter-btn.active {
  border-color: #faca22; color: #faca22;
}

/* ── Agent Cards ── */
.agent-card-wrap { margin-bottom: 24px; }
.agent-card {
  background: #131a33; border: 1px solid #1e2d4a; border-radius: 14px;
  padding: 28px 24px; cursor: pointer; transition: all .25s; height: 100%;
  display: flex; flex-direction: column;
}
.agent-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.agent-card-top { margin-bottom: 16px; }
.agent-cat-badge {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 10px;
  border: 1px solid; font-weight: 600; letter-spacing: .5px;
}
.agent-emoji { font-size: 40px; margin-bottom: 12px; line-height: 1; }
.agent-name { color: #f5ecd8; font-size: 18px; margin-bottom: 4px; }
.agent-en { color: #5e7a9e; font-size: 12px; margin-bottom: 12px; }
.agent-desc { color: #a8a39a; font-size: 13px; line-height: 1.6; flex: 1; margin-bottom: 20px; }
.agent-card-btn {
  display: inline-block; font-size: 13px; border: 1px solid;
  padding: 6px 16px; border-radius: 20px; font-weight: 600;
  transition: all .2s; text-align: center;
}
.agent-card:hover .agent-card-btn { opacity: .85; }

/* ── API Key Bar ── */
.agent-key-bar { border-top: 1px solid #1e2d4a; padding-top: 30px; }
.agent-key-inner {
  display: flex; align-items: center; gap: 12px;
  background: #131a33; border: 1px solid #1e2d4a; border-radius: 10px; padding: 14px 20px;
  flex-wrap: wrap;
}
.agent-key-icon { color: #faca22; font-size: 18px; }
.agent-key-label { color: #5e7a9e; font-size: 13px; white-space: nowrap; }
.agent-key-input { flex: 1; min-width: 200px; max-width: 360px; margin-bottom: 0 !important; }
.agent-key-btn { padding: 8px 20px !important; min-width: 64px; }
.agent-key-status { font-size: 13px; }
.agent-key-status.connected { color: #6bcb77; }

/* ═══════════════════════════════════════
   Chat Modal
═══════════════════════════════════════ */
.agent-chat-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.chat-backdrop {
  position: absolute; inset: 0; background: rgba(10,15,32,.8);
  backdrop-filter: blur(4px);
}
.chat-panel {
  position: relative; z-index: 1;
  background: #131a33; border: 1px solid #1e2d4a; border-radius: 16px;
  width: min(700px, 95vw); height: min(620px, 88vh);
  display: flex; flex-direction: column;
  opacity: 0; transform: scale(.95) translateY(12px);
  transition: opacity .3s, transform .3s;
}
.agent-chat-modal.open .chat-panel {
  opacity: 1; transform: scale(1) translateY(0);
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #1e2d4a;
}
.chat-agent-meta { display: flex; align-items: center; gap: 12px; }
.chat-emoji { font-size: 28px; line-height: 1; }
.chat-agent-name { color: #f5ecd8; font-size: 16px; margin: 0; }
.chat-agent-cat { font-size: 12px; font-weight: 600; }
.chat-header-actions { display: flex; gap: 8px; }
.chat-clear-btn, .chat-close-btn {
  background: none; border: 1px solid #1e2d4a; color: #5e7a9e;
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: all .2s;
}
.chat-clear-btn:hover { border-color: #ff6b6b; color: #ff6b6b; }
.chat-close-btn:hover { border-color: #faca22; color: #faca22; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #1e2d4a; border-radius: 2px; }
.chat-welcome { color: #a8a39a; font-size: 14px; line-height: 1.7; }
.chat-welcome strong { color: #faca22; }

.chat-msg { display: flex; }
.chat-msg-user { justify-content: flex-end; }
.chat-msg-assistant, .chat-msg-error { justify-content: flex-start; }
.chat-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; line-height: 1.7;
}
.chat-msg-user .chat-bubble { background: #1e2d4a; color: #f5ecd8; border-radius: 12px 12px 2px 12px; }
.chat-msg-assistant .chat-bubble { background: #0d1127; color: #e8dec9; border: 1px solid #1e2d4a; border-radius: 12px 12px 12px 2px; }
.chat-msg-error .chat-bubble { background: rgba(255,107,107,.1); color: #ff6b6b; border: 1px solid rgba(255,107,107,.3); }

/* Thinking dots */
.chat-thinking { display: flex; align-items: center; gap: 5px; padding: 14px 18px !important; }
.chat-thinking span {
  width: 7px; height: 7px; border-radius: 50%; background: #5e7a9e;
  animation: thinking-dot 1.2s infinite;
}
.chat-thinking span:nth-child(2) { animation-delay: .2s; }
.chat-thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes thinking-dot {
  0%,80%,100%{ transform:scale(.8); opacity:.4 }
  40%{ transform:scale(1.1); opacity:1 }
}

.chat-input-row {
  padding: 12px 16px; border-top: 1px solid #1e2d4a;
  display: flex; gap: 10px; align-items: flex-end;
}
.chat-textarea {
  flex: 1; resize: none; background: #0d1127 !important;
  border: 1px solid #1e2d4a !important; color: #f5ecd8 !important;
  border-radius: 10px !important; padding: 10px 14px !important;
  font-size: 14px; font-family: var(--font-1); line-height: 1.5;
}
.chat-textarea:focus { border-color: #faca22 !important; outline: none; }
.chat-textarea::placeholder { color: #5e7a9e; }
.chat-send-btn {
  background: linear-gradient(122deg,#c89e0a,#faca22); border: none;
  color: #0d1127; width: 42px; height: 42px; border-radius: 10px;
  cursor: pointer; font-size: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.chat-send-btn:disabled { opacity: .4; cursor: not-allowed; }
.chat-footer-tag {
  padding: 6px 16px 10px; text-align: center;
  color: #2a3d5e; font-size: 11px;
}

/* ── Tier Selector ── */
.agent-tier-bar { }
.agent-tier-inner {
  display: flex; align-items: center; gap: 16px;
  background: #131a33; border: 1px solid #1e2d4a; border-radius: 10px; padding: 14px 20px;
  flex-wrap: wrap;
}
.agent-tier-label { color: #5e7a9e; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.agent-tier-btns { display: flex; gap: 10px; flex: 1; }
.agent-tier-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 24px; border-radius: 10px; border: 1px solid #1e2d4a;
  background: #0d1127; cursor: pointer; transition: all .2s; flex: 1; max-width: 160px;
}
.agent-tier-btn:hover { border-color: #faca22; }
.agent-tier-btn.active { border-color: #faca22; background: rgba(250,202,34,.07); }
.tier-icon { font-size: 20px; line-height: 1; }
.tier-name { color: #f5ecd8; font-size: 13px; font-weight: 600; }
.tier-desc { color: #5e7a9e; font-size: 11px; }
@media(max-width:576px){
  .agent-tier-btns { flex-direction: column; }
  .agent-tier-btn { max-width: 100%; flex-direction: row; gap: 10px; }
}


