﻿/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #a8d8ea 0%, #d4e4f7 50%, #c9e4f5 100%);
    min-height: 100vh;
    color: #333; 
}
.copyright {
    width: 100%;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #fff;
    line-height: 20px;
}
/* 主容器 */
.tp-content2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

    /* 欢迎区域 */
    .tp-content2 > div:first-child {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        padding: 5px;
        margin-bottom: 5px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

        .tp-content2 > div:first-child > div:first-child {
            text-align: center;
            color: white;
            font-size: 22px;
            font-weight: 400;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
            float:left;
        }

/* 导航按钮区域 */
.tp-content3 { 
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tpa {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 5px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    text-decoration: none;
    color: #4a9fd8;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .tpa:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        background: white;
        color: #2980b9;
    }

    .tpa img {
        width: 20px;
        height: 20px;
    }


.top { 
    text-align: center;
    font-size: 22px;
    padding-bottom:10px;
}

    .top .textbox {
        display: inline-block;
    }

    .top .textbox2 {
        display: block;
    }

    .top .textbox3 {
        text-align: center
    }

#mydown {
    visibility: hidden;
    display: inline-block;
}

.centerbox { 
}

    .centerbox .centeritem {
        width: 100%;
        /*box-shadow: 1px 1px 9px 1px;*/
    }

    .centerbox .data-item {
        text-align: left;
        /*margin-bottom:5px;*/
        font-weight: bold;
        background-color: #dbe6ef2b;
        text-align:center
    }
        .centerbox .data-item:hover {
            text-align: left;
            /*margin-bottom:5px;*/
            font-weight: bold;
            background-color: #dbe6ef2b;
            text-align: center;
            border: 1px dashed white; 
        }

        .centerbox .data-item .date {
            margin-right: 1px;
            margin-left: 4px;
        }
        .centerbox .data-item .date a { 
           text-decoration:none
        }
        .centerbox .data-item .date a:hover {
            text-decoration: none;
            color:yellow
        }
        .centerbox .data-item .date2 {
            margin-right: 5px
        }
        .centerbox .data-item .weather {
            margin-right: 10px
        }

        .centerbox .data-item .deletebtn {
        }

        .centerbox .data-item .updatebtn {
            margin-right: 10px
        }

    .centerbox .data-text {
        /*background-color:aliceblue;*/
        text-align: left;
        font-size: 18px;
        font-family: '微软雅黑'
    }

#key {
    height: 21px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: transparent;
    outline: none;
    height: 30px;
    width: 200px;
    padding-left: 5px;
}


/*upload*/
/* 此为上传文件样式 
.file-wraps{
    background: orange;
    width: 100px;
    height: 45px;
    position: relative;
    color: white;
    text-align: center;
    line-height: 45px;
}
.file-wraps input{
    position: absolute;
    top: 0;
    bottom: 0;
    bottom: 0;  
    right: 0;
    opacity: 0;
} */
.btn {
    padding: 5px 10px;
    font-size: 20px;
    line-height: 1.5;
    border-radius: 3px;
}
.btn-success {
    background-color: rgb(44 47 48 / 8%);
    border-color: #1c84c6;
    color: #FFFFFF;
    text-decoration: none;
}

@media screen and (max-width:1200px) {
    .centerbox .data-item {
        background-color: #e9c7c747;
        font-size: 15px;
        text-align: right;
        /*margin-bottom:5px;*/
        font-weight: bold;
    }
    .centerbox .data-item:hover {
        background-color: #e9c7c747;
        font-size: 15px;
        text-align: right;
        /*margin-bottom:5px;*/
        font-weight: bold;
        border: 1px dashed white;
    }
}

@media screen and (max-width:980px) {
    .centerbox .data-item {
        background-color: #e9c7c747;
        font-size: 15px;
        text-align: right;
        /*margin-bottom:5px;*/
        font-weight: bold;
    }
}

@media screen and (max-width:650px) {

    .centerbox .data-item {
        background-color: #e9c7c747;
        font-size: 15px;
        text-align: left;
        /*margin-bottom:5px;*/
        font-weight: bold;
    }
    .centerbox .data-item:hover {
        background-color: #e9c7c747;
        font-size: 15px;
        text-align: left;
        /*margin-bottom:5px;*/
        font-weight: bold;
        border: 1px dashed white;
    }
    #addbox{
        text-align: center;
        font-size: 22px;
        padding-bottom: 10px;
        display:none
    }
    .centerbox .data-item .date {
        margin-right: 5px;
        display: none;
    }
    .centerbox .data-item .date2 a{
        margin-left: 9px;  
        text-decoration:none;
    } 
}
/* 表单区域 */
.text-center {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
/*新增*//**/
/* 顶部搜索和类型选择区域 */ 

.file-wraps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.textbox {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 10px;
}

    /* 输入框和选择框通用样式 */
    .inputxt, .textbox input {
        padding: 5px 15px;
        border: 2px solid #d4e9f7;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.3s ease;
        background: white;
    }

        .inputxt:focus, .textbox input:focus {
            outline: none;
            border-color: #5dade2;
            box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
        }

.inputxt {
    min-width: 150px;
}

#key {
    flex: 1;
    min-width: 200px;
    padding: 5px 15px;
    border: 2px solid #d4e9f7;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

/* 自定义滚动条 */
#dataContainer::-webkit-scrollbar {
    width: 8px;
}

#dataContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#dataContainer::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    border-radius: 10px;
}

    #dataContainer::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    }
/* 操作按钮区域 - 一行显示 */
.date2 { 
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.date {
    display: inline-flex;
    align-items: center;
}

    .date a {
        color: #5dade2;
        text-decoration: none;
        padding: 4px 12px;
        background: #e3f2fd;
        border-radius: 6px;
        font-size: 13px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

        .date a:hover {
            background: #5dade2;
            color: white;
        }
/* 删除和更新按钮 */
.deletebtn a {
    background: #ffebee;
    color: #e74c3c;
}

    .deletebtn a:hover {
        background: #e74c3c;
        color: white;
    }

.updatebtn a {
    background: #e1f5fe;
    color: #2196f3;
}

    .updatebtn a:hover {
        background: #2196f3;
        color: white;
    }
/* 数据项样式 - 每项一行显示 */
.centeritem {
    margin-bottom: 5px;
    animation: fadeIn 0.1s ease;
}
  
.data-item {
    background: white;
    border-left: 4px solid #5dade2;
    padding: 2px 5px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.1s ease; 
    flex-direction: column;
    gap: 8px;
}

    .data-item:hover {
        box-shadow: 0 4px 15px rgba(93, 173, 226, 0.2);
        /*border-left-color: #3498db;*/
        border-color: red;
    }