/* ============================================================
   OHYE 作品展示 · 全局设计系统
   主色 #FF660C（logo 橙）
   ============================================================ */

:root {
  /* 主色系（logo 橙） */
  --orange:       #FF660C;   /* 主色 */
  --orange-deep:  #E85500;   /* hover / 深 */
  --orange-dark:  #C74A00;   /* 更深 */
  --orange-soft:  #FFF0E6;   /* 浅橙底 */
  --orange-tint:  #FFE0CC;   /* 更浅橙 */

  /* 中性色（暖调，贴合橙） */
  --cream:   #FFF9F2;        /* 页面底色 */
  --paper:   #FFFFFF;        /* 卡片 */
  --ink:     #2E2A26;        /* 主文字 */
  --ink-soft:#5C554E;        /* 次级文字 */
  --muted:   #9B948C;        /* 弱文字 */
  --line:    #F0E4D6;        /* 描边 */

  /* 点缀 */
  --yellow:  #FFD43B;
  --coral:   #FF8A3D;
  --green:   #69DB7C;

  /* 圆角 / 阴影 */
  --radius-lg: 22px;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(46,42,38,.06);
  --shadow:    0 16px 40px rgba(255,102,12,.14);
  --shadow-lg: 0 24px 60px rgba(46,42,38,.12);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, iframe { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--orange-tint); color: var(--ink); }

/* ============ 布局容器 ============ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 顶栏 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 242, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .5px;
}
/* Logo（真图，透明底橙色） */
.brand-logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

/* 导航链接 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--orange-soft); color: var(--orange-deep); }
.nav-links a.active {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,102,12,.3);
}

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 18px;
  align-items: center;
  justify-content: center;
}

/* ============ Hero ============ */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.hero-logo {
  height: 76px;
  width: auto;
  margin: 0 auto 28px;
  display: block;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero .slogan {
  margin: 0 auto 22px;
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.3;
  color: var(--ink);
}
.hero .intro {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 2;
}
.hero .intro p {
  margin: 0 0 14px;
}
.hero .intro p:last-child {
  margin-bottom: 0;
}
.hero .intro .closing {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--orange);
}
.hero .aux {
  max-width: 560px;
  margin: 44px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.hero .aux strong {
  font-weight: 700;
  color: var(--ink);
}
.hero .aux strong.accent {
  color: var(--orange);
}
.hero .cta-btn {
  margin-top: 24px;
}
.nobr { white-space: nowrap; }

/* ============ 分区标题 ============ */
.section { padding: 40px 0 72px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .5px;
}
.section-head .hint { color: var(--muted); font-size: 14px; }

/* ============ 作品卡片网格 ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.work-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--orange-tint);
}
.work-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, var(--orange-soft), #FFF6E0);
  position: relative;
}
.work-thumb .emoji {
  filter: drop-shadow(0 6px 12px rgba(255,102,12,.25));
}
.work-card-body { padding: 20px 22px 24px; }
.work-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--orange-soft);
  color: var(--orange-deep);
}
.work-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.work-card .desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.work-card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 14.5px;
}

/* 空状态（尚未有作品时） */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty-state .big { font-size: 44px; margin-bottom: 12px; }

/* ============ 作品详情页 ============ */
.work-detail { padding: 48px 0 72px; max-width: 780px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--orange-deep); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.work-detail-head { margin-bottom: 8px; }
.work-detail-head h1 {
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 800;
  letter-spacing: .5px;
  margin: 10px 0 6px;
}
.work-detail-head .lead {
  color: var(--ink-soft);
  font-size: 17px;
}
.work-detail-head .badges { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

.detail-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-top: 24px;
}
.detail-block h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-block h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--orange);
}
.detail-block p { color: var(--ink-soft); }
.detail-block p + p { margin-top: 10px; }

.detail-block ol { padding-left: 4px; counter-reset: step; }
.detail-block ol li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.detail-block ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-block ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.detail-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.detail-block ul a { color: var(--orange-deep); font-weight: 600; }
.detail-block ul a:hover { text-decoration: underline; }

/* 手机壳容器（移动端作品展示） */
.phone-frame {
  width: 100%;
  max-width: 430px;
  margin: 4px auto 0;
  border-radius: 28px;
  border: 8px solid #2E2A26;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--cream);
}
.phone-frame iframe {
  width: 100%;
  height: 720px;
  border: none;
  background: #FFF6EC;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,102,12,.32);
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--orange-soft); color: var(--orange-deep); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ============ 页脚 ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 40px;
}
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background .2s, transform .2s;
}
.cta-btn:hover { background: var(--orange-deep); transform: translateY(-1px); }
.site-footer .foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .copy { color: var(--muted); font-size: 14px; }
.site-footer .foot-links { display: flex; gap: 20px; font-size: 14px; }
.site-footer .foot-links a { color: var(--ink-soft); }
.site-footer .foot-links a:hover { color: var(--orange-deep); }

/* ============ 首屏：三件套 Showcase ============ */
.showcase { padding: 56px 0 44px; }

.showcase-head { max-width: 1032px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 18px;
}
.showcase-head h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.2;
}
.showcase-head h1 .sep { color: var(--orange); margin: 0 4px; }
.showcase-head .lead {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 轮显：左右 7:3 结构 */
.carousel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel-track { display: grid; }
.carousel-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 7fr 3fr;
  min-height: 360px;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }

.slide-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange-soft), #FFF6E0);
}
.slide-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.slide-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 10px;
}
.slide-body h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.slide-body p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 22px;
}
.slide-go {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 22px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  transition: background .2s, transform .2s;
}
.slide-go:hover { background: var(--orange-deep); transform: translateY(-1px); }
.slide-go i { font-style: normal; }

/* 轮显控制器：圆点 + 箭头 */
.carousel-dots {
  position: absolute;
  bottom: 18px;
  right: 36px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #E6D9C6;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dot:hover { transform: scale(1.2); }
.carousel-dot.active { background: var(--orange); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(120, 90, 50, .16);
  z-index: 3;
  opacity: 0;
  transition: opacity .2s, background .2s;
}
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: #fff; }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

/* ============ 响应式 ============ */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    gap: 6px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 12px; }
  .hero { padding: 48px 0 32px; }
  .work-grid { grid-template-columns: 1fr; }
  .detail-block { padding: 22px 20px; }
  .phone-frame iframe { height: 640px; }
  .showcase { padding: 40px 0 28px; }
  .showcase-head { margin-bottom: 28px; }
  .carousel-slide { grid-template-columns: 1fr; min-height: 0; }
  .slide-media { height: 210px; }
  .slide-body { padding: 26px 22px 60px; }
  .slide-body h2 { font-size: 22px; }
  .carousel-dots { right: 22px; bottom: 22px; }
  .carousel-arrow { display: none; }
}
