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

body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #c5dff0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.55) 0, transparent 42%),
        radial-gradient(circle at 88% 8%, rgba(91, 143, 212, 0.22) 0, transparent 38%),
        linear-gradient(180deg, #d6eaf8 0%, #b9d6ee 55%, #a8cce8 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    color: #333;
    text-decoration: none;
}

img {
    border: 0;
    display: block;
}

.wrap {
    width: 1000px;
    margin: 0 auto;
}

/* ----- 顶栏 ----- */
.top {
    height: 60px;
    background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
    border: 2px solid #7aa8d6;
    border-bottom: none;
    box-sizing: border-box;
    box-shadow: 0 2px 0 rgba(61, 122, 181, 0.15);
    position: relative;
}

.top::before,
.top::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #5b8fd4;
    pointer-events: none;
}

.top::before {
    left: 6px;
    top: 6px;
    border-right: 0;
    border-bottom: 0;
}

.top::after {
    right: 6px;
    top: 6px;
    border-left: 0;
    border-bottom: 0;
}

.logo {
    float: left;
    height: 56px;
    line-height: 56px;
    padding-left: 18px;
    font-weight: bold;
    color: #2f5f96;
    letter-spacing: 1px;
}

.logo::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235b8fd4'%3E%3Cpath d='M12 3l2.4 4.9 5.4.8-3.9 3.8.9 5.4L12 15.9 7.2 18l.9-5.4L4.2 8.7l5.4-.8L12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav {
    float: right;
    padding-right: 4px;
}

.nav a {
    float: left;
    padding: 0 18px;
    height: 56px;
    line-height: 56px;
    color: #3a6ea5;
    transition: background 0.2s, color 0.2s;
}

.nav a:hover {
    background: #dceaf8;
}

