/* =============================================================
 *  奇渊智写 · 权益卡 / 权益标签样式  QYEntitlement
 *  暗底玻璃 + 青绿金橙 + 流光 + 粒子 + 倒计时
 *  视觉基准：旗云AI 权益卡（32198），品牌与数据源改为奇渊智写
 * ============================================================= */
.qye {
  --qa: #5fe3c0;
  --qb: #2c9a83;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 10px 18px;
  align-items: center;
  padding: 14px 18px 13px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(122, 160, 148, .16);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 255, 255, .055), transparent 58%),
    linear-gradient(135deg, rgba(19, 32, 28, .94), rgba(8, 13, 11, .96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 18px 42px -26px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .018);
  transition: transform .38s cubic-bezier(.2, .8, .25, 1), box-shadow .38s ease, border-color .38s ease;
  cursor: default;
}
.qye::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--qa), transparent);
  opacity: .42;
  pointer-events: none;
}
.qye-fx {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
  mix-blend-mode: screen;
}
.qye-sweep {
  position: absolute;
  top: -60%; left: -30%;
  width: 42%; height: 220%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .085), transparent);
  transform: rotate(14deg) translateX(-120%);
  animation: qye-sweep 6.5s cubic-bezier(.45, 0, .35, 1) infinite;
}
.qye-glow {
  position: absolute;
  inset: -40% -10% 40% -10%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(60% 100% at 20% 0%, var(--qa), transparent 70%);
  opacity: .10;
  filter: blur(14px);
  transition: opacity .4s ease;
}
.qye.hot { transform: translateY(-2px); }
.qye.hot .qye-glow { opacity: .22; }
.qye.hot .qye-sweep { animation-duration: 3.2s; }
.qye.hot {
  border-color: rgba(122, 160, 148, .3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 26px 54px -26px rgba(0, 0, 0, .95),
    0 0 0 1px color-mix(in srgb, var(--qa) 16%, transparent);
}

/* ---------- 主信息行 ---------- */
.qye-main {
  grid-column: 1; grid-row: 1;
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.qye-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  color: #0c1916;
  background: linear-gradient(135deg, var(--qa), var(--qb));
  box-shadow: 0 6px 18px -8px var(--qb), inset 0 1px 0 rgba(255, 255, 255, .35);
  white-space: nowrap;
}
.qye-badge.qye-svip {
  background: linear-gradient(135deg, #f7dda6, #c9973f);
  color: #3a2a05;
  letter-spacing: .8px;
  box-shadow: 0 6px 22px -6px rgba(201, 151, 63, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.qye-badge.qye-svip .qye-dot { background: #6a4d0c; opacity: .5; }
.qye-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #0c1916; opacity: .55;
  box-shadow: 0 0 0 0 rgba(12, 25, 22, .5);
  animation: qye-pulse 2.4s ease-out infinite;
}
.qye-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qye-ttl {
  font-size: 14.5px; font-weight: 700; letter-spacing: .3px;
  color: #e9f4f1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qye-sub { font-size: 11.5px; color: rgba(206, 228, 222, .5); letter-spacing: .2px; }

/* ---------- 倒计时 ---------- */
.qye-right {
  grid-column: 3; grid-row: 1;
  position: relative; z-index: 2;
  text-align: right;
}
.qye-clock {
  display: block;
  font-size: 19px; font-weight: 800; line-height: 1.12;
  letter-spacing: .6px;
  font-variant-numeric: tabular-nums;
  color: var(--qa);
  text-shadow: 0 0 18px color-mix(in srgb, var(--qa) 34%, transparent);
}
.qye-forever .qye-clock { font-size: 17px; letter-spacing: 1px; }
.qye-exp {
  display: block; margin-top: 4px;
  font-size: 11px; color: rgba(206, 228, 222, .45);
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
}
.qye-expired .qye-clock {
  color: #e6a3a3;
  text-shadow: 0 0 16px rgba(230, 163, 163, .28);
  animation: qye-blink 1.8s ease-in-out infinite;
}

/* ---------- 权益标签 ---------- */
.qye-items {
  grid-column: 1 / -1; grid-row: 2;
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.qye-item {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px; letter-spacing: .2px;
  color: rgba(216, 238, 232, .78);
  border: 1px solid rgba(122, 160, 148, .2);
  background: rgba(122, 160, 148, .07);
  transition: border-color .3s ease, background .3s ease, color .3s ease, transform .3s ease;
  cursor: default;
}
.qye-item:hover {
  transform: translateY(-1px);
  color: #eaf6f2;
  border-color: color-mix(in srgb, var(--qa) 42%, transparent);
  background: color-mix(in srgb, var(--qa) 12%, transparent);
}
.qye-note {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: rgba(226, 200, 160, .72);
  border: 1px dashed rgba(214, 178, 118, .26);
  background: rgba(214, 178, 118, .05);
}

/* ---------- 动画 ---------- */
@keyframes qye-sweep {
  0%   { transform: rotate(14deg) translateX(-120%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: rotate(14deg) translateX(360%); opacity: 0; }
}
@keyframes qye-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(12, 25, 22, .45); }
  70%  { box-shadow: 0 0 0 6px rgba(12, 25, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 25, 22, 0); }
}
@keyframes qye-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 720px) {
  .qye { grid-template-columns: auto 1fr; }
  .qye-right { grid-column: 2; grid-row: 1; }
  .qye-clock { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .qye-sweep, .qye-dot { animation: none; }
}
