/* CV Studio — 参考 ka95 作品页：纯图片流，不裁图，不遮罩，不加卡片 */

:root {
  --bg: #fff;
  --text: #111;
  --gray: #888;
  --light: #eee;
  --red: #c8102e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 顶栏 — 透明底，不遮内容 */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid #eee;
  height: 52px;
}
.top .in {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.top .logo { font-size: 16px; font-weight: 700; }
.top .logo .r { color: var(--red); }
.top .nav { display: flex; gap: 2px; }
.top .nav a {
  font-size: 13px; color: var(--gray);
  padding: 5px 12px; border-radius: 4px;
}
.top .nav a:hover { background: #f5f5f5; color: var(--text); }
.top .nav a.on { color: var(--red); font-weight: 600; }

/* ===== 首页 ===== */
.hero {
  padding: 100px 0 48px;
  max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
}
.hero h1 {
  font-size: 28px; font-weight: 700;
  line-height: 1.3; max-width: 500px;
}
.hero h1 .r { color: var(--red); }
.hero .desc {
  font-size: 14px; color: var(--gray);
  margin: 14px 0 24px; max-width: 420px;
  line-height: 1.7;
}
.hero .btns { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center;
  padding: 8px 20px; border-radius: 4px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; border: none; transition: all 0.15s;
}
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid #ddd; }
.btn-outline:hover { border-color: var(--text); }

/* 统计 — 极小字 */
.hero .stats {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex; gap: 32px;
}
.hero .stats .n { font-size: 20px; font-weight: 700; }
.hero .stats .l { font-size: 11px; color: var(--gray); margin-top: 1px; }

/* ===== 作品页面 ===== */
.pg-hd {
  padding: 96px 0 8px;
  max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
}
.pg-hd h1 { font-size: 20px; font-weight: 700; }
.pg-hd p { font-size: 13px; color: var(--gray); margin-top: 2px; }

/* 分类 tab — 和 ka95 一样：一排按钮 */
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto; padding: 0 24px 20px;
}
.tabs button {
  padding: 4px 14px; border-radius: 3px;
  border: none; background: #f5f5f5;
  font-size: 12px; font-weight: 500; cursor: pointer;
  color: var(--gray); font-family: inherit;
  transition: all 0.1s;
}
.tabs button:hover { background: #eee; color: var(--text); }
.tabs button.on { background: var(--text); color: #fff; }

/* 作品流 — 纯图片，不裁图，不限比例 */
.stream {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 60px;
}
.stream .item {
  margin-bottom: 2px;
  background: #f8f8f8;
  overflow: hidden;
  cursor: pointer;
}
.stream .item img {
  width: 100%;
  height: auto;
  display: block;
}

/* 视频项目 */
.stream .item.video { position: relative; background: #111; }
.stream .item.video .play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  pointer-events: none;
  z-index: 2;
}

/* ===== 灯箱 ===== */
.lb {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.9);
  align-items: center; justify-content: center;
}
.lb.show { display: flex; }
.lb img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lb .close {
  position: absolute; top: 14px; right: 20px;
  width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center;
  border: none; background: rgba(255,255,255,0.05); color: #aaa;
  font-size: 20px; cursor: pointer; border-radius: 50%;
}
.lb .close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.vlb {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.9);
  align-items: center; justify-content: center;
}
.vlb.show { display: flex; }
.vlb video { max-width: 90vw; max-height: 88vh; border-radius: 4px; }
.vlb .close {
  position: absolute; top: 14px; right: 20px;
  width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center;
  border: none; background: rgba(255,255,255,0.05); color: #aaa;
  font-size: 20px; cursor: pointer; border-radius: 50%;
}
.vlb .close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ===== 联系 ===== */
.ct-wrap { max-width: 680px; margin: 0 auto; padding: 100px 24px 60px; text-align: center; }
.ct-wrap h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.ct-wrap .sub { font-size: 13px; color: var(--gray); margin-bottom: 36px; }

.ct-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; }
.ct-card { padding: 24px; border: 1px solid #eee; border-radius: 6px; }
.ct-card .e { font-size: 22px; margin-bottom: 4px; }
.ct-card .t { font-size: 12px; font-weight: 600; color: var(--gray); margin-bottom: 4px; }
.ct-card .v { font-size: 17px; font-weight: 700; }
.ct-card .v a { color: var(--red); }
.ct-card .s { font-size: 11px; color: #aaa; margin-top: 4px; }

.cf { border: 1px solid #eee; border-radius: 6px; padding: 28px; text-align: left; }
.cf h3 { font-size: 15px; font-weight: 700; margin-bottom: 18px; text-align: center; }
.fg { margin-bottom: 12px; }
.fg label { display: block; font-size: 12px; font-weight: 600; color: var(--gray); margin-bottom: 4px; }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 8px 12px;
  border: 1px solid #ddd; border-radius: 4px;
  font-size: 13px; font-family: inherit; color: var(--text);
  background: #fafafa;
}
.fg input:focus, .fg textarea:focus, .fg select:focus { outline: none; border-color: var(--text); background: #fff; }
.fg textarea { min-height: 80px; resize: vertical; }
.cf .submit { width: 100%; justify-content: center; padding: 10px; }

/* ===== 页脚 ===== */
.ft {
  padding: 36px 24px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 12px;
  color: var(--gray);
}
.ft .b { font-weight: 700; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.ft a { color: var(--red); }

/* ===== 响应 ===== */
@media (max-width: 700px) {
  .hero h1 { font-size: 22px; }
  .ct-cards { grid-template-columns: 1fr; }
}
