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

html,
body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
    color: #111;
    background: #fff
}

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}

img {
    width: 100%;
    display: block;
}

/* 通用容器 */
.container {
    width: 100%;
    max-width: 12rem;
    margin: 0 auto;
    padding: 0 .24rem
}

/* 头部 */
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    box-shadow: 0 .02rem .08rem rgba(0, 0, 0, .05)
}

.site-header-menu {
    display: none;
    width: .3rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: .68rem
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700
}

.logo-mark {
    display: inline-block;
    color: #fff;
    border-radius: .08rem;
    width: .8rem;
}

.apple-id-button button {
    margin: 15px auto;
    display: flex;
    width: 80%;
    border-radius: 30px;
    font-size: .15rem;
    padding: .14rem .1rem;
    color: #222;
    border: none;
    background-color: white;
    box-shadow: 0 2px 0px 2.5px rgba(0, 0, 0, 0.2);
    align-items: center;
}
.apple-id-button button .icon {
    width: 25px;
    margin-right:  15px;
}
.apple-id-button button label {
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 10px;
    border-radius: 50%;
    border: 1px solid #222;
}

.apple-id-button button.active label {
    display: block;
    border: 1px solid white;
    position: relative;
}

.apple-id-button button.active label:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.apple-id-button button.active {
    background-color: #FF8E15;
    color: white;

}

.logo-text {
    font-size: .2rem;
    color: #222
}

.logo-text span {
    display: block;
}

