/* ============================================================
   AIGC 创意工坊（aigc.html）
   形态参考腾讯「AIGC创作工坊」：工具卡行 + 大输入框 + 示例胶囊 + 创意项目
   配色：科技蓝 #0066FF + 向阳黄 #FADB14
   ============================================================ */

.agp-body {
  min-height: 100vh;
  display: block;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(0,102,255,.10), transparent 62%),
    radial-gradient(760px 460px at 30% 88%, rgba(250,219,20,.13), transparent 64%),
    linear-gradient(180deg, #F3F8FF 0%, #EAF2FF 42%, #F6F9FF 100%);
  background-attachment: fixed;
  color: var(--ink);
}

/* 顶栏 + 内容行：顶栏与学生端一致（品牌 / 身份 / 班级 / 当前账号） */
.agp-app { min-height: 100vh; display: flex; flex-direction: column; }
.agp-wrap { flex: 1; display: flex; align-items: flex-start; }

/* ============================================================
   搬进学生端后：创作工坊是 #main 里的一个视图（2026-11-19）
   —— 不再有自己的 body / 顶栏 / 侧栏，侧栏和顶栏只有学生端那一份，
      点任何一项都是同页切换。
   ============================================================ */
.agp-hall {
  border-radius: var(--r);
  border: 1px solid #E6EEFA;
  padding: 26px 28px 30px;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(0,102,255,.10), transparent 62%),
    radial-gradient(760px 460px at 30% 88%, rgba(250,219,20,.13), transparent 64%),
    linear-gradient(180deg, #F3F8FF 0%, #EAF2FF 42%, #F6F9FF 100%);
}
@media (max-width: 900px) { .agp-hall { padding: 18px 14px 22px; } }

/* ---------- 常驻左侧导航 ---------- */
.agp-side {
  width: 216px; flex: none; position: sticky; top: 56px;
  height: calc(100vh - 56px); overflow-y: auto;
  padding: 20px 14px;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(12px);
  border-right: 1px solid #E6EEFA;
}

.agp-nav { display: flex; flex-direction: column; gap: 3px; }
.agp-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink2); text-decoration: none;
  transition: background .16s, color .16s;
}
.agp-nav a:hover { background: rgba(0,102,255,.07); color: var(--blue); }
.agp-nav a.on { background: rgba(0,102,255,.10); color: var(--blue); font-weight: 700; }
.agp-nav .ic { display: inline-flex; }
.agp-nav .ic svg { width: 15px; height: 15px; }
@media (max-width: 900px) {
  .agp-wrap { flex-direction: column; }
  .agp-side { width: 100%; height: auto; position: static; border-right: 0; border-bottom: 1px solid #E6EEFA;
               display: flex; align-items: center; gap: 14px; overflow-x: auto; padding: 12px 14px; }
  .agp-nav { flex-direction: row; gap: 4px; }
  .agp-nav a { white-space: nowrap; }
}

/* ---------- 主体 ---------- */
.agp-main { flex: 1; min-width: 0; padding: 34px 40px 70px; }
@media (max-width: 900px) { .agp-main { padding: 22px 18px 50px; } }

/* ---------- 工具卡行 ---------- */
.agp-tools { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.agp-lead { font-size: 15px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.agp-lead.right { color: var(--ink3); font-weight: 600; }
.agp-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; flex: 1; }
@media (max-width: 1500px) { .agp-cards { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1180px) { .agp-cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .agp-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .agp-cards { grid-template-columns: repeat(2, 1fr); } .agp-tools { flex-wrap: wrap; } }

.agp-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 16px 10px 14px; border-radius: 18px; cursor: pointer;
  background: #fff; border: 1px solid #E6EEFA; box-shadow: 0 8px 22px -14px rgba(0,50,130,.32);
  font-family: inherit; transition: transform .2s cubic-bezier(.22,.9,.28,1), box-shadow .2s, border-color .2s;
}
.agp-card:hover { transform: translateY(-4px); border-color: rgba(0,102,255,.32); box-shadow: 0 18px 32px -16px rgba(0,50,130,.40); }
.agp-card.on { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,102,255,.55), 0 14px 28px -14px rgba(0,50,130,.40); }
.agp-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.agp-card .ic svg { width: 23px; height: 23px; }
.agp-card .nm { font-size: 14px; font-weight: 700; color: var(--ink); }
.agp-card .ds { font-size: 11px; color: var(--ink3); text-align: center; line-height: 1.5; }

