*{
    padding:0;
    margin:0;

}
body{
    background-color: rgba(28, 111, 179, 0.911);
}
h1, h4, p, blockquote {
    color: rgb(246, 248, 250);
}

/*border: 5px darkgray dashed;*/
header {
    background-color: rgba(36, 98, 185, 0.635);
    padding: 20px;
    text-align: center;
    background-image: url(../images/微信图片_20251120211255_242_39-modified.png);
    background-position: 65% 50%;
    background-size:contain;
    background-repeat: no-repeat;
    position: relative;
}
/* 添加半透明遮罩调整整体透明度 */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(16, 71, 134, 0.675); /* 调整遮罩透明度 */
    z-index: 1;
}

/* 确保文字在遮罩上方 */
header h1,
header blockquote {
    position: relative;
    z-index: 2;
}

header h1 {
    color: #98e0f4;
    font-size: 2rem;
    margin-bottom: 10px;
}
header blockquote {
    color: #98e0f4;
    font-style: italic;
    font-size: 1rem;
    margin: 0;
}
nav {
    background-color: rgba(77, 144, 202, 0.762);

    padding: 10px;
    border-radius: 4px;
}

nav li{
    color: rgba(5, 6, 90, 0);
    flex: 1;
    text-align: center;
}

nav a {
    color: rgba(255, 255, 255, 0.757);
    text-decoration: none;
    padding: 12px 0;
    display: block;
    transition: background-color 0.3s;
    border-radius: 5px;
    font-size: 17px;
}

nav ul li a:hover {
    text-decoration:underline;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;

}


main {
    padding: 20px;
    padding-bottom: 60px;
    margin-bottom: 10px;
    background-image: url(../images/迷想リフレイン_waylon1211_202511242340.jpg);
    background-size:cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

.welcome {
    margin-top: 15px;
    margin-bottom: 50px;
    text-align: center;
    line-height: 1.8;
    justify-content: center;
}
 
.welcome h4 {
    margin-bottom: 15px;
    font-size: 25px;
    text-shadow: 0 0 9px rgba(255, 255, 255, 0.8),
                 0 0 18px rgba(255, 255, 255, 0.6),
                 0 0 27px rgba(255, 255, 255, 0.4);
}

.welcome p {
    max-width: 1000px;
    line-height: 1.8;
    margin-left: 15px;
    margin-right: 15px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #afe7f27b;
    border-radius: 8px;
    /* 添加居中样式 */
    margin: 0 auto; /* 水平居中 */
    text-align: center; /* 文字内容居中 */
}

.welcome h3{
    color: rgba(69, 193, 238, 0.757);
}

/* 主题列表容器 */
.message-list {
    margin: 20px 0;
    background: #5d5e5f87;
    padding: 20px;
    border-radius: 8px;
}
.form-group label {
    display: block;
    margin: 5px;
    font-weight: 600;
    color: #85ccead6;
    font-size: 0.8em;
}
.form-group input[type="text"] {
    height: 30px; /* 增加高度 */
    padding: 5px; /* 增加内边距 */
    line-height: 1.5;
    width: 60%; /* 保持100%宽度 */
    box-sizing: border-box;
}
.message-list h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1.1em;
    border-bottom: 1px solid #ffffff6f;
    padding-bottom: 8px;
}

/* 主题表格样式 */
.topics-table {
}

/* 表头样式 */
.table-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1.5fr;
    background: linear-gradient(135deg, #7198c2ae, #0057b3a0);
    color: rgba(255, 255, 255, 0.809);
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1em;
}

/* 表头各项 */
.table-header span {
    text-align: left;
}

/* 主题项样式 */
.topic-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1.5fr;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    transition: background-color 0.2s ease;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-item:hover {
    background-color: #1c5992e1;
}

/* 主题标题样式 */
.topic-title a {
    color: #ffffffe5;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.topic-title a:hover {
    color: #4c6ca3af;
    text-decoration: underline;
}

/* 发布人样式 */
.topic-author {
    color: #e1e1e1;
    font-size: 0.95em;
    font-weight: 500;
}

/* 发布时间样式 */
.topic-time {
    color: #e8e8e8;
    font-size: 0.85em;
    text-align: right;
}
/* 字符计数提示 */
.form-group small {
    color: #6c757d;
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
}

/* 主题详情页面样式 */
.topic-detail {
    background: rgba(96, 96, 96, 0.632);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.topic-header h2 {
    margin-top: 0;
    color: #fcfcfc;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.topic-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.topic-content {
    margin-top: 20px;
    line-height: 1.6;
    color: #2c3e50;
    font-size: 1.1em;
}

/* 回复列表样式 */
.replies-section {
    background: rgba(96, 96, 96, 0.632);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.replies-section h3 {
    margin-top: 0;
    color: #fbfbfb;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

.reply-item {
    border-bottom: 1px solid #6f6f6f8a;
    padding: 20px 0;
}

.reply-item:last-child {
    border-bottom: none;
}

.reply-header {
    color: #00000069;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reply-header strong {
    color: #78bce9f7;
    font-weight: 600;
}

.reply-time {
    color: #f5f5f5;
    font-size: 0.85em;
}

.reply-content {
    line-height: 1.6;
    color: #fdfdfd;
}

.no-replies {
    text-align: center;
    color: #dddddd;
    font-style: italic;
    padding: 40px 20px;
}

/* 回复表单样式 */
.reply-form {
    background: rgba(255, 255, 255, 0.375);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reply-form h3 {
    margin-top: 0;
    color: #000000c9;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}


/* 空状态提示 */
.message-list p {
    text-align: center;
    color: #eaeaea;
    font-style: italic;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.message-form{
    padding: 20px;
    background-color: rgba(132, 135, 137, 0.522);
    border-radius: 5px;
}
.image{
    margin-top: 10px;
    text-align: center;
    
}
/* 添加图片样式限制 */
.image img {
    max-width: 25%; /* 图片最大宽度为容器的80% */
    height: auto; /* 高度自动按比例调整 */
    border-radius: 8px; /* 可选：添加圆角 */
}

.music-player {
    position: fixed; /* 添加这行 */
    bottom: 20px;   /* 添加这行 */
    right: 20px;    /* 添加这行 */
    z-index: 1000;  /* 添加这行 */
}
.music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
}

.music-toggle {
    background: transparent;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin: 0;
    font-family: inherit;
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.music-name {
    color: white;
    font-size: 12px;
    font-style: italic;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
    font-family: inherit;
}

@media (max-width: 768px) {
    .form-group textarea {
        height: 200px;
        min-height: 200px;
    }
}