@font-face {
    font-family: 'Hiragino Kaku Gothic Pro';
    src: local('Hiragino Kaku Gothic Pro W3'), url('Hiragino Kaku Gothic Pro W3.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Segoe UI Symbol';
    src: local('Segoe UI Symbol'), url('seguisym.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/*预定义*/
h1 {
    text-align: center;
    font-size: 150%;
    color: #333;
    padding: 0.5em 0;
    background-color: #f7f7f7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

ul {
    margin-right: 0px;
    margin-left: 32px;
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 0px;
}
p {
    text-indent: 2em;
    margin:4px auto;
}
a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease-in-out;
}

a:hover, a:focus {
    color: #0056b3;
    text-decoration: underline;
}

/*----------导航------------*/
/*原索引 (不展示)*/
div.index-all {display: none;}
div.readertdetaillink {display: none;}
/*导航框*/
.top-navi-level, .bottom-navi {
    text-align: center;
    margin: 12px 0;
    padding: 8px 0;
    background-color: #fafafa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
span.sep-navi {margin-left: 4px; margin-right: 4px; color: black; font-size: 90%;}
div.bottom-navi {
	margin: 12px 0px 6px 0px;
	padding: 3px 0px;
	border-top: 1px dotted #3c4457;
	border-bottom: 1px dotted #3c4457;/*#ef8b14; #8470FF #ef8b14*/
	text-align:center;
	color:#3c4457;
}
/*导航链接*/
div.bottom-navi a:link {color: grey;}
div.bottom-navi a:hover {background:yellow;}
div.bottom-navi a:visited {color: grey}
/*导航链接 (多级) */
div.top-navi-level a:link {color: #7c0000;}
div.top-navi-level a:hover {background: yellow;}
div.top-navi-level a:visited {color: #7c0000}
div.top-navi-level span.navi-item-entry a:link {color: #C30A50;}
div.top-navi-level span.navi-item-entry a:hover {background: yellow;}
div.top-navi-level span.navi-item-entry a:visited {color: #C30A50}
span.navi-item{
    margin: 0px 0px 0px 0px;
}
span.navi-item-entry{
    margin: 0px 0px 0px 0px;
}
span.navi-item-left{
    margin: 0px 0px 0px 4px;
    float: left;
}
span.navi-item-middle span.navi-item{
    margin: 0px 6px 0px 6px;
}
span.navi-item-right{
    margin: 0px 4px 0px 0px;
    float: right;
}
.top-navi-level a, .bottom-navi a {
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.top-navi-level a:hover, .bottom-navi a:hover {
    background-color: #eee;
}
/*----------词条------------*/
/*目录标题*/
div.toc-title {
    text-align: center;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 120%;
}
/*目录链接*/
div.toc-text a:link {color: blue;}
div.toc-text a:hover {background:yellow;}
div.toc-text a {
    position: relative;
    transition: all 0.3s ease-in-out;
}

div.toc-text a:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #007bff;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

div.toc-text a:hover:before {
    visibility: visible;
    transform: scaleX(1);
}
span.sep-list {color: grey; font-size: 90%;}
/*词目*/
div.entry-headword {
    text-align: left;
    font-weight: bold;
    font-size: 110%;
    color: #a50000;
    background-color: #eee;
    border-left: 5px solid #a50000;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/*正文*/
div.entry-body {}

/* 基本字体和颜色设置 */
body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Meiryo', 'メイリオ', 'Segoe UI Symbol', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* 日本风格的装饰 */
.entry-word::before, .original_notation::before, .part_of_speech::before, .accent::before, .remarks::before, .usage_explanation::before {
    display: block;
    margin-bottom: 4px;
    color: #666;
    font-size: 0.8em;
}

.entry-word::before { content: '單語: '; }
.original_notation::before { content: '元表記など: '; }
.part_of_speech::before { content: '品詞: '; }
.accent::before { content: 'アクセント: '; }
.remarks::before { content: '備考: '; }
.usage_explanation::before { content: '用法解説: '; }

/* 类别特定样式 */
.original_notation, .part_of_speech, .accent, .remarks, .usage_explanation {
    display: block;
    padding: 10px;
    margin: 10px 0;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.original_notation { border-left: 5px solid #f9a825; }
.part_of_speech { border-left: 5px solid #00e676; }
.accent { border-left: 5px solid #00b0ff; }
.remarks { border-left: 5px solid #ff4081; }
.usage_explanation { border-left: 5px solid #7c4dff; }

/* 阴影和动画效果 */
.original_notation, .part_of_speech, .accent, .remarks, .usage_explanation {
    transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.original_notation:hover, .part_of_speech:hover, .accent:hover, .remarks:hover, .usage_explanation:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: fadeIn 1s ease-in-out;
}