
/* --- 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;
   
}



* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: var(--off-white);
            font-family: var(--font-body);
            color: var(--brand-brown);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Section 1: Header */
        header {
            background-color: var(--off-white);
            padding: 60px 20px 100px;
            text-align: center;
            position: relative;
        }

        h1 {
            font-family: var(--font-title-fredoka);
            color: var(--brand-brown);
            font-size: 2.5rem;
            font-weight: 700;
        }

        .divider {
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 100px;
            background-color: var(--white);
            clip-path: ellipse(70% 60% at 50% 100%);
        }

        /* Main Container */
        main {
            max-width: 1000px;
            margin: 0 auto;
            padding: 40px 20px;
            background-color: var(--white);
            min-height: 100vh;
        }

        .back-link {
            display: inline-block;
            margin-bottom: 30px;
            text-decoration: none;
            color: var(--brand-brown);
            font-weight: 500;
            font-size: 0.9rem;
        }

        /* Section 2: ID Card */
        .id-card {
            background: var(--white);
            border-radius: 25px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 400px;
            margin: 0 auto 60px;
            overflow: hidden;
            position: relative;
        }

        .id-card-header {
            background-color: var(--brand-pink);
            height: 60px;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .id-card-header::after {
            content: '';
            width: 60px;
            height: 12px;
            background: var(--white);
            border-radius: 10px;
        }

        .id-card-content {
            padding: 30px;
            display: grid;
            grid-template-columns: 120px 1fr;
            gap: 20px;
            position: relative;
        }

           .profile-pic {
        width: 150px;       /* Adjusted size to match your design */
        height: auto;       /* Maintains character proportions */
        max-height: 180px; 
        border-radius: 15px;   /* Removed rounding since it's a character */
        object-fit: contain; /* Ensures the whole character is visible */
        display: block;
        flex-shrink: 0;
    
    /* Removed border and shadow to "keep the picture" only */
    border: none;
    box-shadow: none;
    background: transparent; 
}

        .profile-info h2, .profile-info p {
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        .interests {
            grid-column: 1 / -1;
            margin-top: 10px;
        }

        .interests h3 {
            font-weight: 700;
            margin-bottom: 5px;
        }

        .interests ul {
            list-style: none;
        }

        .id-card-placeholder {
            position: absolute;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background-color: var(--light-grey);
            border-radius: 8px;
        }

 /* Section 3: About Box (Pink Theme) */
.about-section {
    background-color: var(--brand-pink); /* 确认背景为品牌粉色 */
    border-radius: 25px;
    padding: 40px;
    /* 修改：文字颜色使用品牌 Off-white */
    color: var(--off-white);
}

.about-section h2 {
    /* 修改：标题切换为 Fredoka 字体 */
    font-family: var(--font-title-fredoka);
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: var(--off-white);
}

.about-section p {
    margin-bottom: 20px;
    font-weight: 400;
    font-family: var(--font-body); /* 正文推荐使用 Kantumruy Pro */
}

hr {
    border: none;
    /* 修改：分割线颜色改为半透明的 Off-white，更轻盈 */
    border-top: 1px solid rgba(254, 247, 235, 0.3);
    margin: 25px 0;
}

.contact-info, .skills-list {
    margin-bottom: 30px;
}

.skills-list ul {
    list-style: none;
    padding-left: 15px;
}

.skills-list li {
    position: relative;
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.skills-list li::before {
    content: "•";
    position: absolute;
    left: -15px;
    /* 列表点用黄色点缀，在粉色背景上非常醒目 */
    color: var(--brand-yellow);
}

/* --- Software 部分：解决“白框”与响应式 --- */
.software-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* 允许换行 */
    gap: 20px;
    align-items: center;
}

.software-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.pill {
    /* 修改：背景设为品牌 Off-white */
    background: var(--off-white);
    color: var(--brand-brown);
    padding: 8px 20px;
    border-radius: 50px; /* 胶囊圆角 */
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-subtitle); /* 使用 Fredoka */
    
    /* 修改：去掉深色边框 (border: 1px solid var(--brand-brown)) */
    border: none; 
    
    /* 增加微弱阴影替代边框，视觉更高级 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    
    white-space: nowrap;
    transition: all 0.3s ease;
}

.pill:hover {
    transform: translateY(-3px);
    background-color: var(--brand-yellow);
    color: white;
}

.software-placeholder {
    width: 80px;
    height: 80px;
    /* 修改：在粉底上使用半透明白色，更有通透感 */
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    flex-shrink: 0;
}

/* --- 移动端响应式补丁 --- */
@media (max-width: 768px) {
    .software-container {
        flex-direction: column;
        text-align: center;
    }
    
    .software-pills {
        justify-content: center; /* 手机端药丸居中 */
    }

    .software-placeholder {
        order: -1; /* 图标在手机上排在最上面 */
    }
}

        * The QR Box Styling */

/* Right side QR styling */
.qr-wrapper {
    flex-shrink: 0; /* Prevents the QR box from shrinking */
}
.qr-placeholder {
    width: 85px;
    height: 85px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0; /* Prevents the box from being squeezed */
}
.qr-image {
    width: 90%; /* Adjusts the size of the QR inside the gray box */
    height: 90%;
    object-fit: contain;
    border-radius: 20px;
    
}


















































/* --- 3. Footer 样式：精简高度 --- */
.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; /* 图标均匀分布，防止挤在一起 */
    }
}


