/* ===== 关于页面专属样式：头像旋转圆环、社交按钮、诗句动画 ===== */
/* reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
}

/*main*/

body {
    width: 100%;
    min-height: 100vh;
    overflow: scroll;
    background: linear-gradient(#000000, #0d0136);
}

.wrapBox {
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
}

.box {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    /*
    -webkit-transition: all 1s;
    -moz-transition: all 1s;
    -o-transition: all 1s;
*/
}

.box01_content {
    position: absolute;
    z-index: 3;
    top: 13%;
    left: 10%;
    width: 80%;
}

.head_div {
    width: 80%;
    margin: 0 auto;
    height: 50%;
}

.cycle_item {
    background: url('../images/cycle.svg') no-repeat;
    width: 400px;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.green_cycle {
    width: 260px;
    height: 260px;
    margin: 0 auto;
    padding-top: 70px;
}

.yellow_cycle {
    display: inline-block;
    width: 240px;
    height: 240px;
    margin: 10px;
}

.blue_cycle {
    width: 220px;
    height: 220px;
    text-align: center;
    margin: 10px auto 10px auto;
}

.green_cycle_img,
.yellow_cycle_img,
.blue_cycle_img {
    position: absolute;
}

.head_img_div {
    position: relative;
    z-index: 2;
    display: inline;
    width: 200px;
    height: 200px;
    margin-top: 7px;
}

.head_img {
    display: inline-block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid pink;
    margin: 7px;
    -webkit-animation: headneon 1.5s ease-in-out infinite alternate;
    -moz-animation: headneon 1.5s ease-in-out infinite alternate;
    animation: headneon 1.5s ease-in-out infinite alternate;
}

@keyframes headneon {
    from {
        box-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff;
    }
    to {
        box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #fff;
    }
}

@keyframes headneon {
    from {
        box-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff;
    }
    to {
        box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #fff;
    }
}

.green_cycle_img {
    animation-name: clockwise;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: normal;
    /*safari & Chrome */
    -webkit-animation-name: clockwise;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-direction: normal;
}

.yellow_cycle_img {
    animation-name: anticlockwise;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: normal;
    /*safari & Chrome */
    -webkit-animation-name: anticlockwise;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-direction: normal;
}

.blue_cycle_img {
    animation-name: clockwise;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: normal;
    /*safari & Chrome */
    -webkit-animation-name: clockwise;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-direction: normal;
}

@keyframes clockwise {
    from {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
    }
}

@-webkit-keyframes clockwise {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes anticlockwise {
    from {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(-360deg);
        -moz-transform: rotate(-360deg);
        -ms-transform: rotate(-360deg);
        -o-transform: rotate(-360deg);
    }
}

@-webkit-keyframes anticlockwise {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(-360deg);
    }
}

.cycle_item a {
    position: absolute;
    display: block;
    border-radius: 25px;
    width: 120px;
    height: 50px;
    left: -50px;
    top: 180px;
}

.github_a {
    background-color: #42c9a3;
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    color: #000;
}

.github_icon {
    background: url('../images/icon_qq.png') no-repeat;
    border-radius: 28px;
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    background-size: cover;
    -moz-background-size: cover;
    left: 10px;
    top: 5px;
}

.github_text,
.weibo_text,
.blog_text {
    width: 50px;
    margin-top: 0;
    left: 50px;
    text-align: right;
    padding: 0 5px;
    position: absolute;
    top: 0;
}

.item_name {
    font-size: 16px;
    line-height: 50px;
    text-align: center;
    color: #fff;
    white-space: nowrap;
}

.weibo_a {
    background-color: #EAC251;
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    color: #000;
}

.weibo_a .weibo_icon {
    background: url('../images/icon_wechat.png');
    border-radius: 35px;
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    background-size: cover;
    -moz-background-size: cover;
    left: 10px;
    top: 5px;
}

.blog_a {
    background-color: #6DB3D9;
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    color: #000;
}

.blog_a .blog_icon {
    background: url('../images/icon_douyin.png');
    display: block;
    width: 32px;
    height: 32px;
    position: relative;
    background-size: cover;
    -moz-background-size: cover;
    left: 15px;
    top: 8px;
}

.box01_content h1,
.box01_content h2,
.box01_content p {
    font-weight: lighter;
    text-align: center;
}

.box01_content .title {
    color: #f7097c;
    font-size: 40px;
    margin-top: 10px;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    text-shadow: 0 0 20px rgba(247, 9, 124, 0.6), 0 0 60px rgba(247, 9, 124, 0.3);
    letter-spacing: 8px;
}

.box01_content .title_h2 {
    color: #f7097c;
    font-size: 30px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 4px;
    font-weight: normal;
    text-shadow: 0 0 20px rgba(247, 9, 124, 0.6), 0 0 60px rgba(247, 9, 124, 0.3);
}

#box01_text {
    width: 100%;
    overflow: hidden;
    position: relative;
    color: #f7097c;
    min-height: 160px;
}

.box01_content .box01_p {
    font-size: 20px;
    font-weight: lighter;
    line-height: 38px;
    -webkit-transition: opacity 0.25s ease;
    -moz-transition: opacity 0.25s ease;
    -ms-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
    opacity: 0;
    cursor: pointer;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(247, 9, 124, 0.5), 0 0 25px rgba(247, 9, 124, 0.2);
}

.box01_content .box01_p:hover {
    font-size: 22px;
}

/* 诗句循环动画 */
.box01_p.visible {
    opacity: 1 !important;
}

.box_bg {
    width: 100%;        /* 图片宽度适应屏幕宽度 */
    height: auto;       /* 高度按比例缩放 */
    max-width: 100%;    /* 防止图片超出父容器 */
    max-height: 100vh;  /* 防止图片高度超过视口高度 */
    display: block;     /* 使图片成为块级元素，便于居中 */
    margin: 0 auto;     /* 图片水平居中 */
    object-fit: cover;  /* 确保图片不变形且完全覆盖容器（即使需要裁剪） */
}

.addpic {
    display: none; /* 默认隐藏图片 */
    position: absolute;
    top: 100%; /* 图片出现在文本下侧 */
    margin-top: 20px; /* 调整图标和文字之间的间距 */
    width: 200px; /* 调整图片大小 */
    height: 200px; /* 根据需要调整图片的高度 */
}

.addpict {
    display: none; /* 默认隐藏图片 */
    position: absolute;
    right: 100%; /* 图片出现在文本下侧 */
    margin-right: 20px; /* 调整图标和文字之间的间距 */
    width: 200px; /* 调整图片大小 */
    height: 200px; /* 根据需要调整图片的高度 */
}
.github_a:hover  .addpict,
.github_a:focus  .addpict {
    display: inline-block; /* 悬停/聚焦时显示图片 */
    border: 3px solid black; /* 添加黑色边框 */
}

.weibo_a:hover  .addpic,
.weibo_a:focus  .addpic {
    display: inline-block; /* 悬停/聚焦时显示图片 */
    border: 3px solid black; /* 添加黑色边框 */
}

.blog_a:hover  .addpict,
.blog_a:focus  .addpict {
    display: inline-block; /* 悬停/聚焦时显示图片 */
    border: 3px solid black; /* 添加黑色边框 */
}
#particles {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* ===== 移动端适配 (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* 头部由 base.css 统一管理，此处不做单独覆盖 */

    /*
     * 方案：桌面原始布局，直接截取中间部分
     * - 所有控件的大小、位置完全不动，跟桌面版一模一样
     * - .box 固定 600px 宽（足够容纳桌面版完整内容）
     * - .wrapBox 作为水平滚动容器，截取中间部分展示
     * - 背景图用 CSS background，随 box 滚动展示不同区域
     */

    /* ---- 水平滚动容器 ---- */
    .wrapBox {
        position: relative;
        width: 100vw;
        height: 100dvh;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .wrapBox::-webkit-scrollbar {
        display: none;
    }

    .box {
        width: 600px;
        height: 100%;
        position: relative;
        overflow: hidden;
        background: #000 url('../images/bg_about.jpg') no-repeat center / cover;
    }

    .box_bg {
        display: none;
    }

    /* 所有内部元素保持桌面版原始样式，代码里已有，不做任何覆盖 */

    /* 移动端点击按钮显示二维码：:focus 由 tabindex=0 触发 */
    .addpic, .addpict {
        pointer-events: none; /* 防止二维码图片拦截点击，导致按钮失焦 */
    }
}
