/* ==========================================================
   Lite编程 全站设计系统  theme.css
   清爽现代浅色 · 主色沿用品牌橙 #FF7722
   ========================================================== */

:root{
  --brand:        #FF7722;
  --brand-dark:   #E85F0D;
  --brand-soft:   #FFF3EC;

  --ink-1:        #1A1D21;
  --ink-2:        #5A6472;
  --ink-3:        #98A2B3;

  --bg-page:      #FFFFFF;
  --bg-soft:      #F6F8FB;
  --bg-card:      #FFFFFF;

  --line:         #E8ECF1;
  --line-strong:  #D5DCE5;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --sh-1: 0 1px 2px rgba(16,24,40,.04);
  --sh-2: 0 4px 12px rgba(16,24,40,.06);
  --sh-3: 0 12px 32px rgba(16,24,40,.10);

  --nav-h: 64px;
  --maxw: 1180px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
img{ display: block; max-width: 100%; }

.wrap{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------------------------------------
   按钮
   ---------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,119,34,.28);
}
.btn-primary:hover{ background: var(--brand-dark); box-shadow: 0 6px 18px rgba(255,119,34,.32); }

.btn-ghost{
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-1);
}
.btn-ghost:hover{ border-color: var(--brand); color: var(--brand); }

.btn-sm{ height: 36px; padding: 0 16px; font-size: 14px; }

/* ----------------------------------------------------------
   导航栏
   ---------------------------------------------------------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-stuck{
  border-bottom-color: var(--line);
  box-shadow: var(--sh-1);
}
.nav-inner{
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 32px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-img{
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  object-fit: contain;
}
.brand-name{
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .5px;
}
.brand-name em{ font-style: normal; color: var(--brand); }

.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.nav-links a{
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--ink-2);
  transition: color .18s, background .18s;
}
.nav-links a:hover{ color: var(--ink-1); background: var(--bg-soft); }
.nav-links a.on{ color: var(--brand); font-weight: 500; }

.nav-right{ display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-phone{
  font-size: 13px;
  color: var(--ink-3);
}
.nav-toggle{
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span{
  display: block; width: 16px; height: 1.5px;
  background: var(--ink-1); position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after{
  content:""; position:absolute; left:0; width:16px; height:1.5px; background: var(--ink-1);
}
.nav-toggle span::before{ top:-5px; }
.nav-toggle span::after{ top:5px; }

/* ----------------------------------------------------------
   Hero 全宽横向轮播
   ---------------------------------------------------------- */
.hero-banner{
  position: relative;
  width: 100%;
  height: 420px;
  margin-top: 0;
  background: var(--bg-soft);
  overflow: hidden;
  /* 防止被 sticky header 遮挡时露白 */
}
.banner-stage{
  position: relative;
  width: 100%; height: 100%;
}
.banner-slide{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.banner-slide.on{
  opacity: 1;
  pointer-events: auto;
}
/* 后台填了广告链接的图：可点击 */
.banner-slide.has-link{ cursor: pointer; }
/* 左右切换箭头 */
.banner-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.55);
  color: #333;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s, background .2s, transform .2s;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.hero-banner:hover .banner-arrow{ opacity: 1; }
