:root {
    --bg: #f5f5f7;
    --text: #1d1d1f;
    --subtext: #555;
    --accent: #4a6f58;
    --card-bg: #ffffff;
    --fg-blue : #007aff;
}

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: linear-gradient(to bottom, #f5f5f7, #ffffff);
color: #1d1d1f;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0px 20px;
}

h1 {
font-size: 52px;
font-weight: 700;
letter-spacing: -0.02em;
}

h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

p {
    color: #555;
    line-height: 1.6;
}

.hero {
    text-align: center;
    padding: 20px 20px 20px;
}

.section p {
    text-align: center;
    /* 可选：限制最大宽度，防止文字太宽导致阅读体验不好 */
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.app-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s ease;

    display: flex;
    flex-direction: column;
    align-items: center;   /* 水平完全居中 */
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.app-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    margin: 0 auto 20px;   /* 自动水平居中 */
    display: block;        /* 关键 */
}

.button {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--fg-blue);
    color: white;
    text-decoration: none;
    font-size: 14px;
}
.button-group {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.button {
    padding: 10px 20px;
    margin-top: auto;
    border-radius: 999px;
    background: var(--fg-blue);
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.button:hover {
    background: #0062cc;
}

.download-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.download-button:hover {
    background: #e5e5e5;
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.download-button svg {
    width: 18px;
    height: 18px;
    fill: #000;
}

.footer {
text-align: center;
margin-top: 120px;
padding: 40px 20px;
font-size: 14px;
color: #888;
border-top: 1px solid #eee;
}

.subtitle {
font-size: 21px;
color: var(--subtext);
margin-bottom: 40px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}

/* Screenshot Section */
.screenshot-section {
margin: 80px 0;
text-align: center;
}

.screenshot-wrapper {
position: relative;
overflow: hidden;
border-radius: 20px;
}

.screenshot-track {
display: flex;
transition: transform 0.4s ease;
}

.screenshot-track img {
width: 100%;
border-radius: 20px;
flex-shrink: 0;
box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.nav-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,0,0.35);
color: white;
border: none;
width: 44px;
height: 44px;
cursor: pointer;
border-radius: 999px;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
backdrop-filter: blur(6px);
}

.nav-btn:hover {
background: rgba(0, 0, 0, 0.6);
}

.prev {
left: 15px;
}
.next {
right: 15px;
}


.section h2 {
font-size: 28px;
margin-bottom: 30px;
text-align: center;
}

.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}


.lang-switch {
position: absolute;
top: 20px;
right: 20px;
display: flex;
gap: 10px;
}

.lang-switch button {
border: none;
background: #eee;
padding: 6px 12px;
border-radius: 8px;
cursor: pointer;
}

.lang-switch button:hover {
background: #ddd;
}

/* 帮助文档区域 */
.help-section {
max-width: 1200px;
margin: auto;
}

.help-content {
text-align: left;
line-height: 1.7;
}

.help-content h3 {
margin-top: 40px;
}

.help-content pre {
background: #f4f4f4;
padding: 15px;
border-radius: 10px;
overflow-x: auto;
}

.help-content ul {
padding-left: 20px;
}

.help-content ol {
padding-left: 20px;
}
/* 强制覆盖 .section p 的居中设置 */
.help-content p, 
.help-content li,
.help-content pre,
.help-content code {
    text-align: left !important; /* !important 确保最高优先级 */
    margin-left: 0;
    margin-right: 0;
}

/* 同时也让 help-content 里的标题左对齐 */
.help-content h3,
.help-content h4 {
    text-align: left;
}

/* 核心代码：让 help-content 里的正文统一缩进 */
.indent-text {
    padding-left: 24px;       /* 缩进距离 */
    border-left: 2px solid var(--accent); /* 用你的主题色做左边框 */
    margin-bottom: 30px;      /* 和下面内容拉开点距离 */
    color: #333;              /* 稍微加深一点文字颜色 */
}

.help-content img {
    max-width: 300px;   /* 宽度最大 200px */
    max-height: 300px;  /* 高度最大 200px */
    width: auto;        /* 宽度自动（关键：保持比例） */
    height: auto;       /* 高度自动（关键：保持比例） */
    
    /* 可选：让图片在限制框内居中显示（如果图片很小） */
    display: block;     
    margin: 10px auto;  
}

.screenshot-wrapper {
  position: relative;
  max-width: 1200px; /* 根据你的设计调整最大宽度 */
  margin: 0 auto;
  overflow: hidden; /* 隐藏溢出的按钮或图片 */
}

.screenshot-track {
  display: flex;
  /* 不需要设置宽度，由内部内容决定，或者设为 100% */
}

/* 关键点：每个语言组必须是 flex 布局，让图片横向排开 */
.screenshot-track > div[data-lang] {
  display: flex; 
  width: 100%; /* 占据 wrapper 的宽度 */
  transition: transform 0.4s ease-in-out; /* 平滑滚动效果 */
  /* 初始状态由你的语言切换 JS 控制 display: none/block */
}

/* 确保图片不压缩，且每张图占满容器宽度 */
.screenshot-track img {
  flex-shrink: 0; /* 禁止收缩 */
  width: 100%;    /* 每张图宽度等于父容器 (即 wrapper) 宽度 */
  max-width: 100%;
  height: auto;
  display: block;
}

/* 导航按钮样式 */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  border-radius: 4px;
}
.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }
.nav-btn:hover { background: rgba(0, 0, 0, 0.8); }

/*小图轮播组件的调整*/
.screenshot-wrapper.small {
  position: relative;
  max-width: 100%;
  overflow: hidden; /* track 滚动，不裁剪按钮 */
  padding: 10px 0;
}
.screenshot-track.small {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  gap: 20px;
}
.screenshot-track.small::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.screenshot-wrapper.small .screenshot-track img {
  flex-shrink: 0;      /* 不缩小 */
  width: auto;        /* 固定宽度，根据你原来的尺寸改 */
  height: 500px;        /* 自动高度保持比例 */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.screenshot-wrapper.small .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 20;
}

.screenshot-wrapper.small .nav-btn.prev {
  left: 0px; /* 完全在 track 外侧 */
}

.screenshot-wrapper.small .nav-btn.next {
  right: 0px;
}