@import url("style2.css");

/* V3 · 暖白学术工作台，视觉基线来自 yunnan_minzu_warm_white_demo.html */
body.theme-warm-white {
  --ac-bg: #f6f1e9;
  --ac-surface: #fffdf9;
  --ac-sidebar: #faf7f1;
  --ac-sidebar-border: #eadfd4;
  --ac-primary: #b72d1d;
  --ac-primary-hover: #8d2015;
  --ac-primary-soft: #f8e9df;
  --ac-orange: #c88a46;
  --ac-text: #24201c;
  --ac-text-secondary: #665d55;
  --ac-text-muted: #8c8176;
  --ac-border: #eadfd4;
  --ac-border-light: #f0e7df;
  --ac-green: #5e8b67;
  --ac-green-soft: #edf6ee;
  --ac-card-shadow: 0 16px 36px rgba(86, 58, 35, .07), 0 3px 10px rgba(86, 58, 35, .04);
  --ac-radius: 10px;
  --ac-radius-lg: 18px;
  background:
    radial-gradient(circle at 51% 0%, rgba(206, 157, 92, .09), transparent 30%),
    linear-gradient(180deg, #faf7f1 0%, #f5f0e8 100%);
}

.theme-warm-white .academic-shell { grid-template-columns: 344px minmax(0, 1fr); }

.theme-warm-white .academic-sidebar {
  padding: 22px 20px 18px;
  background:
    radial-gradient(circle at 0 100%, rgba(190, 143, 81, .07), transparent 24%),
    linear-gradient(180deg, #fbf8f3 0%, #f8f4ee 100%);
  overflow: hidden auto;
}

.theme-warm-white .academic-sidebar::after {
  content: "";
  position: absolute;
  left: 35px;
  bottom: 0;
  width: 270px;
  height: 115px;
  opacity: .11;
  pointer-events: none;
  background: left bottom / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 350 150'%3E%3Cg fill='none' stroke='%23a66b39' stroke-width='1.8'%3E%3Cpath d='M10 125L65 89l38 22 49-49 55 45 42-33 50 28 42-16'/%3E%3Cpath d='M15 137c70-20 122-22 180-10 52 11 91 7 140-5' opacity='.65'/%3E%3Cpath d='M198 129v-38h63v38M206 92l23-18 23 18M216 104h26M211 116h37'/%3E%3C/g%3E%3C/svg%3E");
}

.theme-warm-white .sidebar-brand-area,
.theme-warm-white .academic-sidebar-content,
.theme-warm-white .academic-sidebar-tools { position: relative; z-index: 1; }

.theme-warm-white .academic-brand { display: block; margin-bottom: 24px; }
.theme-warm-white .academic-brand .university-logo { width: 210px; max-height: 72px; object-fit: contain; object-position: left center; }
.theme-warm-white .site-logo-crop { position: relative; width: min(100%, 224px); height: 82px; overflow: hidden; border-radius: 8px; background: #fff; }
.theme-warm-white .site-logo { position: absolute; top: 50%; left: 0; display: block; width: 100%; height: auto; transform: translateY(-50%); }
.theme-warm-white .academic-brand .uni-sub { display: block; margin-top: 5px; color: #7d7168; font-size: 12px; letter-spacing: .08em; }

.theme-warm-white .academic-new-chat-btn {
  min-height: 46px;
  background: linear-gradient(180deg, #bd341f 0%, #a92518 100%);
  border-radius: 10px;
  box-shadow: 0 7px 14px rgba(166, 44, 29, .12);
  font-size: 15px;
  font-weight: 760;
}
.theme-warm-white .academic-new-chat-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(166, 44, 29, .16); }
.theme-warm-white .academic-search-bar { min-height: 44px; margin-top: 13px; background: #fffdfa; border-color: #e6dbd1; }
.theme-warm-white .academic-sidebar-content { margin-top: 22px; }
.theme-warm-white .academic-tabs { padding: 3px; border-radius: 10px; background: #f0ebe5; }
.theme-warm-white .academic-tabs .chat-session-view-tab { padding: 6px 0; }
.theme-warm-white .academic-session-list { max-height: none; gap: 5px; }
.theme-warm-white .chat-session { padding: 11px 12px; border: 1px solid transparent; border-radius: 11px; }
.theme-warm-white .chat-session.active,
.theme-warm-white .chat-session:hover { background: #fffaf5; border-color: #edd8c8; box-shadow: 0 7px 18px rgba(104, 68, 42, .06); }
.theme-warm-white .academic-sidebar-tools { border-top: 0; margin-top: 20px; }
.theme-warm-white .academic-nav-item { min-height: 39px; padding: 9px 11px; border-radius: 10px; font-size: 13px; }
.theme-warm-white .academic-nav-item.active { background: #fffaf5; border: 1px solid #efdac9; box-shadow: 0 6px 16px rgba(104, 68, 42, .05); }

.theme-warm-white .academic-workspace {
  background:
    linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.06)),
    radial-gradient(circle at 40% 0%, rgba(193,142,76,.07), transparent 35%);
}
.theme-warm-white .academic-header { min-height: 84px; padding: 14px 30px; background: rgba(255,253,249,.91); backdrop-filter: blur(12px); }
.theme-warm-white .academic-header-title h1 { font-size: 23px; letter-spacing: .02em; }
.theme-warm-white .academic-header-title p { font-size: 13px; }
.theme-warm-white .academic-switcher { border-radius: 12px; background: #f7f0e8; }
.theme-warm-white .academic-logout-btn { padding: 9px 14px; border-radius: 10px; color: #7f281d; background: #fffaf4; border-color: #e2c9b3; }
.theme-warm-white .academic-chat-shell { grid-template-columns: minmax(0, 1fr) 330px; height: calc(100vh - 84px); }
.theme-warm-white .academic-chat-main { padding: 24px 26px 18px; }
.theme-warm-white .academic-messages-flow { max-width: 980px; width: 100%; margin: 0 auto; padding: 0 8px 8px 0; }
.theme-warm-white .empty-chat { background: rgba(255,253,249,.96); border: 1px solid #e8ddd2; border-radius: 20px; box-shadow: var(--ac-card-shadow); padding: 34px; }
.theme-warm-white .chat-message.user .message-content { background: linear-gradient(90deg, #fffaf3, #f8f1e9); border: 1px solid #ead7c6; border-radius: 14px; padding: 14px 16px; }
.theme-warm-white .chat-message.assistant { background: rgba(255,253,249,.96); border: 1px solid #e8ddd2; border-radius: 18px; padding: 20px 22px; box-shadow: var(--ac-card-shadow); }
.theme-warm-white .message-avatar { background: linear-gradient(145deg, #ae2d1d, #7c150f); box-shadow: 0 6px 14px rgba(130,31,19,.18); }
.theme-warm-white .chat-message.assistant .message-avatar { background: linear-gradient(145deg, #9d2418, #b88b50); }
.theme-warm-white .academic-composer-shell { min-height: 68px; border-radius: 18px; border-color: #dfc7b4; background: #fffdf9; box-shadow: 0 12px 28px rgba(86,58,35,.08); }
.theme-warm-white .academic-send-btn { background: linear-gradient(145deg, #b72d1d, #8d2015); box-shadow: 0 6px 14px rgba(166,44,29,.18); }
.theme-warm-white .academic-trust-sidebar { padding: 22px 18px 80px; background: rgba(250,247,241,.72); border-left-color: #eadfd4; }
.theme-warm-white .academic-card { border-radius: 18px; border-color: #eadfd4; background: rgba(255,253,249,.96); box-shadow: var(--ac-card-shadow); }

@media (max-width: 1200px) {
  .theme-warm-white .academic-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .theme-warm-white .academic-chat-shell { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 820px) {
  .theme-warm-white .academic-shell { display: block; }
  .theme-warm-white .academic-sidebar { width: min(88vw, 344px); }
  .theme-warm-white .academic-header { min-height: 68px; padding: 10px 14px; }
  .theme-warm-white .academic-header-title h1 { font-size: 17px; }
  .theme-warm-white .academic-chat-shell { height: auto; min-height: calc(100vh - 68px); }
  .theme-warm-white .academic-chat-main { padding: 16px 12px; }
  .theme-warm-white .academic-trust-sidebar { padding: 0 12px 110px; background: transparent; }
}

@media (max-width: 480px) {
  .theme-warm-white .academic-header-title p,
  .theme-warm-white .switcher-label { display: none; }
  .theme-warm-white .academic-header-actions { gap: 6px; }
  .theme-warm-white .academic-switcher { gap: 1px; padding: 2px; }
  .theme-warm-white .style-link { padding: 3px 5px; font-size: 10px; }
  .theme-warm-white .academic-logout-btn { padding: 7px; }
  .theme-warm-white .academic-logout-btn span { display: none; }
  .theme-warm-white .chat-message.assistant { padding: 15px 14px; }
}