.banner-arrow:hover{ background: #fff; transform: translateY(-50%) scale(1.06); }
.banner-arrow.prev{ left: 20px; }
.banner-arrow.next{ right: 20px; }
.banner-arrow svg{ width: 22px; height: 22px; }
/* 圆点指示 */
.banner-dots{
  position: absolute; left: 0; right: 0; bottom: 20px;
  z-index: 3;
  display: flex; gap: 8px; justify-content: center;
}
.banner-dots button{
  width: 32px; height: 4px; padding: 0;
  border: 0; border-radius: 2px;
  background: rgba(255,255,255,.55);
  cursor: pointer; transition: background .2s, width .2s;
}
.banner-dots button.on{ background: var(--brand); width: 44px; }

/* ----------------------------------------------------------
   区块标题
   ---------------------------------------------------------- */
.section{ padding: 76px 0; }
.section.soft{ background: var(--bg-soft); }
.sec-head{
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.sec-head h2{
  margin: 0 0 6px;
  font-size: 28px; font-weight: 700; letter-spacing: -.3px;
}
.sec-head p{ margin: 0; color: var(--ink-2); font-size: 15px; }

/* ----------------------------------------------------------
   创作入口卡片
   ---------------------------------------------------------- */
.cards{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card{
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, border-color .22s;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  border-color: transparent;
}
.card-media{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.card-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card-media img{ transform: scale(1.06); }
.card-badge{
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff; font-size: 12px;
  backdrop-filter: blur(4px);
}
.card-badge.hot{ background: var(--brand); }
.card-badge.new{ background: #2E9E5B; }

.card-body{ padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3{ margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.card-body p{
  margin: 0 0 16px;
  font-size: 14px; color: var(--ink-2);
  flex: 1;
}
.card-actions{ display: flex; gap: 8px; }
.card-actions .btn{ flex: 1; }

/* ----------------------------------------------------------
   作品区
   ---------------------------------------------------------- */
.tabs{
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  gap: 2px;
}
.tabs button{
  padding: 8px 22px;
  border: 0; background: transparent;
  border-radius: 999px;
  font-size: 15px; color: var(--ink-2);
  cursor: pointer; transition: background .18s, color .18s;
  font-family: inherit;
}
.tabs button:hover{ color: var(--ink-1); }
.tabs button.on{ background: var(--brand); color: #fff; }

.searchbar{
  display: flex; align-items: center;
  gap: 8px;
}
.searchbar .field{
  position: relative;
  display: flex; align-items: center;
}
.searchbar input{
  width: 240px; height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit;
  color: var(--ink-1);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.searchbar input:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,119,34,.14);
}
.searchbar input::placeholder{ color: var(--ink-3); }
.searchbar .clear{
  position: absolute; right: 8px;
  width: 20px; height: 20px;
  border: 0; border-radius: 50%;
  background: var(--line);
  color: var(--ink-2);
  font-size: 13px; line-height: 1;
  cursor: pointer; display: none;
  align-items: center; justify-content: center;
  padding: 0;
}
.searchbar.has-val .clear{ display: flex; }

.works{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.work{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.work:hover{
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: transparent;
}
.work-thumb{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.work-thumb img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.work:hover .work-thumb img{ transform: scale(1.05); }
.work-thumb .play{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28);
  opacity: 0; transition: opacity .2s;
}
.work:hover .work-thumb .play{ opacity: 1; }
.work-thumb .play i{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
}
.work-thumb .play i::after{
  content:"";
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 13px solid var(--brand);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* 非图片作品（视频/PDF/文件）的占位封面 */
.work-thumb .ph{
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff3e8, #ffe2c8);
}
.work-thumb .ph span{
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}
.work-thumb .ph.video span{ color: #e0552a; }
.work-thumb .ph.pdf span{ color: #c0392b; }
.work-title{
  padding: 12px 14px;
  font-size: 14px;
  text-align: center;
  color: var(--ink-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty{
  grid-column: 1 / -1;
  padding: 64px 20px;
  text-align: center;
  color: var(--ink-3);
}
.empty b{
  display: block;
  margin-bottom: 6px;
  font-size: 16px; font-weight: 500; color: var(--ink-2);
}
.empty-icon{
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
}

.hint{ margin-top: 16px; font-size: 13px; color: var(--ink-3); text-align: center; }

.pager{
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 36px; flex-wrap: wrap;
}
.pager button{
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit;
  color: var(--ink-2);
  cursor: pointer; transition: all .18s;
}
.pager button:hover:not(:disabled){ border-color: var(--brand); color: var(--brand); }
.pager button.on{ background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled{ opacity: .4; cursor: not-allowed; }

/* ----------------------------------------------------------
   页脚
   ---------------------------------------------------------- */
.footer{
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 52px 0 32px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4{
  margin: 0 0 14px;
  font-size: 14px; font-weight: 600; color: var(--ink-1);
}
.footer ul{ margin: 0; padding: 0; list-style: none; }
.footer li{ margin-bottom: 9px; font-size: 14px; color: var(--ink-2); }
.footer li a:hover{ color: var(--brand); }
.footer .about p{ margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.footer .about .logo-row{ display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer .about .logo-row img{ width: 32px; height: 32px; border-radius: var(--r-sm); }
.footer .about .logo-row b{ font-size: 16px; }
.footer .about .logo-row b em{ font-style: normal; color: var(--brand); }

.contact-item{
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14px; color: var(--ink-2); margin-bottom: 10px;
}
.contact-item span{ color: var(--ink-3); font-size: 13px; min-width: 42px; }
.contact-item b{ font-weight: 500; color: var(--ink-1); font-variant-numeric: tabular-nums; }

.qr{ display: flex; gap: 14px; align-items: center; }
.qr img{ width: 92px; height: 92px; border-radius: var(--r-md); border: 1px solid var(--line); }
.qr div{ font-size: 13px; color: var(--ink-2); line-height: 1.7; }

.icp-line{
  margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3);
}
.icp-line a{ color: var(--ink-3); text-decoration: none; }
.icp-line a:hover{ color: var(--brand); }

.footer-bottom{
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}

/* ----------------------------------------------------------
   响应式
   ---------------------------------------------------------- */
@media (max-width: 1024px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .works{ grid-template-columns: repeat(3, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-banner{ height: 340px; }
}

@media (max-width: 768px){
  .wrap{ padding: 0 18px; }
  .nav-links{
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 18px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 12px 8px; }
  .nav-toggle{ display: flex; }
  .nav-phone{ display: none; }

  .hero-banner{ height: 240px; }
  .banner-arrow{ width: 38px; height: 38px; }
  .banner-arrow.prev{ left: 10px; }
  .banner-arrow.next{ right: 10px; }

  .section{ padding: 52px 0; }
  .sec-head h2{ font-size: 23px; }
  .sec-head{ margin-bottom: 24px; }

  .cards{ grid-template-columns: 1fr; gap: 16px; }
  .works{ grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .sec-head .searchbar{ width: 100%; }
  .searchbar input{ width: 100%; }

  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom{ justify-content: center; text-align: center; }
}

@media (max-width: 480px){
  .works{ grid-template-columns: 1fr; }
  .hero-banner{ height: 200px; }
}
