/* 公共样式 - 易瑞居 */
/* 主题色: #474df0 */

@font-face {
    font-family: "fgmrt";
    src: url("../font/fgmrt.ttf") format("truetype");
    font-weight: 400;
    font-style: normal
}

* { box-sizing: border-box; }

body {
    font: 14px/1.8 -apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #fff;
}

a { color: #474df0; text-decoration: none; }
a:hover { color: #5b62f7; text-decoration: underline; }
.banner__entry-extra:hover { color: inherit; text-decoration: none; }

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 60px;
}
.navbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
}
.navbar__logo {
    font-family: fgmrt;
    font-size: 24px;
    color: #474df0;
    text-decoration: none;
    white-space: nowrap;
}
.navbar__logo:hover { color: #5b62f7; text-decoration: none; }
.navbar__links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.navbar__links a {
    padding: 6px 14px;
    font-size: 14px;
    color: #555;
    border-radius: 4px;
    transition: all .2s;
    white-space: nowrap;
}
.navbar__links a:hover {
    background: #f5f5ff;
    color: #474df0;
    text-decoration: none;
}
.navbar__links a.active {
    color: #474df0;
    font-weight: 600;
}
/* 移动端菜单按钮 */
.navbar__menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #474df0;
    padding: 4px 8px;
}

/* 页面 Banner */
.page-banner {
    background: #474df0;
    color: #fff;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}
.page-banner::after {
    content: "";
    display: block;
    position: absolute;
    height: 80px;
    bottom: 0;
    width: 150%;
    min-width: 1440px;
    left: 50%;
    /* transform: translateX(-50%);
    background: #fff;
    border-radius: 50% 50% 0 0; */
}
.page-banner h1 {
    font-size: 36px;
    margin: 0 0 12px;
    font-weight: 600;
}
.page-banner p {
    font-size: 18px;
    opacity: 0.85;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 内容区 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* 章节 */
.section {
    margin-bottom: 48px;
}
.section__title {
    font-size: 24px;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #474df0;
    display: inline-block;
}
.section__content {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}
.section__content p {
    margin: 0 0 16px;
}
.section__content h3 {
    font-size: 18px;
    color: #333;
    margin: 24px 0 12px;
}
.section__content ul, .section__content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.section__content li {
    margin-bottom: 8px;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.faq-item__q {
    padding: 16px 20px;
    background: #f9f9ff;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.faq-item__q::after {
    content: "+";
    font-size: 20px;
    color: #474df0;
    font-weight: 400;
    transition: transform .2s;
}
.faq-item.open .faq-item__q::after {
    content: "−";
}
.faq-item__a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all .3s;
    color: #666;
    line-height: 1.8;
}
.faq-item.open .faq-item__a {
    padding: 16px 20px;
    max-height: 500px;
}

/* 相关推荐卡片 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.related-card {
    display: block;
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
    text-align: center;
}
.related-card:hover {
    border-color: #474df0;
    box-shadow: 0 4px 12px rgba(71,77,240,0.1);
    text-decoration: none;
    transform: translateY(-2px);
}
.related-card__icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.related-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.related-card__desc {
    font-size: 13px;
    color: #888;
}

/* APP CTA */
.app-cta {
    background: #f5f5ff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 48px 0;
}
.app-cta h3 {
    font-size: 22px;
    margin: 0 0 12px;
    color: #333;
}
.app-cta p {
    color: #666;
    margin: 0 0 24px;
}
.app-cta__btn {
    display: inline-block;
    padding: 12px 36px;
    background: #474df0;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    transition: background .2s;
}
.app-cta__btn:hover {
    background: #5b62f7;
    color: #fff;
    text-decoration: none;
}

/* Footer */
.site-footer {
    background: #fafafa;
    border-top: 1px solid #eee;
    padding: 40px 24px 24px;
    text-align: center;
}
.site-footer__links {
    margin-bottom: 16px;
}
.site-footer__links a {
    color: #666;
    margin: 0 12px;
    font-size: 13px;
}
.site-footer__links a:hover { color: #474df0; }
.site-footer__copyright {
    color: #999;
    font-size: 12px;
    line-height: 1.8;
}
.site-footer__copyright a { color: #999; }

/* 功能卡片网格（首页用）*/
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.feature-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all .25s;
    text-decoration: none;
    display: block;
}
.feature-card:hover {
    border-color: #474df0;
    box-shadow: 0 8px 24px rgba(71,77,240,0.12);
    transform: translateY(-4px);
    text-decoration: none;
}
.feature-card__icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.feature-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.feature-card__desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.6;
}
.feature-card__link {
    font-size: 14px;
    color: #474df0;
    font-weight: 500;
}

/* APP特色区 */
.highlights {
    background: #f5f5ff;
    padding: 60px 24px;
}
.highlights__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.highlights__title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin: 0 0 40px;
}
.highlights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
}
.highlight-item {
    text-align: center;
    padding: 24px;
}
.highlight-item__icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.highlight-item__title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.highlight-item__desc {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

/* 帮助页步骤 */
.step-list {
    counter-reset: step;
}
.step-item {
    counter-increment: step;
    padding: 20px 20px 20px 60px;
    position: relative;
    margin-bottom: 16px;
    background: #fafafa;
    border-radius: 8px;
}
.step-item::before {
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 28px;
    height: 28px;
    background: #474df0;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 14px;
    font-weight: 600;
}
.step-item h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #333;
}
.step-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 联系方式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.contact-card {
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
}
.contact-card__icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.contact-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.contact-card__value {
    font-size: 14px;
    color: #666;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar__links { display: none; }
    .navbar__links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 4px;
    }
    .navbar__menu-btn { display: block; }
    .page-banner { padding: 100px 16px 60px; }
    .page-banner h1 { font-size: 28px; }
    .page-banner p { font-size: 15px; }
    .container { padding: 40px 16px; }
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
    .feature-card { padding: 20px 16px; }
    .feature-card__icon { font-size: 36px; }
    .highlights__grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .highlights__grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 24px; }
}
