/* --- 1. 变量定义 --- */
:root {
    --off-white: #fef7eb;
    --brand-yellow: #faa812;
    --brand-purple: #7f257b;
    --brand-blue: #33afb5;
    --brand-orange: #f77811;
    --brand-brown: #6a1500;
    --brand-pink: #ef1787;
    --brand-green: #166b25;
    
   --font-title-fredoka: 'Fredoka', sans-serif;
    --font-title-dangrek: 'Dangrek', sans-serif;
    --font-body: 'Cera Pro', 'Kantumruy Pro', sans-serif;
}


header {
    background-color: var(--off-white);
    border-bottom-left-radius: 25px; 
    border-bottom-right-radius: 25px;
    padding: 10px 0 12px 0; 
    box-shadow: 0 4px 12px rgba(106, 21, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 25px;
}

.header-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.logo img {
    height: 65px; 
    width: auto;
}

/* 搜索栏交互样式 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar {
    position: absolute;
    right: 40px;
    display: flex;
    background: white;
    border: 2px solid var(--brand-yellow);
    border-radius: 20px;
    padding: 5px 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-bar.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.search-bar input {
    border: none; outline: none; width: 120px;
}

.search-bar button {
    background: var(--brand-yellow);
    border: none; color: white; border-radius: 10px;
    padding: 2px 8px; cursor: pointer; font-weight: bold;
}

.search-icon img {
    width: 22px; cursor: pointer;
}

/* --- 4. 导航图标 --- */
.nav-scroll {
    display: flex;
    /* 核心：恢复之前的等距分布 */
    justify-content: space-between; 
    width: 85%; /* 或者用你之前的 75%，根据你想要的疏密程度调整 */
    max-width: 1200px; /* 限制最大宽度，防止大屏幕图标分得太开 */
    margin: 0 auto;
}
.nav-scroll a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}
.nav-scroll img {
    height: 24px; /* 恢复你的图标大小 */
    width: auto;
}

.nav-scroll a:hover { transform: scale(1.2); }

/* --- 统一导航指示原点样式 --- */
.nav-scroll a.active::after {
    content: '';
    position: absolute;
    /* 核心修改：统一距离图标底部的距离 */
    bottom: -12px; /* 增加负值可以让点往下移，建议根据视觉效果在 -10px 到 -15px 之间微调 */
    left: 50%;
    transform: translateX(-50%);
    
    /* 保持原点形状 */
    width: 6px; 
    height: 6px;
    background-color: var(--brand-yellow);
    border-radius: 50%;
    
    /* 动画保持不变 */
    animation: dotFade 0.3s ease forwards;
}

/* 确保 a 标签有足够的点击区域，并防止点被切掉 */
.nav-scroll a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 5px; /* 给下方点留出固定呼吸空间 */
    transition: transform 0.2s ease;
}

