/* ==========================================================================
   律典 · 学习、分享卡片与律师工具
   ========================================================================== */

/* 品牌图片 LOGO */
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft);
}

.footer-brand .brand-logo {
  width: 34px;
  height: 34px;
}

/* ==========================================================================
   分享面板
   ========================================================================== */

.share-modal {
  max-width: 660px;
  width: calc(100vw - 32px);
}

.share-body {
  padding-top: 12px;
}

.share-main {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.share-brief {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(240px 140px at 0% 0%, rgba(0, 82, 217, 0.06), transparent 70%),
    var(--surface-2);
}

.share-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.share-brand .share-logo,
.share-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft);
}

.share-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.share-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.share-brand b {
  font-size: 13px;
  font-weight: 600;
}

.share-brand i {
  font-size: 10px;
  font-style: normal;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}

.share-brief h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  word-break: break-word;
}

.share-brief p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.7;
}

.share-host {
  margin-top: 10px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
}

.share-qrbox {
  flex: 0 0 152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.share-qrbox canvas {
  width: 128px;
  height: 128px;
  border-radius: 6px;
}

.share-qrbox span {
  color: var(--ink-4);
  font-size: 10.5px;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.share-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  transition: all 0.18s var(--ease);
}

.share-action .icon {
  width: 19px;
  height: 19px;
  color: var(--ink-3);
}

.share-action:hover {
  border-color: var(--brand-weak-2);
  background: var(--brand-weak);
  color: var(--brand);
  transform: translateY(-1px);
}

.share-action:hover .icon {
  color: var(--brand);
}

.share-action.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 82, 217, 0.22);
}

.share-action.primary .icon {
  color: #fff;
}

