/* 第二页字体设置 */





/* 第二页==白色横条遮挡===== */

/* 白色横条基础样式 */
.white-bar {
    position: fixed;
    background-color: white;
    z-index: 50; /* 确保在背景之上但在其他内容之下 */
    pointer-events: none; /* 确保不会干扰用户交互 */
  }
  
  /* 顶部横条 */
  .top-bar {
    top: 0px;
    left: 0;
    width: 100%;
    height: 50px; /* 线宽 */
  }
  
  /* 底部横条 */
  .bottom-bar {
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 55px; /* 线宽 */
  }
  
  /* 左侧横条 */
  .left-bar {
    left: 0px;
    top: 0;
    width: 50px; /* 线宽 */
    height: 100%;
  }
  
  /* 右侧横条 */
  .right-bar {
    right: 0px;
    top: 0;
    width: 50px; /* 线宽 */
    height: 100%;
  }

  /* ====================================== */







/* 第二页==四个角==的图案设定 */

/* ===================== 固定左上角截图图案 ===================== */
.screenshot-decor {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 560px;   /* 固定尺寸，不随窗口变化 */
    height: 560px;
    pointer-events: none;
    z-index: 100;
    transform: scale(0.1);
    transform-origin: top left;
}

.screenshot-decor .disc {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 6px solid #000;
    z-index: 100;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 10px, transparent 11px 100%),
        repeating-conic-gradient(#000 0 6deg, #fff 6deg 12deg);
    box-shadow: 0 0 0 2px #000 inset;
}

.screenshot-decor .vline {
    position: absolute;
    left: 312px;
    top: 24px;
    width: 6px;
    height: 300px;
    background: #000;
    z-index: 100;

}

.screenshot-decor .hline {
    position: absolute;
    left: 24px;
    top: 344px;
    width: 260px;
    height: 6px;
    background: #000;
    z-index: 100;
}

/* 复用的准星（右上与左下） */
.screenshot-decor .target {
    position: absolute;
    width: 160px;
    height: 160px;
    z-index: 100;
}
.screenshot-decor .target::before,
.screenshot-decor .target::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #000;
    transform: translate(-50%, -50%);
    z-index: 100;
}
.screenshot-decor .target::before { width: 6px; height: 200px; }
.screenshot-decor .target::after  { width: 200px; height: 6px; }
.screenshot-decor .target .ring { display:none; }

.screenshot-decor .target.tr {
    left: 400px;
    top: 60px;
    z-index: 100;
}
.screenshot-decor .target.tr {
    border-radius: 50%;
    border: 6px solid #000;
    z-index: 100;

}
.screenshot-decor .target.tr .dot,
.screenshot-decor .target.bl .dot { display:none; }

/* 用额外层做圆环与中心点，避免伪元素冲突 */
.screenshot-decor .target.tr > span,
.screenshot-decor .target.bl > span {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 6px solid #000;
    z-index: 100;
}
.screenshot-decor .target.tr > i,
.screenshot-decor .target.bl > i {
    position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; background:#000; border-radius:50%; transform: translate(-50%, -50%);
}

.screenshot-decor .target.tr > span,
.screenshot-decor .target.tr > i { pointer-events: none; }

.screenshot-decor .target.bl {
    left: 84px;
    top: 410px;
}

