:root {
    --ink: #10233d;
    --text: #333f4d;
    --brand: #0070ff;
    --brand-dark: #0059cc;
    --brand-soft: #eaf2ff;
    --line: #dce8fb;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 40px 16px 64px;
    background: radial-gradient(circle at 50% 0, #f6faff 0, #e9f1fd 55%, #dfe9fa 100%);
    font-size: 16px;
    line-height: 2;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
.page {
    margin: 15px auto;
    padding: 56px 64px 60px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 112, 255, .12), 0 2px 8px rgba(0, 112, 255, .06);
    overflow-wrap: break-word;
}
.page h1 {
    position: relative;
    margin: 0 0 34px;
    padding-bottom: 22px;
    font-size: 29px !important;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    letter-spacing: 2px;
    color: var(--ink);
}
.page h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 72px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0070ff, #6aa8ff);
    transform: translateX(-50%);
}
.page p {
    margin: 10px 0;
    text-indent: 2em;
    text-align: justify;
    line-height: 2.05;
    color: var(--text);
}
.page p.no-indent { text-indent: 0; }
.page h2 {
    margin: 30px 0 10px;
    padding: 3px 14px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--brand);
    text-indent: 0;
    border-left: 4px solid var(--brand);
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand-soft) 0, rgba(234, 242, 255, 0) 85%);
}
.page img {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 20px auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(23, 43, 77, .08);
}
.page p:has(> img) {
    margin: 0;
    text-indent: 0;
    text-align: center;
}
.page ol.materials {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: item;
}
.page ol.materials li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 38px;
    line-height: 1.95;
    text-align: justify;
}
.page ol.materials li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 0;
    top: .42em;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    text-align: center;
    background: var(--brand-soft);
    border-radius: 50%;
}
.page .attach {
    margin-top: 36px;
    padding: 18px 22px;
    background: #f7fafd;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 6px;
}
.page .attach p { margin: 0; line-height: 2; }
.page .attach p + p { margin-top: 4px; }
.page .attach .upload_tit {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(29, 92, 150, .28);
    padding-bottom: 1px;
    transition: color .2s, border-color .2s;
}
.page .attach .upload_tit:hover {
    color: #12406e;
    border-bottom-color: #12406e;
}

@media (max-width: 768px) {
    body { padding: 16px 10px 32px; }
    .page { padding: 28px 20px 32px; border-radius: 8px; }
    .page h1 { font-size: 22px !important; letter-spacing: 1px; margin-bottom: 24px; }
    .page h2 { font-size: 16px; margin-top: 22px; }
    .page p { line-height: 1.95; }
    .page img { max-width: 100%; padding: 4px; }
    .page .attach { padding: 14px 16px; }
}
@media print {
    body { background: #fff; padding: 0; }
    .page {
        max-width: none;
        margin: 0;
        padding: 0;
        border-top: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .page img { max-width: 100%; box-shadow: none; break-inside: avoid; }
    .page h2 { break-after: avoid; }
    @page { size: A4; margin: 20mm 18mm; }
}