.agp-card.c-blue   .ic { background: rgba(0,102,255,.12);  color: var(--blue); }
.agp-card.c-orange .ic { background: rgba(250,140,22,.14); color: #C26A08; }
.agp-card.c-green  .ic { background: rgba(82,196,26,.13);  color: #3F9E12; }
.agp-card.c-purple .ic { background: rgba(114,46,209,.11); color: #722ED1; }
.agp-card.c-pink   .ic { background: rgba(244,114,182,.12);color: #D6409F; }
.agp-card.c-cyan   .ic { background: rgba(0,194,255,.13);  color: #0090C8; }
/* 新工具配色 */
.agp-card.c-amber   .ic { background: rgba(250,173,20,.15); color: #B87400; }
.agp-card.c-red     .ic { background: rgba(245,34,45,.11);  color: #CF1322; }
.agp-card.c-teal    .ic { background: rgba(19,194,194,.13); color: #08979C; }
.agp-card.c-indigo  .ic { background: rgba(89,126,247,.12); color: #425AEC; }
.agp-card.c-violet  .ic { background: rgba(146,84,222,.12); color: #782AB8; }
.agp-card.c-lime    .ic { background: rgba(82,196,26,.13);  color: #389E0D; }
.agp-card.c-magenta .ic { background: rgba(235,47,150,.12); color: #C41D7F; }
.agp-card.c-orange2 .ic { background: rgba(255,122,0,.14);  color: #D46B08; }
.agp-card.c-teal2   .ic { background: rgba(0,168,132,.12);  color: #00857A; }
.agp-card.c-brown    .ic { background: rgba(180,120,60,.13);  color: #96591F; } .agp-card.c-indigo2  .ic { background: rgba(89,126,247,.12);  color: #425AEC; } .agp-card.c-lime2    .ic { background: rgba(82,196,26,.13);   color: #389E0D; }
.agp-card.c-sky     .ic { background: rgba(14,165,233,.12); color: #0369A1; }

/* ---------- 大输入框 ---------- */
.agp-idea {
  background: #fff; border: 1px solid #E6EEFA; border-radius: 20px;
  box-shadow: 0 16px 40px -22px rgba(0,50,130,.34);
  padding: 18px 20px 16px; margin-bottom: 22px;
}
.agp-idea textarea {
  width: 100%; border: 0; outline: 0; resize: none;
  font-family: inherit; font-size: 16px; line-height: 1.7; color: var(--ink);
  background: transparent; min-height: 62px;
}
.agp-idea textarea::placeholder { color: #B3BECC; }

/* 参数条 */
.agp-opts { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 10px; }
.agp-sel {
  font-family: inherit; font-size: 13px; color: var(--ink2);
  padding: 8px 28px 8px 12px; border-radius: 10px;
  border: 1px solid #E6EEFA; background: #fff; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238C8C8C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color .16s, color .16s;
}
.agp-sel:hover { border-color: var(--blue); color: var(--blue); }
.agp-ico {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid #E6EEFA; background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--ink3);
  transition: border-color .16s, color .16s;
}
.agp-ico:hover { border-color: var(--blue); color: var(--blue); }
.agp-ico svg { width: 17px; height: 17px; }

.agp-idea-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.agp-idea-foot .sp { flex: 1; }
.agp-mic {
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid #E6EEFA; background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--ink2);
  transition: border-color .16s, color .16s, background .16s;
}
.agp-mic svg { width: 20px; height: 20px; }
.agp-mic:hover { border-color: var(--blue); color: var(--blue); }
.agp-mic.on { border-color: var(--blue); color: var(--blue); background: rgba(0,102,255,.08); animation: agpMic 1.3s ease-in-out infinite; }
.agp-mic.off { opacity: .4; cursor: not-allowed; }
@keyframes agpMic { 0%,100% { box-shadow: 0 0 0 0 rgba(0,102,255,.30); } 50% { box-shadow: 0 0 0 9px rgba(0,102,255,0); } }

.agp-go {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #EAEFF4, #DCE4EE); color: #A8B4C4;
  font-family: inherit; font-size: 15px; font-weight: 700;
  transition: background .2s, color .2s, transform .18s, box-shadow .2s;
}
.agp-go svg { width: 16px; height: 16px; }
.agp-go.ready { background: linear-gradient(135deg, var(--blue), #2E85FF); color: #fff; box-shadow: 0 10px 24px rgba(0,102,255,.28); }
.agp-go.ready:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,102,255,.36); }

@keyframes agpShake {
  0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}
.agp-idea textarea.shake { animation: agpShake .45s ease; }

/* ---------- 示例胶囊 ---------- */
.agp-samples { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.agp-caps { display: flex; gap: 10px; flex-wrap: wrap; }
.agp-cap {
  padding: 9px 17px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid #E6EEFA; box-shadow: 0 4px 14px -8px rgba(0,50,130,.28);
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink2);
  transition: border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.agp-cap:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,50,130,.34); }

/* ---------- 创意项目 ---------- */
.agp-sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.agp-sec-h .bar { width: 4px; height: 18px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.agp-sec-h b { font-size: 20px; font-weight: 800; }
.agp-sec-h span { font-size: 13px; color: var(--ink3); }

.agp-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .agp-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .agp-pgrid { grid-template-columns: minmax(0, 1fr); } }

.agp-proj {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 7px;
  padding: 20px 22px 18px; border-radius: 18px; text-decoration: none; color: #06263f;
  min-height: 132px;
  transition: transform .2s cubic-bezier(.22,.9,.28,1), box-shadow .2s;
}
.agp-proj:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(0,50,130,.45); }
.agp-proj .pi {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.55); color: #0B4A86; margin-bottom: 2px;
}
.agp-proj .pi svg { width: 25px; height: 25px; }
.agp-proj b { font-size: 16.5px; font-weight: 800; }
.agp-proj .pt { font-size: 11.5px; color: rgba(6,38,63,.66); }
.agp-proj::after {
  content: ""; position: absolute; right: -30px; bottom: -34px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255,255,255,.30); pointer-events: none;
}

.agp-proj.p-blue   { background: linear-gradient(135deg, #A9D8FF, #6FC0FF); }
.agp-proj.p-green  { background: linear-gradient(135deg, #9FE9CF, #55D9B4); }
.agp-proj.p-cyan   { background: linear-gradient(135deg, #A6E4F5, #5FCDE8); }
.agp-proj.p-teal   { background: linear-gradient(135deg, #9FE6E6, #4FC9D6); }
.agp-proj.p-violet { background: linear-gradient(135deg, #C9B8F5, #9B7EE8); }
.agp-proj.p-indigo { background: linear-gradient(135deg, #B8C2F5, #8590E8); }
.agp-proj.p-slate  { background: linear-gradient(135deg, #CFD8E8, #A9B7CE); }
.agp-proj.p-light  { background: linear-gradient(135deg, #EDF3FC, #DCE7F7); color: var(--ink2); }
.agp-proj.more { cursor: default; }
.agp-proj.more .pi { background: rgba(255,255,255,.7); color: var(--ink3); }