/* ===================== 固定左下角截图图案 ===================== */
.screenshot-decor-bl {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 560px;
    height: 560px;
    pointer-events: none;
    z-index: 100;
    transform: scale(0.1);
    transform-origin: bottom left;
}
.screenshot-decor-bl .target { position:absolute; width:160px; height:160px; }
.screenshot-decor-bl .target::before,
.screenshot-decor-bl .target::after { content:""; position:absolute; left:50%; top:50%; background:#000; transform:translate(-50%, -50%); }
.screenshot-decor-bl .target::before { width:6px; height:200px; }
.screenshot-decor-bl .target::after  { width:200px; height:6px; }
.screenshot-decor-bl .target > span { position:absolute; inset:0; border-radius:50%; border:6px solid #000; }
.screenshot-decor-bl .target > i { position:absolute; left:50%; top:50%; width:56px; height:56px; background:#000; border-radius:50%; transform:translate(-50%, -50%); }
/* 布局：左上准星 + 左侧水平线 + 中部竖线 + 右下准星 */
.screenshot-decor-bl .target.tl { left: 90px; top: -60px; }
.screenshot-decor-bl .hline { position:absolute; left: 24px; top: 160px; width: 260px; height:6px; background:#000; }
.screenshot-decor-bl .vline { position:absolute; left: 312px; top: 200px; width:6px; height: 300px; background:#000; }
.screenshot-decor-bl .target.br { right: 0px; bottom: 100px; }

/* ===================== 固定右下角截图图案 ===================== */
.screenshot-decor-br {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 560px;
    height: 560px;
    pointer-events: none;
    z-index: 100;
    transform: scale(0.1);
    transform-origin: bottom right;
}
.screenshot-decor-br .target { position:absolute; width:160px; height:160px; }
.screenshot-decor-br .target::before,
.screenshot-decor-br .target::after { content:""; position:absolute; left:50%; top:50%; background:#000; transform:translate(-50%, -50%); }
.screenshot-decor-br .target::before { width:6px; height:200px; }
.screenshot-decor-br .target::after  { width:200px; height:6px; }
.screenshot-decor-br .target > span { position:absolute; inset:0; border-radius:50%; border:6px solid #000; }
.screenshot-decor-br .target > i { position:absolute; left:50%; top:50%; width:56px; height:56px; background:#000; border-radius:50%; transform:translate(-50%, -50%); }
/* 布局：右上准星 + 其下水平线 + 左侧竖线 + 竖线左边准星 + 右下放射圆盘 */
.screenshot-decor-br .target.tr { right: 90px; top: -60px; }
.screenshot-decor-br .hline { position:absolute; right: 24px; top: 160px; width: 260px; height:6px; background:#000; }
.screenshot-decor-br .vline { position:absolute; right: 312px; top: 200px; width:6px; height: 300px; background:#000; }
.screenshot-decor-br .target.bl { left: 0px; top: 300px; }
.screenshot-decor-br .disc {
    position: absolute; right: 24px; bottom: 60px; width: 180px; height: 180px; border-radius:50%; border:6px solid #000;
    background: radial-gradient(circle at 50% 50%, #fff 0 10px, transparent 11px 100%),
               repeating-conic-gradient(#000 0 6deg, #fff 6deg 12deg);
    box-shadow: 0 0 0 2px #000 inset;
}


/* ===================== 固定右上角截图图案 ===================== */
.screenshot-decor-tr {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 560px; /* 固定尺寸 */
    height: 560px;
    pointer-events: none;
    z-index: 100;
    transform: scale(0.1);
    transform-origin: top right;
}
.screenshot-decor-tr .target { position:absolute; width:160px; height:160px; }
.screenshot-decor-tr .target::before,
.screenshot-decor-tr .target::after { content:""; position:absolute; left:50%; top:50%; background:#000; transform:translate(-50%, -50%); }
.screenshot-decor-tr .target::before { width:6px; height:200px; }
.screenshot-decor-tr .target::after  { width:200px; height:6px; }
.screenshot-decor-tr .target > span { position:absolute; inset:0; border-radius:50%; border:6px solid #000; }
.screenshot-decor-tr .target > i { position:absolute; left:50%; top:50%; width:56px; height:56px; background:#000; border-radius:50%; transform:translate(-50%, -50%); }

/* 布局近似截图：左侧上方一个准星，右侧竖线，中心偏下水平线，右下一个准星 */
.screenshot-decor-tr .target.tl { left: 10px; top: 60px; }
.screenshot-decor-tr .vline { position:absolute; right: 312px; top: 24px; width:6px; height: 300px; background:#000; }
.screenshot-decor-tr .hline { position:absolute; right: 24px; top: 340px; width: 260px; height:6px; background:#000; }
.screenshot-decor-tr .target.br { right: 90px; bottom: -1px; }

/* ============================================ */





/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #0302fe;
    background-color: transparent;
    /* background: linear-gradient(135deg, #0f172a, #1e293b);
     color: white;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow-x: hidden; */
}





.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 右上角 × 菜单按钮 */
.menu-toggle {
    position: fixed;
    top: 28px;
    right: 32px;
    z-index: 1100;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 2.4rem;
    color: #c7007f;
    transition: color 0.2s;
}

.menu-toggle:hover {
    color: #0302fe;
}

/* 折叠菜单面板 */
.popup-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(12px);
    box-shadow: -2px 0 12px rgba(0,0,0,0.08);
    z-index: 1099;
    overflow: hidden;
    transition: width 0.38s cubic-bezier(.86,0,.07,1);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.popup-nav.active {
    width: 230px;
}

.popup-nav ul {
    margin: 0;
    padding: 100px 36px 0 36px;
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
}

.popup-nav li {
    width: 100%;
}

.popup-nav a {
    color: #fff;
    background: none;
    text-decoration: none;
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.2em 0.5em;
    border-radius: 7px;
    letter-spacing: 0.09em;
    transition: background 0.18s, color 0.18s;
}

.popup-nav a:hover,
.popup-nav a.active {
    background: #c7007f33;
    color: #c7007f;
}

/* 隐藏原有 navbar、nav-menu、hamburger */
.navbar, .nav-container, .nav-menu, .hamburger, .bar {
    display: none !important;
}

/* 主页样式 */
/* main {
    margin-top: 70px;
} */

/* 视觉交互区域 鼠标移动效果 */
.hero.interactive-hero { background: none !important; }
.hero-svg-title .hero-outline {
    fill: transparent;
    stroke: #fff;
    stroke-width: 2.2px;
    paint-order: stroke fill;
    filter: drop-shadow(0 0 8px #0302fe) drop-shadow(0 0 18px #47a5ff55);
    transition: fill 0.16s cubic-bezier(.69,.01,.83,.7);
}
.hero-svg-title .hero-outline.active {
    fill: #fff;
    /* filter: drop-shadow(0 0 18px #47a5ff) drop-shadow(0 0 28px #0080ff80); */
}
.hero-svg-title .interactive-outline {
    pointer-events: all;
}
/* 使两行文本左右严格对齐 */
.hero-svg-title .interactive-text-group text {
    text-anchor: start;
    letter-spacing: 2.5px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #3498db;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border-color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* 个人资料卡片 */
.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    color: white;
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-card p {
    opacity: 0.8;
}

/* 章节样式 */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    /* margin-bottom: 3rem; */
    color: #0302fe;
    position: relative;
}

/* .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
} */

/* 关于我 */
.about {
    padding: 100px 0;
    /* background: #f8f9fa; */
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 特色项目 */
.featured-projects {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: #0302fe;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.project-content p {
    color: #666;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.text-center {
    text-align: center;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 项目筛选 */
.project-filters {
    padding: 2rem 0;
    background: #f8f9fa;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    color: white;
}

/* 项目页面 */
.projects-section {
    padding: 3rem 0 100px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-item {
    transition: all 0.3s ease;
}

.project-item.hidden {
    display: none;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

.project-image:hover .project-overlay {
    opacity: 1;
}

.project-link,
.project-github {
    width: 50px;
    height: 50px;
    background: white;
    color: #c7007f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-link:hover,
.project-github:hover {
    transform: scale(1.1);
}

.project-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* 联系页面 */
.contact-section {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0302fe;
}

.contact-info p {
    font-size: 1.1rem;
    color: #c7007f;
    margin-bottom: 2rem;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #c7007f;
}

.contact-details p {
    color: #c7007f;
    margin: 0;
}

.social-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #c7007f;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* 联系表单 */
.contact-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: rgb(0, 0, 0); */
    padding: 2rem;
    border-radius: 15px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    width: 100%;
    min-height: 0;
    /* 全屏居中适应 */
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    width: 100%;
    max-width: 460px;
}

.contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #c7007f;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 响应式 — 保证表单居中显示且良好适配小屏幕 */
@media (max-width: 600px) {
    .contact-form-container {
        padding: 1rem;
        border-radius: 10px;
        min-width: 0;
        width: 100%;
    }
    .contact-form {
        max-width: 100%;
    }
}

/* 工作时间 */
.working-hours {
    background: #f8f9fa;
    padding: 80px 0;
}

.working-hours h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.hours-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hours-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hours-item p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer .social-links {
    display: flex;
    gap: 1rem;
}

.footer .social-link {
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .social-link:hover {
    background: #3498db;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .about,
    .featured-projects,
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: forwards; /* 动画完成后保持最后状态 */
    opacity: 1 !important; /* 确保最终可见 */
}

/* 确保容器可见 */
.container.fade-in-up {
    visibility: visible;
    order: 1px solid red; /* 临时添加边框查看元素位置 */
    opacity: 1 !important;
}



/* 自定义滚动条：保持三个“×”始终竖直居中，×为10x10px，垂直间隔5px，大小与间隔固定 */
::-webkit-scrollbar {
    width: 18px; /* 为了保证完全容纳内容和居中显示，宽度略增 */
}

::-webkit-scrollbar-thumb {
    background: 
        /* 三个×，10x10固定，垂直间距5px，全部整体垂直居中 */
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><line x1='2' y1='2' x2='8' y2='8' stroke='rgb(199,0,127)' stroke-width='2'/><line x1='8' y1='2' x2='2' y2='8' stroke='rgb(199,0,127)' stroke-width='2'/></svg>") center calc(50% - 15px) / 10px 10px no-repeat,
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><line x1='2' y1='2' x2='8' y2='8' stroke='rgb(199,0,127)' stroke-width='2'/><line x1='8' y1='2' x2='2' y2='8' stroke='rgb(199,0,127)' stroke-width='2'/></svg>") center 50% / 10px 10px no-repeat,
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><line x1='2' y1='2' x2='8' y2='8' stroke='rgb(199,0,127)' stroke-width='2'/><line x1='8' y1='2' x2='2' y2='8' stroke='rgb(199,0,127)' stroke-width='2'/></svg>") center calc(50% + 15px) / 10px 10px no-repeat;
    border-radius: 10px;
    min-height: 50px !important;
    height: 50px !important;
}
::-webkit-scrollbar-thumb:hover {
    background: 
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><line x1='2' y1='2' x2='8' y2='8' stroke='rgb(199,0,127)' stroke-width='3'/><line x1='8' y1='2' x2='2' y2='8' stroke='rgb(199,0,127)' stroke-width='3'/></svg>") center calc(50% - 15px) / 10px 10px no-repeat,
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><line x1='2' y1='2' x2='8' y2='8' stroke='rgb(199,0,127)' stroke-width='3'/><line x1='8' y1='2' x2='2' y2='8' stroke='rgb(199,0,127)' stroke-width='3'/></svg>") center 50% / 10px 10px no-repeat,
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><line x1='2' y1='2' x2='8' y2='8' stroke='rgb(199,0,127)' stroke-width='3'/><line x1='8' y1='2' x2='2' y2='8' stroke='rgb(199,0,127)' stroke-width='3'/></svg>") center calc(50% + 15px) / 10px 10px no-repeat;
}
::-webkit-scrollbar-track {
    background: none;
    box-shadow: none;
}

/* 防止非1:1缩放导致thumb背景被拉伸——始终居中且固定大小 */
::-webkit-scrollbar-thumb {
    background-repeat: no-repeat !important;
    background-position: center calc(50% - 15px), center 50%, center calc(50% + 15px);
    background-size: 10px 10px, 10px 10px, 10px 10px;
    min-height: 50px !important;
    height: 50px !important;
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background-repeat: no-repeat !important;
    background-position: center calc(50% - 15px), center 50%, center calc(50% + 15px);
    background-size: 20px 20px, 20px 20px, 20px 20px;
    min-height: 50px !important;
    height: 50px !important;
    border-radius: 100px;
}

/* ===================== 滚动显示动画效果 ===================== */
/* .scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 针对不同元素可以设置不同的延迟时间 */
/* .scroll-reveal.delay-1 {
    transition-delay: 0.05s;
}

.scroll-reveal.delay-2 {
    transition-delay: 0.05s;
}

.scroll-reveal.delay-3 {
    transition-delay: 0.05s;
} */

/* 针对图片的特殊动画 */
/* .scroll-reveal img {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
} */ 