@keyframes dotFade {
    from { opacity: 0; transform: translate(-50%, 5px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}


/* 给中间内容一个最小高度，把 Footer 顶下去 */
.content-wrapper {
    min-height: 60vh; /* 占据屏幕 60% 的高度 */
    padding: 50px 10%;
    background-color: #fcfcfc; /* 主体背景色 */
}






/* --- 1. 强制页面布局 --- */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* 保证页面至少占满屏幕 */
    display: flex;
    flex-direction: column;
   
}

/* ── HERO BOX ── */
/* ── PIC HERO BOX ── */
.pic-hero {
  width: 90%;
  max-width: 800px;
  border: 2.5px solid #6a1500;
  border-radius: 22px;
  margin: 50px auto;
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fef7eb;
}

.pic-hero-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.pic-hero-placeholder {
  display: none;
  width: 100%;
  min-height: 120px;
  background: #f5f0ea;
  border-radius: 12px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
  font-weight: 600;
}

.pic-hero-title {
  font-family: var(--font-title-fredoka);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  color: #7a2020;
}

/* ── TEAM TITLE ── */
.team-title {
  font-family: var(--font-title-fredoka);
  font-size: 50px;
  font-weight: 600;
  color: #7a2020;
  text-align: center;
  margin: 30px 0 20px;
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.card {
  width: 100%;
  background: #fdf5ed;
  border: 2px solid #2a2a2a;
  border-radius: 18px;
  box-shadow: 3px 4px 0 #c8c0b4;
  padding: 15px 10px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 3px 7px 0 #b0a898;
}

.card-hole {
  width: 30px;
  height: 12px;
  border: 2px solid #555;
  border-radius: 7px;
  background: #fff;
}


.card-photo {
  width: 300px;              /* fixed width for all cards */
  height: 300px;             /* fixed height for all cards */
  background: #ede5da;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;          /* ensures image doesn’t overflow */
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* responsive columns */
    gap: 110px;  /* space between each card */
    justify-items: center; /* center cards in their grid cells */
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* fills container without distortion */
  display: block;
}



.card-badge {
  background: #e9848c;
  border: 2px solid #c35560;
  border-radius: 50px;
  padding: 5px 12px;
  text-align: center;
  width: 80%;
}

.badge-name {
  font-family: var(--font-title-fredoka);
  font-size: 14px;
  font-weight: 800;
  color: #5a0e14;
  line-height: 1.25;
}

.badge-role {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #7a2020;
}

.see-more {
  font-size: 12px;
  color: #7a2020;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.footer-main {
    background-color:  var(--off-white)!important;
    /* 核心修改：大大减小上下内边距 (40px 是现在的，15px 是底部的) */
    padding: 30px 5% 15px !important; 
    border-top-left-radius: 60px !important;
    border-top-right-radius: 60px !important;
    width: 100% !important;
    margin-top: 0 !important;
    box-sizing: border-box;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center; /* 改为居中对齐，让内容看起来更整齐 */
}

/* 缩放 Logo 图标，防止撑高 */
.footer-photo-box img {
    width: 100px !important; 
    height: auto;
}


.footer-nav {
            display: flex;
            gap: 60px;
            flex-grow: 1;
            padding-left: 40px;
        }

        .nav-col {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

/* 修改后的 Footer 导航样式 */
.nav-col a {
    font-family: var(--font-body); /* 加上这一行，调用 Cera Pro */
    text-decoration: none;
    color: #6a1500;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* 增加一个悬停效果，让它更专业 */
.nav-col a:hover {
    color: var(--brand-yellow);
}

/* 右侧联系方式 */
.footer-contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-contact h2 {
    /* 显式调用变量，并加上 !important 确保加载 */
    font-family: var(--font-title-fredoka) !important; 
    font-size: 1.8rem !important; 
    margin-bottom: 5px !important;
    /* 确保字体权重也是对的 */
    font-weight: 600; 
}

/* Contact Us 小标题 (如果有 h3) */
.footer-contact h3 {
    font-family: var(--font-title-fredoka) !important;
    font-size: 1.2rem !important;
    color: #6a1500;
}

/* Body Text - 强制使用 Cera Pro */
.footer-contact p {
    font-family: var(--font-body) !important; /* 这里会调用 Cera Pro */
    font-size: 0.85rem !important;
    max-width: 280px;
    line-height: 1.5;
    color: #6a1500;
}

/* 社交图标锁定 */
.social-row-icons {
    display: flex !important;
    gap: 12px !important;
    margin-top: 10px !important;
}

.social-row-icons img {
    width: 28px !important;
    height: 28px !important;
}

/* 4. 版权行：极致紧凑 */
.copyright {
    text-align: center !important;
    margin-top: 20px !important; /* 缩减与上方的距离 */
    padding-top: 10px !important;
    border-top: 1px solid rgba(106, 21, 0, 0.1) !important;
    font-size: 0.75rem !important;
    color: #6a1500 !important;
}

.footer-contact h2, 
.footer-contact h3, 
.footer-contact p,
.footer-brand-contact h2,
.footer-brand-contact h3,
.footer-brand-contact p {
    color: #6a1500; 
}

/* --- 响应式手机端修改 --- */
@media (max-width: 768px) {
    
    /* 1. Header 居中 */
    .header-row-1 {
        flex-direction: column; /* 纵向排列 */
        gap: 15px;
        position: relative;
    }

    .logo {
        margin: 0 auto; /* Logo 居中 */
    }

    .search-container {
        justify-content: center; /* 搜索图标居中 */
        width: 100%;
    }

    /* 搜索栏弹出后在中间 */
    .search-bar {
        position: absolute;
        top: 60px; /* 根据你的 header 高度调整 */
        right: 50%;
        transform: translateX(50%); /* 完美的水平居中 */
        width: 80%; /* 手机端宽度占 80% */
        z-index: 10;
    }
    
    .search-bar.show {
        transform: translateX(50%); /* 保持居中显示 */
    }

    /* 2. 导航栏调整 */
    .nav-scroll {
        max-width: 95%; /* 增加手机端导航宽度 */
    }

    /* 3. Footer 居中 */
    .footer-grid {
        flex-direction: column; /* 竖向排列 */
        gap: 30px;
        text-align: center; /* 全体文字居中 */
    }

    .footer-nav {
        padding-left: 0;
        justify-content: center;
        gap: 40px;
    }

    .footer-contact {
        align-items: center; /* 内部 flex 元素居中 */
        text-align: center;
    }

    .footer-contact p {
        margin: 0 auto 15px; /* 段落居中 */
    }

    .social-row-icons {
        justify-content: center; /* 社交图标居中 */
        margin-top: 15px;
    }

    .footer-photo-box {
        margin-bottom: 10px;
    }
}
/* 让 Row 2 成为定位参考 */
@media (max-width: 768px) {
    /* 确保 Row 2 在手机端依然是定位参考 */
    .header-row-2 {
        position: relative;
        padding: 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* 针对手机端重新定义 Search Bar 的位置 */
    .search-bar {
        position: absolute;
        /* 强制水平居中 */
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        
        /* 关键：在手机端宽度要够大 */
        width: 92% !important; 
        max-width: none !important; /* 取消电脑端的最大宽度限制 */
        
        padding: 8px 15px !important;
        z-index: 999; /* 确保它盖在图标最上方 */
    }

    /* 确保搜索栏里的输入框和按钮在小屏幕不挤压 */
    .search-bar input {
        font-size: 14px; /* 减小字体防止撑开高度 */
        width: 100%;
    }

    .search-bar button {
        padding: 4px 12px;
        font-size: 12px;
    }

    /* 保持图标行在底下的间距，防止搜索框关掉后布局跳动 */
    .nav-scroll {
        width: 95%; /* 手机端图标可以分布得更满一点 */
        justify-content: space-around; /* 图标均匀分布，防止挤在一起 */
    }
}


















































