* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    padding-top: 50px;
    background-color: #faecde;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 响应式调整 body padding */
@media screen and (max-width: 768px) {
    body {
        padding-top: 45px;
    }
}

@media screen and (max-width: 430px) {
    body {
        padding-top: 40px;
    }
}

/* 导航栏基础样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px 0 15px;
    background-color: #FFFDF8;
    border-bottom: 2px solid #A0522D;
    height: 50px;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999 !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Logo 样式 */
.logo img {
    width: 125px;
    height: 50px;
}

/* 导航链接样式 */
.nav-links {
    display: flex;
    gap: 50px;
    font-family: "Modak", Helvetica;
    font-weight: 400;
    color: #9d4008;
    font-size: 15px;
    letter-spacing: 0.4px;
    line-height: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-links a {
    text-decoration: none;
    color: #9D4008;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Hamburger 按钮基础样式 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    margin-right: 5px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #9D4008;
    transition: all 0.3s ease-in-out;
    border-radius: 1.5px;
}

/* Hamburger 动画效果 */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 移动端样式 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

/* 更小屏幕的样式 */
@media (max-width: 430px) {
    .hamburger {
        width: 20px;
        height: 15px;
    }

    .hamburger span {
        height: 2px;
    }

    /* 调整小屏幕下的动画效果 */
    .hamburger.active span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }
}

/* 设置三条线的位置 */
.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 7px;
}

.hamburger span:nth-child(3) {
    top: 14px;
}

/* 在移动端显示 hamburger */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 45px;
        left: 0;
        width: 100%;
        height: calc(100vh - 45px);
        background-color: #FFFDF8;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        padding: 20px 0;
        z-index: 999;
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Hover 效果 */
.nav-links a:hover {
    color: #c2500a;
    transform: translateY(-2px);
}

/* 添加下划线效果 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #9D4008;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section 基础样式 */
.hero-section {
    position: relative;
    width: 100%;
    margin: 23px auto 0;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.3s;
    z-index: 1;
}

.BrownFrame {
    width: 100%;
    padding-top: 56.7%;
    background: #9D4008;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.HeroImages {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 97%;
    height: auto;
    border-radius: 4.2vw;
    object-fit: cover;
    opacity: 0;
    animation: scaleIn 1.2s ease-out forwards;
    animation-delay: 0.5s;
}

/* 手机端响应式 */
@media screen and (max-width: 430px) {
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        height: 40px;
    }

    .hero-section {
        position: relative;
        width: 100%;
        height: 500px;
        margin-bottom: -150px;
        padding: 20px;
    }

    .BrownFrame {
        width: 100%;
        height: 50%;
        padding: 20px;
        border-radius: 30px;
    }

    .HeroImages {
        width: 90%;
        height: 65%;
        border-radius: 30px;
        object-fit: cover;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* 确保导航栏和内容不受影响 */
    .navbar {
        height: 40px;
    }

    body {
        padding-top: 40px;
    }
}

/* 动画键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
    .navbar {
        height: 45px;
        padding: 0 20px 0 10px;
    }

    .logo img {
        width: 100px;
        height: 40px;
    }

    body {
        padding-top: 45px;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media screen and (max-width: 430px) {
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        height: 40px;
    }

    .hero-section {
        position: relative;
        width: 100%;
        height: 500px;
        margin-bottom: -150px;
        padding: 20px;
    }

    .BrownFrame {
        width: 100%;
        height: 50%;
        padding: 20px;
        border-radius: 0px;
    }

    .HeroImages {
        width: 90%;
        height: 65%;
        border-radius: 30px;
        object-fit: cover;
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* 确保导航栏和内容不受影响 */
    .navbar {
        height: 40px;
    }

    body {
        padding-top: 40px;
    }
}