.nav {
    /*display: bolo;*/
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-link {
    color: #666;
    font-size: .15rem
}

.nav-link + .nav-link {
    margin-left: .2rem;
}

.nav.h5 {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 10;
    background-color: white;
    height: 100vh;
    padding: .3rem;
}

.nav.h5 a {
    display: block;
}


.nav-link:hover,
.nav-link.active {
    color: #ff865a
}

/* iOS页面主体 */
.ios-main {
    padding: .4rem 0;
    background: #f7f9fc;
    min-height: calc(100vh - 1.36rem);
}

.ios-container {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: .4rem;
}

.page-title {
    font-size: .36rem;
    color: #222;
    font-weight: 600;
}

/* 通用卡片样式 */
.section-card {
    background: #fff;
    border-radius: .16rem;
    padding: .4rem;
    box-shadow: 0 .06rem .24rem rgba(0, 0, 0, .06);
}

.section-title {
    font-size: .32rem;
    color: #222;
    margin-bottom: .1rem;
    font-weight: 600;
}

.section-desc {
    font-size: .26rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: .24rem;
}

/* 海外Apple ID部分 */
.overseas-section {
    margin-bottom: .4rem;
}

/* App Store 卡片 */
.app-store-card {
    display: flex;
    padding: .24rem;
    background: #f8fafc;
    border-radius: .12rem;
    border: .02rem solid #e7ecf3;
}

.app-icon {
    width: .96rem;
    height: .96rem;
    border-radius: .16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: .24rem;
    flex-shrink: 0;
}

.app-icon-content {
    color: #fff;
    font-size: .32rem;
    font-weight: 700;
}

.app-info {
    flex: 1;
}

.app-title {
    display: flex;
    align-items: center;
    margin-bottom: .08rem;
    font-size: .5rem;
}

.app-name {
    font-size: .28rem;
    color: #222;
    font-weight: 600;
    margin-right: .12rem;
}

.age-rating {
    background: #666;
    color: #fff;
    font-size: .18rem;
    padding: .02rem .08rem;
    border-radius: .04rem;
}

.app-subtitle {
    font-size: .22rem;
    color: #1870B6;
    margin-bottom: .08rem;
}

.app-desc {
    font-size: .22rem;
    color: #666;
    margin-bottom: .08rem;
}

.app-price {
    display: flex;
    align-items: center;
    gap: .12rem;
}

.price {
    font-size: .24rem;
    color: #222;
    font-weight: 600;
}

.in-app {
    font-size: .18rem;
    color: #999;
}

/* 中国大陆Apple ID部分 */
.china-section {
    margin-bottom: .4rem;
}

.method-card {
    border: .02rem solid #e7ecf3;
    border-radius: .12rem;
    padding: .24rem;
    margin-bottom: .24rem;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: #ff865a;
    box-shadow: 0 .04rem .16rem rgba(255, 134, 90, 0.1);
}

.method-card:last-child {
    margin-bottom: 0;
}

.method-title {
    font-size: .28rem;
    color: #222;
    font-weight: 600;
    margin-bottom: .16rem;
}

.method-card span.tip {
    color: #FF8E15;
}

.method-card span.decoration {
    color: #FF8E15;
    text-decoration: underline;
}

.method-desc {
    font-size: .24rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: .24rem;
}

/* .hint-btn {
    margin-top: 0px;
    background: #ff865a;
    color: #fff;

} */
.method-btn {
    background: #ff865a;
    color: #fff;
    border: none;
    border-radius: .08rem;
    padding: .16rem .32rem;
    font-size: .24rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-btn:hover {
    background: #ff7a59;
}

/* FAQ部分 */
.faq-section {
    margin-bottom: .4rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: .16rem;
}

.faq-item {
    border: .02rem solid #e7ecf3;
    border-radius: .12rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0px 4px 20px 0px rgba(255, 142, 21, 0.5);
    border-color: #ff865a;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .24rem;
    cursor: pointer;
    background: #f8fafc;
}

.faq-question:hover {
    background: #f0f9ff;
}

.question-text {
    font-size: .26rem;
    color: #222;
    flex: 1;
    margin-right: .16rem;
}

.faq-arrow {
    font-size: .2rem;
    color: #666;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 .24rem .24rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: .24rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: .12rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* 底部 */
.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: .8rem 0;
    margin-top: 1rem
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    align-items: flex-start
}

.footer-brand {
    display: flex;
    align-items: center
}

.footer-brand .logo-mark {
    background: white;
    color: #fff;
    border-radius: .08rem;
    margin-right: .12rem
}

.footer-brand .logo-text {
    font-size: .28rem;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .28rem
}

.footer-link {
    font-size: .24rem;
    color: #cbd5e1
}

.ftR ul {
    display: flex;
    flex-wrap: wrap;
}

.ftR ul li {
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: .15rem;
}

/* PC 端：宽度大于 1024px 使用 px 与弹性布局（媒体查询） */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
        padding: 0 24px
    }

    .apple-id-button {
        flex-direction: row;
        margin-top: 30px;
        flex: 1;
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    .apple-id-button button {
        cursor: pointer;
        margin: 0;
        display: flex;
        justify-content: center;
        width: 400px;
        text-align: left;
        font-weight: bold;
        font-size: 20px;
        height: 50px;
    }

    .nav-link + .nav-link {
        margin-left: 70px;
    }

    .nav-link {
        color: #3D3D3D;
        font-size: 18px;
    }

    .footer-brand .logo-text {
        font-size: 36px;
        color: #fff;
        margin-left: 10px;
        line-height: 1;
    }

    .footer-brand .logo-text span {
        display: flex;
    }

    .footer-brand .logo-text .tip {
        font-size: 18px;
        line-height: 1;
        color: #AAABB1;
        margin-top: 5px;
    }
    .apple-id-button button {
        padding: 0 20px;
    }
    .nav {
        display: flex
    }

    .header-inner {
        height: 64px
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-mark {
        width: 60px;
    }

    .site-header-menu {
        display: none;
    }

    /* iOS页面PC布局 */
    .ios-main {
        padding: 40px 0;
    }

    .ios-container {
        gap: 40px;
    }

    .page-header {
        margin-bottom: 40px;
    }

    .page-title {
        font-size: 32px;
    }

    .section-card {
        padding: 40px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .section-desc {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* App Store 卡片PC样式 */
    .app-store-card {
        padding: 20px;
        border-radius: 8px;
    }

    .app-icon {
        width: 256px;
        height: 256px;
        border-radius: 12px;
        margin-right: 20px;
    }

    .app-icon-content {
        font-size: 24px;
        width: 256px;
        height: 256px;
    }

    .app-name {
        font-size: 40px;
        margin-right: 12px;
    }

    .age-rating {
        font-size: 12px;
        padding: 2px 8px;
        border-radius: 3px;
    }

    .app-subtitle {
        font-size: 20px;
        margin: 10px 0;
    }

    .app-desc {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .price {
        font-size: 16px;
    }

    .in-app {
        font-size: 20px;
    }

    /* 方法卡片PC样式 */
    .method-card {
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .method-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .method-desc {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .method-btn {
        border-radius: 6px;
        padding: 12px 24px;
        font-size: 16px;
    }

    /* FAQ PC样式 */
    .faq-question {
        padding: 20px;
    }

    .question-text {
        font-size: 16px;
        margin-right: 12px;
    }

    .faq-arrow {
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }

    .faq-answer p {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .site-footer {
        padding: 56px 0
    }

    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between
    }

    .footer-link {
        font-size: 14px
    }

    .footer-links-box {
        width: 50%;
    }

    .ftR ul {
        display: flex;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .ftR ul li span {
        font-size: 14px;
    }

    .ftR ul li {
        margin-right: 15px;
        margin-bottom: 10px;
    }
}

/* 移动端特殊样式 */
@media (max-width: 1025px) {
    .ios-container {
        gap: 0;
    }

    .ios-main {
        padding-top: .2rem;
    }

    .page-header {
        margin-bottom: .2rem;
    }

    .page-title {
        font-size: .2rem;
    }


    .section-card {
        padding: .2rem;
    }

    .section-title {
        font-size: .2rem;
    }

    .section-desc {
        font-size: .14rem;
    }

    .app-store-card {
        padding: .15rem;
        flex-direction: column;
    }

    .app-icon {
        width: .8rem;
        height: .8rem;
    }

    .app-icon-content {
        font-size: .2rem;
        margin-bottom: .1rem;
    }

    .method-card {
        padding: .1rem;
    }

    .app-subtitle {
        font-size: .15rem;
    }

    .app-desc, .in-app {
        font-size: .15rem;
    }

    .app-name {
        font-size: .2rem;
    }

    .age-rating {
        font-size: .14rem;
    }

    .method-title {
        font-size: .2rem;
        margin-bottom: .1rem;
    }

    .method-desc {
        font-size: .14rem;
        margin-bottom: 0;
    }

    .method-btn {
        padding: .12rem .24rem;
        font-size: .14rem;
    }

    .question-text {
        font-size: .14rem;
    }

    .faq-answer p {
        font-size: .14rem;
    }
}

