/* 糖心二次元与插画创作平台 - 主样式表 */
/* 薄荷绿+樱花粉清新二次元风格 */

:root {
  --y70: #00BFA5;
  --j98: #FFB7C5;
  --d47: #F0FFF4;
  --w15: #FFFFFF;
  --e55: #7C4DFF;
  --k89: #37474F;
  --w40: #607D8B;
  --k94: 20px;
  --q40: 12px;
  --e98: 0 6px 24px rgba(0, 191, 165, 0.12);
  --m88: 0 12px 36px rgba(0, 191, 165, 0.2);
  --f2: 0 4px 16px rgba(0, 0, 0, 0.06);
  --n78: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --k93: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --k57: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --g78: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  --f74: 1200px;
  --m17: 72px;
}

/* 重置与基础 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--k57);
  color: var(--k89);
  background-color: var(--d47);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--y70);
  text-decoration: none;
  transition: var(--n78);
}

a:hover {
  color: var(--e55);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--k93);
  font-weight: 700;
  line-height: 1.4;
  color: var(--k89);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* 容器 */
.container {
  max-width: var(--f74);
  margin: 0 auto;
  padding: 0 24px;
}

/* 头部导航 */
.hp-area {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--j98);
  height: var(--m17);
  display: flex;
  align-items: center;
}

.wd-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--f74);
  margin: 0 auto;
  padding: 0 24px;
}

.vw-list {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--y70);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vw-list .q7q1i8 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.s4z4i9 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.s4z4i9 a {
  padding: 8px 16px;
  border-radius: var(--q40);
  color: var(--k89);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--n78);
}

.s4z4i9 a:hover,
.s4z4i9 a.active {
  background: linear-gradient(135deg, var(--y70), var(--e55));
  color: #fff;
}

._gd4pp {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

._gd4pp span {
  width: 24px;
  height: 2px;
  background: var(--k89);
  border-radius: 2px;
  transition: var(--n78);
}

/* 英雄区 */
.qr-head {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--d47) 100%);
  position: relative;
  overflow: hidden;
}

.qr-head::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(0, 191, 165, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255, 183, 197, 0.05) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, -1%); }
}

.v8p4j8 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--y70), var(--e55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.pn-body {
  font-size: 1.25rem;
  color: var(--w40);
  max-width: 680px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.pn-cell {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* 按钮 */
.pn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--n78);
}

.h6l1j5 {
  background: linear-gradient(135deg, var(--y70), #00E5CC);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 191, 165, 0.3);
}

.h6l1j5:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 191, 165, 0.4);
  color: #fff;
}

.m3j3h1 {
  background: var(--w15);
  color: var(--y70);
  border: 2px solid var(--y70);
}

.m3j3h1:hover {
  background: var(--y70);
  color: #fff;
  transform: translateY(-2px);
}

.bw-body {
  background: linear-gradient(135deg, var(--e55), #9C7CFF);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 77, 255, 0.3);
}

.bw-body:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 77, 255, 0.4);
  color: #fff;
}

/* 区块标题 */
._h1oga {
  text-align: center;
  margin-bottom: 48px;
}

._h1oga h2 {
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

._h1oga h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--y70), var(--j98));
  border-radius: 2px;
}

._h1oga p {
  color: var(--w40);
  font-size: 1.05rem;
  margin-top: 16px;
}

/* 模块区块 */
.w6l6c2 {
  padding: 80px 0;
}

.l2n2e4 {
  background: #fff;
}

/* 瀑布流画廊 */
.a8f7b5 {
  columns: 4;
  column-gap: 20px;
}

.gk-foot {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--k94);
  overflow: hidden;
  position: relative;
  background: var(--w15);
  box-shadow: var(--f2);
  transition: var(--n78);
}

.gk-foot:hover {
  transform: translateY(-4px);
  box-shadow: var(--m88);
}

.gk-foot:hover .pn-pan {
  opacity: 1;
}

.gk-foot:hover img {
  transform: scale(1.05);
}

.gk-foot img {
  width: 100%;
  transition: transform 0.5s ease;
}

.pn-pan {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  opacity: 0;
  transition: var(--n78);
}

.pn-pan .d6k7o9 {
  font-weight: 600;
  font-size: 0.95rem;
}

.pn-pan .vw-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* 卡片网格 */
._gscor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.h6c1k6 {
  background: var(--w15);
  border-radius: var(--k94);
  overflow: hidden;
  box-shadow: var(--f2);
  transition: var(--n78);
}

