/* Shared software cards. Four columns on desktop; no layout switch. */
#yk-portal-v2 #site-main .tc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
  align-items: stretch;
}
#yk-portal-v2 #site-main .tc-card {
  --tc-accent: #1a66e5; --tc-accent-rgb: 26, 102, 229;
  --tc-dark: #08294c; --tc-light: #2779c2;
  display: flex; flex-direction: column; min-width: 0;
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid #dce4ee; border-radius: 18px; background: #fff;
  box-shadow: 0 4px 6px #1e3c6103, 0 14px 30px #18345a07;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
#yk-portal-v2 #site-main .tc-theme-video {
  --tc-accent: #0d8992; --tc-accent-rgb: 13, 137, 146;
  --tc-dark: #082e41; --tc-light: #2d9ea4;
}
#yk-portal-v2 #site-main .tc-theme-image {
  --tc-accent: #2866c7; --tc-accent-rgb: 40, 102, 199;
  --tc-dark: #102d56; --tc-light: #4e8acd;
}
#yk-portal-v2 #site-main .tc-theme-text {
  --tc-accent: #315ec3; --tc-accent-rgb: 49, 94, 195;
  --tc-dark: #112546; --tc-light: #597ba8;
}
#yk-portal-v2 #site-main .tc-theme-office {
  --tc-accent: #148476; --tc-accent-rgb: 20, 132, 118;
  --tc-dark: #113737; --tc-light: #54a894;
}
#yk-portal-v2 #site-main .tc-theme-data {
  --tc-accent: #227d9b; --tc-accent-rgb: 34, 125, 155;
  --tc-dark: #123447; --tc-light: #498fa6;
}
#yk-portal-v2 #site-main .tc-cover {
  position: relative; flex-shrink: 0; aspect-ratio: 1.56;
  min-height: 180px; max-height: 275px; overflow: hidden;
  background: radial-gradient(ellipse at 90% 10%, #ffffff1c, transparent 55%),
    linear-gradient(133deg, var(--tc-dark) 10%, var(--tc-light) 115%);
}
#yk-portal-v2 #site-main .tc-cover::after {
  content: ""; position: absolute; z-index: 2; inset: auto 0 0; height: 50px;
  background: linear-gradient(transparent, #021a321a); pointer-events: none;
}
#yk-portal-v2 #site-main .tc-cover-grid {
  position: absolute; inset: 0; opacity: .11;
  background-image: linear-gradient(#c7e5ff55 1px, transparent 1px),
    linear-gradient(90deg, #c7e5ff55 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(110deg, #000, transparent 85%);
}
#yk-portal-v2 #site-main .tc-cover-orbit {
  position: absolute; width: 325px; height: 325px; right: -125px; top: -80px;
  border: 1px solid #d4eaff26; border-radius: 50%;
  box-shadow: 0 0 0 39px #d4eaff09, 0 0 0 40px #d4eaff18,
    0 0 0 84px #d4eaff05, 0 0 0 85px #d4eaff12;
}
#yk-portal-v2 #site-main .tc-cover-accent {
  position: absolute; top: 27px; left: 6%; width: 25px; height: 3px;
  border-radius: 2px; background: #d8edff75;
  box-shadow: 31px 0 #d8edff2b, 62px 0 #d8edff14;
}
#yk-portal-v2 #site-main .tc-access {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px;
  border: 1px solid #cceede; border-radius: 7px; color: #17644f; background: #f0fff9;
  font-size: 12px; font-weight: 650; line-height: 1.1; white-space: nowrap;
  box-shadow: 0 3px 12px #0515291a; pointer-events: none;
}
#yk-portal-v2 #site-main .tc-access-premium {
  color: #80501b; border-color: #f6e3bc;
  background: linear-gradient(115deg, #fff6dd, #efd097);
}
#yk-portal-v2 #site-main .tc-access svg { width: 16px !important; height: 16px !important; flex-shrink: 0; }
#yk-portal-v2 #site-main .tc-screen {
  display: block; position: absolute; left: 6%; right: 6%; top: 57px;
  height: calc(100% - 30px); overflow: hidden;
  border: 1px solid #f0f8ff9e; border-radius: 8px 8px 0 0; background: #fff;
  box-shadow: 0 19px 35px #021a325e, 0 0 0 5px #ebf5ff09;
  transform: perspective(900px) rotateX(3deg); transform-origin: center bottom;
  transition: transform .35s;
}
#yk-portal-v2 #site-main .tc-screen img {
  display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: top center; border-radius: 7px 7px 0 0;
}
#yk-portal-v2 #site-main .tc-body {
  position: relative; z-index: 4; display: flex; flex: 1; flex-direction: column;
  min-width: 0; padding: 0 18px 20px; background: #fff;
}
#yk-portal-v2 #site-main .tc-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; padding: 19px 0 13px;
}
#yk-portal-v2 #site-main .tc-category {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 27px; padding: 4px 8px; border: 1px solid #e6ebf1; border-radius: 6px;
  background: #f4f6f9; color: #6a7b8f;
  font-size: 12px; font-weight: 500; line-height: 17px; white-space: nowrap;
}
#yk-portal-v2 #site-main .tc-category svg {
  flex-shrink: 0; width: 14px !important; height: 14px !important; color: #7a8da2; stroke-width: 1.7;
}
#yk-portal-v2 #site-main .tc-recommend {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 27px; padding: 4px 8px; border: 1px solid #f2e9d8; border-radius: 6px;
  color: #a07834; background: #faf5e9;
  font-size: 11px; font-weight: 550; line-height: 17px; white-space: nowrap;
}
#yk-portal-v2 #site-main .tc-recommend svg { width: 11px; height: 11px; flex-shrink: 0; }
#yk-portal-v2 #site-main .tc-title {
  margin: 0 0 13px; padding: 0; color: #132541; font-size: 18px; font-weight: 700;
  line-height: 1.6; letter-spacing: -.4px; overflow-wrap: anywhere;
}
#yk-portal-v2 #site-main .tc-title a { color: inherit; font: inherit; transition: color .2s; text-decoration: none; }
#yk-portal-v2 #site-main .tc-summary {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere; min-height: 72.15px;
  margin: 0 0 20px; padding: 0; color: #6b7d93;
  font-size: 13px; line-height: 1.85; letter-spacing: .05px;
}
#yk-portal-v2 #site-main .tc-details {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 45px; margin-top: auto; padding: 5px 5px 5px 16px;
  border: 1px solid var(--tc-dark); border-radius: 9px;
  background: var(--tc-dark); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none;
  transition: background .22s, border-color .22s;
}
#yk-portal-v2 #site-main .tc-arrow {
  display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px;
  border: 1px solid #ffffff22; border-radius: 6px; color: #d8e8ff; background: #ffffff0e;
}
#yk-portal-v2 #site-main .tc-arrow svg { width: 17px; height: 17px; transition: transform .22s; }
#yk-portal-v2 #site-main .tc-card a:focus-visible { outline: 3px solid #3576ff; outline-offset: 3px; border-radius: 5px; }