/* 确保画在手机端也正常工作 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 导航链接的基础样式 */
.nav-links a {
    text-decoration: none;
    color: #9D4008;
    transition: all 0.3s ease;  /* 添加过渡效果 */
    position: relative;  /* 为下划效果添加相对定位 */
    padding: 5px 0;  /* 添加一些内边距 */
}

/* Hover 效 */
.nav-links a:hover {
    color: #c2500a;  /* 稍微变亮的颜色 */
    transform: translateY(-2px);  /* 轻微上移 */
}

/* 添加下划效果 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #9D4008;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 移动端菜单的 hover 效果 */
@media (max-width: 768px) {
    .nav-links a {
        padding: 15px 0;
        width: 80%;
        max-width: 300px;
        text-align: center;
        border-bottom: 1px solid rgba(157, 64, 8, 0.2);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background-color: rgba(157, 64, 8, 0.05);  /* 添加背景色变化 */
        transform: translateY(-2px);  /* 保持轻微上移效果 */
        color: #c2500a;
    }

    /* 移动端不显示下划线效果 */
    .nav-links a::after {
        display: none;
    }
}

p {
    font-family: "Modak", Helvetica;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.step-1-container {
    position: relative;
    width: 100%;
    margin: -50px auto 0;
    padding: 40px 20px;
    min-height: 800px;
}

.step-1-background {
    position: absolute;
    top: 3px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/step1\ background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
}

/* Update content wrapper to be above background */
.step-1-content-wrapper {
    position: relative;
    z-index: 10;
}

/* 确保hero section在最下层 */
.hero-section {
    position: relative;
    width: 100%;
    max-width: auto;
    margin: 23px auto 0;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.3s;
    z-index: 1;
}

/* 更新标题样式 */
.step-1-title {
    position: relative;
    color: #9D4008;
    font-size: 50px;
    font-family: 'Modak', cursive;
    font-weight: 400;
    text-align: center;
    margin: 100px 0 30px 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.bagel-grid {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bagel-image {
    width: 200px;
    height: auto;
    transform: rotate(-26.36deg);
    transform-origin: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-left: -100px;
}

.bagel-image:first-child {
    margin-left: 0;
}

.last-bagel {
    transform: rotate(-110.64deg);
}

.bagel-image:hover {
    transform: rotate(-26.36deg) scale(1.1);
    z-index: 1;
}

.last-bagel:hover {
    transform: rotate(-110.64deg) scale(1.1);
    z-index: 1;
}

/* Content Text Styles */
.step-1-content {
    position: relative;
    color: #9D4008;
    font-size: 18px;
    font-family: 'Afacad', sans-serif;
    font-weight: 400;
    text-align: center;
    max-width: 650px;
    margin: 40px auto;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bagel-grid {
        justify-content: flex-start;
        padding: 20px 40px;
    }
}

@media (max-width: 768px) {
    .step-1-title {
        font-size: 40px;
    }

    .bagel-image {
        width: 150px;
        margin-left: -40px;
    }

    .step-1-content {
        font-size: 18px;
        padding: 0 20px;
    }

    .step-1-container {
        margin: -30px 20px 0;
        padding: 30px 15px;
        min-height: 600px;
    }
}

@media (max-width: 480px) {
    .step-1-title {
        font-size: 30px;
    }

    .bagel-grid {
        grid-template-columns: 1fr;
    }

    .step-1-content {
        font-size: 16px;
    }

    .step-1-container {
        margin: -30px 15px 0;
        padding: 20px 10px;
        min-height: 500px;
    }
}

.step-2-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 800px;
}

.step-2-background {
    position: absolute;
    top: 3px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/step2-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
}

/* Update content wrapper to be above background */
.step-2-content-wrapper {
    position: relative;
    z-index: 10;
}

/* 标题样式 */
.step-2-title {
    color: #9D4008;
    font-size: 50px;
    font-family: 'Modak', cursive;
    font-weight: 400;
    text-align: center;
    margin: 0px 0 0 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* 布局容器 */
.step-2-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 文本内容样式 */
.step-2-text-content {
    width: 100%;
    max-width: 630px;
    padding: 0;
    text-align: center;
}

.step-2-description {
    color: #9D4008;
    font-size: 18px;
    font-family: 'Afacad', sans-serif;
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
}

/* 图片式 */
.step-2-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.step-2-image img {
    width: 420px;
    height: auto;
    transform-origin: center 20%;
    animation: floatAnimation 3s ease-in-out infinite;
}

/* 响应设计 */
@media (max-width: 1200px) {
    .step-2-image img {
        width: 100%;
        max-width: 530px;
    }
}

@media (max-width: 768px) {
    .step-2-title {
        font-size: 40px;
    }

    .step-2-description {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .step-2-title {
        font-size: 30px;
    }

    .step-2-description {
        font-size: 16px;
    }
}

.step-3-container {
    position: relative;
    width: 100%;
    margin: -200px auto 0;
    padding: 40px 20px;
    min-height: 800px;
}

.step-3-background {
    position: absolute;
    top: 3px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/step3-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
}

/* Update content wrapper to be above background */
.step-3-content-wrapper {
    position: relative;
    z-index: 10;
}

/* ��应式调整 */
@media (max-width: 768px) {
    .step-3-container {
        margin: -60px 20px 0;
        padding: 30px 15px;
        min-height: 600px;
    }
}

@media (max-width: 480px) {
    .step-3-container {
        margin: -40px 15px 0;
        padding: 20px 10px;
        min-height: 500px;
    }
}

.step-3-title {
    color: #9D4008;
    font-size: 50px;
    font-family: 'Modak', cursive;
    font-weight: 400;
    text-align: center;
    margin: 80px 0 0 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.step-3-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.step-3-text-content {
    width: 100%;
    max-width: 630px;
    padding: 0;
    text-align: center;
}

.step-3-description {
    color: #9D4008;
    font-size: 18px;
    font-family: 'Afacad', sans-serif;
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
}

.step-3-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.step-3-image img {
    width: 463px;
    height: 389px;
    object-fit: contain;
    transform-origin: center 20%;
    animation: floatAnimation 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .step-3-image img {
        width: 100%;
        max-width: 473px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .step-3-title {
        font-size: 40px;
    }

    .step-3-description {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .step-3-title {
        font-size: 30px;
    }

    .step-3-description {
        font-size: 16px;
    }
}

.tips-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 600px;
}

.tips-title {
    color: #9D4008;
    font-size: 50px;
    font-family: 'Modak', cursive;
    font-weight: 400;
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.tips-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;
}

.tip-card {
    width: 226px;
    height: 320px;
    position: relative;
    border: 2px solid #9D4008;
    border-radius: 41px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.tip-number {
    color: #9D4008;
    font-size: 70px;
    font-family: 'Modak', cursive;
    font-weight: 400;
    margin-top: 0px;
    height: 80px;
    line-height: 80px;
}

.tip-heading {
    color: #9D4008;
    font-size: 25px;
    font-family: 'Afacad', sans-serif;
    font-weight: 600;
    text-align: center;
    margin: 0;
    height: 40px;
    display: flex;
    align-items: center;
}

.tip-content {
    color: #9D4008;
    font-size: 15px;
    font-family: 'Afacad', sans-serif;
    font-weight: 400;
    text-align: center;
    margin-top: 35px;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tips-title {
        font-size: 40px;
        margin-bottom: 40px;
    }

    .tips-grid {
        gap: 30px;
    }

    .tip-card {
        width: 200px;
        height: 260px;
    }

    .tip-number {
        font-size: 60px;
    }

    .tip-heading {
        font-size: 22px;
    }

    .tip-content {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tips-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .tips-grid {
        gap: 20px;
    }

    .tip-card {
        width: 180px;
        height: 240px;
    }

    .tip-number {
        font-size: 50px;
    }

    .tip-heading {
        font-size: 20px;
    }

    .tip-content {
        font-size: 13px;
    }
}


/* Back to Top Button 样式 */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    width: 40px;
    height: 40px;
    outline: 1px solid white;
    background-color: #9D4008;
    color: #F8EDE3;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#backToTop:hover {
    background-color: #B64807;
    transform: translateY(-3px);
}

/* 手机端调整 */
@media screen and (max-width: 430px) {
    #backToTop {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* 照片轮播样式 */
.photo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0 0 0; /* 移除底部内边距 */
    margin: 0; /* 移除所有边距 */
}

.slider-container {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 0;
    width: fit-content;
}

.slide {
    flex: 0 0 250px;
    width: 250px;
    height: 300px;
    margin: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-flex-shrink: 0;
}

/* 添加动动画 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 12)); /* 移动第一组图片的总宽度 */
    }
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .slide {
        flex: 0 0 200px;
        width: 200px;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-200px * 12));
        }
    }
}

@media screen and (max-width: 430px) {
    .slide {
        flex: 0 0 180px;
        width: 180px;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-180px * 12));
        }
    }
}