.share-result {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.share-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.share-result-head span {
  font-size: 13px;
  font-weight: 600;
}

.share-result-head em {
  font-style: normal;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.share-result img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.share-result-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.share-hint {
  margin: 10px 0 0;
  color: var(--ink-4);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

/* ==========================================================================
   学习抽卡
   ========================================================================== */

.learn-hero {
  padding: 46px 0 34px;
}

.learn-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.learn-hero h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.learn-hero h1 .gradient {
  background: linear-gradient(100deg, var(--brand), #7a5cff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.learn-hero p {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.8;
}

.learn-stats {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.learn-stat {
  min-width: 86px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.learn-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.learn-stat span {
  color: var(--ink-4);
  font-size: 11px;
}

.learn-panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.learn-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.learn-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
}

.learn-filters select {
  height: 34px;
  max-width: 168px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: var(--surface);
  font-size: 12.5px;
}

.learn-filters select:focus {
  border-color: var(--brand);
}

.learn-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.learn-actions .btn {
  min-width: 112px;
}

.learn-tip {
  margin-left: auto;
  color: var(--ink-4);
  font-size: 11.5px;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.draw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(0, 82, 217, 0.05), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.draw-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #7a5cff);
  opacity: 0.85;
}

.draw-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.draw-card.flip-in {
  animation: cardFlip 0.55s var(--ease) both;
}

@keyframes cardFlip {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateY(-32deg) translateY(10px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: perspective(900px) rotateY(4deg) translateY(0) scale(1.01);
  }
  100% {
    transform: perspective(900px) rotateY(0) translateY(0) scale(1);
  }
}

.draw-card.daily {
  border-color: var(--brand-weak-2);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(0, 82, 217, 0.09), transparent 70%),
    linear-gradient(180deg, var(--brand-weak), var(--surface) 58%);
}

.draw-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.draw-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.draw-card-date {
  flex: 0 0 auto;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.draw-card h3 {
  margin: 12px 0 0;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.45;
}

.draw-card h3 a:hover {
  color: var(--brand);
}

.draw-num {
  display: inline-block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.draw-text {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.85;
}

.draw-text.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.draw-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.draw-card-foot .draw-meta {
  margin-right: auto;
  color: var(--ink-4);
  font-size: 10.5px;
}

.draw-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 11px;
  transition: all 0.16s ease;
}

.draw-card-action .icon {
  width: 13px;
  height: 13px;
}

.draw-card-action:hover {
  border-color: var(--brand-weak-2);
  background: var(--brand-weak);
  color: var(--brand);
}

.draw-card-action.active {
  border-color: var(--brand);
  background: var(--brand-weak);
  color: var(--brand);
}

.draw-loading {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 54px 0;
  color: var(--ink-3);
  font-size: 13px;
}

.draw-loading .spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: lrbSpin 0.8s linear infinite;
}

@keyframes lrbSpin {
  to { transform: rotate(360deg); }
}

/* 每日一卡面板 */
.daily-panel {
  padding: 20px 22px;
  border: 1px solid var(--brand-weak-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(0, 82, 217, 0.08), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.daily-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.daily-panel-head .section-kicker {
  margin-bottom: 3px;
}

.daily-panel-head p {
  margin: 0;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.7;
}

.daily-date {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-weak);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* 挖空自测 */
.cloze {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.cloze-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
}

.cloze-body {
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 2.1;
}

.cloze-input {
  display: inline-block;
  min-width: 46px;
  height: 26px;
  margin: 0 2px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 13px;
  text-align: center;
  vertical-align: baseline;
}

.cloze-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-weak);
}

.cloze-input.correct {
  border-color: var(--success);
  background: var(--success-weak);
  color: var(--success);
}

.cloze-input.wrong {
  border-color: var(--danger);
  background: var(--danger-weak);
  color: var(--danger);
}

.cloze-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.cloze-result {
  color: var(--ink-4);
  font-size: 11px;
}

/* 收藏 */
.review-list {
  display: grid;
  gap: 10px;
}

.review-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.review-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.review-item b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.review-item p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-item .draw-card-action {
  flex: 0 0 auto;
}

/* ==========================================================================
   律师工具箱
   ========================================================================== */

.tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tool-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tool-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.tool-card-head .tool-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-weak);
  color: var(--brand);
}

.tool-card-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.tool-card-head p {
  margin: 3px 0 0;
  color: var(--ink-4);
  font-size: 11.5px;
  line-height: 1.6;
}

.tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tool-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tool-field.full {
  grid-column: 1 / -1;
}

.tool-field label {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 500;
}

.tool-field input,
.tool-field select,
.tool-field textarea {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: var(--surface);
  font-size: 13px;
}

.tool-field textarea {
  height: 92px;
  padding: 9px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  resize: vertical;
}

.tool-field input:focus,
.tool-field select:focus,
.tool-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-weak);
}

.tool-field small {
  color: var(--ink-4);
  font-size: 10.5px;
  line-height: 1.5;
}

.tool-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  grid-column: 1 / -1;
}

.tool-switches label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
  cursor: pointer;
}

.tool-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-result {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.tool-result[hidden] {
  display: none;
}

.tool-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.tool-result-head span {
  color: var(--ink-4);
  font-size: 11px;
}

.tool-result strong {
  display: block;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.tool-result .tool-lines {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.tool-result .tool-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-3);
  font-size: 12px;
}

.tool-result .tool-lines li:last-child {
  border-bottom: 0;
}

.tool-result .tool-lines b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tool-note {
  margin: 10px 0 0;
  color: var(--ink-4);
  font-size: 10.5px;
  line-height: 1.7;
}

.tool-ref {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.tool-ref-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  color: var(--ink-3);
  font-size: 12px;
}

.tool-ref-item b {
  flex: 1 1 auto;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}

.tool-ref-item .icon-btn {
  width: 28px;
  height: 28px;
}

.timeline-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  margin-top: 12px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.timeline-item .badge {
  flex: 0 0 auto;
}

.timeline-item a {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
}

.timeline-item a:hover {
  color: var(--brand);
}

.timeline-item small {
  display: block;
  margin-top: 2px;
  color: var(--ink-4);
  font-size: 10px;
}

.deadline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.deadline-table th,
.deadline-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.deadline-table th {
  color: var(--ink-4);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.deadline-table td:first-child {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.deadline-table td:last-child {
  color: var(--ink-3);
}

/* ==========================================================================
   首页入口
   ========================================================================== */

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.entry-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: all 0.22s var(--ease);
}

.entry-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-weak-2);
  box-shadow: var(--shadow-md);
}

