/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 导航栏样式 */
.navigation {
    background-color: #0000ff;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    border: 1px solid #000000;
    margin-bottom: 20px;
}

.navigation a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

.navigation a:hover {
    color: #ffff00;
    text-decoration: underline;
}

/* 滚动字幕样式 */
marquee {
    color: #ff0000;
    font-weight: bold;
    margin-top: 10px;
}

body {
    font-family: "宋体", Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.5;
    background-image: url('https://img.430309.xyz/file/AgACAgUAAyEGAATZTTrbAAMUabZxhduOvSnTr6cPFNHMRWcvuJYAAmsQaxt047hVntk-DFgAAQ4eAQADAgADdwADOgQ.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.container {
    width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffffff;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(255, 153, 204, 0.8);
    border: 1px solid #ffffff;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 1px #000000;
}

.header p {
    font-size: 14px;
    color: #ffffff;
}

#hitokoto {
    font-size: 16px;
    color: #ffff00;
    font-style: italic;
    margin: 10px 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #ffffff;
    text-align: center;
}

/* 个人资料样式 */
.profile {
    background-color: rgba(240, 240, 240, 0.8);
    border: 1px solid #ffffff;
    padding: 20px;
    margin-bottom: 20px;
}

.avatar {
    float: left;
    margin-right: 20px;
}

.avatar img {
    width: 150px;
    height: 150px;
    border: 2px solid #ffffff;
}

.info {
    overflow: hidden;
}

.info h2 {
    font-size: 18px;
    color: #ff0000;
    margin-bottom: 10px;
    font-weight: bold;
}

.info p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #000000;
}

/* 兴趣爱好样式 */
.hobbies {
    background-color: rgba(240, 240, 240, 0.8);
    border: 1px solid #ffffff;
    padding: 20px;
    margin-bottom: 20px;
}

.hobbies h2 {
    font-size: 18px;
    color: #ff0000;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.hobby-tags {
    text-align: center;
    line-height: 2;
}

.tag {
    display: inline-block;
    background-color: #ffff00;
    color: #000000;
    border: 1px solid #000000;
    padding: 5px 10px;
    margin: 5px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
}

.tag:hover {
    background-color: #ff0000;
    color: #ffffff;
    cursor: pointer;
}

/* 作品展示样式 */
.gallery {
    background-color: rgba(240, 240, 240, 0.8);
    border: 1px solid #ffffff;
    padding: 20px;
    margin-bottom: 20px;
}

.gallery h2 {
    font-size: 18px;
    color: #ff0000;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.gallery-list {
    display: table;
    width: 100%;
}

.gallery-item {
    display: table-cell;
    width: 33.333%;
    padding: 10px;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    border: 1px solid #ffffff;
}

/* 友情链接样式 */
.links {
    background-color: rgba(240, 240, 240, 0.8);
    border: 1px solid #ffffff;
    padding: 20px;
    margin-bottom: 20px;
}

.links h2 {
    font-size: 18px;
    color: #ff0000;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.links-list {
    text-align: center;
    line-height: 2;
}

.link-item {
    display: inline-block;
    background-color: #0000ff;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 5px 10px;
    margin: 5px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
}

.link-item:hover {
    background-color: #ff0000;
    color: #ffffff;
}

/* 联系方式样式 */
.contact {
    background-color: rgba(240, 240, 240, 0.8);
    border: 1px solid #ffffff;
    padding: 20px;
    margin-bottom: 20px;
}

.contact h2 {
    font-size: 18px;
    color: #ff0000;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.contact p {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    color: #000000;
}

.contact ul {
    list-style: none;
    text-align: center;
}

.contact li {
    font-size: 14px;
    margin-bottom: 5px;
    color: #000000;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 15px;
    background-color: rgba(255, 153, 204, 0.8);
    border: 1px solid #ffffff;
    color: #ffffff;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    color: #ffff00;
}

/* 链接样式 */
a {
    color: #0000ff;
    text-decoration: underline;
}

a:hover {
    color: #ff0000;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border: 1px solid #000000;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border: 1px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 10px;
    }
    
    .profile {
        display: block;
        text-align: center;
    }
    
    .avatar {
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    .avatar img {
        width: 120px;
        height: 120px;
    }
    
    .info {
        overflow: visible;
    }
    
    .hobby-tags {
        text-align: center;
    }
    
    .tag {
        display: inline-block;
        margin: 3px;
        padding: 3px 8px;
        font-size: 12px;
    }
    
    .gallery-list {
        display: block;
    }
    
    .gallery-item {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .navigation {
        padding: 5px;
    }
    
    .navigation a {
        margin: 0 5px;
        font-size: 12px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .header p {
        font-size: 12px;
    }
    
    #hitokoto {
        font-size: 14px;
        padding: 8px;
    }
    
    .info h2 {
        font-size: 16px;
    }
    
    .info p {
        font-size: 12px;
    }
    
    .hobbies h2,
    .gallery h2,
    .contact h2 {
        font-size: 16px;
    }
    
    .footer p {
        font-size: 12px;
    }
}

/* IE浏览器兼容性 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .hobby-list,
    .gallery-list {
        display: block;
    }
    
    .hobby-item,
    .gallery-item {
        display: inline-block;
        width: 30%;
        margin-right: 5%;
    }
    
    .hobby-item:last-child,
    .gallery-item:last-child {
        margin-right: 0;
    }
}