/* 添加鼠标悬停暂停效果 */
.slider-track:hover {
    animation-play-state: paused;
}

/* Footer 样式 */
.footer {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    background-color: #9D4008; /* 添加棕色背景 */
}

.footer-background {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: top;
}

.footer-content {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-bottom: 0px;
}

.footer-logo {
    width: 200px;
    height: 80px;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: white;
    font-size: 18px;
    font-family: "Modak", cursive;
    text-decoration: none;
    transition: all 0.3s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.3px;
}

.footer-nav a:hover {
    color: #fff6c7;
    transform: translateY(-2px);
}

.social-icons {
    width: 100%;
    max-width: 250px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.social-icon:hover {
    transform: scale(1.2) rotate(360deg);
    cursor: pointer;
}

.social-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: white;
    margin: 20px auto 0px auto;
    opacity: 1;
    display: block;
}

.copyright {
    color: white;
    font-size: 12px;
    font-family: "Libre Caslon Text", serif;
    line-height: 40px;
    text-align: center;
}

/* 移动端适配 */
@media screen and (min-width: 360px) and (max-width: 430px) {
    /* Footer 移动端样式 */
    .footer {
        width: 100%;
        height: 300px;
        background: #9D4008;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        z-index: 3;
        margin-top: 0; /* 移除顶部边距 */
        padding-top: 0px;
    }

    .footer-background {
        display: none;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 0; /* 移除内边距 */
    }

    .footer-logo {
        width: 150px;
        height: auto;
        margin-top: -60px;
        margin-bottom: 20px;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-nav a {
        color: #FFFDF8;
        text-decoration: none;
        font-family: 'Modak', cursive;
        font-size: 20px;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin: 15px 0 30px;
    }

    .social-icon img {
        width: 30px;
        height: 30px;
    }

    .footer-line {
        width: 92%;
        height: 1px;
        background-color: #FFFDF8;
        margin: 0 auto 2px;
        opacity: 1; /* 确保可见性 */
        border: none; /* 移除边框 */
        display: block; /* 确保显示为块级元素 */
    }

    .copyright {
        color: #FFFDF8;
        font-size: 12px;
        text-align: center;
        margin-top: 2px;
    }
}

/* 大屏幕适配 - 放在最后 */
@media screen and (min-width: 1920px) {
    .footer-content {
        max-width: 1800px;
        margin: 0 auto;
    }

    .footer-nav {
        max-width: 1000px;
        gap: 60px;
    }

    .footer-nav a {
        font-size: 20px;
    }

    .social-icons {
        max-width: 300px;
    }
}

/* 更新active导航链接样式 */
.nav-links a.active {
    color: #c2500a;  /* 高亮颜色 */
    font-weight: 400;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 移除下划线效果 */
.nav-links a.active::after {
    display: none;  /* 移下划线 */
}

/* 更新hover效果 */
.nav-links a:hover:not(.active) {
    color: #c2500a;
    transform: translateY(-2px);
}

/* 移动端active样式 */
@media (max-width: 768px) {
    .nav-links a.active {
        background-color: rgba(157, 64, 8, 0.1);
        color: #c2500a;
        font-weight: 400;
    }
}
/* 添加动画基础式 */
.step-1-container,
.step-2-container,
.step-3-container,
.tips-container {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

/* 显示类 */
.step-1-container.show,
.step-2-container.show,
.step-3-container.show,
.tips-container.show {
    opacity: 1;
    transform: translateY(0);
}

/* Step 1 内容动画 */
.step-1-title,
.bagel-grid,
.step-1-content,
.step-2-title,
.step-2-image,
.step-2-text-content,
.step-3-title,
.step-3-image,
.step-3-text-content,
.tips-title,
.tip-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

/* 显示状态类 */
.show .step-1-title,
.show .bagel-grid,
.show .step-1-content,
.show .step-2-title,
.show .step-2-image,
.show .step-2-text-content,
.show .step-3-title,
.show .step-3-image,
.show .step-3-text-content,
.show .tips-title,
.show .tip-card {
    opacity: 1;
    transform: translateY(0);
}

/* 为不同元素设置更长的延迟时间，让它们一个接一个出现 */
/* Step 1 内容动画 */
.show .step-1-title { transition-delay: 0.2s; }
.show .bagel-grid { transition-delay: 0.6s; }
.show .step-1-content { transition-delay: 1s; }

/* Step 2 内容动 */
.show .step-2-title { transition-delay: 0.2s; }
.show .step-2-image { transition-delay: 0.6s; }
.show .step-2-text-content { transition-delay: 1s; }

/* Step 3 内容动画 */
.show .step-3-title { transition-delay: 0.2s; }
.show .step-3-image { transition-delay: 0.6s; }
.show .step-3-text-content { transition-delay: 1s; }

/* Tips 内容动画 */
.show .tips-title { transition-delay: 0.2s; }
.show .tip-card:nth-child(1) { transition-delay: 0.6s; }
.show .tip-card:nth-child(2) { transition-delay: 1s; }
.show .tip-card:nth-child(3) { transition-delay: 1.4s; }

/* 定动动画 - 改为上下移动 */
@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 鼠标悬停时暂停动画 */
.step-2-image:hover img,
.step-3-image:hover img {
    animation-play-state: paused;
}

/* 移动端调整动画幅度 */
@media (max-width: 768px) {
    @keyframes floatAnimation {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
        100% {
            transform: translateY(0);
        }
    }
}

@media screen and (min-width: 360px) and (max-width: 430px) {
    /* Basic layout adjustments */
    body {
        width: 100%;
        max-width: 100%;
        padding-top: 40px;
        overflow-x: hidden;
        margin: 0;
    }

    /* Navbar adjustments */
    .navbar {
        height: 40px;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        position: fixed;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        width: 100px;
        height: 40px;
    }

    /* Hero Section adjustments */
    .hero-section {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        position: relative;
        z-index: 1;
    }

    .BrownFrame {
        width: 100%;
        height: 400px;
        background: #9D4008;
        position: relative;
        margin: 0;
        padding: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .HeroImages {
        width: 90%;
        height: 65%;
        border-radius: 30px;
        object-fit: cover;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    /* Step 1 Container adjustments */
    .step-1-container {
        width: 100%;
        position: relative;
        z-index: 2;
        overflow: hidden;
        background-color: #FFFDF8;
        min-height: 50vh;
        margin: 0;
        padding: 0;
    }

    .step-1-content-wrapper {
        width: 92%;
        margin: 0 auto;
        padding: 40px 0;
    }

    .step-1-background {
        display: none;
    }

    .step-1-title {
        font-size: 40px;
        margin-top: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    /* Remove margin-bottom from hero section */
    .hero-section {
        margin-bottom: 0;
    }

    /* Remove any negative margins */
    .step-1-container,
    .step-2-container,
    .step-3-container {
        margin-top: 0;
    }

    /* Step 2 Container adjustments */
    .step-2-container {
        width: 100%;
        position: relative;
        z-index: 2;
        overflow: hidden;
        background-color: #F8EDE3;
        padding: 20px 0;
    }

    .step-2-title {
        font-size: 40px;
        margin: 30px 0;
        text-align: center;
    }

    .step-2-image img {
        width: 300px;
        margin: 0 auto;
        display: block;
    }

    /* Step 3 Container adjustments */
    .step-3-container {
        width: 100%;
        position: relative;
        z-index: 2;
        margin-top: -100px;
        padding: 20px 0;
    }

    .step-3-title {
        font-size: 40px;
        margin: 30px 0;
        text-align: center;
    }

    .step-3-image img {
        width: 300px;
        margin: 0 auto;
        display: block;
    }

    /* Tips Section adjustments */
    .tips-container {
        width: 92%;
        margin: 30px auto;
        padding: 20px 0;
    }

    .tips-title {
        font-size: 40px;
        margin-bottom: 30px;
        text-align: center;
    }

    .tips-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .tip-card {
        width: 100%;
        height: auto;
        min-height: 180px;
        padding: 20px;
        border-radius: 30px;
    }

    .tip-number {
        font-size: 50px;
        margin-bottom: 10px;
    }

    .tip-heading {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .tip-content {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Tablet-specific styles (431px-912px) */
@media screen and (min-width: 431px) and (max-width: 912px) {
    .hero-section {
        margin: 8px auto 0;
    }

    .HeroImages {
        width: 95%;
        margin-top: 25px;
    }

    .step-1-container,
    .step-2-container,
    .step-3-container {
        width: 92%;
        margin: 0 auto;
        padding: 20px;
    }

    .bagel-grid {
        justify-content: center;
        gap: 20px;
    }

    .bagel-image {
        width: 150px;
    }

    /* Adjust other sections similarly */
}

/* Mobile styles (360px-430px) */
@media screen and (min-width: 360px) and (max-width: 430px) {
    body {
        padding-top: 40px;
        overflow-x: hidden;
        width: 100%;
    }

    .navbar {
        height: 40px;
        padding: 0 10px;
    }

    .logo img {
        width: 90px;
        height: 35px;
    }

    .hamburger {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 14px;
    }

    .hamburger span {
        height: 2.5px;
    }

    /* Hero section */
    .hero-section {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .HeroImages {
        width: 92%;
        height: 350px;
        border-radius: 20px;
        margin-top: -8px;
    }

    /* Steps sections */
    .step-1-container,
    .step-2-container,
    .step-3-container {
        width: 92%;
        margin: 0 auto;
        padding: 15px;
    }

    .step-1-title,
    .step-2-title,
    .step-3-title {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .bagel-grid {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .bagel-image {
        width: 100px;
    }

    /* Footer adjustments */
    .footer {
        width: 100%;
        height: 370px;
        background: #9D4008;
        margin-top: 0px;
        padding-top: 20px;
    }

    .footer-background {
        display: none;
    }

    .footer-logo {
        width: 150px;
        margin-top: 100px;
        margin-bottom: 20px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    .footer-line {
        width: 100%;
        margin: 0px auto 10px;
    }
}

/* Specific iPad adjustments */
@media screen and (width: 820px) {
    .HeroImages {
        width: 95%;
        margin-top: 25px;
    }
}


/* Mobile styles (360px-430px) */
@media screen and (min-width: 360px) and (max-width: 430px) {
    /* ... other mobile styles ... */

    /* Step containers spacing */
    .step-1-container {
        width: 100%;
        margin: 0;
        padding: 40px 0;
        min-height: 50vh;
        background-color: #FFFDF8;
    }

    .step-2-container {
        width: 100%;
        margin: 0;
        padding: 10px 0 0 0;
        min-height: 50vh;
        background-color: #F8EDE3;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .step-2-content-wrapper {
        padding: 10px 0 0 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
    }

    .step-3-container {
        width: 100%;
        margin: -60px 0 0 0;
        padding: 0;
        background-color: #FFFDF8;
    }

    /* Adjust content spacing */
    .step-2-content {
        margin: 5px auto;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Adjust image container in step 2 */
    .step-2-image {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px 0;
    }

    .step-2-image img {
        width: 80%;
        margin-top: -40px;
        height: auto;
    }
}

/* Step 1 background */
.step-1-background {
    position: absolute;
    top: 3px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/step1\ background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
}

/* Step 2 background */
.step-2-background {
    position: absolute;
    top: 3px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/step2-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
}

/* Step 3 background */
.step-3-background {
    position: absolute;
    top: 3px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/step3-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
}

/* Only hide background images and apply solid colors in mobile view */
@media screen and (min-width: 360px) and (max-width: 430px) {
    .step-1-container {
        width: 100%;
        margin: 0;
        padding: 40px 0;
        background-color: #FFFDF8;
    }

    .step-1-background {
        display: none;
    }

    .step-2-container {
        width: 100%;
        margin: 0;
        padding: 40px 0;
        background-color: #F8EDE3;
    }

    .step-2-background {
        display: none;
    }

    .step-3-container {
        width: 100%;
        margin: 0;
        padding: 40px 0;
        background-color: #FFFDF8;
    }

    .step-3-background {
        display: none;
    }

    .tips-container {
        width: 100%;
        margin: 0;
        padding: 40px 0;
        background-color: #F8EDE3;
    }

    .step-1-content,
    .step-2-content,
    .step-3-content,
    .tips-content {
        width: 92%;
        margin: 0 auto;
        padding: 0;
    }
}

@media screen and (min-width: 360px) and (max-width: 430px) {
    /* All titles unified styling */
    .step-1-title,
    .step-2-title,
    .step-3-title,
    .tips-title {
        font-size: 40px;
        margin-bottom: 25px;
        text-align: center;
        color: #9D4008;
        font-family: 'Modak', cursive;
        font-weight: 400;
    }

    /* All body text unified styling */
    .step-1-content,
    .step-2-content,
    .step-3-content,
    .step-2-description,
    .tips-content,
    .bagel-description,
    p {
        font-size: 16px;
        line-height: 1.5;
        text-align: justify;
        width: 92%;
        margin: 0 auto;
        font-family: 'Afacad', sans-serif;
        color: #9D4008;
    }

    /* Add proper spacing between text blocks */
    .step-1-content,
    .step-2-content,
    .step-3-content {
        margin-bottom: 20px;
    }

    /* Ensure text containers have proper width */
    .text-container {
        width: 92%;
        margin: 0 auto;
    }

    /* Adjust spacing for better readability */
    .content-section {
        margin-bottom: 30px;
    }
}

@media screen and (min-width: 360px) and (max-width: 430px) {
    /* Bagel grid container */
    .bagel-grid-container {
        width: 100%;
        overflow-x: hidden;
        padding: 0 10px;
    }

    /* Bagel grid adjustments */
    .bagel-grid {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 20px 0;
        transform: none;
    }

    /* Individual bagel images */
    .bagel-image {
        width: 120px;
        height: 120px;
        margin-left: -30px;
        object-fit: contain;
        transform: none !important;
    }

    .bagel-image:nth-child(4) {
        margin-left: 0;
    }

    .bagel-image:first-child {
        margin-left: 0;
    }

    /* Remove hover effects and rotations for mobile */
    .bagel-image:hover,
    .last-bagel:hover,
    .last-bagel {
        transform: none !important;
    }
}

@media screen and (min-width: 360px) and (max-width: 430px) {
    .tip-card {
        padding: 8px 10px; /* 减少上下内边距 */
        max-width: 92%;
        margin: 0 auto;
    }

    .tip-number {
        margin-bottom: 2px;
        font-size: 60px; /* 保持原有大小 */
    }

    .tip-heading {
        margin-bottom: 2px;
        font-size: 30px;
    }

    .tip-content {
        line-height: 1.2;
        font-size: 14px;
        margin: 0;
        padding-left: 28px; /* 添加左内边距对齐内容 */
    }

    /* Reduce gap between cards */
    .tips-grid {
        gap: 15px; /* 减少卡片之间的间距 */
        padding: 0 10px;
    }
}

@media screen and (min-width: 360px) and (max-width: 430px) {
    .photo-slider {
        width: 100%;
        margin: 0; /* Remove margin */
        padding: 0; /* Remove padding */
    }

    .slider-container {
        margin-bottom: 0; /* Remove bottom margin */
    }
    /* Footer adjustments */
    .footer {
        width: 100%;
        height: 550px;
        background: #9D4008;
        margin-top: 0px;
        padding-top: 0px;
    }
}

/* 基础 Footer 样式 */
.footer {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    background-color: #9D4008;
}

.footer-background {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: top;
}

.footer-content {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-bottom: 0px;
}


/* 大屏幕适配 - 放在最后 */
@media screen and (min-width: 1920px) {
    .footer-content {
        max-width: 1800px;
        margin: 0 auto;
    }

    .footer-nav {
        max-width: 1000px;
        gap: 60px;
    }

    .footer-nav a {
        font-size: 20px;
    }

    .social-icons {
        max-width: 300px;
    }
}

/* 平板设备适配 (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .step-1-container,
    .step-2-container,
    .step-3-container {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        position: relative;
        padding: 0;
    }

    .step-2-container {
        margin-top: -120px;
    }

    .step-3-container {
        margin-top: -300px;
    }

    .step-1-background,
    .step-2-background,
    .step-3-background {
        width: 100%;
        height: 100%;
        margin-top: -130px;
        background-size: cover;
        background-position: center;
    }
 
    .bagel-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 20px;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }

    .bagel-image {
        width: 130px;
        margin-left: -40px;
        transition: transform 0.3s ease;
    }

    .bagel-image:first-child {
        margin-left: 0;
    }

    /* 内容区域调整 */
    .step-1-content,
    .step-2-content,
    .step-3-content {
        width: 90%;
        margin: 20px auto;
        padding: 0 20px;
    }

    /* Step 2 & 3 图片调整 */
    .step-2-image,
    .step-3-image {
        width: 100%;
        max-width: 300px; /* 减小最大宽度 */
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .step-2-image img,
    .step-3-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* 调整内容布局 */
    .step-2-layout,
    .step-3-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px; /* 减少内部间距 */
        padding: 10px;
    }

    /* 调整文本内容的边距 */
    .step-2-text-content,
    .step-3-text-content {
        margin: 10px auto;
    }

    .step-2-description,
    .step-3-description {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* 防止水平滚动 */
body {
    overflow-x: hidden;
    width: 100%;
}

/* 平板设备适配 (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* 之前的样式保持不变... */

    /* Tips section 调整 */
    .tips-container {
        width: 100%;
        margin-top: 0%;
    }

    .tips-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .tips-grid {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 0 20px;
        max-width: 900px;
        margin: 0 auto;
    }

    .tip-card {
        width: 200px;
        height: auto;
        min-height: 260px;
        padding: 15px;
        border-radius: 30px;
    }

    .tip-number {
        font-size: 50px;
        margin-bottom: 10px;
        height: 60px;
        line-height: 60px;
    }

    .tip-heading {
        font-size: 22px;
        margin-bottom: 10px;
        height: auto;
    }

    .tip-content {
        font-size: 14px;
        line-height: 1.4;
        margin-top: 15px;
    }
}