@media (hover: hover) {
  #yk-portal-v2 #site-main .tc-card:hover {
    transform: translateY(-6px); border-color: rgba(var(--tc-accent-rgb), .45);
    box-shadow: 0 10px 20px #17365c08, 0 25px 48px #1633561a;
  }
  #yk-portal-v2 #site-main .tc-card:hover .tc-screen { transform: perspective(900px) rotateX(0deg) translateY(-4px); }
  #yk-portal-v2 #site-main .tc-card:hover .tc-title { color: var(--tc-accent); }
  #yk-portal-v2 #site-main .tc-card:hover .tc-details { background: var(--tc-accent); border-color: var(--tc-accent); }
  #yk-portal-v2 #site-main .tc-card:hover .tc-arrow svg { transform: translateX(2px); }
}
@media (max-width: 1100px) {
  #yk-portal-v2 #site-main .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 580px) {
  #yk-portal-v2 #site-main .tc-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #yk-portal-v2 #site-main .tc-cover { height: 249px; min-height: 0; max-height: none; aspect-ratio: auto; }
  #yk-portal-v2 #site-main .tc-screen { left: 23px; right: 23px; top: 61px; height: 226px; }
  #yk-portal-v2 #site-main .tc-body { padding: 0 22px 22px; }
  #yk-portal-v2 #site-main .tc-title { font-size: 20px; }
  #yk-portal-v2 #site-main .tc-details { min-height: 47px; font-size: 13px; }
  #yk-portal-v2 #site-main .tc-arrow { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
  #yk-portal-v2 #site-main .tc-cover { height: 225px; }
  #yk-portal-v2 #site-main .tc-screen { left: 18px; right: 18px; height: 212px; }
  #yk-portal-v2 #site-main .tc-body { padding-left: 18px; padding-right: 18px; }
  #yk-portal-v2 #site-main .tc-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #yk-portal-v2 #site-main .tc-card,
  #yk-portal-v2 #site-main .tc-card * { transition: none; }
}
