/* ============================================================
   GirdStudio 全站样式
   - 公共：基础、导航、按钮、页脚
   - 首页：index.html（body.home）
   - 子页：about.html / projects.html
   ============================================================ */

:root{
  --blue:#0077FF;
  --black:#000000;
  --gray:#828282;
  --gray-text:rgba(0,0,0,.75);
  --gray-4:#454545;
  --line:#E6E6E6;
  --white:#FFFFFF;
  --radius:8px;
  --shadow:0 1px 2px rgba(0,0,0,.05);
  --container:1440px;
  --gutter:80px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--white);
  color:var(--black);
  font-family:"Inter","SF Pro Text","SF Pro Display","MiSans VF","MiSans",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}
h1,h2,h3,p{margin:0;}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--gutter);
}

/* ---------- 导航 ---------- */
.nav{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  height:clamp(88px,11.4vw,164px);
  background:rgba(255,255,255,.64);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  backdrop-filter:blur(20px) saturate(180%);
}
.nav-inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.nav-logo{
  font-size:clamp(24px,2.36vw,34px);
  line-height:41px;
  letter-spacing:.0118em;
  font-weight:400;
  white-space:nowrap;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:clamp(24px,3.33vw,48px);
}
/* 子页导航文字链接（关于） */
.nav-link{
  font-size:clamp(17px,1.39vw,20px);
  font-weight:520;
  line-height:1.5;
  transition:color .2s ease;
}
.nav-link:hover{color:var(--blue);}
.nav-link ~ .btn{font-weight:520;}

/* ---------- 按钮 ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--blue);
  color:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  font-weight:500;
  white-space:nowrap;
  transition:background-color .2s ease,transform .2s ease;
}
.btn:hover{background:#0066dd;}
.btn:active{transform:translateY(1px);}
.btn-sm{
  padding:14px 24px;
  font-size:16px;
  line-height:1.5;
}
.btn-lg{
  padding:20px 32px;
  font-size:24px;
  line-height:1.5;
  font-weight:500;
}

/* ---------- 首页 Hero ---------- */
.hero{
  position:relative;
  height:clamp(560px,72.9vw,1050px);
  overflow:hidden;
  background:#f7e9ec;
}
.hero-bg{
  position:absolute;
  inset:-40px;
  background-image:url("assets/hero-bg.png");
  background-size:cover;
  background-position:center 42%;
  filter:blur(12.05px);
  transform:scale(1.04);
}
.hero::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:140px;
  background:linear-gradient(to bottom,rgba(255,255,255,0) 0%,#fff 100%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:2;
  height:100%;
  padding-top:clamp(140px,14.7vw,212px);
}
.hero-copy{
  width:100%;
  max-width:844px;
  display:flex;
  flex-direction:column;
  gap:40px;
}
.hero-title{
  font-size:clamp(40px,4.44vw,64px);
  line-height:1.2;
  font-weight:700;
  letter-spacing:-.02em;
}
.hero-sub{
  margin-top:24px;
  font-size:clamp(16px,1.67vw,24px);
  line-height:1.5;
  font-weight:400;
  color:var(--gray-text);
}
.hero-copy .btn{align-self:flex-start;}

/* ---------- 首页 区块标题 ---------- */
.section-title{
  font-size:clamp(32px,3.33vw,48px);
  line-height:1.2;
  font-weight:600;
  letter-spacing:-.02em;
}

/* ---------- 首页 项目 ---------- */
.projects{padding-top:clamp(100px,24vw,345px);}
.projects-head{margin-bottom:24px;}
.projects-grid{
  display:grid;
  grid-template-columns:456px minmax(0,1fr);
  column-gap:clamp(40px,15.3vw,221px);
  align-items:start;
}
.project-shot{
  width:100%;
  aspect-ratio:456 / 253;
  border-radius:var(--radius);
  overflow:hidden;
  background:#f2f2f2;
}
.project-shot img{
  width:100%;height:100%;
  object-fit:cover;
}
.project-info{
  margin-top:24px;
  max-width:381px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.project-name{
  font-size:clamp(32px,2.22vw,32px);
  line-height:1.5;
  font-weight:500;
  color:var(--blue);
}
.project-desc{
  font-size:clamp(24px,2.22vw,32px);
  line-height:1.5;
  font-weight:400;
  color:var(--gray);
}
.projects-more{
  padding-top:clamp(0px,6.8vw,98px);
  font-size:clamp(28px,3.33vw,48px);
  line-height:1.5;
  font-weight:600;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.projects-more span{color:var(--blue);}

/* ---------- 首页 关于我们 ---------- */
.about{padding-top:clamp(96px,17.2vw,248px);}
.about-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) 704px;
  align-items:start;
}
.about-copy{
  padding-left:max(var(--gutter),calc((100% - var(--container)) / 2));
  padding-right:40px;
}
.about-title{
  font-size:clamp(32px,3.33vw,48px);
  line-height:1.2;
  font-weight:630;
  letter-spacing:-.02em;
}
.about-title span{
  display:block;
  font-size:clamp(22px,2.22vw,32px);
  line-height:1.4;
  margin-top:4px;
}
.about-image{
  width:100%;
  height:704px;
  border-radius:8px 0 0 8px;
  overflow:hidden;
  background:#e9e9e9;
}
.about-image img{
  width:100%;height:100%;
  object-fit:cover;
}

