/* ===== iOS 信任与提示：新增样式 ===== */
.trust-btn {
    display: inline-block;
    background-color: #0071e3;         /* 蓝底 */
    color: #fff;                       /* 白字 */
    font-size: 17px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 20px;
    text-decoration: none;
    margin-left: 12px;                 /* 与 download-btn 保持距离 */
    transition: all .2s ease;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,.82);
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  z-index: 10000;
}

.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal{
  width: min(92vw, 520px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  overflow: hidden;
}
.modal-header{
  padding: 14px 16px;
  border-bottom: 1px solid #f1f1f1;
  display:flex; align-items:center; justify-content:space-between;
}
.modal-header h3{ margin:0; font-size:16px; }
.modal-close{
  border:0; background:transparent; font-size:22px; line-height:1; cursor:pointer;
}
.modal-body{
  padding: 14px 16px 6px;
  color:#333;
  font-size:14px;
}
.modal-body b{ font-weight:700; }
.steps{ margin:10px 0 12px 18px; }
.steps li{ margin:4px 0; }
.guide-img{
  width:100%;
  border-radius:10px;
  border:1px solid #eee;
  margin-top: 8px;
}
.modal-footer{
  padding: 12px 16px 16px;
  display:flex; justify-content:flex-end; gap:10px;
}
.btn-secondary{
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background:#fff; cursor:pointer;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

*,body {
    margin: 0;
    padding: 0
}

body {
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5
}

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

header {
    text-align: center;
    padding: 30px 0
}

.app-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.1)
}

.app-icon img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover
}

h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px
}

.subtitle {
    font-size: 17px;
    color: #86868b;
    margin-bottom: 24px
}

.download-btn {
    display: inline-block;
    background-color: #0071e3;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all .2s ease
}

.download-btn:hover {
    background-color: #0077ed;
    transform: translateY(-2px)
}

.section {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05)
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: #0071e3
}

.feature-text h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px
}

.feature-text p {
    font-size: 15px;
    color: #86868b
}

.screenshots {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch
}

.screenshot {
    flex: 0 0 auto;
    width: 200px;
    height: 400px;
    background-color: #f5f5f7;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 2px 10px rgba(0,0,0,.1)
}

.screenshot img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover
}

.requirements {
    list-style: none
}

.requirements li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f7;
    font-size: 15px
}

.requirements li:last-child {
    border-bottom: none
}

footer {
    text-align: center;
    padding: 30px 0
}

.version,footer {
    font-size: 13px;
    color: #86868b
}

.version {
    margin-top: 8px
}

@media (min-width: 480px) {
    .container {
        padding:24px
    }

    .screenshot {
        width: 220px;
        height: 440px
    }
}

@media (min-width: 768px) {
    .container {
        padding:32px
    }

    .features {
        grid-template-columns: repeat(2,1fr)
    }

    .screenshot {
        width: 240px;
        height: 480px
    }

    h1 {
        font-size: 36px
    }

    h2 {
        font-size: 28px
    }

    .subtitle {
        font-size: 19px
    }
}

@media (min-width: 1024px) {
    .container {
        padding:40px
    }

    .features {
        grid-template-columns: repeat(3,1fr)
    }

    .section {
        padding: 32px
    }

    .app-info {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 40px;
        margin-bottom: 40px
    }

    .app-details {
        text-align: left
    }

    header {
        padding: 40px 0
    }

    .screenshots-container {
        overflow: hidden
    }

    .screenshots {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
        gap: 24px;
        overflow: visible
    }

    .screenshot {
        width: 100%;
        height: 0;
        padding-bottom: 200%;
        position: relative
    }

    .screenshot img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%
    }
}

@media (min-width: 1280px) {
    .container {
        padding:48px
    }

    .app-icon {
        width: 140px;
        height: 140px
    }

    h1 {
        font-size: 42px
    }
}
