.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    border-radius: .6em;
    overflow: hidden;
    position: relative;
    display: flex;
}

/*左侧操作栏*/
.news-operate {
    width: 420px;
    background-color: #f8f9ff;
    border-left: solid 1px #e5e5e5;
}

.news-operate > label {
    font-weight: bold;
    display: block;
    text-align: center;
    font-size: 15px;
    line-height: 50px;
}

.menu-operate {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 0 1em 1em;
}

.menu-operate .input-group {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    gap: 0 12px;
}

.menu-operate .input-group > label {
    min-width: 60px;
    text-align: right;
}

/*按钮*/
.btn {
    outline: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    font-family: var(--font-simple);
}

.btn .ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    animation: ripple-effect 0.6s ease-out forwards;
}

.btn-group {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-left: 72px;
}

.btn-purple {
    color: #fff;
    background-color: rgb(93 79 248 / 95%);
    border-color: rgb(93 79 248 / 95%);
    width: fit-content;
    flex: 1;
    height: 39px;
}

.btn-purple1 {
    color: rgb(93 79 248 / 95%);
    border-color: rgb(93 79 248);
    background: transparent;
    width: fit-content;
    display: flex;
    flex: 1;
    height: 39px;
}

.btn-purple svg {
    fill: #fff;
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/*下拉框*/
.menu-operate .input-group .custom-select {
    position: relative;
    width: 100%;
}

.menu-operate .input-group .custom-select button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
    gap: 0 6px;
    width: 100%;
    height: 38px;
}

.menu-operate .input-group .select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max-content;
    min-width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    white-space: nowrap;
}

.select-dropdown li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 3px 5px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 13.7px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.select-dropdown li:hover,
.select-dropdown li[aria-selected="true"] {
    background-color: #f5f5f5;
}

.select-dropdown li .check-icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    opacity: 0;
    display: block !important;
}

.select-dropdown li[aria-selected="true"] .check-icon {
    opacity: 1;
}

/*输入框*/
.menu-operate .input-group .input-text {
    display: flex;
    flex: 1;
    height: 40px;
    border: solid 1px #ddd;
    background-color: #fff;
    padding: 0 12px;
    border-radius: 7px;
    outline: none;
    font-size: 14px;
    box-shadow: inset 0 1px 4px rgb(211 198 255 / 20%), 0 0 0 2px rgba(224, 224, 224, 0.1);
}

.menu-operate .input-group .input-text:focus {
    border-color: #5a4df8;
    background-color: #f8f7fd;
    box-shadow: inset 0 1px 4px rgba(90, 77, 248, 0.2), 0 0 0 2px rgba(90, 77, 248, 0.1);
}

.menu-operate .news-label a {
    display: flex;
    margin: 1px 6px 0 auto;
    font-size: 13px;
    color: rgb(90 77 248 / 90%);
    padding-bottom: 1px;
    border-bottom: dashed 1px rgb(90 77 248 / 80%);
}

.menu-operate .news-label a:hover {
    color: rgb(90 77 248 / 100%);
    border-bottom: dashed 1px rgb(90 77 248 / 100%);
}

/*富文本框*/
.menu-operate .input-textarea {
    border: solid 1px #ddd;
    background-color: #fff;
    box-shadow: inset 0 1px 4px rgb(211 198 255 / 20%), 0 0 0 2px rgba(224, 224, 224, 0.1);
    width: 100%;
    min-height: 250px;
    line-height: 24px;
    padding: 6px 12px;
    border-radius: 7px;
    outline: none;
    font-size: 15px;
    resize: none;
    display: block;
}

.menu-operate .input-textarea:focus {
    border-color: #5a4df8;
    background-color: #f8f7fd;
    box-shadow: inset 0 1px 4px rgba(90, 77, 248, 0.2), 0 0 0 2px rgba(90, 77, 248, 0.1);
}

.news-preview > .label {
    font-weight: bold;
    display: block;
    text-align: center;
    font-size: 15px;
    line-height: 50px;
}

.news-preview {
    flex: 1;
    margin-bottom: 1em;
}

.news-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 1em;
    margin: 0 auto;
    overflow: hidden;
    border: solid 1px #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== 关键修改区域 ========== */
.news-wrapper .news-inner {
    border: solid 2px #723e48;
    padding: 1em;
    margin: 0;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;          /* 防止子元素 margin 溢出到底部 */
}

.news-wrapper .news-inner .news-header {
    width: 100%;
    height: 320px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.news-wrapper .news-inner .news-header .week-cn {
    font-size: 50px;
    font-weight: bold;
    letter-spacing: 10px;
    line-height: 1;
}

.news-wrapper .news-inner .news-header .week-en {
    font-size: 20px;
    letter-spacing: 3px;
    margin: 20px 0 30px;
}

.news-wrapper .news-inner .news-header .inspirational-quotes {
    font-size: 20px;
    letter-spacing: 2px;
}

.news-date {
    border: 0 solid #723e48;
    border-top-width: 3px;
    border-bottom-width: 2px;
    margin: 1em 0 0.7em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lunar-calendar, .solar-calendar {
    padding: 4px 0 5px 0;
}

.lunar-calendar span, .solar-calendar span {
    display: block;
}

.lunar-calendar span:first-child, .solar-calendar span:first-child {
    font-size: 16px;
}

.sub-title {
    color: #fe0707;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

.news-content p {
    font-size: 1.1em;
    margin-bottom: 0.5em;
    line-height: 1.4em;
}

/* 关键：去掉最后一段新闻的下边距，避免底部多出一截 */
.news-content p:last-child {
    margin-bottom: 0;
}

.news-content {
    padding-bottom: 0;
    margin-bottom: 0;
}
/* ========== 关键修改区域结束 ========== */

.color-group {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 8.5px;
}

.color {
    width: 38px;
    height: 39px;
    border-radius: 7px;
    cursor: pointer;
}

.color-1 {
    background-color: #f45945;
}

.color-2 {
    background-color: #66ad33;
}

.color-3 {
    background-color: #e4c77b;
}

.color-4 {
    background-color: #b67b59;
}

.color-5 {
    background-color: #03a1ea;
}

.color-6 {
    background-color: #5f371e;
}

.color-7 {
    background-color: #256c20;
}

@media (max-width: 768px) {
    .tool-content {
        border-width: 0;
        flex-direction: column;
        box-shadow: none;
    }

    .news-preview {
        margin-bottom: 0;
    }

    .news-wrapper {
        width: 100%;
        padding: 12px;
    }

    .news-operate {
        width: 100%;
        border: solid 1px #e5e5e5;
        border-radius: 8px;
    }
}