/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: "cardo", sans-serif;
    color: #000;
    line-height: 1.6;
    background-color: #f4f4f4;
    scroll-behavior: smooth;
    min-height: 100vh; /* 确保 body 高度至少为视口高度 */
    display: flex;
    flex-direction: column; /* 使主内容在文档流中垂直布局 */
}
.iframe iframe {
    width: 55%;
    height: auto;
    display: block; /* 让iframe成为块级元素 */
    margin: 0 auto; /* 水平居中 */
}

header {
    color: #000000;
    text-align: center;
    padding: 15px 5px; /* 为小屏幕减少padding */
    background-color: #fbe94e;
    position: sticky;
    top: 0;
    z-index: 1000;
}
main {
    flex: 1; /* 允许主内容区域增长以填充空间 */
    padding: 20px;
}

header h1 {
    font-size: 1.8em; /* 减小字体大小适应小屏幕 */
}

#headerp {
    font-size: 1.2em;
    margin-bottom: 0;
}

.image {
    position: relative;
    display: flex; /* 使用flex布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    max-width: 55%; /* 宽度100% */
    height: auto; /* 高度100%视口高度 */
    margin-left: 40vh;
}

.image img {
    max-width: 100%; /* 图片最大宽度为父容器宽度 */
    max-height: 100%; /* 图片最大高度为父容器高度 */
}

nav a{
    margin: 1rem;
    text-decoration: none;
    font-size: 1rem;
    color: #000000;
}
nav a:hover, nav a:focus {
  
    color: #717100; 
}
#fd ,#td{
    display: flex; /* 启用Flexbox布局 */
    align-items: flex-start; /* 确保子元素在交叉轴上从起点开始对齐 */
    justify-content: space-between; /* 在主轴上的子元素之间保持等距离 */
    gap: 5rem; /* 在子元素之间添加间隙 */
}
#ebe{
    display: flex; /* 启用Flexbox布局 */
    align-items: flex-start; /* 确保子元素在交叉轴上从起点开始对齐 */
    justify-content: space-between; /* 在主轴上的子元素之间保持等距离 */
    gap: 5rem; /* 在子元素之间添加间隙 */
}

#f1, #img1,#f2,#img2 {
    flex: 1; 
}
#f1,#f2{
    padding: 2rem;
}
#img1 {
    width: 100%; /* 或者您希望的任何宽度 */
    margin: 0 auto;
}

#img1 img {
    width: 100%; /* 或者可以设置为 auto，如果您想保持图片的原始尺寸 */
}
#img2 {
    width: 100%; /* 或者您希望的任何宽度 */
    margin: 0 auto;
}

#img2 img {
    width: 100%; /* 或者可以设置为 auto，如果您想保持图片的原始尺寸 */
    margin-top: 2rem;
}
#td{
    padding: 2rem;
}
.view-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fbe94e;
    color: #090909;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    border-radius: 5px; /* 可以根据需要调整圆角 */
}

.view-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fbe94e;
    color: #020202;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    opacity: 0; /* 初始状态下按钮不可见 */
    transition: opacity 0.3s ease; /* 添加过渡效果 */
}

.image:hover .view-button {
    opacity: 1; /* 鼠标悬停时按钮可见 */
}

/* 调整其他元素样式以保持页面整体风格一致 */
#app-features {
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 5px;
    height: auto;
    
}


h2, h3 {
    color: #edb348;
    margin: 15px 0;
}

.app-features p{
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 15px;
}

#view, .button {
    display: inline-block;
    background-color: #fbe94e;
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    margin-bottom: 3rem;
    transition: background-color 0.3s ease;
}
h2{
    text-align: center;
}

#fd, #td, #ebe {
    flex-direction: column;
    align-items: center;
}

/* 图片样式调整 */
.image{
    width: 90%; /* 增加宽度为屏幕的90% */
    margin: 0 auto; /* 居中显示 */
}

.image img{
    width: 100%; /* 图片宽度为100% */
    padding: 0.5rem 0; /* 添加上下padding */
}

footer {
    text-align: center;
    padding: 10px 5px; /* 减少padding */
    background-color: #fbe94e;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
}

/* 基础样式保持不变 */

@media only screen and (max-width: 600px) {
    header h1 {
        font-size: 1.5em; /* 更小屏幕上进一步减小字体大小 */
    }
    nav a{
        font-size: 0.5rem;
    }

    .view-button, .button {
        padding: 8px 16px; /* 减小按钮的padding */
    }

    #app-features h2{
        font-size: 1.3rem;
        padding: 0;
    }
    #fd{
        padding: 0;
        margin-top: 0;
    }
}

/* 保持其他样式不变 */
