/*---------- 全局重置 ----------*/
* {
    margin: 0px;
    padding: 0px;
}

/*---------- 页面基础 ----------*/
body {
    background-color: #2a2a2a;/* 深灰背景 */
    max-width: 900px;           /* 页面最大宽度 */
    margin: auto;               /* 水平居中 */
}

/* 所有div默认文字颜色 */
div { color: aliceblue; }


/*---------- 顶部导航栏 ----------*/
.t1 {
    /* 固定定位导航栏 */
    max-width: 900px;
    position: fixed;
    z-index: 99999;
    width: 98%;
    background-color: #2F2F2F25; /* 半透明深灰 */
    box-shadow: 0 5px 5px -5px rgb(0, 0, 0); /* 底部阴影 */
    backdrop-filter: blur(20px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(20px); /* Safari兼容 */
    height: 18%; /* 相对高度 */
}


/* 导航栏装饰条 */
.t1bg {
    height: 4px;
    width: 110%; /* 溢出产生视觉延伸效果 */
    max-width: 900px;
    background-color: #69F6B7; /* 品牌绿色 */
}

/* 网站标题样式 */
.t11 {
    margin-top: 10px;
    float: left; /* 左浮动布局 */
    padding-left: 10px;
    width: 40%; /* 标题区域宽度 */
    border-bottom: 2px solid #69F6B7; /* 下划线效果 */
}

/* 头像样式 */
.tx img {
    float: right; /* 右浮动定位 */
    position: relative; 
    top: 22px;   /* 垂直位置微调 */
    right: 20px; /* 右侧间距 */
    border-radius: 30%; /* 椭圆效果 */
    height: 70px;
    box-shadow: 1px 1px 5px #ffffff; /* 白色微光 */
}

/*---------- 自我介绍区块 ----------*/
.jieshao {
    /* 固定定位的标题区 */
    position: fixed;
    top: 180px;
    width: 100%;
    max-width: 900px;
    z-index: 0;
    font-size: 27px; /* 大号字体 */
}
.jieshao { text-align: center; } /* 文字居中 */


/*---------- 主体内容区 ----------*/
.t2, .t3 {
    position: relative;  
    z-index: 1;
    backdrop-filter: blur(20px); /* 内容区毛玻璃 */
    -webkit-backdrop-filter: blur(20px);
    padding-top: 20px; 
}

/* 主内容区定位 */
.t2 {
    top: 280px; /* 下移避开固定元素 */
    box-shadow: 0 -5px 5px -5px rgb(0, 0, 0); /* 顶部内阴影 */
}

/* 大标题样式 */
.t21 { font-size: 40px; }

/* 内容卡片通用样式 */
.t22, .t23, .player {
    border-radius: 10px;    /* 圆角 */
    width: 90%;             /* 左右留白 */
    margin: auto;           /* 居中 */
    height: 200px;          /* 固定高度 */
    background-repeat: no-repeat;
    background-position: right; /* 背景图右对齐 */
    background-size: auto calc(100% - 40px); /* 自适应高度 */
}

/* 内容卡片1样式 */
.t23 {
    background-color: #77a8841b; /* 半透明青绿背景 */
    margin:-10px auto; /* 负边距重叠效果 */
}

.t23 p, .player p { margin: -10px auto; }


/* 内容卡片2样式 */
.t22 {
    background-color: #10101050; /* 深色半透明 */
    box-shadow: 0 -5px 5px -5px rgb(0, 0, 0); /* 内部阴影 */
    background-image:url(../images/004.png)  /* 装饰图案 */
}
/* 卡片文字默认样式 */
.t22 p, .t23 p, .player p {
    padding: 16px;
    font-size: 20px;
    margin-top: 20px;
}

/* 内容容器 */
.ti {
    box-shadow: 0 5px 5px -7px rgb(0, 0, 0);
    height: 750px; /* 固定内容高度 */
}

/*---------- 页脚 ----------*/
.t24 {
    margin: auto;
    width: 300px; /* 页脚内容宽度 */
}

/* 页脚标题 */
.t24 h5 {
    font-size: 45px;       /* 超大字体 */
    font-weight: 100;      /* 细体字重 */
    color: #ffffff9c;      /* 半透明白 */
}

/*---------- 音乐播放器 ----------*/
.player1 {
    backdrop-filter: blur(5px); /* 局部毛玻璃 */
    -webkit-backdrop-filter: blur(20px);
    border-radius: 10px;   /* 匹配父容器 */
}

.player {
    background-color: rgba(77, 78, 78, 0.2); /* 半透明深灰 */
    background-image: url(../images/1.jpg);  /* 专辑封面 */
    background-size: 100%; /* 背景全尺寸 */
}

/* 歌词文字样式 */
.player p { color: #000000a7; } /* 半透明黑 */

/* 隐藏音频控件默认背景 */
audio::-webkit-media-controls-enclosure {
    background-color: rgba(216, 218, 221, 0.0); 
}

/* ========== 留言板样式 ========== */
.message-board {
    margin: 40px auto;
    width: 90%;
    backdrop-filter: blur(10px);
    background: rgba(40, 40, 40, 0.3);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.message-form {
    border-bottom: 1px solid #69F6B755;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.message-form h3 {
    color: #69F6B7;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.message-form input,
.message-form textarea {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #69F6B733;
    border-radius: 6px;
    color: aliceblue;
    font-size: 16px;
}

.message-form button {
    background: #69F6B7;
    color: #2a2a2a;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.message-form button:hover {
    background: #4FD3A0;
    transform: translateY(-2px);
}

/* 留言列表样式 */
.message-list {
    max-height: 500px;
    overflow-y: auto;
}

.message-item {
    background: rgba(30, 30, 30, 0.4);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 3px solid #69F6B7;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.msg-author {
    color: #69F6B7;
    font-weight: bold;
}

.msg-time {
    color: #888;
    font-size: 0.9em;
}

.msg-content {
    line-height: 1.6;
    color: #ddd;
}


/* 前台卡片展示 */
.card-showcase {
    margin: 50px auto;
    width: 90%;
    max-width: 1200px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.front-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid #69F6B720;
    transition: transform 0.3s ease;
}

.front-card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card-body h3 {
    color: #69F6B7;
    margin: 0 0 10px;
}

.card-body time {
    color: #888;
    font-size: 0.9em;
    display: block;
    margin-top: 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .t1 {
      height: 14%;
    }
    
    .tx img {
      height: 50px;
      right: 10px;
    }
    
    .message-board {
      padding: 15px;
    }
  }