.entry-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-weak);
  color: var(--brand);
}

.entry-icon .icon {
  width: 21px;
  height: 21px;
}

.entry-card:nth-child(2) .entry-icon {
  background: var(--violet-weak);
  color: var(--violet);
}

.entry-card:nth-child(3) .entry-icon {
  background: var(--gold-weak);
  color: var(--gold);
}

.entry-body {
  flex: 1 1 auto;
  min-width: 0;
}

.entry-body b {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
}

.entry-body p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.7;
}

.entry-arrow {
  align-self: center;
  color: var(--ink-4);
}

.entry-arrow .icon {
  width: 16px;
  height: 16px;
}

/* 每日一卡小卡（首页） */
.daily-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--brand-weak-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 160px at 0% 0%, rgba(0, 82, 217, 0.08), transparent 70%),
    var(--surface);
}

.daily-strip .daily-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
}

.daily-strip .daily-main {
  flex: 1 1 auto;
  min-width: 0;
}

.daily-strip b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.daily-strip p {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 900px) {
  .learn-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .learn-stats {
    width: 100%;
  }

  .learn-stat {
    flex: 1 1 0;
    min-width: 0;
  }

  .tools-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .share-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
  }

  .share-main {
    flex-direction: column;
  }

  .share-qrbox {
    flex-direction: row;
    flex-basis: auto;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 14px;
  }

  .share-qrbox canvas {
    width: 92px;
    height: 92px;
  }

  .share-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .learn-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .learn-panel {
    padding: 14px;
  }

  .learn-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .learn-filters label {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .learn-filters select {
    max-width: none;
    width: 100%;
  }

  .learn-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .learn-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .learn-actions .learn-tip {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .tool-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool-card {
    padding: 16px;
  }

  .daily-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .daily-strip p {
    white-space: normal;
  }
}

/* ==========================================================================
   分享面板 · 高级质感
   ========================================================================== */

.share-modal {
  border: 1px solid rgba(216, 188, 138, 0.28);
  box-shadow: 0 32px 90px rgba(11, 18, 32, 0.32);
}

.share-brief {
  position: relative;
  border-color: rgba(216, 188, 138, 0.34);
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(176, 138, 80, 0.20), transparent 55%),
    linear-gradient(135deg, #101b2e, #0b1220);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.share-brief::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c8a25c, transparent);
}

.share-brand .share-logo,
.share-brand img {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(216, 188, 138, 0.34);
}

.share-brand b {
  color: #fff;
}

.share-brand i {
  color: rgba(255, 255, 255, 0.55);
}

.share-brief h3 {
  color: #fff;
}

.share-brief p {
  color: rgba(255, 255, 255, 0.70);
}

.share-host {
  color: #e0c79a;
}

.share-qrbox {
  border-color: rgba(216, 188, 138, 0.28);
  background: #fff;
}

.share-action.primary {
  border-color: #c8a25c;
  background: linear-gradient(135deg, #e8cfa0, #c8a25c);
  color: #1b1408;
  box-shadow: 0 8px 20px rgba(200, 162, 92, 0.28);
}

.share-action.primary .icon {
  color: #1b1408;
}

.share-result img {
  max-width: 340px;
  border-color: rgba(216, 188, 138, 0.4);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(11, 18, 32, 0.22);
}

/* ==========================================================================
   AI 入口强化（2026-11）
   ========================================================================== */

/* 顶部导航 AI 入口 */
.nav-link.nav-ai {
  gap: 5px;
  margin-right: 4px;
  padding: 0 12px;
  color: var(--brand);
  background: var(--brand-weak);
  border-radius: 999px;
  font-weight: 600;
}

.nav-link.nav-ai .nav-ai-icon {
  font-size: 14px;
}

.nav-link.nav-ai:hover {
  color: #fff;
  background: var(--brand);
}

.nav-link.nav-ai.active {
  color: #fff;
  background: var(--brand);
}

.nav-link.nav-ai.active::after {
  display: none;
}

/* 页头 AI 按钮 */
.header-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #16233c, #0b1220);
  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.18);
  white-space: nowrap;
}