.h6c1k6:hover {
  transform: translateY(-6px);
  box-shadow: var(--m88);
}

.y9b5j6 {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.y9b5j6 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.h6c1k6:hover .y9b5j6 img {
  transform: scale(1.08);
}

._yyww7 {
  padding: 20px;
}

.nf-body {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.z7f3e5 {
  color: var(--w40);
  font-size: 0.9rem;
  line-height: 1.6;
}

.c3y2z4 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--w40);
}

/* 标签 */
.dk-box {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0, 191, 165, 0.1);
  color: var(--y70);
  transition: var(--n78);
}

.dk-box:hover {
  background: var(--y70);
  color: #fff;
  transform: scale(1.05);
}

.w6j2w9 {
  background: rgba(255, 183, 197, 0.2);
  color: #E91E63;
}

.z2g4l2 {
  background: rgba(124, 77, 255, 0.1);
  color: var(--e55);
}

/* 画师卡片 */
._36w4v {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--w15);
  border-radius: var(--k94);
  box-shadow: var(--f2);
  transition: var(--n78);
}

._36w4v:hover {
  transform: translateX(4px);
  box-shadow: var(--m88);
  border-left: 4px solid var(--y70);
}

.lq-col {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--j98);
}

.hp-row h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.hp-row .o6s8g5 {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

._azc91 {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

._cb8z5 {
  background: rgba(0, 191, 165, 0.1);
  color: var(--y70);
}

.t9e4m2 {
  background: rgba(255, 183, 197, 0.2);
  color: #E91E63;
}

/* 价格表 */
._lhxdy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.f4f7i4 {
  background: var(--w15);
  border-radius: var(--k94);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--f2);
  transition: var(--n78);
  position: relative;
  overflow: hidden;
}

.f4f7i4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--y70), var(--j98));
}

.f4f7i4:hover {
  transform: translateY(-8px);
  box-shadow: var(--m88);
}

.f4f7i4.l2o5b9 {
  border: 2px solid var(--y70);
}

.f4f7i4.l2o5b9::before {
  height: 6px;
  background: linear-gradient(90deg, var(--y70), var(--e55));
}

.pn-grid {
  font-family: var(--g78);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--y70);
  margin: 16px 0;
}

.pn-grid .dk-grid {
  font-size: 1.2rem;
  vertical-align: super;
}

.jm-box {
  list-style: none;
  margin: 20px 0;
  text-align: left;
}

.jm-box li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.jm-box li::before {
  content: '✓';
  color: var(--y70);
  font-weight: 700;
}

/* 教程卡片 */
._xi81i {
  position: relative;
}

._xi81i .z6f8z1 {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  z-index: 2;
}

._hs54q { background: var(--y70); }
._2g683 { background: #FF9800; }
.c9a2g2 { background: var(--e55); }

/* FAQ */
.qr-chip {
  max-width: 800px;
  margin: 0 auto;
}

._1z27m {
  background: var(--w15);
  border-radius: var(--q40);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--f2);
}

.lq-box {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--n78);
}

.lq-box:hover {
  color: var(--y70);
}

.lq-box::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--y70);
  transition: var(--n78);
}

._1z27m.active .lq-box::after {
  transform: rotate(45deg);
}

.zt-pan {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--w40);
  line-height: 1.8;
}

._1z27m.active .zt-pan {
  padding: 0 24px 20px;
  max-height: 500px;
}

/* 面包屑 */
.h7z2c3 {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--w40);
}

.h7z2c3 a {
  color: var(--w40);
}

.h7z2c3 a:hover {
  color: var(--y70);
}

.h7z2c3 span {
  margin: 0 8px;
  color: #ccc;
}

/* 页脚 */
._3enab {
  background: #263238;
  color: #B0BEC5;
  padding: 60px 0 24px;
}

.zt-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.xz-zone h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.xz-zone p {
  font-size: 0.9rem;
  line-height: 1.8;
}

._dhdtn h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

._dhdtn ul {
  list-style: none;
}

._dhdtn li {
  margin-bottom: 10px;
}

._dhdtn a {
  color: #B0BEC5;
  font-size: 0.9rem;
  transition: var(--n78);
}

._dhdtn a:hover {
  color: var(--y70);
  padding-left: 4px;
}

._ivaaa {
  border-top: 1px solid #37474F;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

._ivaaa a {
  color: var(--y70);
}

/* 搜索框 */
.j1d7b4 {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.j1d7b4 input {
  width: 100%;
  padding: 16px 24px;
  padding-right: 56px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: var(--n78);
  background: var(--w15);
}

.j1d7b4 input:focus {
  border-color: var(--y70);
  box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.1);
}

.j1d7b4 button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--y70);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--n78);
}

