/*
|--------------------------------------------------------------------------
| 基础页面
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #263238;
    background: #f1f5f9;
    font-family:
        "Microsoft YaHei",
        "PingFang SC",
        Arial,
        sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

.guide-page {
    width: calc(100% - 24px);
    max-width: 900px;
    margin: 20px auto;
}

/*
|--------------------------------------------------------------------------
| 顶部标题
|--------------------------------------------------------------------------
*/

.guide-header {
    padding: 28px 30px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #1677c8,
            #35a3df
        );
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(22,119,200,.18);
}

.guide-header h1 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1.4;
}

.guide-header p {
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: 16px;
}

/*
|--------------------------------------------------------------------------
| 内容卡片
|--------------------------------------------------------------------------
*/

.guide-card {
    margin-top: 16px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid #e3eaf1;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(31,51,73,.05);
}

.guide-card h2 {
    margin: 0 0 13px;
    padding-left: 11px;
    color: #1677c8;
    border-left: 4px solid #1677c8;
    font-size: 20px;
    line-height: 1.4;
}

.guide-card h3 {
    margin: 0 0 3px;
    color: #263238;
    font-size: 16px;
}

.guide-card p {
    margin: 7px 0;
}

.guide-muted {
    color: #667784;
}

/*
|--------------------------------------------------------------------------
| 特点
|--------------------------------------------------------------------------
*/

.guide-features {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.guide-features li {
    position: relative;
    padding: 9px 10px 9px 32px;
    color: #405464;
    background: #f5f9fc;
    border-radius: 5px;
}

.guide-features li::before {
    content: "✓";
    position: absolute;
    top: 9px;
    left: 11px;
    color: #13a36e;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| 网址复制
|--------------------------------------------------------------------------
*/

.url-copy-box {
    display: flex;
    align-items: stretch;
    margin-top: 13px;
    overflow: hidden;
    background: #f5f9fd;
    border: 1px solid #bed9ee;
    border-radius: 6px;
}

.url-copy-box code {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    color: #075f9f;
    font-family:
        Consolas,
        Monaco,
        monospace;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: normal;
}

.copy-button {
    flex: none;
    min-width: 100px;
    padding: 0 16px;
    color: #fff;
    background: #1677c8;
    border: 0;
    cursor: pointer;
    font-size: 14px;
}

.copy-button:hover {
    background: #0e66ad;
}

.guide-example {
    margin-top: 13px;
    padding: 11px 13px;
    color: #596b78;
    background: #fffbea;
    border-left: 4px solid #f0b429;
}

.guide-example a {
    color: #1677c8;
    overflow-wrap: anywhere;
}

/*
|--------------------------------------------------------------------------
| 使用步骤
|--------------------------------------------------------------------------
*/

.guide-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-steps li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px dashed #dce4ea;
}

.guide-steps li:last-child {
    border-bottom: 0;
}

.step-number {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    background: #1677c8;
    border-radius: 50%;
    font-weight: 700;
}

.guide-steps p {
    margin: 0;
    color: #60717d;
}

.guide-steps code {
    padding: 1px 5px;
    color: #d73535;
    background: #fff0f0;
    border-radius: 3px;
}

/*
|--------------------------------------------------------------------------
| 常用入口
|--------------------------------------------------------------------------
*/

.entry-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.entry-item {
    display: flex;
    min-height: 95px;
    padding: 15px;
    flex-direction: column;
    justify-content: center;
    color: #263238;
    background: #f7fafc;
    border: 1px solid #dce7ef;
    border-radius: 6px;
    text-decoration: none;
    transition: .2s ease;
}

.entry-item:hover {
    color: #1677c8;
    background: #eef7ff;
    border-color: #9bc9e9;
    transform: translateY(-2px);
}

.entry-item strong {
    color: #1677c8;
    font-size: 17px;
}

.entry-item span {
    margin-top: 4px;
    color: #6d7c87;
    font-size: 13px;
}

/*
|--------------------------------------------------------------------------
| 注意事项和底部
|--------------------------------------------------------------------------
*/

.guide-notice {
    background: #fffdf5;
    border-color: #f1dfaa;
}

.guide-notice h2 {
    color: #bb7310;
    border-left-color: #e7a42b;
}

.guide-footer {
    padding: 18px 12px 24px;
    color: #86939c;
    font-size: 13px;
    text-align: center;
}

.guide-footer a {
    margin-right: 8px;
    color: #1677c8;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| 复制提示
|--------------------------------------------------------------------------
*/

.copy-message {
    position: fixed;
    bottom: 25px;
    left: 50%;
    padding: 9px 18px;
    color: #fff;
    background: rgba(0,0,0,.78);
    border-radius: 5px;
    opacity: 0;
    transform: translate(-50%, 15px);
    pointer-events: none;
    transition: .2s ease;
    z-index: 9999;
}

.copy-message.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/*
|--------------------------------------------------------------------------
| 手机自适应
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 768px) {

    body {
        font-size: 14px;
        background: #fff;
    }

    .guide-page {
        width: 100%;
        margin: 0;
    }

    .guide-header {
        padding: 20px 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .guide-header h1 {
        font-size: 22px;
    }

    .guide-header p {
        font-size: 14px;
    }

    .guide-card {
        margin-top: 10px;
        padding: 17px 14px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .guide-card h2 {
        font-size: 18px;
    }

    .guide-features {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .url-copy-box {
        flex-direction: column;
    }

    .url-copy-box code {
        padding: 12px;
        font-size: 13px;
    }

    .copy-button {
        width: 100%;
        min-height: 42px;
    }

    .entry-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .entry-item {
        min-height: 75px;
    }

    .guide-footer {
        padding-bottom: 20px;
    }
}