/* ================ reset 样式 start  ================ */
* {
    margin: 0;
    padding: 0;
    font-family: "微软雅黑";
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
body, ul, li, h1, h2, h3, h4, h5, h6, p, form, dl, dt, dd {
    margin: 0px;
    padding: 0px;
    font-size: 14px;
    font-weight: normal;
}
img {
    border-style: none;
}
li {
    list-style: none;
}
a {
    text-decoration: none
}
html, body {
    background: #fff;
    height: 100%;

}


input[type="button"], input[type="submit"], input[type="reset"] {
    -webkit-appearance: none;
    outline: 0;
}

textarea {
    -webkit-appearance: none;
}

/* ================ reset 样式 end  ================ */


.inner-center {
    width: 1000px;
    margin: 0 auto;
 
}

.main {
    padding-top: 5%;
    min-height: 100%;
   
}
.content-inside{
   padding-bottom: 60px;
}
.footer {
    height: 60px;
    text-align: center;
    margin-top: -60px; 
    /* position: relative;
    margin-top: -100px; 
    clear:both; */
}
/* logo start  */
.logo-box {
    display: flex;
    overflow: hidden;
    margin-left: 250px;
    align-items: center;
}
.logo-left {
    position: relative;
    width: 125px;
    height: 121px;
    cursor: pointer;
}
.logo-right {
    padding-left: 36px;
    font-size: 36px;
    color: rgba(0, 39, 102, 1);
    font-family: SourceHanSansSC-regular;
}
/* logo end  */


/* 搜索框 start */
.search-section {
    margin-top: 14px;
    margin-bottom: 40px;
}
.search-section {
    position: relative;
    display: flex;
}
.search-left {
    display: flex;
    width: 877px;
    height: 54px;
    line-height: 20px;
    border: 1px solid rgba(217, 217, 217, 0.96);
}
.search-logo {
    width: 40px;
    align-items: center;
    justify-content: center;
    background: url("./img/scgoogle.png") center center no-repeat;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: alpha(opacity=20);
    -moz-opacity: 0.2;
    -khtml-opacity: 0.2;
    opacity: 0.2;
    cursor: pointer;
}
.search-logo:hover {
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    -o-filter: grayscale(0%);
    filter: alpha(opacity=100);
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1;
}
.search-methods {
    display: none;
    position: absolute;
    left: 0;
    top: 54px;
    width: 155px;
    border: 1px solid rgba(217, 217, 217, 0.96);
    background-color: #fff;
}
.search-methods li {
    padding-left: 39px;
    background: url("./img/scgoogle.png") 10px no-repeat;
    overflow: hidden;
    height: 34px;
    line-height: 34px;
    color: #545454;
    cursor: pointer;
}
.search-logo.baidu, li.baidu {
    background-image: url("./img/scbaidu.png");
}
.search-logo.bing, li.bing {
    background-image: url("./img/scbing.png");
}
.search-logo.sogou, li.sogou {
    background-image: url("./img/scsogou.png");
}
.search-logo.wangpan, li.wangpan {
    background-image: url("./img/scwangpan.png");
}
.search-logo.so, li.so {
    background-image: url("./img/scso.png");
}
.search-logo.google, li.google {
    background-image: url("./img/scgoogle.png");
}

.search-methods .search-item:hover {
    background-color: #f0f0f0;
}

.search-result {
    display: none;
    position: absolute;
    width: 837px;
    top: 55px;
    left: 40px;
    border: 1px solid rgba(187, 187, 187, 1);
    background-color: #fff;
}
.result-item {
    height: 34px;
    line-height: 34px;
    padding-left: 15px;
}
.result-item.active {
    background: #F0F0F0;
}
.result-item:hover {
    background-color: #eee;
    cursor: pointer;
}

.input-wrap {
    position: relative;
    flex: 1;
}
.input-wrap .search-input {
    height: 52px;
    width: 100%;
    outline: 0;
    border: 0;
    font-size: 16px;
    padding-left: 15px;
}
/* .input-wrap .search-input:focus{
	border-style:solid;
	border-color: #FDA31E 96%;
	box-shadow: 0 0 10px #FDA31E;
    } */
/* .search-left:focus{
    border-style:solid;
    border-color: #FDA31E 96%;
    box-shadow: 0 0 10px #FDA31E;
    } */
.input-wrap .clear-keyword {
    display: none;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #d2d2d2;
    font-size: 30px;
}

.search-submit {
    width: 123px;
    height: 54px;
    line-height: 26px;
    /* background: url("./img/search.png") #1890ff 48px center no-repeat; */
    background-color: #1890FF;
    /* background-image: url("./img/search.png"); 
    background-size: 48px; */
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: 35px 35px;
    background-size: 35px 35px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    font-family: Roboto;
    border: 1px solid #1890ff;
    cursor: pointer;
    background: linear-gradient(90deg,#1890FF,#455bfb);
}

/* 搜索框 end */
/*  导航内容 start  */
.nav-content {
    overflow: hidden;
}
/*  导航内容 end  */


/*内容区域*/

/*-----------------------------简洁版样式定义- 开始---------------------------------------------------*/

.jj-list {
    width: 33.33%;
    float: left;
    margin-bottom: 30px;
    padding-right: 16px;
}
.jj-list:nth-of-type(3n) {
    padding-right: 0;
}
.jj-list-tit {
    font-size: 16px;
    line-height: 25px;
    color: rgba(49, 70, 89, 1);
    font-weight: bold;
}
.jj-list-con {
    overflow: hidden;
    margin: 0 auto;

}
.jj-list-con li {
    box-sizing: border-box; /*以IE盒子模型的width为标准*/
    padding: 1px 1px; /*设置div的内边距*/
    width: 33.33%; /*div等分成4部分*/
    float: left;
    transform-origin: center top;
}

.jj-list-con li:hover {
    animation: swing 2s linear 0s 1 forwards
}
@keyframes swing {
    0%, 100% {
        transform: perspective(200px) rotateX(0);
    }
    20% {
        transform: perspective(200px) rotateX(-45deg);
    }
    40% {
        transform: perspective(200px) rotateX(45deg);
    }
    50% {
        transform: perspective(200px) rotateX(-25deg);
    }
    60% {
        transform: perspective(200px) rotateX(25deg);
    }
    70% {
        transform: perspective(200px) rotateX(-5deg);
    }
    80% {
        transform: perspective(200px) rotateX(5deg);
    }
    90% {
        transform: perspective(200px) rotateX(-3deg);
    }
    95% {
        transform: perspective(200px) rotateX(3deg);
    }
}

.jj-list-link {
    display: block;
    background: rgba(230, 247, 255, 0.96);
    color:rgba(49, 70, 89, 1);
    font-size: 13px;
    text-align: center;
    line-height: 44px;
    transition: all 0.2s;
    border-radius: 2px;
}
.jj-list-link:hover {
    background: #1890FF 100%;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

/*-----------------------------简洁版样式定义- 结束---------------------------------------------------*/
/* ===== 以下为新增的自定义样式 ===== */

/* 原有按钮样式（已在 index.html 中定义，现移至此处） */
.btn {
    margin: 20px 1px;
    width: 80px;
    background: #fff;
}
.content {
    margin: 10px auto;
    display: none;
}
.btn.active {
    background-color: rgba(230, 247, 255, 0.96);
}
.content.show {
    display: block;
}

/* ===== 导航卡片网格布局 ===== */
.nav-content .jj-list-con {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 固定三列，每列等宽 */
    gap: 12px;
    padding: 10px 0;
    list-style: none;
}

.nav-content .jj-list-con li {
    display: flex !important;
    align-items: center;
    width: auto !important;        /* 覆盖外部 width: 33.33% */
    float: none !important;         /* 覆盖外部 float: left */
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 12px !important; /* 统一内边距，覆盖外部 padding: 1px */
    margin: 0;
    transition: all 0.3s ease;
    min-width: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.nav-content .jj-list-con li:hover {
    background: #1890ff;            /* 更深的蓝色 */
    border-color: #1890ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(24,144,255,0.3);
}

/* 悬停时卡片文字效果 */
.nav-content .jj-list-con li:hover a {
    color: #ffffff !important;      /* 文字变为白色 */
    font-size: 16px;                /* 适当放大 */
    font-weight: 600;               /* 加粗 */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* 增加阴影 */
}

.nav-content .jj-list-con li a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    text-decoration: none;
    margin-left: 8px;
    font-size: 14px;
}

.nav-content .jj-list-con li a:hover {
    color: #1890ff;
}

/* 编辑模式下的按钮样式优化 */
.nav-content .jj-list-con li button {
    margin-left: 6px;
    flex-shrink: 0;
    padding: 2px 6px;
    border: 1px solid #d9d9d9;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.8;
    transition: all 0.2s;
}

.nav-content .jj-list-con li button:hover {
    opacity: 1;
    background: #f0f0f0;
    border-color: #1890ff;
}

/* 图标样式微调 */
.nav-content .jj-list-con li iconify-icon {
    flex-shrink: 0;
    color: #666;
}

/* 新增工具栏样式 */
.toolbar {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 10px;
    padding: 0 20px;
}
.toolbar button {
    padding: 6px 12px;
    background: #f0f2f5;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.toolbar button:hover {
    background: #e6f7ff;
    border-color: #1890ff;
}
.edit-mode-btn.active {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

/* 编辑模式下显示的按钮 */
.edit-cat-btn, .edit-link-btn, .del-cat-btn, .del-link-btn, .add-link-btn {
    margin-left: 8px;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    opacity: 0.7;
    vertical-align: middle;
}
.edit-cat-btn:hover, .edit-link-btn:hover, .del-cat-btn:hover, .del-link-btn:hover, .add-link-btn:hover {
    opacity: 1;
    background: #f0f0f0;
}
.add-cat-btn {
    display: block;
    margin: 20px auto;
    padding: 8px 16px;
    background: #52c41a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.add-cat-btn:hover {
    background: #389e0d;
}

/* 隐藏文件上传控件 */
#import-file {
    display: none;
}

/* 登录按钮样式 */
#loginBtn {
    background: #52c41a;
    color: white;
    border: none;
}
#loginBtn.logged-in {
    background: #faad14;
}

/* 日历样式 */
#calendar-container {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-header button {
    padding: 5px 15px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.calendar-header button:hover {
    background: #40a9ff;
}
.calendar-weekdays, .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}
.calendar-weekdays div {
    font-weight: bold;
    padding: 10px;
    background: #f5f5f5;
}
.calendar-day {
    border: 1px solid #f0f0f0;
    padding: 10px;
    cursor: pointer;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
}
.calendar-day:hover {
    background: #e6f7ff;
}
.calendar-day.has-note {
    background-color: #d9f7be; /* 有记事的高亮色 */
    border-color: #52c41a;
}
/* 节气样式 - 绿色 */
.calendar-day.solar-term .lunar-date {
    color: #52c41a;
    font-weight: 500;
}
/* 节假日样式 - 红色 */
.calendar-day.holiday .lunar-date {
    color: #f5222d;
    font-weight: 500;
}
/* 有记事的日期同时是节日时，保留节日颜色但加个标记 */
.calendar-day.has-note.holiday {
    background-color: #ffd6e7; /* 浅红底 */
}
.calendar-day.has-note.solar-term {
    background-color: #d9f7be; /* 浅绿底 */
}
.festival {
    font-size: 11px;
    color: #f5222d;
    margin-top: 2px;
}
.solar-date {
    font-size: 18px;
    font-weight: bold;
}
.lunar-date {
    font-size: 12px;
    color: #8c8c8c;
}

/* 记事弹窗 */
.note-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.note-modal.show {
    display: flex;
}
.note-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
}
.note-modal-content textarea {
    width: 100%;
    height: 200px;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-family: monospace;
}
.note-modal-content button {
    margin-right: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.note-save {
    background: #52c41a;
    color: white;
}
.note-cancel {
    background: #f0f2f5;
}