.j1d7b4 button:hover {
  background: var(--e55);
}

/* 投票组件 */
._c3959 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.bw-card {
  background: var(--w15);
  border-radius: var(--k94);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--f2);
  transition: var(--n78);
}

.bw-card:hover {
  box-shadow: var(--m88);
}

.bw-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.x6e4k5 {
  margin: 16px;
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--y70);
  background: transparent;
  color: var(--y70);
  font-weight: 600;
  cursor: pointer;
  transition: var(--n78);
}

.x6e4k5:hover {
  background: var(--y70);
  color: #fff;
}

.dk-list {
  font-family: var(--g78);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--y70);
  margin-bottom: 16px;
}

/* 角色设定展示 */
.zt-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gk-chip {
  text-align: center;
}

.gk-chip img {
  border-radius: var(--q40);
  border: 2px solid var(--j98);
  margin-bottom: 8px;
}

.gk-chip span {
  font-size: 0.85rem;
  color: var(--w40);
}

/* 步骤展示 */
._009vg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.p2c1m1 {
  text-align: center;
  position: relative;
}

.p2c1m1 img {
  border-radius: var(--q40);
  margin-bottom: 8px;
  border: 2px solid transparent;
  transition: var(--n78);
}

.p2c1m1:hover img {
  border-color: var(--y70);
  box-shadow: 0 0 16px rgba(0, 191, 165, 0.3);
}

._klt4e {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  background: var(--y70);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* 挑战赛 */
._hgy4h {
  background: linear-gradient(135deg, var(--y70), var(--e55));
  border-radius: var(--k94);
  padding: 40px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

._hgy4h::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

._hgy4h h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.i2c6v4 {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.q8o7s5 {
  text-align: center;
}

.q8o7s5 ._x25ee {
  font-family: var(--g78);
  font-size: 2rem;
  font-weight: 800;
}

.q8o7s5 .cy-flow {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* 资源下载 */
.s3v6z7 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

._ciq5z {
  background: var(--w15);
  border-radius: var(--q40);
  padding: 20px;
  text-align: center;
  box-shadow: var(--f2);
  transition: var(--n78);
}

._ciq5z:hover {
  transform: translateY(-4px);
  box-shadow: var(--m88);
}

.j3x5w4 {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
}

/* 页面内容区 */
.v2e6k7 {
  padding: 40px 0 80px;
}

.v2e6k7 .bx-zone {
  max-width: 900px;
  margin: 0 auto;
}

.bx-zone h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--j98);
}

.bx-zone p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.bx-zone ul, .bx-zone ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.bx-zone li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* 404页面 */
._rk0sm {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.i9t1f9 {
  font-family: var(--g78);
  font-size: 8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--y70), var(--e55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heartBurst {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.8; }
  100% { transform: scale(0); opacity: 0; }
}

.g3h9l3 {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.i6a2s3 {
  position: absolute;
  color: #E91E63;
  font-size: 1.2rem;
  animation: heartBurst 0.8s ease forwards;
  pointer-events: none;
}

/* 滚动渐入 */
.nf-grid {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nf-grid.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式 */
@media (max-width: 1024px) {
  .a8f7b5 {
    columns: 3;
  }
  .zt-item {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --m17: 60px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .v8p4j8 { font-size: 2.2rem; }
  .pn-body { font-size: 1rem; }
  
  .s4z4i9 {
    display: none;
    position: absolute;
    top: var(--m17);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--e98);
    border-radius: 0 0 var(--k94) var(--k94);
  }
  
  .s4z4i9.active {
    display: flex;
  }
  
  ._gd4pp {
    display: flex;
  }
  
  .a8f7b5 {
    columns: 2;
  }
  
  ._gscor {
    grid-template-columns: 1fr;
  }
  
  .zt-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  ._c3959 {
    grid-template-columns: 1fr;
  }
  
  .zt-col {
    grid-template-columns: 1fr;
  }
  
  .i2c6v4 {
    flex-direction: column;
    gap: 16px;
  }
  
  .w6l6c2 {
    padding: 48px 0;
  }
  
  ._lhxdy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .a8f7b5 {
    columns: 1;
  }
  
  .pn-cell {
    flex-direction: column;
    align-items: center;
  }
  
  .container {
    padding: 0 16px;
  }
}

/* 打印样式 */
@media print {
  .hp-area, ._3enab, ._gd4pp {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
