* {
    margin: 0;
    padding: 0;
}

body {
    background: #f8f8f8;
    list-style: none;
    color: var(--color);
    --primary: #fddc74;
    --primary2: #ffc107;
    --secondary: #f68c08;
    --primary-bg: #fff7be;
    --secondary-bg: #fff7e8;
    /* 动态评论区：一级评论偏浅，回复略深便于区分 */
    --feed-comment-bg: #fffef9;
    --feed-comment-reply-bg: #fff3d8;
    --bg: #fff7e8;
    --black: rgb(37, 37, 37);
    --white: #fff;
    --border: 0 1px 2px #ddd;
    --color: #444;
    --background: #fafafa;
    --shadow: 2px 2px 0px rgba(5, 20, 50, .1);
}

li {
    list-style: none;
}

.flex {
    display: flex;
}

header {
    background: #fff;
}

header .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wrap {
    width: 1000px;
    margin: 0 auto;
}

.top .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding-right: 20px;
}

header .bio {
    align-items: center;
    display: flex;
    cursor: pointer;
    justify-content: end;
}

.right {
    min-width: 300px;
    max-width: 300px;
}

.authors .bio {
    padding: 10px;
    border-top: 1px dashed #eee
}
header .top .band {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

header .logo {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    background: url(https://dd-static.jd.com/ddimgp/jfs/t20261105/349182/19/9331/14478/68dd3235F0dc0e140/4ab0526972adb389.jpg);
    background-size: 100%;
}

header .top h1 {
    font-weight: bolder;
    font-family: '黑体';
}

h1 {
    font-size: 28px;
    font-weight: 400;
    padding: 20px 10px;
}

header .search {
    display: flex;
}

.search input {
    width: 200px;
    border: 0;
    padding: 8px 10px;
    border: 1px solid #ffde59;
    border-radius: 8px 0 0 8px;
}

.search button {
    border-radius: 0 8px 8px 0 !important;
    background: #ffde59;
    font-size: 15px;
    padding: 5px 20px;
    border: 1px solid #ffde59;

}

button {
    background: var(--primary);
    color: #555;
    padding: 5px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.avatar {
    display: flex;
    align-items: center;
    position: relative;
}

.avatar img {
    height: 35px !important;
    width: 35px !important;
    border-radius: 50%;
    cursor: pointer;
}

header nav {
    background: var(--bg);
    padding: 0;
    font-size: 18px;
}

header nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header ul {
    display: flex;
}

.menu button {
    background: var(--secondary);
    color: #fff;
    font-size: 15px;
    border-radius: 17px;
}

header ul li.active {
    font-weight: 700;
    background: url(https://www.ciweimao.com/resources/image/icon-cat-claw.png) no-repeat center bottom !important;
    color: #ffc107;
}

header ul li {
    padding: 10px;
    cursor: pointer;
}

a {
    color: var(--color);
    text-decoration: none;
}



.left,
.center,
.right {
    border-radius: 10px;
    margin: 10px 0;
    box-sizing: border-box;
}

.center {
    flex: 1;
    min-height: 100vh;
    max-width: 690px;
    margin-right: 10px;
}

.recommend section {
    margin: 10px;
}

section {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
}

section h1 {
    font-size: 18px;
    position: relative;
    padding: 0;
    display: inline-block;
    margin-bottom: 10px;
}

section h1:before {
    content: "";
    width: 10px;
    height: 10px;
    border-bottom: 5px solid var(--primary);
    color: var(--primary);
    transform: rotate(-45deg);
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0;
}

.recommend ul {
    width: 100%;
}

.recommend ul li {
    display: inline-block;
    width: 100%;
    padding: 10px;
    margin: 0 !important;
    cursor: pointer;
    border-radius: 10px;
    box-sizing: border-box;
}

.recommend ul a {
    display: inline-block;
    width: 20%;
}

.recommend ul li .cover {
    width: 100%;
}

.recommend ul li .cover img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 1;
    object-fit: cover;
}

.recommend .title {
    height: 50px;
    overflow: hidden;
}

/* 首页动态流 */
.feed .feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feed .item {
    margin: 0 0 12px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.feed .feed-body {
    border-top: 1px solid #f0f0f0;
}

.feed .feed-link {
    color: inherit;
    text-decoration: none;
}

.feed .artice img {
    width: 100%;
    display: block;
    border-radius: 0;
    max-height: 420px;
    object-fit: cover;
}

.feed .excerpt {
    padding: 10px 12px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color);
    white-space: pre-wrap;
    word-break: break-word;
}

.feed .actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 12px 12px;
    font-size: 13px;
    color: #888;
}

.feed .actions span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.feed .actions .iconfont {
    font-size: 18px;
}

.feed .action-like {
    cursor: pointer;
    user-select: none;
}

.feed .action-like.liked .iconfont {
    color: var(--secondary);
}

.feed .action-comment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.feed .action-comment-readonly {
    cursor: default;
    pointer-events: none;
    opacity: 0.92;
}

.feed .feed-likers {
    background: var(--primary-bg);
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #f5e6a8;
}

/* 首页动态：评论预览（一级浅底 / 回复略深） */
.feed .feed-last-reply {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    margin: 0;
    background: var(--feed-comment-bg);
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #f5e6a8;
    text-decoration: none;
    color: var(--primary2);
    font-size: 14px;
    line-height: 1.45;
}

.feed .feed-last-reply:hover {
    filter: brightness(0.98);
}

.feed .feed-last-reply .avatar {
    flex-shrink: 0;
}

.feed .feed-last-reply .avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.feed .feed-last-reply-main {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.feed .feed-last-reply-name {
    font-weight: 600;
    color: var(--secondary);
}

.feed .feed-last-reply-sep {
    margin: 0 1px;
}

.feed .feed-last-reply-text {
    color: var(--primary2);
}

.feed .feed-last-reply-row {
    align-items: center;
}

.feed .feed-last-reply-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.feed .feed-last-reply-body:hover {
    filter: brightness(0.98);
}

.feed .feed-reply-btn {
    flex-shrink: 0;
    margin: 0;
    padding: 4px 8px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--secondary);
    cursor: pointer;
    font-family: inherit;
}

.feed .feed-reply-btn:hover {
    text-decoration: underline;
}

.feed .feed-last-reply-nested {
    margin-left: 8px;
    border-left: 3px solid #e0c66e;
    padding-left: 8px;
    background: var(--feed-comment-reply-bg);
}

.feed .feed-recent-comments {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.feed .feed-recent-comments .feed-last-reply {
    border-radius: 0;
}

.feed .feed-recent-comments .feed-last-reply + .feed-last-reply {
    border-top: 1px solid #f5e6a8;
}

.feed .feed-more-comments {
    display: block;
    padding: 8px 12px 10px;
    font-size: 13px;
    color: var(--secondary);
    text-decoration: none;
    background: var(--feed-comment-bg);
    border-top: 1px solid #f5e6a8;
}

.feed .feed-more-comments:hover {
    filter: brightness(0.98);
}

.rank .current {
    display: flex;
    position: relative;
    padding: 0 10px 15px;
}

.rank li {
    display: flex;
    padding: 8px 10px;
    cursor: pointer;
    position: relative;
}

.rank li .active {
    color: var(--primary);
}

.rank li span {
    font-size: 16px;
    font-weight: 700;
    color: #bbb;
}

.rank .title {
    padding: 0 10px;
}

.rank .cover,
.rank .cover img {
    height: 100px;
    width: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.rank .current .title {
    font-size: 16px;
}

.rank .bom {
    position: absolute;
    display: flex;
    align-items: baseline;
    bottom: 12px;
}

.rank .tag {
    font-size: 12px;
    padding: 0 10px;
    color: #bbb;
}

.rank .idx {
    font-size: 60px;
    color: var(--primary);
    font-weight: 700;
    position: relative;
    bottom: -18px;
}

.motal {
    position: fixed;
    min-width: 300px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    z-index: 9999;
    padding: 10px;
    text-align: right;
}

.mask {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 999;
}

.motal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.motal-content p {
    margin: 0 10px;
    cursor: pointer;
}

/* 评论弹窗 + 插入图片二级弹窗 */
.comment-motal {
    width: min(420px, 92vw);
    max-width: 92vw;
    text-align: left;
    z-index: 13000;
}

.comment-motal-title {
    font-weight: 600;
    cursor: default !important;
}

.comment-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 4px;
}

.btn-insert-img {
    background: var(--secondary-bg);
    border: 1px solid #ffde59;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
}

.comment-bed-link {
    font-size: 13px;
    color: rgb(72, 96, 161);
}

.mask-nested {
    z-index: 10050 !important;
}

.motal-nested {
    z-index: 10051 !important;
    width: min(380px, 92vw);
    text-align: left;
}

.comment-img-hint {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
}

.comment-img-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.comment-img-preview-wrap {
    max-height: 160px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f5f5f5;
}

.comment-img-preview {
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 160px;
}

.comment-img-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.comment-img-actions .btn-cancel-sub {
    background: #eee;
    color: #555;
}

.feed-mention {
    color: var(--secondary);
    font-weight: 600;
}

.feed-comment-list {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0e4c4;
}

.feed-comment-li {
    padding: 12px 14px;
    background: var(--feed-comment-bg);
    border-top: 1px solid #f0e4c4;
}

.feed-comment-li:first-child {
    border-top: none;
}

.feed-comment-li-nested {
    margin-left: 12px;
    margin-right: 4px;
    padding-left: 14px;
    border-left: 4px solid #e0c66e;
    background: var(--feed-comment-reply-bg);
    border-radius: 0 6px 6px 0;
}

.feed-comment-li .bio {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.feed-comment-reply {
    flex-shrink: 0;
    margin: 0;
    padding: 2px 8px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--secondary);
    cursor: pointer;
    font-family: inherit;
}

.feed-comment-reply:hover {
    text-decoration: underline;
}

.feed-reply-hint {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
}

.feed-reply-cancel {
    margin-left: 10px;
    padding: 0;
    border: none;
    background: none;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.feed-comment-box textarea {
    min-height: 100px;
}

.login {
    text-align: center;
    overflow: hidden;
    width: 370px;
    margin: 0 auto;
    border-radius: 10px;
}

.login .tab {
    display: flex;
    font-size: 18px;
}

.login .tab .active {
    border-bottom: 2px solid var(--primary);
}

.login li {
    padding: 10px;
    margin: 5px;
}

.login select {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    width: 340px;
    margin: 10px 0;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.login li input {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
}

.login li button {
    background: var(--primary);
    color: #555;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.play .play-box {
    border-radius: 8px 8px 0 0;
    padding: 10px;
    background: #fff;
    margin-top: 10px;
    min-height: auto;
}

.play .instro {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.play .player {
    margin: 10px 0;
}

.play .player,
.play .ep-wrap {
    width: 670px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
}

.play .instro .flex {
    align-items: center;
}

.play .instro .a {
    padding-right: 10px;
}


.play .instro h1 {
    font-size: 24px;
    padding: 10px 0;
}

.play p span {
    padding-right: 10px;
}

.play p span:after {
    content: "/";
    padding-left: 8px;
    color: #ddd;
}

.play p i {
    font-style: normal;
    padding-right: 10px;
    cursor: pointer;
}

.play p i:before {
    content: "#";
    color: var(--secondary);
    padding-right: 2px;
    font-size: 15px;
}

.play-right ul li.active {
    color: var(--primary2);
    background: var(--secondary-bg);
}

.play-right ul li {
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

e-player {
    --theme: var(--primary);
}

.controls .right {
    display: block;
}

.pub {
    width: 800px;
    min-height: 200px;
    margin: 30px auto;
}

.pub input {
    padding: 10px;
    border: none;
    width: 100%;
    margin-top: 15px;
    box-sizing: border-box;
    border-radius: 10px;
}

.pub textarea,
.minipub textarea {
    width: 100%;
    min-height: 200px;
    outline: none;
    border: none;
    box-sizing: border-box;
    padding: 10px 15px;
    resize: none;
    font-size: 14px;
    line-height: 20px;
}

.pub .submit {
    text-align: right;
    margin: 10px 0;
    font-size: 16px;
}

.pub :first-child {
    margin-bottom: 15px;
}

.pub .submit a {
    font-size: 12px;
    color: rgb(72, 96, 161);
    text-decoration: solid;
    padding: 0 10px;
}

footer {
    font-size: 13px;
    text-align: center;
    padding: 20px 16px;
    color: #666;
}

footer p {
    margin: 0.35em 0;
}

.comments li {
    margin: 0;
    background: #f2f2f2;
    border-radius: 0 0 8px 8px;
}

.bio {
    display: flex;
    align-content: space-between;
    justify-content: space-between;
}

.comments .replies {
    background: #fff;
    color: var(--primary);
}

.replies {
    background: var(--secondary-bg);
    color: var(--primary2);
    border-radius: 8px;
    overflow: hidden;
}

article {
    padding: 10px;
}

.avatar .info p {
    padding: 0 10px;
}

.avatar .info b {
    color: #bbb;
    font-size: 12px;
    padding: 0 10px;
    font-weight: 400;
}

article span {
    /* justify-content: end; */
    padding: 0 5px;
    font-size: 12px;
    cursor: pointer;
    color: #888;
}

.comments .bio{
    padding: 10px 10px 0 10px;
}

.comments .info{
    font-size: 13px;
}

.iconfont {
    cursor: pointer;
}

.menu a{
    color: #fff;
}

footer span{
    cursor: pointer;
    color: rgb(72, 96, 161);
}