:root {
  --container-wide: 1260px;
  --container: 1160px;
  --radius-xl: 22px;
  --text: #111;
  --muted: #555;
  --border: #e7e7e7;
  --shadow-soft: 0 4px 8px rgba(0, 0, 0, 0.1); /* Added missing shadow variable */
}

* {
  box-sizing: border-box;
}
a,span {
  text-decoration: none;
}
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.container, .container-wide {
  margin: 0 auto;
}

.container {
  width: min(var(--container), calc(100% - 48px));
}

.container-wide {
  width: min(var(--container-wide), calc(100% - 48px));
}

.site-header {
  padding: 18px 0;
  border-bottom: solid 2px black;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 26px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  opacity: .6;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu a:hover {
  opacity: 1;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  opacity: .75;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-menu a:hover .nav-icon {
  opacity: 1;
}

.current_page_item > a {
  opacity: 1;
}

.divider {
  height: 2px;
  background: var(--border);
}

/* Hero Section */
.hero {
  padding: 70px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-kicker {
  margin-bottom: 18px;
  font-size: 26px;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

.hero-title-big {
  font-size: 92px;
  font-weight: 900;
  letter-spacing: -1px;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

.hero-desc {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

.hero-actions {
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid #111;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.hero-placeholder {
  color: #111;
  opacity: .85;
  letter-spacing: 1px;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

.illustration {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
}

.illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Worked Logos Section */
.worked {
  padding: 35px 0 70px;
}

.worked-title {
  margin-bottom: 22px;
  text-align: center;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing: 1px;
}

.worked-logos {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.logo-circle {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #cfcfcf;
  color: #666;
  font-weight: 900;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
}

/* Footer */
.site-footer {
  padding: 25px 0;
  border-top: 1px solid var(--border);
}

.footer-text {
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* Project Pages */
.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 26px;
  color: #555;
  font-size: 14px;
}

.project-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #222;
  opacity: .85;
}

.project-breadcrumb a:hover {
  opacity: 1;
}

.project-hero {
  padding: 14px 0 40px;
  background-size: cover;
  background-position: center center;
  display: flex;
  flex-direction: column;
  height: 85vh;
  position: relative;
}
.project-actions{
  position: absolute;
  left: 30px;
  top: 30px;
  z-index: 999;
}
.project-hero .backdrop{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #ffffff52;
  z-index: 0;
}
.project-hero .container-wide{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9;
}

.project-title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.5px;
  font-family: Didot;
}
.project-short{
  font-family: Helvetica Neue;
}
.project-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.go-back{
  border-radius: 30px;
  padding: 8px 15px;
  background-color: #ffffffc4;
  color: black;
}

.project-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

/* Card Section */
.card-section {
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 26px;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 18px;
}

.feature-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.feature-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 10px;
}

.feature-title {
  margin-bottom: 8px;
  font-weight: 900;
}

.feature-desc {
  color: #444;
  line-height: 1.7;
  font-size: 14px;
}

.feature-note {
  margin-top: 10px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f4f4;
  color: #333;
  font-size: 12px;
  font-weight: 700;
}

/* Highlights */
.highlight {
  padding: 46px 26px;
  border-radius: 30px;
  background: #f2f2f2;
  text-align: center;
}

.highlight h3 {
  margin-bottom: 18px;
  font-size: 34px;
  font-weight: 900;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.highlight-icons {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 18px;
  opacity: .55;
}

.highlight-icons span {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #d8d8d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

@media (max-width: 980px) {

  .header-inner {
    flex-direction: column;
  }


  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-big {
    font-size: 64px;
  }

  .illustration {
    margin: 18px auto 0;
  }

  .project-title {
    font-size: 34px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Contact Page */
.contact-wrap {
  padding: 46px 0 70px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 36px;
  align-items: start;
}

.contact-left {
  min-width: 0;
}

.contact-card {
  border: 1px solid #e9e9e9;
  border-radius: 24px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
}

.contact-card-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.contact-card input,
.contact-card textarea,
.contact-card select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  outline: none;
  font-size: 14px;
  background: #fff;
}

.contact-card textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-card button,
.contact-card input[type="submit"] {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.contact-card button:hover,
.contact-card input[type="submit"]:hover {
  filter: brightness(1.08);
}

.wpcf7-form-control-wrap {
  top: 10px;
}

/* Hover Effects */
.view-project-btn:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

.thumbnail:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

.thumbnail .backdrop{
  position: absolute;
  left:0;
  right: 0;
  top: 0;
  bottom: 0;
  transition: background-color 0.3s ease;
  background-color: rgba(0, 0, 0, 0); /* 初始透明 */
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.thumbnail .backdrop .view-but{
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: white;
  color: black;
  padding: 5px 15px;
  font-size: 13px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.thumbnail:hover .backdrop{
  background-color: rgba(0, 0, 0, 0.7); /* 渐显 */
}
.thumbnail:hover .backdrop .view-but{
  opacity: 1;
}

.project-list.container {
  position: relative;
}

.project-list-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.project-list-info h1 {
  color: #757575;
}

.project-list-info .project-lead {
  color: black;
}

.features-grid .center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card {
  width: 550px;
  aspect-ratio: 1.2;
  overflow: hidden;
}

.project-cover{
  overflow:hidden;
  background: #cfd5ea;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e9e9e9;
  margin: 0px;
}
.project-cover img{
  display:block;
  width:100%;
  height:auto;
}
.project-cover.placeholder{
  min-height: 340px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#111;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .2px;
}


@media (max-width: 980px) {
  .feature-card {
    width: 100%;
  }
}

.feature-card .card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.feature-card .card-link .thumbnail {
  flex: auto;
  overflow: hidden;
}

.thumbnail {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 220px;
  transition: transform 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail div {
/*  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;*/
}

.project-categories {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.category {
  background-color: #d1d1d1;
  color: black;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
}

.publicity-image {
  position: absolute;
  pointer-events: none;
  opacity: 0.8;
}

@media (max-width: 980px) {
  .publicity-image{
    display: none;
  }
}

.publicity-image.lb {
  width: 270px;
  left: -70px;
  bottom: -20px;
}

.publicity-image.rb {
  width: 270px;
  right: -40px;
  bottom: -80px;
}

.publicity-image img {
  width: 100%;
}