.nav a.on {
    background: linear-gradient(180deg, #6ba3d4 0%, #5b8fd4 100%);
    color: #fff;
}

.nav a .ico {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
}

.nav a .ico svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ----- Banner 画框 ----- */
.banner {
    position: relative;
    padding: 8px;
    background: linear-gradient(135deg, #8eb8e0, #5b8fd4 40%, #3d7ab5);
    box-sizing: border-box;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px dashed rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 1;
}

.banner img {
    width: 984px;
    display: block;
    border: 2px solid #fff;
    box-sizing: border-box;
}

/* ----- 主区 ----- */
.main {
    background: linear-gradient(to right, #5f9ad0 0px, #6ba3d4 260px, #ffffff 260px, #f7fbfe 1000px);
    border: 2px solid #7aa8d6;
    border-top: none;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(61, 122, 181, 0.18);
}

.side {
    float: left;
    width: 260px;
    background: transparent;
    padding: 22px 20px;
    color: #fff;
    box-sizing: border-box;
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px auto;
    padding: 4px;
    background: linear-gradient(145deg, #fff, #cfe3f6);
    border: 3px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 6px 14px rgba(0, 0, 0, 0.18);
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.name {
    text-align: center;
    font-weight: bold;
    margin: 12px 0 6px;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.side .tag {
    display: block;
    width: fit-content;
    margin: 0 auto 12px;
    padding: 2px 10px;
    font-size: 12px;
    color: #5b8fd4;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
}

.info {
    padding: 0;
    margin: 0 0 12px;
    list-style: none;
}

.info li {
    list-style: none;
    margin: 0 0 9px;
    padding-left: 22px;
    position: relative;
    line-height: 1.45;
}

.info li .ico {
    position: absolute;
    left: 0;
    top: 2px;
    width: 14px;
    height: 14px;
}

.info li .ico svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.side .name,
.side a,
.side li,
.side p {
    color: #fff;
}

.side > p {
    margin: 0;
    padding: 10px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.12);
    border: 1px dashed rgba(255, 255, 255, 0.45);
    border-radius: 6px;
}

.content {
    float: right;
    width: 736px;
    padding: 22px 24px 28px;
    background: transparent;
    box-sizing: border-box;
}

.content .intro {
    text-indent: 2em;
    line-height: 24px;
    margin: 0 0 10px 0;
}

.info.dark,
.info.dark li {
    color: #333;
}

.info.dark li::marker {
    color: #5b8fd4;
}

.hobby {
    height: 80px;
    line-height: 80px;
    text-align: center;
    background: #6ba3d4;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.grid3 .pic.wait {
    height: 150px;
    line-height: 150px;
    text-align: center;
    background: #eaeaea;
    color: #888;
}

.grid {
    width: 720px;
}

.grid .item {
    float: left;
    width: 220px;
    margin: 10px;
    background: #eaeaea;
}

.grid .item img {
    width: 220px;
    height: 130px;
    display: block;
    object-fit: cover;
}

.grid .cap {
    text-align: left;
    font-size: 12px;
    margin-top: 6px;
    color: #333;
}

/* ----- 章节框 ----- */
.section {
    margin: 0 0 22px 0;
    padding: 14px 14px 16px;
    background: linear-gradient(180deg, #f9fcff 0%, #eef5fb 100%);
    border: 2px solid #b7d0e8;
    border-radius: 8px;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.section::before,
.section::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #5b8fd4;
}

.section::before {
    left: 6px;
    top: 6px;
    border-right: 0;
    border-bottom: 0;
}

.section::after {
    right: 6px;
    bottom: 6px;
    border-left: 0;
    border-top: 0;
}

.section h2,
.content > h2,
.contact-box h2 {
    font-size: 18px;
    margin: 0 0 12px;
    padding: 6px 10px;
    color: #2f5f96;
    background: linear-gradient(90deg, #d6eaf8 0%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section h2 .ico,
.content > h2 .ico,
.contact-box h2 .ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.section h2 .ico svg,
.content > h2 .ico svg,
.contact-box h2 .ico svg {
    width: 18px;
    height: 18px;
    fill: #5b8fd4;
}

.content > p {
    margin: 0 0 14px;
    color: #555;
    line-height: 1.7;
}

.two {
    width: 100%;
}

.two .left {
    float: left;
    width: 320px;
    background: #e8f1f9;
    padding: 6px;
    border: 2px solid #9bbfe0;
    border-radius: 6px;
    box-sizing: border-box;
    box-shadow: 3px 3px 0 rgba(91, 143, 212, 0.25);
}

.two .left img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 3px;
}

.two.flip .left {
    float: right;
}

.two.flip .right {
    float: left;
}

.two .right {
    float: right;
    width: 300px;
    min-height: 200px;
    line-height: 22px;
    padding: 8px 4px;
    box-sizing: border-box;
}

.two .right p {
    text-indent: 2em;
    margin: 0 0 8px 0;
    color: #444;
}

.grid3 {
    width: 720px;
}

.grid3 .item {
    float: left;
    width: 220px;
    margin: 10px;
}

.grid3 .pic {
    width: 220px;
    height: 280px;
    background: #eaeaea;
    overflow: hidden;
}

.grid3 .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content a {
    color: #3a6ea5;
    border-bottom: 1px dashed #7aa8d6;
}

.content a:hover {
    color: #5b8fd4;
}

/* ----- 作品网格画框 ----- */
.grid4 {
    width: 100%;
    margin-top: 10px;
}

.grid4 .item {
    float: left;
    width: 148px;
    margin: 0 16px 20px 0;
    transition: transform 0.2s;
}

.grid4 .item:hover {
    transform: translateY(-4px);
}

.grid4 .item:nth-child(4n) {
    margin-right: 0;
}

.grid4 .pic {
    width: 148px;
    height: 228px;
    overflow: hidden;
    background: #f5f5f5;
    padding: 5px;
    border: 2px solid #8eb4d8;
    border-radius: 6px;
    box-sizing: border-box;
    box-shadow: 3px 3px 0 rgba(91, 143, 212, 0.28);
    position: relative;
}

.grid4 .pic::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(91, 143, 212, 0.35);
    pointer-events: none;
    border-radius: 2px;
}

.grid4 .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.grid4 .cap {
    text-align: center;
    font-size: 12px;
    margin-top: 8px;
    color: #2f5f96;
    font-weight: bold;
}

.grid4 .cap::before {
    content: "◆";
    color: #5b8fd4;
    margin-right: 4px;
    font-size: 10px;
}

.work-full {
    width: 680px;
    margin: 10px 0;
    background: #eaeaea;
}

.work-full img {
    width: 680px;
    height: auto;
    display: block;
}

.two .left.tall img {
    height: 360px;
}

.grid3 .cap {
    text-align: left;
    font-size: 12px;
    margin-top: 6px;
    color: #333;
}

.grid2 {
    width: 700px;
}

.grid2 .item {
    float: left;
    width: 340px;
    margin: 10px 10px 10px 0;
}

.grid2 .item:last-child {
    margin-right: 0;
}

.grid2 .pic {
    width: 340px;
    height: 200px;
    background: #eaeaea;
    overflow: hidden;
}

.grid2 .pic img {
    width: 340px;
    height: 200px;
    object-fit: cover;
}

.post {
    padding: 15px 0;
    border-top: 1px solid #ddd;
}

.post:first-child {
    border-top: 0;
}

.post .thumb {
    float: left;
    width: 100px;
    height: 140px;
    background: #eaeaea;
    margin-right: 10px;
}

.post .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post .text {
    float: right;
    width: 580px;
}

.post .title {
    font-weight: bold;
    margin-bottom: 6px;
}

.post .time {
    color: #888;
    font-size: 12px;
}

.contact-only {
    width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
}

.contact-only h2 {
    margin: 0 0 10px 0;
}

.contact-only > p {
    margin: 0 0 20px 0;
    color: #555;
}

/* ----- 联系表单框 ----- */
.contact-box {
    padding: 18px 18px 20px;
    background: linear-gradient(180deg, #f9fcff 0%, #eef5fb 100%);
    border: 2px solid #b7d0e8;
    border-radius: 8px;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.contact-box::before,
.contact-box::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #5b8fd4;
}

.contact-box::before {
    left: 6px;
    top: 6px;
    border-right: 0;
    border-bottom: 0;
}

.contact-box::after {
    right: 6px;
    bottom: 6px;
    border-left: 0;
    border-top: 0;
}

.contact-ways {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.contact-ways .way {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #9bbfe0;
    border-radius: 6px;
    color: #2f5f96;
    box-shadow: 2px 2px 0 rgba(91, 143, 212, 0.2);
}

.contact-ways .way .ico {
    width: 16px;
    height: 16px;
}

.contact-ways .way .ico svg {
    width: 16px;
    height: 16px;
    fill: #5b8fd4;
}

.contact-form {
    display: grid;
    grid-template-columns: 4em 1fr;
    column-gap: 10px;
    row-gap: 14px;
    align-items: start;
    max-width: 520px;
    margin-top: 8px;
    padding: 14px;
    background: #fff;
    border: 1px dashed #9bbfe0;
    border-radius: 6px;
}

.contact-form label {
    text-align: right;
    line-height: 32px;
    white-space: nowrap;
    color: #3a6ea5;
}

.contact-form .txt,
.contact-form .area {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #9bbfe0;
    border-radius: 4px;
    background: #f7fbfe;
}

.contact-form .txt:focus,
.contact-form .area:focus {
    outline: none;
    border-color: #5b8fd4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91, 143, 212, 0.15);
}

.contact-form .txt {
    height: 32px;
    padding: 2px 8px;
}

.contact-form .area {
    height: 140px;
    padding: 8px;
    resize: vertical;
}

.contact-form .form-actions {
    grid-column: 2;
    display: flex;
    gap: 10px;
}

.btn {
    background: linear-gradient(180deg, #6ba3d4 0%, #5b8fd4 100%);
    color: #fff;
    border: 0;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 0 #3d7ab5;
}

.btn:hover {
    filter: brightness(1.05);
}

.btn.gray {
    background: linear-gradient(180deg, #eee 0%, #ddd 100%);
    color: #333;
    box-shadow: 0 2px 0 #bbb;
}

/* ----- 页脚 ----- */
.footer {
    clear: both;
    background: linear-gradient(180deg, #4a8bc4 0%, #3d7ab5 100%);
    color: #fff;
    margin: 18px auto 28px;
    width: 1000px;
    box-sizing: border-box;
    padding: 0 20px;
    border: 2px solid #2f6a9e;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 18px rgba(61, 122, 181, 0.25);
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 6px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.footer .wrap {
    padding: 16px 0;
}

.foot-logo {
    float: left;
    width: 52px;
    height: 52px;
    margin-right: 14px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.foot-logo img {
    width: 52px;
    height: 52px;
}

.foot-text {
    float: left;
    width: 900px;
}

.foot-text h3 {
    font-size: 16px;
    margin: 4px 0 6px 0;
    color: #fff;
}

.foot-text p {
    margin: 0;
    line-height: 22px;
    color: #e8f3fb;
}

.clr:after {
    content: "";
    display: block;
    clear: both;
    height: 0;
}
