/* 攻略链接（Guide Links）—— 模块自带样式，沿用模板的色板与圆角 */

#guide-links-root [hidden] { display: none !important; }

.guide-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-field { display: block; margin-bottom: 12px; }
.guide-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.guide-field input,
.guide-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  outline: none;
  resize: vertical;
}
.guide-field input:focus,
.guide-field textarea:focus { border-color: var(--lake); box-shadow: 0 0 0 3px rgba(40, 123, 144, .1); }
.guide-field__hint { display: block; margin-top: 5px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.guide-field__hint[data-state="ok"] { color: var(--forest); }
.guide-field__hint[data-state="warn"] { color: var(--warning); }

.guide-error {
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #efd3cb;
  border-radius: 11px;
  color: #9c4630;
  background: #fdf3ef;
  font-size: 11px;
  line-height: 1.6;
}

.guide-primary {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.guide-primary:hover { background: #1d3b48; }

.guide-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) { .guide-list { grid-template-columns: 1fr 1fr; } }

.guide-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(25, 47, 55, .06);
}
.guide-item__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.guide-item__title { margin: 0; font-size: 14px; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.guide-item__url {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.guide-item__url:hover { color: var(--lake); }
.guide-item__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.guide-item__open,
.guide-item__actions button {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
  font-weight: 680;
}
.guide-item__open {
  color: #fff;
  background: var(--lake);
}
.guide-item__open:hover { background: #1d6b7b; }
.guide-item__actions button { color: #9a7062; background: transparent; }
.guide-item__actions button:hover { color: #9c4630; background: #fdf3ef; }

.guide-empty {
  margin-top: 16px;
  padding: 30px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 255, 255, .55);
}
.guide-empty strong { display: block; font-size: 13px; }
.guide-empty p { margin: 8px auto 0; max-width: 340px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