.header-ai-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #1d3054, #101a2e);
  box-shadow: 0 4px 14px rgba(11, 18, 32, 0.24);
}

.header-ai-btn .icon {
  color: #e3c58c;
}

/* 首页 Hero AI 引流条 */
.hero-ai-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(216, 188, 138, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(176, 138, 80, 0.18), transparent 55%),
    linear-gradient(135deg, #101b2e, #0b1220);
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.18);
}

.hero-ai-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #e3c58c;
  background: rgba(227, 197, 140, 0.12);
  box-shadow: inset 0 0 0 1px rgba(227, 197, 140, 0.24);
}

.hero-ai-icon .icon {
  font-size: 22px;
}

.hero-ai-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-ai-copy b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-ai-copy b em {
  color: #e3c58c;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.hero-ai-copy p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12.5px;
  line-height: 1.6;
}

.hero-ai-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-ai-actions .btn-primary {
  color: #1b1408;
  background: linear-gradient(135deg, #e8cfa0, #c8a25c);
  box-shadow: 0 4px 14px rgba(200, 162, 92, 0.26);
}

.hero-ai-actions .btn-primary:hover {
  background: linear-gradient(135deg, #f0d9ae, #d0aa63);
}

.hero-ai-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  white-space: nowrap;
}

.hero-ai-link:hover {
  color: #fff;
  text-decoration: underline;
}

.hero-ai-link .icon {
  font-size: 13px;
}

/* AI 页：平台直达 */
.ai-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.ai-platforms > span {
  color: var(--ink-4);
  font-size: 12.5px;
}

.ai-platform-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.18s ease;
}

.ai-platform-link:hover {
  color: var(--brand);
  border-color: var(--brand-weak-2);
  background: var(--brand-weak);
  transform: translateY(-1px);
}

.ai-platform-link .icon {
  font-size: 13px;
}

/* AI 页：提示词定制器 */
.ai-builder {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(320px 180px at 100% 0%, rgba(0, 82, 217, 0.05), transparent 70%),
    var(--surface);
}

.ai-builder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ai-builder label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}

.ai-builder input,
.ai-builder select,
.ai-builder textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface-2);
  font-size: 13px;
  font-family: inherit;
}

.ai-builder textarea {
  min-height: 150px;
  margin-top: 14px;
  line-height: 1.75;
  resize: vertical;
}

.ai-builder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.ai-builder-actions .hint {
  margin-left: auto;
  color: var(--ink-4);
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero-ai-entry {
    flex-wrap: wrap;
  }

  .hero-ai-actions {
    width: 100%;
    justify-content: space-between;
  }

  .ai-builder-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .header-ai-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }

  .header-ai-btn .icon {
    font-size: 20px;
  }

  .mobile-nav-link {
    font-size: 9.5px;
  }
}

@media (max-width: 640px) {
  .hero-ai-entry {
    padding: 14px;
    gap: 12px;
  }

  .hero-ai-icon {
    width: 38px;
    height: 38px;
  }

  .hero-ai-copy b {
    font-size: 14px;
  }

  .hero-ai-copy p {
    font-size: 12px;
  }

  .ai-builder {
    padding: 16px;
  }
}