.members{
  display:flex;
  flex-wrap:wrap;
  gap:48px 103px;
  margin-top:106px;
}
.member{
  width:110px;
  flex:0 0 auto;
}
.member-inner{
  width:110px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.avatar{
  width:110px;height:110px;
  border-radius:50%;
  object-fit:cover;
  background:#d9d9d9;
}
.avatar-dark{background:#000;}
.member-name{
  margin-top:8px;
  font-size:clamp(18px,1.67vw,24px);
  line-height:1.5;
  font-weight:400;
  white-space:nowrap;
}
.member .btn{
  margin-top:15px;
  padding:12px 24px;
  font-size:clamp(18px,1.67vw,24px);
  line-height:1.5;
}

/* ---------- 首页 赞助商 ---------- */
.sponsors{padding-top:clamp(96px,12.5vw,180px);}
.sponsors .members{margin-top:58px;}

/* ---------- 首页 帖子 ---------- */
.posts{padding-top:clamp(80px,9vw,130px);}
.post-list{
  margin-top:54px;
  display:flex;
  flex-wrap:wrap;
  gap:32px;
}
.post-card{
  width:425px;
  max-width:100%;
  min-height:222px;
  border:1px solid var(--gray);
  border-radius:38px;
  padding:26px 16px 30px 43px;
  display:flex;
  flex-direction:column;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.post-card:hover{
  border-color:#555;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}
.post-title{
  font-size:clamp(20px,1.67vw,24px);
  line-height:1.5;
  font-weight:500;
  white-space:nowrap;
}
.post-author{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:48px;
}
.post-author .avatar{
  width:45px;height:45px;
  flex:0 0 45px;
}
.post-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.post-author-name{
  font-size:16px;
  line-height:1.5;
  font-weight:500;
}
.post-desc{
  font-size:16px;
  line-height:1.5;
  font-weight:500;
  color:var(--gray);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.post-desc b{font-weight:700;}

/* ---------- 子页 通用 ---------- */
.subpage{padding-top:clamp(150px,16.9vw,244px);}
.page-title{
  font-size:clamp(40px,4.44vw,64px);
  line-height:1.2;
  font-weight:630;
  letter-spacing:-.02em;
}
.building{
  color:var(--blue);
  font-size:clamp(56px,8.89vw,128px);
  line-height:1.5;
  font-weight:520;
  letter-spacing:-.02em;
  white-space:nowrap;
}

/* ---------- 关于页 ---------- */
.about-page{padding-bottom:26px;}
.about-area{
  position:relative;
  display:grid;
  grid-template-columns:134px minmax(0,1fr);
  column-gap:14px;
  align-items:start;
  margin-top:8px;
  min-height:666px;
}
.avatar-stack{
  grid-row:span 2;
  display:flex;
  flex-direction:column;
  gap:103px;
}
.stack-item{
  width:134px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.stack-item.is-blurred{filter:blur(13px);}
.stack-avatar{
  width:110px;height:110px;
  border-radius:50%;
  object-fit:cover;
  background:#d9d9d9;
}
.stack-name{
  font-size:clamp(20px,1.67vw,24px);
  line-height:1.5;
  font-weight:400;
  white-space:nowrap;
}
.bio{
  margin-top:22px;
  max-width:946px;
  font-size:clamp(20px,2.22vw,32px);
  line-height:1.5;
  font-weight:520;
  letter-spacing:-.02em;
}
.about-area .building{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:341px;
  margin:0;
}

/* ---------- 项目页 ---------- */
.project-area{
  position:relative;
  height:700px;
}
.project-area .building{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:177px;
  margin:0;
}

/* ---------- 页脚 ---------- */
.footer{background:var(--white);}
.home .footer{margin-top:clamp(56px,5vw,72px);}
.footer-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:48px var(--gutter);
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:48px;
}
.footer-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.footer-logo{
  font-size:24px;
  line-height:1.5;
  font-weight:400;
}
.footer-copy{
  margin-top:14px;
  font-size:17px;
  line-height:22px;
  letter-spacing:-.0253em;
  color:var(--gray);
}
.social{
  display:flex;
  gap:8px;
  margin-top:52px;
}
.social a{
  width:40px;height:40px;
  display:block;
  transition:opacity .2s ease,transform .2s ease;
}
.social a:hover{opacity:.7;transform:translateY(-2px);}
.social img{width:40px;height:40px;}

/* 子页页脚：两列，末列贴页面右缘 */
.footer-nav{
  display:grid;
  grid-template-columns:repeat(2,187px);
  gap:32px;
  align-content:start;
  margin-right:calc(var(--gutter) * -1);
}
/* 首页页脚：三列 */
.home .footer-nav{
  grid-template-columns:repeat(3,187px);
  margin-right:0;
}
.footer-col{
  display:flex;
  flex-direction:column;
  gap:24px;
}
.footer-col h3{
  font-size:16px;
  line-height:1.5;
  font-weight:500;
}
.footer-col a{
  font-size:16px;
  line-height:1.5;
  font-weight:500;
  color:var(--gray-4);
  transition:color .2s ease;
}
.footer-col a:hover{color:var(--blue);}

/* ---------- 首页 汉堡按钮 ---------- */
.nav-toggle{
  display:none;
  width:44px;height:44px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:24px;height:2px;
  margin:5px auto;
  background:var(--black);
  border-radius:2px;
  transition:transform .2s ease,opacity .2s ease;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width:1200px){
  :root{--gutter:48px;}
  .about-inner{grid-template-columns:minmax(0,1fr) 46vw;}
  .about-image{height:46vw;}
  .home .footer-nav{grid-template-columns:repeat(3,minmax(120px,1fr));gap:24px;}
}

@media (max-width:1000px){
  .projects-grid{
    grid-template-columns:minmax(0,1fr);
    row-gap:40px;
  }
  .project-shot{aspect-ratio:16 / 9;}
  .projects-more{padding-top:0;max-width:100%;white-space:normal;}
}

@media (max-width:900px){
  :root{--gutter:40px;}

  /* 首页导航折叠 */
  .home .nav-links{
    position:absolute;
    top:100%;left:0;right:0;
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
    padding:24px var(--gutter) 32px;
    background:rgba(255,255,255,.96);
    -webkit-backdrop-filter:blur(20px);
    backdrop-filter:blur(20px);
    box-shadow:0 12px 24px rgba(0,0,0,.06);
    display:none;
  }
  .home .nav-links .btn{width:100%;}
  .home .nav.nav-open .nav-links{display:flex;}
  .home .nav-toggle{display:block;}
  .home .nav.nav-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .home .nav.nav-open .nav-toggle span:nth-child(2){opacity:0;}
  .home .nav.nav-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  .about-inner{
    grid-template-columns:minmax(0,1fr);
    row-gap:48px;
  }
  .about-copy{padding-left:var(--gutter);padding-right:var(--gutter);}
  .about-image{
    height:56.25vw;
    border-radius:8px;
    margin:0 var(--gutter);
    width:auto;
  }
  .members{margin-top:48px;gap:40px;}

  /* 子页 */
  .subpage{padding-top:clamp(130px,15vw,180px);}
  .about-area{
    grid-template-columns:minmax(0,1fr);
    row-gap:0;
    min-height:0;
  }
  .avatar-stack{
    grid-row:auto;
    flex-direction:row;
    flex-wrap:wrap;
    gap:40px 32px;
  }
  .bio{margin-top:48px;}
  .bio br{display:none;}
  .about-area .building,
  .project-area .building{
    position:static;
    transform:none;
    margin:64px 0 0;
    text-align:center;
  }
  .project-area{height:auto;}
  .project-area .building{margin-top:120px;}

  .footer-inner{flex-direction:column;gap:48px;padding-bottom:48px;}
  .footer-nav{margin-right:0;grid-template-columns:repeat(2,minmax(120px,187px));}
}

@media (max-width:640px){
  :root{--gutter:24px;}
  .hero-copy{gap:28px;}
  .projects-grid{row-gap:32px;}
  .members{gap:32px 40px;}
  .post-list{gap:24px;}
  .post-card{padding:24px 24px 28px;border-radius:28px;min-height:0;}
  .post-title{white-space:normal;}
  .post-author{margin-top:32px;}
  .about-copy{padding-right:var(--gutter);}
  .footer-nav{grid-template-columns:repeat(2,minmax(110px,1fr));gap:24px;}
  .social{margin-top:32px;}

  .nav-links{gap:20px;}
  .btn-sm{padding:12px 18px;font-size:14px;}
  .avatar-stack{gap:32px 24px;}
  .about-area .building,
  .project-area .building{white-space:normal;}
}

@media (max-width:420px){
  .members{gap:28px;}
  .member-name{font-size:20px;}
}
